The theme editor's ramps and roles, checked as they are edited (spec/14 §20.4, §20.5, D-139).
Each ramp is drawn as the theme interpolates it, again as a color-vision deficiency
sees it when one is chosen, and as the lightness of each of its colors — what a reader
with no hue at all reads. Its anchors are color inputs of the editor's form, and a
contract it breaks is said beneath it in the contract's own words
(Visualize.Theme.violations/1). The status roles are drawn at the positions the library
fixes for them, and set by the color there.
This module compiles only when Phoenix.Component is loaded (spec/10 §1.1, D-45, D-85).
Summary
Functions
Renders the ramps and roles sections (spec/14 §20.4): for each ramp a
<div class="vis-builder-theme-ramp"> — the ramp drawn, the ramp as the deficiency sees
it, the lightness strip, the anchors and any violation — then a row per role. They are
fieldsets of the editor's form, so their inputs write through theme_edit.
Functions
Renders the ramps and roles sections (spec/14 §20.4): for each ramp a
<div class="vis-builder-theme-ramp"> — the ramp drawn, the ramp as the deficiency sees
it, the lightness strip, the anchors and any violation — then a row per role. They are
fieldsets of the editor's form, so their inputs write through theme_edit.
Attributes
theme(:any) (required) - the%Visualize.Theme{}being edited, unchecked.vision(:atom) - the deficiency the ramps are also drawn under. Defaults to:none.target(:any) - thephx-targetof the section's buttons. Defaults tonil.