@uselazuli/cli 0.0.0-stage → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +120 -0
- package/LICENSE +21 -0
- package/README.md +202 -2
- package/agents/lazuli-design-reviewer.md +30 -0
- package/agents/lazuli-first-look.md +22 -0
- package/agents/lazuli-task-tester.md +25 -0
- package/bin/lazuli.mjs +747 -0
- package/package.json +11 -4
- package/rules/accessibility/HYPOTHESES.md +8 -0
- package/rules/accessibility/_area.yaml +7 -0
- package/rules/accessibility/operable.yaml +100 -0
- package/rules/accessibility/perceivable.yaml +153 -0
- package/rules/accessibility/robust.yaml +24 -0
- package/rules/accessibility/understandable.yaml +72 -0
- package/rules/color/HYPOTHESES.md +27 -0
- package/rules/color/_area.yaml +10 -0
- package/rules/color/adapt.yaml +183 -0
- package/rules/color/create.yaml +259 -0
- package/rules/color/review.yaml +215 -0
- package/rules/color/signal.yaml +196 -0
- package/rules/content/HYPOTHESES.md +19 -0
- package/rules/content/_area.yaml +8 -0
- package/rules/content/review.yaml +378 -0
- package/rules/content/voice.yaml +144 -0
- package/rules/content/writing.yaml +202 -0
- package/rules/data/HYPOTHESES.md +11 -0
- package/rules/data/_area.yaml +7 -0
- package/rules/data/charts.yaml +189 -0
- package/rules/data/dashboards.yaml +141 -0
- package/rules/data/review.yaml +159 -0
- package/rules/graphic/HYPOTHESES.md +18 -0
- package/rules/graphic/_area.yaml +8 -0
- package/rules/graphic/identity.yaml +141 -0
- package/rules/graphic/pieces.yaml +164 -0
- package/rules/graphic/review.yaml +271 -0
- package/rules/graphic/symbol.yaml +141 -0
- package/rules/motion/HYPOTHESES.md +19 -0
- package/rules/motion/_area.yaml +7 -0
- package/rules/motion/micro.yaml +143 -0
- package/rules/motion/review.yaml +347 -0
- package/rules/motion/transitions.yaml +169 -0
- package/rules/typography/HYPOTHESES.md +12 -0
- package/rules/typography/_area.yaml +8 -0
- package/rules/typography/adapt.yaml +45 -0
- package/rules/typography/create.yaml +126 -0
- package/rules/typography/review.yaml +127 -0
- package/rules/ui/HYPOTHESES.md +23 -0
- package/rules/ui/_area.yaml +9 -0
- package/rules/ui/compose.yaml +246 -0
- package/rules/ui/grid.yaml +75 -0
- package/rules/ui/review.yaml +400 -0
- package/rules/ui/states.yaml +257 -0
- package/rules/ux/HYPOTHESES.md +13 -0
- package/rules/ux/_area.yaml +8 -0
- package/rules/ux/flows.yaml +164 -0
- package/rules/ux/forms.yaml +142 -0
- package/rules/ux/review.yaml +186 -0
- package/skills/lazuli/SKILL.md +183 -0
- package/skills/lazuli/procedures/create.md +29 -0
- package/skills/lazuli/procedures/explain-decisions.md +22 -0
- package/skills/lazuli/procedures/improve.md +30 -0
- package/skills/lazuli/procedures/remember-this.md +41 -0
- package/skills/lazuli/procedures/review-design.md +36 -0
- package/skills/lazuli/procedures/show-options.md +33 -0
- package/skills/lazuli-accessibility-check/SKILL.md +68 -0
- package/skills/lazuli-color-context-and-culture/SKILL.md +53 -0
- package/skills/lazuli-color-context-and-culture/references/sectors.md +26 -0
- package/skills/lazuli-color-palette-by-intent/SKILL.md +54 -0
- package/skills/lazuli-color-palette-by-intent/references/intent-chords.md +51 -0
- package/skills/lazuli-color-screen-review/SKILL.md +51 -0
- package/skills/lazuli-color-states-and-signals/SKILL.md +53 -0
- package/skills/lazuli-content-interface-writing/SKILL.md +53 -0
- package/skills/lazuli-content-voice/SKILL.md +40 -0
- package/skills/lazuli-data-charts-and-dashboards/SKILL.md +59 -0
- package/skills/lazuli-graphic-derived-pieces/SKILL.md +40 -0
- package/skills/lazuli-graphic-derived-pieces/references/piece-template.html +24 -0
- package/skills/lazuli-graphic-identity/SKILL.md +45 -0
- package/skills/lazuli-motion-micro-and-transitions/SKILL.md +49 -0
- package/skills/lazuli-typography-choose-and-pair/SKILL.md +50 -0
- package/skills/lazuli-typography-screen-review/SKILL.md +51 -0
- package/skills/lazuli-ui-composition/SKILL.md +42 -0
- package/skills/lazuli-ui-composition/references/option-template.html +34 -0
- package/skills/lazuli-ui-layout-review/SKILL.md +47 -0
- package/skills/lazuli-ui-states-and-system/SKILL.md +54 -0
- package/skills/lazuli-ux-flows-and-forms/SKILL.md +51 -0
- package/skills/lazuli-ux-task-test/SKILL.md +44 -0
- package/src/browser.mjs +162 -0
- package/src/commands/capture.mjs +313 -0
- package/src/commands/catalog.mjs +37 -0
- package/src/commands/check-design.mjs +463 -0
- package/src/commands/check-goals.mjs +57 -0
- package/src/commands/compare-designs.mjs +160 -0
- package/src/commands/draft-memo.mjs +162 -0
- package/src/commands/hooks.mjs +345 -0
- package/src/commands/install-hooks.mjs +120 -0
- package/src/commands/install.mjs +132 -0
- package/src/commands/list-rules.mjs +49 -0
- package/src/commands/map-page.mjs +594 -0
- package/src/commands/record-answers.mjs +79 -0
- package/src/commands/record-log.mjs +325 -0
- package/src/commands/record-task.mjs +250 -0
- package/src/commands/render-options.mjs +227 -0
- package/src/commands/start-project.mjs +32 -0
- package/src/measure/a11y.mjs +391 -0
- package/src/measure/asset.mjs +206 -0
- package/src/measure/at-rest.mjs +49 -0
- package/src/measure/cases.mjs +566 -0
- package/src/measure/chart-read.mjs +401 -0
- package/src/measure/chart.mjs +264 -0
- package/src/measure/coherence.mjs +145 -0
- package/src/measure/color.mjs +86 -0
- package/src/measure/content.mjs +82 -0
- package/src/measure/cvd.mjs +24 -0
- package/src/measure/extreme.mjs +241 -0
- package/src/measure/forms.mjs +150 -0
- package/src/measure/in-page/a11y.js +522 -0
- package/src/measure/in-page/color.js +348 -0
- package/src/measure/in-page/composition.js +1496 -0
- package/src/measure/in-page/contrast.js +15 -0
- package/src/measure/in-page/cvd.js +173 -0
- package/src/measure/in-page/extreme.js +377 -0
- package/src/measure/in-page/frames.js +781 -0
- package/src/measure/in-page/look.js +28 -0
- package/src/measure/in-page/motion-probe.js +171 -0
- package/src/measure/in-page/style.js +107 -0
- package/src/measure/in-page/svg-strokes.js +112 -0
- package/src/measure/in-page/svg-uses.js +50 -0
- package/src/measure/in-page/symbol.js +123 -0
- package/src/measure/in-page/type.js +269 -0
- package/src/measure/in-page/weight.js +207 -0
- package/src/measure/layout.mjs +100 -0
- package/src/measure/motion.mjs +509 -0
- package/src/measure/piece.mjs +195 -0
- package/src/measure/registry.mjs +253 -0
- package/src/measure/rhythm.mjs +81 -0
- package/src/measure/signature.mjs +65 -0
- package/src/measure/states.mjs +240 -0
- package/src/measure/style.mjs +13 -0
- package/src/measure/symbol.mjs +268 -0
- package/src/measure/terms.mjs +153 -0
- package/src/measure/tiles.mjs +20 -0
- package/src/measure/timeline.mjs +621 -0
- package/src/measure/type.mjs +167 -0
- package/src/measure/weight.mjs +18 -0
- package/src/private-strings.mjs +81 -0
- package/src/project/blind.mjs +70 -0
- package/src/project/edits.mjs +154 -0
- package/src/project/gate.mjs +168 -0
- package/src/project/lazuli-md.mjs +521 -0
- package/src/project/log.mjs +335 -0
- package/src/project/match.mjs +200 -0
- package/src/project/records.mjs +380 -0
- package/src/project/tasks.mjs +153 -0
- package/src/report/evaluate.mjs +27 -0
- package/src/report/evaluators/a11y.mjs +227 -0
- package/src/report/evaluators/chart.mjs +151 -0
- package/src/report/evaluators/coherence.mjs +103 -0
- package/src/report/evaluators/color.mjs +133 -0
- package/src/report/evaluators/content.mjs +112 -0
- package/src/report/evaluators/extreme.mjs +87 -0
- package/src/report/evaluators/forms.mjs +116 -0
- package/src/report/evaluators/layout.mjs +103 -0
- package/src/report/evaluators/motion.mjs +280 -0
- package/src/report/evaluators/piece.mjs +69 -0
- package/src/report/evaluators/rhythm.mjs +99 -0
- package/src/report/evaluators/states.mjs +39 -0
- package/src/report/evaluators/style.mjs +35 -0
- package/src/report/evaluators/symbol.mjs +110 -0
- package/src/report/evaluators/terms.mjs +49 -0
- package/src/report/evaluators/type.mjs +166 -0
- package/src/report/evaluators/weight.mjs +51 -0
- package/src/report/evidence.mjs +4 -0
- package/src/report/finding.mjs +11 -0
- package/src/report/format.mjs +215 -0
- package/src/rules/hypotheses.mjs +28 -0
- package/src/rules/load.mjs +274 -0
- package/src/rules/public-text.mjs +56 -0
- package/src/rules/schema.mjs +220 -0
- package/templates/LAZULI.md +88 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
- id: PA1
|
|
2
|
+
name: Choose the companion colors first
|
|
3
|
+
area: color
|
|
4
|
+
moment: create
|
|
5
|
+
skill: lazuli-color-palette-by-intent
|
|
6
|
+
rule: >-
|
|
7
|
+
Never approve a main color alone. Define the colors that sit beside it first, because the chord decides the message.
|
|
8
|
+
why: >-
|
|
9
|
+
A color is read through its company. Red with orange and violet reads as passion, with pink as tenderness, with black as aggression. The same hue changes meaning when its neighbors change.
|
|
10
|
+
origin: source
|
|
11
|
+
source: >-
|
|
12
|
+
Heller, Psychology of Color, introduction (color chords); ch. Red s.2; ch. Green s.1
|
|
13
|
+
when_to_break: >-
|
|
14
|
+
A monochrome brand (one color plus neutrals). Even then, check that the neutrals do not form a negative chord with the color (see PA2).
|
|
15
|
+
break_effect: >-
|
|
16
|
+
The viewer reads a single, undiluted idea with no companion shaping it, so the color feels calm and unmistakable rather than layered.
|
|
17
|
+
test: >-
|
|
18
|
+
In the render, list the chromatic colors that take the most area after the background. Pass if they belong to the chord of the chosen intent. Fail if any appears in the "avoid together" column or in the list of accidental combinations.
|
|
19
|
+
example: >-
|
|
20
|
+
A wellness app with leaf green, light blue and white.
|
|
21
|
+
counterexample: >-
|
|
22
|
+
The same green with black and violet, which reads as toxic or sinister.
|
|
23
|
+
|
|
24
|
+
- id: PA2
|
|
25
|
+
name: No pure black on a warm or playful brand
|
|
26
|
+
area: color
|
|
27
|
+
moment: create
|
|
28
|
+
skill: lazuli-color-palette-by-intent
|
|
29
|
+
rule: >-
|
|
30
|
+
On a cheerful, warm or childlike brand, keep pure black out of the visible companions of the main color. Use a graphite that carries the palette undertone, or a dark shade of the main color itself.
|
|
31
|
+
why: >-
|
|
32
|
+
Adding black to a chromatic color pulls its meaning toward the negative side. Red with black reads as hatred or danger, yellow with black as a warning, green with black as sinister, orange with black as an alarm.
|
|
33
|
+
origin: source
|
|
34
|
+
source: >-
|
|
35
|
+
Heller, Psychology of Color, ch. Red s.2; ch. Black s.5 to s.7; ch. Orange s.7
|
|
36
|
+
when_to_break: >-
|
|
37
|
+
When the intent is power, danger, mystery or nocturnal elegance. Confirm the product can carry that reading.
|
|
38
|
+
break_effect: >-
|
|
39
|
+
The viewer feels weight, tension or ceremony instead of warmth, so the brand reads as serious, dark or exclusive.
|
|
40
|
+
test: >-
|
|
41
|
+
In the render, is there a black or near-black block touching the brand color that is larger than a typographic detail? If yes and the intent is not power, danger, mystery or night elegance, fail.
|
|
42
|
+
example: >-
|
|
43
|
+
A delivery brand with orange, cream and toasted brown.
|
|
44
|
+
counterexample: >-
|
|
45
|
+
A children's school in yellow and black, which reads as a construction stripe.
|
|
46
|
+
|
|
47
|
+
- id: PA3
|
|
48
|
+
name: Opposite colors only by choice
|
|
49
|
+
area: color
|
|
50
|
+
moment: create
|
|
51
|
+
skill: lazuli-color-palette-by-intent
|
|
52
|
+
rule: >-
|
|
53
|
+
Cross every pair of palette colors against the list of psychological opposites, and let an opposite pair appear only by choice. Opposites are red and blue, white and brown, black and pink, yellow or orange and gray, green and violet, gold and gray or brown, silver and yellow, blue and brown. Light, broken tones such as sand, beige and cream do not count as brown.
|
|
54
|
+
why: >-
|
|
55
|
+
These pairs have contrary psychological effects (passion and reason, clean and dirty, hard and delicate, radiant and dull, natural and artificial, expensive and cheap, cold and bold, ideal and earthly). Placed together by accident they send a contradiction.
|
|
56
|
+
origin: source
|
|
57
|
+
source: >-
|
|
58
|
+
Heller, Psychology of Color, ch. Blue s.14; ch. White s.5; ch. Gray s.2; ch. Pink s.4 and s.10
|
|
59
|
+
when_to_break: >-
|
|
60
|
+
When the pair is already accepted for that intent (red with blue for courage and dynamism, body and spirit), or when the contrast is the concept (pink with black, or with gray or silver, as a refinement path for pink). In both cases one of the two colors must clearly dominate by area.
|
|
61
|
+
break_effect: >-
|
|
62
|
+
The viewer feels deliberate tension between two ideas, a designed contrast, rather than a palette that contradicts itself.
|
|
63
|
+
test: >-
|
|
64
|
+
List the opposite pairs present. Pass if there is none, or each pair is accepted for the intent or justified in writing and one color visibly dominates. Fail for an unjustified pair, or for two colors in similar areas.
|
|
65
|
+
example: >-
|
|
66
|
+
A fintech with blue, white and gray.
|
|
67
|
+
counterexample: >-
|
|
68
|
+
A "natural" brand with green and violet in equal areas.
|
|
69
|
+
|
|
70
|
+
- id: PA4
|
|
71
|
+
name: One pure color per screen
|
|
72
|
+
area: color
|
|
73
|
+
moment: create
|
|
74
|
+
skill: lazuli-color-palette-by-intent
|
|
75
|
+
rule: >-
|
|
76
|
+
Let only one color appear pure and bring the others broken, mixed with white, black or gray, in larger areas. The pure color is the chromatic color with the smallest area, usually the action or brand color.
|
|
77
|
+
why: >-
|
|
78
|
+
A combination feels harmonious when a hierarchy of purity exists: one pure color supported by broken ones that take more space.
|
|
79
|
+
origin: source
|
|
80
|
+
source: >-
|
|
81
|
+
Heller, Psychology of Color, ch. Gray s.17 (harmony by hierarchy, attributed to Goethe and read there as a taste of its era)
|
|
82
|
+
measure: color.area
|
|
83
|
+
threshold: { minSaturation: 60, minLightness: 25, maxLightness: 75, maxPct: 25 }
|
|
84
|
+
status: hypothesis
|
|
85
|
+
hypothesis: [H1, H2]
|
|
86
|
+
when_to_break: >-
|
|
87
|
+
Short, high-impact pieces (poster, banner, opening screen), where the pure color may dominate as long as the text passes WCAG.
|
|
88
|
+
break_effect: >-
|
|
89
|
+
The viewer is hit by the color at once and feels energy and impact, at the cost of calm and of room for the interface to breathe.
|
|
90
|
+
test: >-
|
|
91
|
+
Measure the chromatic colors in the render. Pass if the most saturated one is also the one with the smallest area. Fail if the most saturated color is the background or the largest area on a screen meant for use.
|
|
92
|
+
example: >-
|
|
93
|
+
Light sand background, dark brown text, a pure terracotta button.
|
|
94
|
+
counterexample: >-
|
|
95
|
+
A pure blue background, pure green cards and a pure red button.
|
|
96
|
+
|
|
97
|
+
- id: PA5
|
|
98
|
+
name: One undertone, warm or cool
|
|
99
|
+
area: color
|
|
100
|
+
moment: create
|
|
101
|
+
skill: lazuli-color-palette-by-intent
|
|
102
|
+
rule: >-
|
|
103
|
+
Choose warm or cool before choosing hex values, and keep one undertone across the palette. Warm neutrals (cream, beige, reddish gray) go with warm accents; cool neutrals (bluish gray) with cool accents. Brown and gray have a temperature too and are not universal neutrals.
|
|
104
|
+
why: >-
|
|
105
|
+
Colors that share a temperature combine with each other. A warm brown beside a pure cool blue, or a cool brown beside orange, clashes.
|
|
106
|
+
origin: source
|
|
107
|
+
source: >-
|
|
108
|
+
Heller, Psychology of Color, ch. Pink s.12 (undertone typology of skin; extending it to palettes is our own step); ch. Brown s.6; ch. Gray s.0
|
|
109
|
+
when_to_break: >-
|
|
110
|
+
A single accent of the opposite temperature to draw the eye (an orange button in a cool interface). One element, not a system.
|
|
111
|
+
break_effect: >-
|
|
112
|
+
The viewer's eye is pulled straight to the one warm point, which feels like a signal instead of a mismatch.
|
|
113
|
+
test: >-
|
|
114
|
+
Compare the background and surface neutrals side by side: do all lean yellowish or reddish, or all lean bluish? Pass if so. Fail if two neighboring surfaces lean opposite ways. Text may lean toward the brand hue without counting.
|
|
115
|
+
example: >-
|
|
116
|
+
Bluish grays with a grayish brand blue.
|
|
117
|
+
counterexample: >-
|
|
118
|
+
A beige card sitting against a blue-gray panel.
|
|
119
|
+
|
|
120
|
+
- id: PA6
|
|
121
|
+
name: Keep the brand color clean
|
|
122
|
+
area: color
|
|
123
|
+
moment: create
|
|
124
|
+
skill: lazuli-color-palette-by-intent
|
|
125
|
+
rule: >-
|
|
126
|
+
Keep the brand or action color clean. Avoid pale greenish yellow (read as envy, sickness, sulfur), brownish yellow (aged) and dull dark green on a brand that wants to feel noble. Muted tones belong only as supporting broken colors (see PA4).
|
|
127
|
+
why: >-
|
|
128
|
+
Clean, luminous colors long signaled value and novelty, while turbid ones signaled poverty, age or illness.
|
|
129
|
+
origin: source
|
|
130
|
+
source: >-
|
|
131
|
+
Heller, Psychology of Color, ch. Red s.9 and s.10; ch. Yellow s.6, s.12 and s.15; ch. Green s.1 and s.15
|
|
132
|
+
when_to_break: >-
|
|
133
|
+
A brand that wants to feel handmade, old or earthy, where the turbid tone is the message. Confirm with the audience that it reads as artisanal and not as dirty.
|
|
134
|
+
break_effect: >-
|
|
135
|
+
The viewer feels age, craft and earthiness, a worn authenticity, rather than polish and newness.
|
|
136
|
+
test: >-
|
|
137
|
+
For brand and action colors only: beside a pure version of the same hue, does the color look dirty, grayish or greenish (for yellow)? If yes and no artisanal intent is declared, fail.
|
|
138
|
+
example: >-
|
|
139
|
+
A clean golden yellow with dark text.
|
|
140
|
+
counterexample: >-
|
|
141
|
+
A greenish straw yellow as the main color of a food brand.
|
|
142
|
+
|
|
143
|
+
- id: PA7
|
|
144
|
+
name: Gold as a detail only
|
|
145
|
+
area: color
|
|
146
|
+
moment: create
|
|
147
|
+
skill: lazuli-color-palette-by-intent
|
|
148
|
+
rule: >-
|
|
149
|
+
Treat gold as a detail: a seal, hairline, icon or border. On screen, fake the shine with a gradient whose base leans slightly red, or accept that it becomes yellow. Do not mix gold and silver in one emblem, and do not put gold beside flat yellow.
|
|
150
|
+
why: >-
|
|
151
|
+
Gold convinces in small amounts. Spread over many points or large areas it becomes ostentation, and next to flat yellow it looks like fake gold. Silver is the discreet, modern version; gold is the version of pomp.
|
|
152
|
+
origin: source
|
|
153
|
+
source: >-
|
|
154
|
+
Heller, Psychology of Color, ch. Gold s.1, s.10, s.12 to s.15 (when coloring squares of several sizes, gold is kept for the smallest); ch. Silver s.11 and s.12
|
|
155
|
+
when_to_break: >-
|
|
156
|
+
Ceremony, awards or commemorative editions, where power and solemnity are the message.
|
|
157
|
+
break_effect: >-
|
|
158
|
+
The viewer feels grandeur and ceremony, so the piece reads as an occasion rather than as understated quality.
|
|
159
|
+
test: >-
|
|
160
|
+
Does gold appear only on small elements? Is flat yellow on the same screen? Fail if gold fills a background or a large block without a pomp intent, or if it sits with flat yellow.
|
|
161
|
+
example: >-
|
|
162
|
+
A dark premium card with the logotype in a thin gold line.
|
|
163
|
+
counterexample: >-
|
|
164
|
+
A gold background, gold headings, gold icons and a yellow button.
|
|
165
|
+
|
|
166
|
+
- id: PA8
|
|
167
|
+
name: Test a color that goes against the subject
|
|
168
|
+
area: color
|
|
169
|
+
moment: create
|
|
170
|
+
skill: lazuli-color-palette-by-intent
|
|
171
|
+
rule: >-
|
|
172
|
+
If the brand must be remembered, test a variant whose color goes against the subject. Never apply this to food or drink that is shown.
|
|
173
|
+
why: >-
|
|
174
|
+
The obvious color of a subject adds nothing, while an unexpected color on a familiar shape draws attention. On food, an unexpected color causes disgust.
|
|
175
|
+
origin: source
|
|
176
|
+
source: >-
|
|
177
|
+
Heller, Psychology of Color, ch. Pink s.10; ch. Orange s.5; ch. Blue (caption on oddly colored food); ch. Yellow s.17; ch. Green s.6
|
|
178
|
+
when_to_break: >-
|
|
179
|
+
When instant recognition matters more than memorability (signage, health, public utility): use the expected color.
|
|
180
|
+
break_effect: >-
|
|
181
|
+
The viewer recognizes the subject at once and feels safe and informed, with no surprise to remember.
|
|
182
|
+
test: >-
|
|
183
|
+
Show the render for a few seconds to people from the audience and ask "what is this for?" (obvious variant), then a day later "which brand do you remember?" (unexpected variant). On food, fail if anyone says "spoiled" or "artificial" and that was not the goal.
|
|
184
|
+
example: >-
|
|
185
|
+
A construction brand in strong pink and gray.
|
|
186
|
+
counterexample: >-
|
|
187
|
+
A photo of pasta dyed blue to look innovative.
|
|
188
|
+
|
|
189
|
+
- id: PA9
|
|
190
|
+
name: Premium means less color
|
|
191
|
+
area: color
|
|
192
|
+
moment: create
|
|
193
|
+
skill: lazuli-color-palette-by-intent
|
|
194
|
+
rule: >-
|
|
195
|
+
For premium, renounce color. Traditional premium uses black, silver (or gold as a detail) and white. Unconventional premium uses violet, silver and gold as a detail. Keep saturated orange and pink from dominating luxury, bank or legal brands.
|
|
196
|
+
why: >-
|
|
197
|
+
The elegant effect comes from giving up color (black, silver, white, finished gray), while flat orange and pink sound cheap or unserious.
|
|
198
|
+
origin: source
|
|
199
|
+
source: >-
|
|
200
|
+
Heller, Psychology of Color, ch. Black s.16 and s.24; ch. Silver s.12; ch. Orange s.6; ch. Pink s.9; ch. Violet s.7
|
|
201
|
+
when_to_break: >-
|
|
202
|
+
A luxury brand that wants irony or youth: small orange or pink touches over a very sober base.
|
|
203
|
+
break_effect: >-
|
|
204
|
+
The viewer feels a wink of playfulness inside an otherwise serious brand, so it reads as confident and young rather than stiff.
|
|
205
|
+
test: >-
|
|
206
|
+
On a premium brand screen, does saturated orange or pink cover more than a detail? If yes, fail.
|
|
207
|
+
example: >-
|
|
208
|
+
A jeweler with a near-black background, white type and a silver hairline.
|
|
209
|
+
counterexample: >-
|
|
210
|
+
A law firm with a vivid orange header.
|
|
211
|
+
|
|
212
|
+
- id: PA10
|
|
213
|
+
name: Keep violet and orange out of a lasting brand color
|
|
214
|
+
area: color
|
|
215
|
+
moment: create
|
|
216
|
+
skill: lazuli-color-palette-by-intent
|
|
217
|
+
rule: >-
|
|
218
|
+
For a long-lived brand, keep violet and orange out of the main brand color. Use them as swappable accents in a separate token.
|
|
219
|
+
why: >-
|
|
220
|
+
Violet and orange go in and out of fashion and date a piece, while black, white and blue are more stable.
|
|
221
|
+
origin: source
|
|
222
|
+
source: >-
|
|
223
|
+
Heller, Psychology of Color, ch. Violet s.12; ch. Orange s.6; ch. Black s.17; ch. White s.14
|
|
224
|
+
when_to_break: >-
|
|
225
|
+
Campaigns, seasonal products, brands that want to look avant-garde right now.
|
|
226
|
+
break_effect: >-
|
|
227
|
+
The viewer feels the moment and the trend, so the brand reads as current and short-lived instead of timeless.
|
|
228
|
+
test: >-
|
|
229
|
+
Are violet or orange in the main brand token? If yes, fail for a long-term brand with no recorded decision.
|
|
230
|
+
example: >-
|
|
231
|
+
An institutional blue brand with violet campaigns.
|
|
232
|
+
counterexample: >-
|
|
233
|
+
A whole bank identity in 1970s orange and brown.
|
|
234
|
+
|
|
235
|
+
- id: PA11
|
|
236
|
+
name: Cool and quiet behind, warm and strong in front
|
|
237
|
+
area: color
|
|
238
|
+
moment: create
|
|
239
|
+
skill: lazuli-color-palette-by-intent
|
|
240
|
+
rule: >-
|
|
241
|
+
Put distant layers and backgrounds in cool or desaturated tones, and bring forward what should come first (action, highlight) in a warm or more saturated tone. Do not use red as the background of large areas, because it does not recede. Light colors work on top and heavy ones below.
|
|
242
|
+
why: >-
|
|
243
|
+
Warm, saturated colors seem nearer and cool, muted ones seem farther away, so color can build depth and weight.
|
|
244
|
+
origin: source
|
|
245
|
+
source: >-
|
|
246
|
+
Heller, Psychology of Color, ch. Blue s.3; ch. Red s.8; ch. White s.15 (the blur test is a common design technique)
|
|
247
|
+
measure: weight.order
|
|
248
|
+
status: hypothesis
|
|
249
|
+
hypothesis: H9
|
|
250
|
+
when_to_break: >-
|
|
251
|
+
A dark header is an accepted product pattern. The real problem is a whole screen that feels heavy on top and empty below.
|
|
252
|
+
break_effect: >-
|
|
253
|
+
The viewer feels a grounded, anchored page, with weight placed deliberately at the top rather than a loss of balance.
|
|
254
|
+
test: >-
|
|
255
|
+
Blur the render until the text cannot be read and see what stands out. Pass if it is the main action. Fail if it is the background or a decorative element.
|
|
256
|
+
example: >-
|
|
257
|
+
A light grayish-blue background with a coral button.
|
|
258
|
+
counterexample: >-
|
|
259
|
+
A red background with a light-blue button.
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
- id: RV1
|
|
2
|
+
name: Judge the rendered screen with measurements
|
|
3
|
+
area: color
|
|
4
|
+
moment: review
|
|
5
|
+
skill: lazuli-color-screen-review
|
|
6
|
+
rule: >-
|
|
7
|
+
Judge the rendered screen, with measurements. Every opinion about color cites a measurement from the render: area, WCAG contrast ratio, hue, saturation and lightness, taken on desktop and on mobile. If the screen cannot be rendered, mark the review "unverified" and state no contrast ratios.
|
|
8
|
+
why: >-
|
|
9
|
+
The effect of a color exists only on the assembled screen, with its neighbors, its area and its light. The code does not show that.
|
|
10
|
+
origin: source
|
|
11
|
+
source: >-
|
|
12
|
+
Heller, Psychology of Color, ch. Green s.1 (green changes with light, so test under the light of use); ch. Gray s.1 (gray changes with its surroundings). The demand to measure is our own method built on this.
|
|
13
|
+
when_to_break: >-
|
|
14
|
+
Never for approval. A first opinion without an environment may exist, labeled as a guess.
|
|
15
|
+
break_effect: >-
|
|
16
|
+
The viewer of the review receives an early hunch rather than a verdict, which feels quick and provisional, never settled.
|
|
17
|
+
test: >-
|
|
18
|
+
Each problem in the report has a measurement taken from the render. Fail if any comes with only an adjective ("feels heavy") or with a contrast ratio calculated in the head.
|
|
19
|
+
example: >-
|
|
20
|
+
On the mobile viewport the blue background takes the largest area after white and is the most saturated color on screen (PA4).
|
|
21
|
+
counterexample: >-
|
|
22
|
+
The colors are a bit strong.
|
|
23
|
+
|
|
24
|
+
- id: RV2
|
|
25
|
+
name: Text contrast on its real background
|
|
26
|
+
area: color
|
|
27
|
+
moment: review
|
|
28
|
+
skill: lazuli-color-screen-review
|
|
29
|
+
rule: >-
|
|
30
|
+
Measure text contrast against the real background where the text appears (card, image, band), never against the page body. Test gray text, borders and placeholders on every surface they sit on. WCAG minimums are 4.5:1 for normal text and 3:1 for large text (24 px, or 18.66 px bold) and for interface components.
|
|
31
|
+
why: >-
|
|
32
|
+
The same color looks lighter or darker depending on its surroundings, and grays are the most affected.
|
|
33
|
+
origin: norm
|
|
34
|
+
source: >-
|
|
35
|
+
WCAG 2.2, success criteria 1.4.3 and 1.4.11; Heller, Psychology of Color, ch. Gray s.1 and s.11 (gray adapts to its surroundings)
|
|
36
|
+
measure: color.contrast
|
|
37
|
+
threshold: { normal: 4.5, large: 3 }
|
|
38
|
+
when_to_break: >-
|
|
39
|
+
Decorative or disabled text is outside the minimum under the norm. Even so, keep it recognizable.
|
|
40
|
+
break_effect: >-
|
|
41
|
+
The viewer reads the element as inactive or secondary, which is the intent, as long as it is still recognizable.
|
|
42
|
+
test: >-
|
|
43
|
+
The list of elements below the contrast minimum is empty in the measurer. For text on an image, sample the lightest pixel under the text in the render and compute the ratio with it.
|
|
44
|
+
example: >-
|
|
45
|
+
Gray #6B7280 passes on white (4.83:1) and fails on a #F3F4F6 card (4.39:1), so swap to #4B5563 (6.87:1).
|
|
46
|
+
counterexample: >-
|
|
47
|
+
A #9CA3AF placeholder approved because it looked legible in the design tool (2.54:1 on white).
|
|
48
|
+
|
|
49
|
+
- id: RV3
|
|
50
|
+
name: Dark text for reading, color for small accents
|
|
51
|
+
area: color
|
|
52
|
+
moment: review
|
|
53
|
+
skill: lazuli-color-screen-review
|
|
54
|
+
rule: >-
|
|
55
|
+
Set running text in a dark neutral (graphite carrying the palette undertone). Chromatic color belongs only to a link (on the clickable span), a short label, a highlighted number or an icon. Never an entire paragraph in red, orange or yellow.
|
|
56
|
+
why: >-
|
|
57
|
+
At close range and in long text, any chromatic color gets in the way of reading. Dark text on light is the most credible, and text in a vivid color looks like an ad and gets ignored.
|
|
58
|
+
origin: source
|
|
59
|
+
source: >-
|
|
60
|
+
Heller, Psychology of Color, ch. Yellow s.8 (far and near call for different colors; up close color tires); ch. Red s.19 (red text draws attention but looks like advertising and goes unread); ch. Black s.24 (black on white looks more truthful)
|
|
61
|
+
measure: color.text-chroma
|
|
62
|
+
threshold: { maxChromaticPct: 10 }
|
|
63
|
+
status: hypothesis
|
|
64
|
+
hypothesis: H10
|
|
65
|
+
when_to_break: >-
|
|
66
|
+
A short brand title may use the brand color if it passes WCAG.
|
|
67
|
+
break_effect: >-
|
|
68
|
+
The viewer treats the colored line as a brand voice or a call to attention, so it feels loud and promotional rather than informative.
|
|
69
|
+
test: >-
|
|
70
|
+
Is any paragraph or block of running text in a chromatic color? Fail if yes. The measured share of chromatic text helps find it, but the criterion is the block, not the percentage.
|
|
71
|
+
example: >-
|
|
72
|
+
An article in #1F2937 with underlined blue links.
|
|
73
|
+
counterexample: >-
|
|
74
|
+
A whole legal notice in red "to draw attention".
|
|
75
|
+
|
|
76
|
+
- id: RV4
|
|
77
|
+
name: Light background to use, dark to display
|
|
78
|
+
area: color
|
|
79
|
+
moment: review
|
|
80
|
+
skill: lazuli-color-screen-review
|
|
81
|
+
rule: >-
|
|
82
|
+
Use a light background for use and a dark one for display. Reading screens and long work sit on a light background. Dark backgrounds suit a product hero, portfolio, gallery, player, or an optional dark mode (very dark gray instead of pure black, with less saturated accents).
|
|
83
|
+
why: >-
|
|
84
|
+
For reading, light background with dark text is easier, and the reverse tires. Colors glow more on black, so a dark background works to show, but it smothers color on large surfaces meant for use.
|
|
85
|
+
origin: source
|
|
86
|
+
source: >-
|
|
87
|
+
Heller, Psychology of Color, ch. Yellow s.8 (light background, dark letters); ch. White s.14 (colors on white glow less than on black, but black does not suit large surfaces). The dark-mode rules are our own hypothesis.
|
|
88
|
+
when_to_break: >-
|
|
89
|
+
An audience that spends hours in dark environments (video editing, an IDE). There dark is the default, and RV2 applies even more strictly.
|
|
90
|
+
break_effect: >-
|
|
91
|
+
The viewer feels immersion and focus in a dim, cinematic space, with colors that seem to glow.
|
|
92
|
+
test: >-
|
|
93
|
+
Is the screen for reading or a long form, with a dark dominant background and no audience justification? Fail if yes.
|
|
94
|
+
example: >-
|
|
95
|
+
Documentation on white, with a dark hero on the product landing page.
|
|
96
|
+
counterexample: >-
|
|
97
|
+
A long form on black with electric blue fields.
|
|
98
|
+
|
|
99
|
+
- id: RV5
|
|
100
|
+
name: Neighbor colors need a lightness gap
|
|
101
|
+
area: color
|
|
102
|
+
moment: review
|
|
103
|
+
skill: lazuli-color-screen-review
|
|
104
|
+
rule: >-
|
|
105
|
+
Between two neighboring chromatic colors, create a clear difference in lightness (one much darker) or separate them with white, black or a neutral. Classic cases are saturated blue with red, red with green, and light blue with light green.
|
|
106
|
+
why: >-
|
|
107
|
+
Two saturated chromatic colors of similar lightness side by side fight each other and shimmer, worst among light colors.
|
|
108
|
+
origin: source
|
|
109
|
+
source: >-
|
|
110
|
+
Heller, Psychology of Color, ch. Blue s.12 (luminous blue and luminous red together flicker); ch. Yellow s.8 (chromatic colors should come with white or black; equal intensity makes it worse)
|
|
111
|
+
when_to_break: >-
|
|
112
|
+
A pop or festival look in a short piece, accepting the discomfort.
|
|
113
|
+
break_effect: >-
|
|
114
|
+
The viewer feels buzz and visual excitement, which suits a party and tires anyone who has to read.
|
|
115
|
+
test: >-
|
|
116
|
+
In a grayscale render, do two touching chromatic colors turn into nearly the same gray? If yes and there is no neutral between them, fail.
|
|
117
|
+
example: >-
|
|
118
|
+
A red seal with a white border on a blue band.
|
|
119
|
+
counterexample: >-
|
|
120
|
+
Text #E11D48 on a #2563EB background (1.10:1).
|
|
121
|
+
|
|
122
|
+
- id: RV6
|
|
123
|
+
name: Color must fit what the person is doing
|
|
124
|
+
area: color
|
|
125
|
+
moment: review
|
|
126
|
+
skill: lazuli-color-screen-review
|
|
127
|
+
rule: >-
|
|
128
|
+
Ask whether the color fits what the person will do here. Never put a filter or overlay that changes the color of the food on food photos. Keep waiting, health and public service environments free of a dominant red.
|
|
129
|
+
why: >-
|
|
130
|
+
A color irritates when it does not match the function of the place, and food is the context where color perception is most critical.
|
|
131
|
+
origin: source
|
|
132
|
+
source: >-
|
|
133
|
+
Heller, Psychology of Color, ch. Red s.20 to s.22 (a red canteen alters the food; an all-red public office shocks); ch. Blue s.1
|
|
134
|
+
when_to_break: >-
|
|
135
|
+
A brand that builds identity on strangeness, outside food and health.
|
|
136
|
+
break_effect: >-
|
|
137
|
+
The viewer feels a deliberate, slightly unsettling strangeness, which can be memorable where the setting is not about eating or care.
|
|
138
|
+
test: >-
|
|
139
|
+
Is there a colored overlay or filter on a food photo? Is red the dominant color on a health or public service screen? Any yes fails.
|
|
140
|
+
example: >-
|
|
141
|
+
A menu with a warm neutral background and unfiltered photos.
|
|
142
|
+
counterexample: >-
|
|
143
|
+
A menu with a red overlay on every photo.
|
|
144
|
+
|
|
145
|
+
- id: RV7
|
|
146
|
+
name: Finish makes gray and brown feel premium
|
|
147
|
+
area: color
|
|
148
|
+
moment: review
|
|
149
|
+
skill: lazuli-color-screen-review
|
|
150
|
+
rule: >-
|
|
151
|
+
On screen, "material" means texture, image, shadow, type and spacing. A premium gray needs finish, because flat generic gray reads as cheap. Brown enters as a photo or texture of a natural material, not as a solid hex on a button or large background.
|
|
152
|
+
why: >-
|
|
153
|
+
The same color looks costly or cheap depending on the material. Gray and green are the most sensitive, and brown is accepted as a material (wood, leather) but rejected as a flat color.
|
|
154
|
+
origin: source
|
|
155
|
+
source: >-
|
|
156
|
+
Heller, Psychology of Color, ch. Gray s.12 to s.14; ch. Green s.17; ch. Brown s.1 and s.7; ch. Yellow s.12. The translation to screens is our own.
|
|
157
|
+
when_to_break: >-
|
|
158
|
+
A utilitarian interface, where flat gray is expected and no premium is promised.
|
|
159
|
+
break_effect: >-
|
|
160
|
+
The viewer feels plain function with no pretense, so the interface reads as honest and practical rather than luxurious.
|
|
161
|
+
test: >-
|
|
162
|
+
Does a brand that calls itself premium put most of the screen in one flat gray with no image or texture? Is a solid dark brown the background of a large block? Any yes fails.
|
|
163
|
+
example: >-
|
|
164
|
+
A furniture store with wood photos and a cream background.
|
|
165
|
+
counterexample: >-
|
|
166
|
+
A cafe with a flat brown background across the whole page.
|
|
167
|
+
|
|
168
|
+
- id: RV8
|
|
169
|
+
name: Warm the white for long use and care
|
|
170
|
+
area: color
|
|
171
|
+
moment: review
|
|
172
|
+
skill: lazuli-color-screen-review
|
|
173
|
+
rule: >-
|
|
174
|
+
In a product for long use, emotional health, education or citizen service, warm the white: a slightly warm background, illustrations, photos of people, a warm accent. Pure white is right for hygiene products and laboratories.
|
|
175
|
+
why: >-
|
|
176
|
+
Absolute white says cleanliness, but in excess it turns cold and recalls a hospital. Very white spaces welcome people only with some touch of warmth.
|
|
177
|
+
origin: source
|
|
178
|
+
source: >-
|
|
179
|
+
Heller, Psychology of Color, ch. White s.7 (negative association with hospital white; hospitals soften with light yellow and pink; an all-white room welcomes only with small colored objects)
|
|
180
|
+
when_to_break: >-
|
|
181
|
+
When the message is asepsis or precision.
|
|
182
|
+
break_effect: >-
|
|
183
|
+
The viewer feels clinical cleanliness and exactness, so the screen reads as precise and trustworthy in a technical way.
|
|
184
|
+
test: >-
|
|
185
|
+
Does the intent include welcome while the screen is almost all pure white, with no image or warm accent? Fail if yes.
|
|
186
|
+
example: >-
|
|
187
|
+
A therapy app with a cream background and peach illustrations.
|
|
188
|
+
counterexample: >-
|
|
189
|
+
A psychological care portal all in white, gray and cold blue.
|
|
190
|
+
|
|
191
|
+
- id: RV9
|
|
192
|
+
name: One protagonist per screen
|
|
193
|
+
area: color
|
|
194
|
+
moment: review
|
|
195
|
+
skill: lazuli-color-screen-review
|
|
196
|
+
rule: >-
|
|
197
|
+
Give one protagonist per screen. Whatever must be noticed gets the strongest treatment and the rest do not compete with it. One primary action carries the pure action color. Secondary actions use an outline, a neutral or a broken version of the same color. Nothing decorative has the same saturation as the primary button.
|
|
198
|
+
why: >-
|
|
199
|
+
Attention goes to the one element treated most strongly, and any rival with equal strength splits it.
|
|
200
|
+
origin: hypothesis
|
|
201
|
+
source: >-
|
|
202
|
+
Heller, Psychology of Color, ch. White s.19 and s.20 (etiquette: only the bride wears white, guests do not compete). Translating this to interfaces is our own hypothesis.
|
|
203
|
+
measure: weight.order
|
|
204
|
+
status: hypothesis
|
|
205
|
+
hypothesis: H9
|
|
206
|
+
when_to_break: >-
|
|
207
|
+
Screens that choose among equivalent options (plans side by side).
|
|
208
|
+
break_effect: >-
|
|
209
|
+
The viewer feels a fair choice between equals, with nothing pushing them toward one option.
|
|
210
|
+
test: >-
|
|
211
|
+
In the blurred render, is the primary action what stands out most? Is there more than one solid button in the action color in the same viewport without justification? Fail if it does not stand out or if there is a contest.
|
|
212
|
+
example: >-
|
|
213
|
+
A checkout with a solid "Pay" and "Back" as plain text.
|
|
214
|
+
counterexample: >-
|
|
215
|
+
Four colored buttons of equal intensity at the top.
|