@uselazuli/cli 0.0.0-stage → 1.0.1
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 +98 -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 +699 -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 +18 -0
- package/rules/content/_area.yaml +8 -0
- package/rules/content/review.yaml +347 -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 +17 -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 +242 -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 +219 -0
- package/rules/ui/grid.yaml +75 -0
- package/rules/ui/review.yaml +399 -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 +180 -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 +35 -0
- package/skills/lazuli/procedures/show-options.md +32 -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 +39 -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 +43 -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 +161 -0
- package/src/commands/capture.mjs +313 -0
- package/src/commands/catalog.mjs +37 -0
- package/src/commands/check-design.mjs +428 -0
- package/src/commands/check-goals.mjs +57 -0
- package/src/commands/compare-designs.mjs +97 -0
- package/src/commands/draft-memo.mjs +161 -0
- package/src/commands/hooks.mjs +343 -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 +296 -0
- package/src/commands/record-task.mjs +250 -0
- package/src/commands/render-options.mjs +164 -0
- package/src/commands/start-project.mjs +32 -0
- package/src/measure/a11y.mjs +383 -0
- package/src/measure/asset.mjs +206 -0
- package/src/measure/at-rest.mjs +49 -0
- package/src/measure/cases.mjs +549 -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 +79 -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 +489 -0
- package/src/measure/in-page/color.js +346 -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 +355 -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 +169 -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 +266 -0
- package/src/measure/in-page/weight.js +207 -0
- package/src/measure/layout.mjs +91 -0
- package/src/measure/motion.mjs +508 -0
- package/src/measure/piece.mjs +195 -0
- package/src/measure/registry.mjs +252 -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 +159 -0
- package/src/project/lazuli-md.mjs +497 -0
- package/src/project/log.mjs +329 -0
- package/src/project/match.mjs +112 -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 +206 -0
- package/src/report/evaluators/chart.mjs +151 -0
- package/src/report/evaluators/coherence.mjs +103 -0
- package/src/report/evaluators/color.mjs +86 -0
- package/src/report/evaluators/content.mjs +112 -0
- package/src/report/evaluators/extreme.mjs +53 -0
- package/src/report/evaluators/forms.mjs +116 -0
- package/src/report/evaluators/layout.mjs +94 -0
- package/src/report/evaluators/motion.mjs +273 -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 +163 -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 +256 -0
- package/src/rules/public-text.mjs +56 -0
- package/src/rules/schema.mjs +212 -0
- package/templates/LAZULI.md +86 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
- id: ES1
|
|
2
|
+
name: Follow the signal color convention
|
|
3
|
+
area: color
|
|
4
|
+
moment: signal
|
|
5
|
+
skill: lazuli-color-states-and-signals
|
|
6
|
+
rule: >-
|
|
7
|
+
Follow the signal convention. Error and destructive action are red. Warning is yellow or amber. Success is green. Information is blue or neutral. Prohibition is red with a circular shape, and danger is a yellow triangle with dark. Do not reinvent them (error in purple, success in blue) without a strong reason.
|
|
8
|
+
why: >-
|
|
9
|
+
Red for stop, prohibition and error, yellow with black for caution and danger, orange for a very visible alert, and green for cleared and ok are international conventions precisely because they were standardized.
|
|
10
|
+
origin: source
|
|
11
|
+
source: >-
|
|
12
|
+
Heller, Psychology of Color, ch. Red s.12 and s.16; ch. Yellow s.9; ch. Green s.21; ch. Orange s.7
|
|
13
|
+
when_to_break: >-
|
|
14
|
+
The brand is red or green and the state color collides (see ES6), or a financial market where the local up and down convention differs. The source records red for loss and black for profit in German accounting. Investment apps in Brazil tend to use green for up and red for down (a market hypothesis, to check in a competing product).
|
|
15
|
+
break_effect: >-
|
|
16
|
+
The viewer has to stop and decode an unfamiliar signal, so the state feels slower to read and easier to misjudge.
|
|
17
|
+
test: >-
|
|
18
|
+
A table of states with color, icon and text. Each color matches the convention or has a written, justified deviation.
|
|
19
|
+
example: >-
|
|
20
|
+
A red "Delete account" button, confirmed in a modal.
|
|
21
|
+
counterexample: >-
|
|
22
|
+
"Saved successfully" in red because red is the brand color.
|
|
23
|
+
|
|
24
|
+
- id: ES2
|
|
25
|
+
name: Never rely on color alone
|
|
26
|
+
area: color
|
|
27
|
+
moment: signal
|
|
28
|
+
skill: lazuli-color-states-and-signals
|
|
29
|
+
rule: >-
|
|
30
|
+
Never rely on color alone. Every state has at least two channels: color plus icon, color plus text, or color plus position. A field with an error gets a colored border, an icon and a written message. A table status is a badge with a word, not only a colored dot.
|
|
31
|
+
why: >-
|
|
32
|
+
When color is critical the information must also arrive through another channel. The traffic light solves this with a fixed position and a pictogram.
|
|
33
|
+
origin: norm
|
|
34
|
+
source: >-
|
|
35
|
+
WCAG 2.2, success criterion 1.4.1; Heller, Psychology of Color, ch. Red s.12 (fixed position in the traffic light, pictograms on the pedestrian signal); ch. Gray s.7 (color blindness)
|
|
36
|
+
when_to_break: >-
|
|
37
|
+
Not broken for critical states. For redundant decoration (a colored bar on a card that already has a title), it can be.
|
|
38
|
+
break_effect: >-
|
|
39
|
+
The viewer gets a quiet, minimal cue where nothing depends on it, which feels clean as long as no state is hidden by it.
|
|
40
|
+
test: >-
|
|
41
|
+
Take a grayscale render. Every state is still identifiable without color. Fail if two states look the same.
|
|
42
|
+
example: >-
|
|
43
|
+
"Payment declined" with an x icon and a light red background.
|
|
44
|
+
counterexample: >-
|
|
45
|
+
A table row that only turns red when overdue.
|
|
46
|
+
|
|
47
|
+
- id: ES3
|
|
48
|
+
name: Success and error differ in lightness
|
|
49
|
+
area: color
|
|
50
|
+
moment: signal
|
|
51
|
+
skill: lazuli-color-states-and-signals
|
|
52
|
+
rule: >-
|
|
53
|
+
Make the success green and the error red clearly different in lightness (for example, error much darker than success), on top of the icon (ES2). In charts with two poles, prefer blue against orange over green against red.
|
|
54
|
+
why: >-
|
|
55
|
+
The common form of color blindness confuses red and green, which can turn into the same brownish tone. People with it rely on prior knowledge and on lightness.
|
|
56
|
+
origin: source
|
|
57
|
+
source: >-
|
|
58
|
+
Heller, Psychology of Color, ch. Gray s.7 (the red and green confusion, and the way a color-blind person compensates with prior knowledge and does not recognize an unexpected color). Blue against orange in charts is our own hypothesis.
|
|
59
|
+
when_to_break: >-
|
|
60
|
+
Not broken when the two states appear side by side.
|
|
61
|
+
break_effect: >-
|
|
62
|
+
The viewer who cannot tell red from green is forced to read the text, so the state loses speed for them and the icon becomes mandatory.
|
|
63
|
+
test: >-
|
|
64
|
+
Simulate deuteranopia and protanopia (browser DevTools, Rendering, Emulate vision deficiencies) and view the render in grayscale. Do success and error stay distinguishable without reading the icon? If not, fail, and the icon stops being optional even after fixing the lightness.
|
|
65
|
+
example: >-
|
|
66
|
+
Success #1A7F3C and error #7F1D1D (error much darker) with distinct icons.
|
|
67
|
+
counterexample: >-
|
|
68
|
+
Success #1E7B3C and error #B42318 with almost equal lightness and no icon; or dots #15803D (ok), #B45309 (pending) and #DC2626 (error) that turn into the same gray; or #22C55E and #EF4444 with no label.
|
|
69
|
+
|
|
70
|
+
- id: ES4
|
|
71
|
+
name: A signal must stand out from its surroundings
|
|
72
|
+
area: color
|
|
73
|
+
moment: signal
|
|
74
|
+
skill: lazuli-color-states-and-signals
|
|
75
|
+
rule: >-
|
|
76
|
+
A signal must contrast with its surroundings, not merely be a strong color. If the interface is already very colorful or the brand uses the state color, give the state another reinforcement (shape, border, position, discreet movement). Before choosing the alert tone, look at the palette around it.
|
|
77
|
+
why: >-
|
|
78
|
+
The red of a traffic light was chosen because it is rare in the landscape. Blue is lost in the sky and yellow is confused with street light.
|
|
79
|
+
origin: source
|
|
80
|
+
source: >-
|
|
81
|
+
Heller, Psychology of Color, ch. Red s.12 (traffic light colors chosen for contrast with the environment); ch. Yellow s.8 (first rule of signage: contrast with the surroundings)
|
|
82
|
+
status: hypothesis
|
|
83
|
+
hypothesis: H9
|
|
84
|
+
when_to_break: >-
|
|
85
|
+
It is not broken; the reinforcement is adjusted.
|
|
86
|
+
break_effect: >-
|
|
87
|
+
The viewer finds the alert blending into its surroundings, so it feels easy to miss and the state loses its urgency.
|
|
88
|
+
test: >-
|
|
89
|
+
Blur the render until the text cannot be read. The error or alert state is still the most salient point of its area. Fail if a neighboring decorative element has equal or greater salience.
|
|
90
|
+
example: >-
|
|
91
|
+
In an orange brand app, a warning with an icon and a thick border, not only an orange background.
|
|
92
|
+
counterexample: >-
|
|
93
|
+
A red error on a page with a red promotional banner right above it.
|
|
94
|
+
|
|
95
|
+
- id: ES5
|
|
96
|
+
name: Warnings are a yellow background with dark text
|
|
97
|
+
area: color
|
|
98
|
+
moment: signal
|
|
99
|
+
skill: lazuli-color-states-and-signals
|
|
100
|
+
rule: >-
|
|
101
|
+
Yellow is the background and dark is the text. A yellow or amber warning is always a light background or an icon, with dark text (very dark brown or near black). Never yellow or light orange text on white. For a high-impact alert (maintenance, physical risk), black on saturated yellow.
|
|
102
|
+
why: >-
|
|
103
|
+
Black on yellow is the most legible combination at a distance. Use a light background with dark text, never the reverse, and combine chromatic color with white or black.
|
|
104
|
+
origin: norm
|
|
105
|
+
source: >-
|
|
106
|
+
WCAG 2.2, success criterion 1.4.3; Heller, Psychology of Color, ch. Yellow s.8 (signage rules: maximum contrast, light in the background and dark in the letter, chromatic colors with white or black) and s.9
|
|
107
|
+
measure: color.contrast
|
|
108
|
+
threshold:
|
|
109
|
+
normal: 4.5
|
|
110
|
+
large: 3
|
|
111
|
+
minHue: 40
|
|
112
|
+
maxHue: 70
|
|
113
|
+
minSaturation: 40
|
|
114
|
+
roles: [alert, status]
|
|
115
|
+
marks: [warn, warning, alert, caution, aviso, atencao, cuidado]
|
|
116
|
+
hypothesis: H21
|
|
117
|
+
hypothesis_keys: [minHue, maxHue, minSaturation, marks]
|
|
118
|
+
when_to_break: >-
|
|
119
|
+
In dark mode, yellow may be the color of short text on a dark background, as long as it passes 4.5:1.
|
|
120
|
+
break_effect: >-
|
|
121
|
+
The viewer feels a glowing highlight against the dark, which draws the eye to a short piece of text and reads as modern and urgent.
|
|
122
|
+
test: >-
|
|
123
|
+
The contrast measurer shows no WCAG failures in the warning components. Also fail if any yellow or light orange text sits on a white or light background, even when it passes by a small margin. check-design applies this rule only to text whose color is yellow or amber (the yellow text band of hypothesis H21: HSL hue 40 to 70 degrees with saturation above 40%, a candidate value, not a norm) and that is marked or worded as a warning: the text or an ancestor up to its nearest section, article, aside or body has an ARIA role in the roles list, or a class or id containing a word of the marks list (our claim, hypothesis H21), or the text starts with a marks word followed by a colon. Yellow text that is not marked as a warning is judged by RV2 alone. When no such text is listed, ES5 is skipped, not passed. The light-background part is checked by eye.
|
|
124
|
+
example: >-
|
|
125
|
+
A #FFF4CC band with #5C4400 text and a triangle icon.
|
|
126
|
+
counterexample: >-
|
|
127
|
+
"Attention: password expires today" in #FACC15 on white.
|
|
128
|
+
|
|
129
|
+
- id: ES6
|
|
130
|
+
name: State colors are for states only
|
|
131
|
+
area: color
|
|
132
|
+
moment: signal
|
|
133
|
+
skill: lazuli-color-states-and-signals
|
|
134
|
+
rule: >-
|
|
135
|
+
Reserve the state tones (error, warning and success tokens) for states only. "New", "promo" and marketing badges use the brand color or their own accent, never the error red. If the brand is red, the error uses a visibly different red (darker) and always carries an icon.
|
|
136
|
+
why: >-
|
|
137
|
+
Signal colors lose force when they appear everywhere. Yellow became unpleasant by being the warning color, red is the first color to tire when overused, and the red and orange of excessive advertising came to be ignored.
|
|
138
|
+
origin: source
|
|
139
|
+
source: >-
|
|
140
|
+
Heller, Psychology of Color, ch. Yellow s.9; ch. Red s.1 and s.19; ch. Orange s.5
|
|
141
|
+
when_to_break: >-
|
|
142
|
+
Retail sales, where discount red is a price convention. Even so, keep it apart from the checkout error red.
|
|
143
|
+
break_effect: >-
|
|
144
|
+
The viewer reads red as price and excitement everywhere on the page, so an error loses its distinct, urgent meaning.
|
|
145
|
+
test: >-
|
|
146
|
+
Search the CSS and tokens for the error hex. Fail if it appears in a component that is not a state (badge, highlight, illustration). When the brand has the same hue as the error, put the brand button and the error message side by side in the render, in normal and grayscale. If they look like the same color, darken the error or shift its hue, and keep the icon on the error.
|
|
147
|
+
example: >-
|
|
148
|
+
A "New" badge in brand violet, with error in a reserved red.
|
|
149
|
+
counterexample: >-
|
|
150
|
+
A notification counter, a promotional price and a form error all in the same #EF4444.
|
|
151
|
+
|
|
152
|
+
- id: ES7
|
|
153
|
+
name: Severity runs yellow, orange, red
|
|
154
|
+
area: color
|
|
155
|
+
moment: signal
|
|
156
|
+
skill: lazuli-color-states-and-signals
|
|
157
|
+
rule: >-
|
|
158
|
+
For severity (low, medium, high, critical) use the yellow, orange, red progression, with decreasing lightness and growing icons. Do not use this ladder for categories without order (product types), which call for colors with no hierarchy.
|
|
159
|
+
why: >-
|
|
160
|
+
Yellow, orange and red form a ladder of intensity (light activity, agitation, peak), with orange as the road between the two.
|
|
161
|
+
origin: source
|
|
162
|
+
source: >-
|
|
163
|
+
Heller, Psychology of Color, ch. Orange s.9 (intensification from yellow to red); ch. Red s.4 (the energy chord). The monotonic test is our own hypothesis.
|
|
164
|
+
when_to_break: >-
|
|
165
|
+
A scale from good to bad with a positive pole: green to neutral to red, taking the care of ES3.
|
|
166
|
+
break_effect: >-
|
|
167
|
+
The viewer reads a good-to-bad scale instead of an alarm ladder, so the positive end feels reassuring rather than merely mild.
|
|
168
|
+
test: >-
|
|
169
|
+
Put the levels side by side in grayscale: they should form a monotonic sequence from light to dark. Fail if two neighboring levels look like the same gray.
|
|
170
|
+
example: >-
|
|
171
|
+
Risk low #FCD34D, medium #F59E0B, high #EA580C, critical #B91C1C.
|
|
172
|
+
counterexample: >-
|
|
173
|
+
Low risk in light red and critical in vivid orange.
|
|
174
|
+
|
|
175
|
+
- id: ES8
|
|
176
|
+
name: Few colors in a chart, one highlight
|
|
177
|
+
area: color
|
|
178
|
+
moment: signal
|
|
179
|
+
skill: lazuli-color-states-and-signals
|
|
180
|
+
rule: >-
|
|
181
|
+
Use few colors in a chart and one highlight. Secondary series go in neutral (gray with the palette undertone) and the series that tells the story in one strong color. For categories, use as few colors as possible with different lightness and a direct label on the line or bar where possible. If there are many categories, group them or highlight only the ones that matter. Sequential data uses one hue varying in lightness. Diverging data uses two opposite hues (blue against orange) with a neutral in the middle.
|
|
182
|
+
why: >-
|
|
183
|
+
Two chromatic colors together get in each other's way, worse at equal intensity, and up close too much color tires.
|
|
184
|
+
origin: source
|
|
185
|
+
source: >-
|
|
186
|
+
Heller, Psychology of Color, ch. Yellow s.8 (fourth signage rule, and the difference between seeing from far and from near). Sequential and diverging schemes are our own hypothesis, aligned with common data visualization practice.
|
|
187
|
+
when_to_break: >-
|
|
188
|
+
Maps and dashboards with many categories of equal importance. There use patterns, labels and interaction (a filter) instead of more colors.
|
|
189
|
+
break_effect: >-
|
|
190
|
+
The viewer must work to tell many equal categories apart, so the chart feels dense and exploratory rather than told as one story.
|
|
191
|
+
test: >-
|
|
192
|
+
View the chart in grayscale: is every series still distinguishable or directly labeled? Is the main series the one that stands out most? Fail if not.
|
|
193
|
+
example: >-
|
|
194
|
+
This year's revenue in strong blue, earlier years in light gray, a label at the end of each line.
|
|
195
|
+
counterexample: >-
|
|
196
|
+
Nine categories in a saturated rainbow with a legend underneath.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Content hypotheses to validate in the A/B
|
|
2
|
+
|
|
3
|
+
Numbers, phrase lists and definitions of labels, messages, terms and content cases that are not from a source or a norm yet. They stay in the rules only as hints (status hypothesis, never a verdict) and become firm only after the A/B shows they improve the result. A row with a cutoff starts with `Cutoff: <key> <value>.`, says how the value was picked before any real page was measured, and lists page readings under "Observed so far, not evidence".
|
|
4
|
+
|
|
5
|
+
Where a row or a rule cites the kit author's internal product plan, that plan is not public and what it says is our claim.
|
|
6
|
+
|
|
7
|
+
| ID | Principle | Candidate limit | How to validate in the A/B |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| H1 | CW1 and CR1 (a button or link says what happens when it is pressed) | Our claim, a hint only; no number is used as a cutoff. A button is listed when its whole name, normalized, is one of the phrases of CR1 that name no outcome. How it was picked: the phrase list is rule data, our claim, fixed before any page was read: words that name no outcome in English and Portuguese. Limits: a word that is generic in one product is specific in another ("Send" in a mail app names the outcome there); a name that holds a generic word next to an outcome is not listed; the meaning of a label is not judged. Observed so far, not evidence: labels.html at 1440 px (check-design with the stub rules, which carry the kit list): 3 of 10 buttons named only by a generic word ("Submit", "OK", "Enviar"); clean-labels.html, none of 3. | Needs labels outside the test fixtures that people from the audience call clear or unclear when read alone, checked against the list before it is applied; then compare a shorter and a longer list on how well each separates the two groups |
|
|
10
|
+
| H2 | CW3 and CR2 (labels lead with the meaning and stay short) | Cutoff: maxWords 5. How it was picked: a round starting value, our claim, set before any page was measured. Published guidance opened on 2026-11-26 is related reading and never moves it: GOV.UK Design System, Button, https://design-system.service.gov.uk/components/button/ (section "How it works") says you may need more or different words to describe the action; W3C, Understanding SC 2.4.6 Headings and Labels, https://www.w3.org/WAI/WCAG22/Understanding/headings-and-labels.html (section "Intent") says labels and headings do not need to be lengthy. Neither gives a number of words. What is counted: the words of a button's accessible name, as matches of WORD (a word keeps an inner hyphen, period or apostrophe, so "e-mail" is one word). Limits: Portuguese needs more words than English for the same label; a label is not judged by its meaning, so a short label that says nothing passes this check (CR1 reads that). Observed so far, not evidence: labels.html at 1440 px: 1 of 10 buttons over the cutoff, at 7 words (planted far from it); clean-labels.html, each of 3 within it. | Needs button labels outside the test fixtures that people from the audience scan quickly or slowly, checked against the word counts before the cutoff is applied; then compare neighboring cutoffs on how well each separates the two groups, in English and in Portuguese apart |
|
|
11
|
+
| H3 | CW5 and CR3 (one capitalization style for every control) | Our claim, a hint only; no number is used as a cutoff. How it was picked: no value to pick; how a style is read was fixed before any page was measured: a label's style comes from its rendered text after text-transform; the first word sets nothing apart, and a later word counts for the style only when it has CASE_WORD_LETTERS letters or more, so "of", "to", "a" and "de" are neutral; labels all in capitals are their own style. Limits: a proper noun in a sentence-case label reads as title case; brand names written in capitals read as an uppercase label; a label of one word has no style to read. Observed so far, not evidence: labels.html at 1440 px: 3 styles, sentence (3), title (3) and uppercase (1, by text-transform), with "Fale com a Maria" and "Terms of Service" read as title (the proper-noun limit); clean-labels.html, 3 buttons, all sentence. | Needs products outside the test fixtures with a declared style, checked label by label against the style read, before the reading is applied; the proper-noun misreads are counted apart |
|
|
12
|
+
| H4 | CW4 and CR4 (an error message says what went wrong, on which field, and how to fix it) | Our claim, a hint only; no number is used as a cutoff. A visible error message is listed when its normalized text is one of the generic-error phrases of CR4, when it is a code alone, or when it is tied to a field and does not name it. How it was picked: the phrase list is rule data, our claim, fixed before any page was read. What counts as naming the field: the message and the field's label share a folded word (lowercase, accents removed) of MIN_WORD_LETTERS letters or more. Limits: only messages shown on this render are read, since the CLI never submits a form; the fix part is read by the reviewer, not by the CLI; a message that names the field with a synonym is missed; text the composition walk does not keep (inside a clipping parent that is not its containing block, below an app shell's scroll area) is not read. Observed so far, not evidence: errors.html at 1440 px: 4 of 5 messages say too little ("Invalid" a generic phrase, "ERR_422" a code alone, the date message does not name its field, the alert "Something went wrong" a generic phrase); "Enter your full name" names its field; the hidden template and the sr-only error are not read; no-errors.html, no message and the staged-error note. | Needs error messages outside the test fixtures that people from the audience could or could not act on, checked against the list and the field-name match before they are applied |
|
|
13
|
+
| H5 | CW2 and CR5 (one destination, one name) | Our claim, a hint only; no number is used as a cutoff. A destination is listed when links to it in navigation regions (NAV_REGIONS) carry two names across the screens checked. How it was picked: no value to pick; what one destination is was fixed before any page was measured: names are compared as folded word sequences, and one name inside another is the same name ("Contact" and "Contact us"). Limits: navigation regions only; a destination reached through a redirect or a query is another destination; a link named only by an image or a label (a logo link) is not a name, but a logo written as text is, so a text wordmark and a "Home" link to one page read as two names; a closed drawer or a sheet moved off the page is not read; it runs only when check-design gets two or more screens. Observed so far, not evidence: terms-a.html and terms-b.html at 1440 px: 1 destination named two ways (pricing.html); terms-home-a.html and terms-home-b.html, 1 destination named two ways ("Contact" and "Get in touch" to the fragment #contact), while "Home" keeps one name; terms-pt-a.html and terms-pt-b.html, no destination linked more than once, so names were not compared. | Needs products outside the test fixtures whose owners say which pairs of names are one thing, checked against the pairs listed before the reading is applied |
|
|
14
|
+
| H6 | CW2 and CR6 (one term, one spelling) | Our claim, a hint only; no number is used as a cutoff. A term is listed when it is written two ways across the screens checked. How it was picked: no value to pick; the comparison was fixed before any page was measured: spellings are compared with separators (space, hyphen, period) removed and accents and apostrophes kept (a curly apostrophe reads as a straight one), so "E-mail" and "Email", "Log in" and "Login" are one term written two ways, while "você" and "voce", "it's" and "its" are not merged. Limits: "a gente" and "agente", "por que" and "porque", "se não" and "senão" read as one key; digits are not words, so "1.000" and "1000" never form a term; it runs only when check-design gets two or more screens. Observed so far, not evidence: terms-a.html and terms-b.html at 1440 px: 2 terms written two ways ("log in" and "login", "e-mail" and "email"); terms-pt-a.html and terms-pt-b.html, 1 ("bem-vindo" and "bem vindo"), with "1.000" and "1000" not listed; terms-apos-a.html and terms-apos-b.html, 1 ("e-mail" and "email"), with "it's" and "its" not listed. | Needs products outside the test fixtures whose owners mark which listed pairs are the same term, checked before the reading is applied; the accent and separator misreads are counted apart |
|
|
15
|
+
| H7 | CW7 and CR7 (text that grows does not break the layout) | Cutoff: growth 1.3. How it was picked: a round starting value, our claim, set before any page was measured, standing for Portuguese or another language taking more room than English (the kit author's internal product plan: Portuguese takes more room than English). Related reading, opened on 2026-11-26, never moves it, even where it gives larger factors for short strings: W3C Internationalization, Text size in translation, https://www.w3.org/International/articles/article-text-size.en gives a table of average expansion from English to European languages that is larger the shorter the source text. What is done: on a script-free copy of the page, every visible text node grows to at least 1.3 times its length with GROWTH_FILL words, and only the spills, cuts and overlaps the case adds over the untouched copy are reported. Limits: real translations grow unevenly, short labels most; the reverse direction, Portuguese to English, is not read; text the composition walk does not keep (a box under a clipping parent that is not its containing block, content below an app shell's scroll area) is not tested. Inline elements moved by position relative or negative margins inside one block are never compared for overlap (texts that share one block container never form a pair); text hidden from assistive technology (aria-hidden) is neither changed nor read; for overlap, each line box is clamped to its computed line-height, so texts of two blocks that touch only through tight leading are not reported; a visible layer behind the text can form overlap pairs when the text grows over it. Observed so far, not evidence: clean.html, fixed-card.html, overlap.html, many-cut.html, nowrap-nav.html, already-broken.html and tight-heading.html pass at 1440 and 390 px; split-words.html, split-words-flex.html (a heading of word boxes at line-height 0.9) and ghost.html (an aria-hidden ghost word) pass at 1440 px; list-clip.html passes at 1440 px and adds 1 text that spills out of its box at 390 px. Each width took from 1.2 to 2.0 s on these fixtures on this machine. | Needs translated versions of real pages, checked for breaks against what the growth case predicted before the factor is applied; then compare neighboring factors on how many real breaks each predicts |
|
|
16
|
+
| H8 | CW7 and CR8 (long Portuguese text breaks nothing) | Our claim, a hint only; no number is used as a cutoff. How it was picked: no value to pick; the three fixed samples were written before any page was measured: LONG_LABEL goes into labels (LABEL_SCOPE), LONG_HEADING into headings (HEADING_SCOPE), and LONG_TEXT, which holds one very long dictionary word, into the other text. Limits: inputs and placeholders are not filled; text drawn in images, canvas or SVG is not read; a closed drawer or a sheet moved off the page is not read; text the composition walk does not keep (a box under a clipping parent that is not its containing block, content below an app shell's scroll area) is not tested. Inline elements moved by position relative or negative margins inside one block are never compared for overlap (texts that share one block container never form a pair); text hidden from assistive technology (aria-hidden) is neither changed nor read; for overlap, each line box is clamped to its computed line-height, so texts of two blocks that touch only through tight leading are not reported; a visible layer behind the text can form overlap pairs when the text grows over it; absolutely positioned labels that receive long text overlap every neighbour they reach, and those pairs are true by definition; text in a fixed or sticky box can form pairs with the text that moves under it. Observed so far, not evidence: fixed-card.html at 1440 and 390 px: 1 text cut and 1 cut away entirely (the link); overlap.html, 1 text cut and 1 pair of texts overlapping; nowrap-nav.html, the page scrolls sideways by 585 px at 1440 and 1635 px at 390; already-broken.html, 2 pairs of texts overlapping that the case adds; tight-heading.html and clean.html pass; split-words.html, split-words-flex.html and ghost.html pass at 1440 px. | Needs real Portuguese content of the audience's products, checked for breaks against what the long-text case predicted before the samples are applied |
|
|
17
|
+
| H9 | CW8 and CR9 to CR11 (an empty list, one item and hundreds of items break nothing) | Our claim, a hint only; no number is used as a cutoff. How it was picked: no value to pick; how lists are found was fixed before any page was measured: LIST_SELECTOR plus repeated siblings, with lists inside navigation, menus, tab lists, selects and forms left out; MANY_ITEMS is the size of the hundreds case, not a cutoff. Limits: a list rendered by script shows no empty state in a script-free copy, so the app's own empty state is judged from a staged render; virtualized lists are not lists in the DOM; a carousel that already hides some items is not judged for cut items; a closed drawer or a sheet moved off the page is not read; a slow page may leave the list cases unchecked; text the composition walk does not keep (a box under a clipping parent that is not its containing block, content below an app shell's scroll area) is not tested. Inline elements moved by position relative or negative margins inside one block are never compared for overlap (texts that share one block container never form a pair); text hidden from assistive technology (aria-hidden) is neither changed nor read; for overlap, each line box is clamped to its computed line-height, so texts of two blocks that touch only through tight leading are not reported; a visible layer behind the text can form overlap pairs when the text grows over it; list items are block-level: a child whose computed display is inline, inline-block, inline-flex or inline-grid is never an item, so the inline word or letter spans of a heading are never a list (a flex or grid heading's word spans are blockified and can still be read as a list) and an inline chip row is not tested with many items. Observed so far, not evidence: clean.html at 1440 and 390 px: empty, one and many pass (1 list); list-clip.html at 1440 px: empty adds 1 pair of texts overlapping, one passes, many cuts away 2 texts (2 lists); many-cut.html, many cuts away 2 texts; nowrap-nav.html, many scrolls the page sideways by 14944 px (a nowrap row); split-words.html and split-letters.html (a heading of word or letter spans) find no list at 1440 px. | Needs real lists with no, one and many items from the audience's products, checked for breaks against what the cases predicted before the cases are applied |
|
|
18
|
+
| H10 | CV2 and CR12 (text only this product could have) | Our claim, judged in words; no number is used as a cutoff. How it was picked: no value to pick; the swap test was fixed in advance from the award line of the kit author's internal product plan: a fresh agent that did not write the copy replaces the product name with a competitor's in each headline and lead sentence and lists the ones that still hold; the CLI never says copy has a voice. Limits: an agent's sense of "generic" is not a person's; a competitor the agent does not know cannot be swapped in. Observed so far, not evidence: nothing measured; judged in words by the reviewer. | Needs headlines outside the test fixtures that people from the audience call generic or specific, checked against the agent's swap test lists before the test is relied on |
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
area: content
|
|
2
|
+
title: Content
|
|
3
|
+
summary: "Interface text and voice: generic or long labels, error message parts, one term per thing across screens, and what breaks with longer, Portuguese, empty, single and hundreds of items."
|
|
4
|
+
order: 80
|
|
5
|
+
prefixes: [CW, CV, CR]
|
|
6
|
+
skills:
|
|
7
|
+
- lazuli-content-interface-writing
|
|
8
|
+
- lazuli-content-voice
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# Measured content checks. check-design reads the page at rest for button names and error messages (CR1 to
|
|
2
|
+
# CR4), compares names and spellings across screens when it gets two or more (CR5, CR6), and loads a
|
|
3
|
+
# script-free copy of the page in fresh case pages with longer, Portuguese, empty, single and hundreds of items
|
|
4
|
+
# (CR7 to CR11), reporting only what each case adds. CR1 to CR11 are hypotheses with their own ids in
|
|
5
|
+
# HYPOTHESES.md and give a hint, never a verdict. CR12 and CR13 have no measure: the reviewer judges them in words. The
|
|
6
|
+
# post-edit hook leaves this area out: run check-design --area content after writing copy.
|
|
7
|
+
|
|
8
|
+
- id: CR1
|
|
9
|
+
name: Buttons name an outcome
|
|
10
|
+
area: content
|
|
11
|
+
moment: review
|
|
12
|
+
skill: lazuli-content-interface-writing
|
|
13
|
+
rule: >-
|
|
14
|
+
Check that no button is named only by a word that names no outcome, such as "Submit", "OK" or "Enviar" (CW1). Links are also read by AU2.
|
|
15
|
+
why: >-
|
|
16
|
+
A button named only by a generic word makes the person read the screen around it to know what pressing it does. (our claim)
|
|
17
|
+
origin: hypothesis
|
|
18
|
+
status: hypothesis
|
|
19
|
+
hypothesis: H1
|
|
20
|
+
source: >-
|
|
21
|
+
Our claim, a hint only (H1): the phrase list is rule data, written before any page was read; the H1 row says how and lists what was observed afterwards, which is not evidence.
|
|
22
|
+
measure: content.generic-labels
|
|
23
|
+
threshold:
|
|
24
|
+
phrases: [submit, send, ok, okay, go, click, click here, button, enviar, submeter, ir, clique, clique aqui, botão]
|
|
25
|
+
when_to_break: >-
|
|
26
|
+
A word that is the outcome in this product ("Send" in a mail app), declared with break-a-rule first.
|
|
27
|
+
break_effect: >-
|
|
28
|
+
A shorter label where the outcome is plain from the screen, at the cost of meaning when the control is read alone.
|
|
29
|
+
test: >-
|
|
30
|
+
check-design reads every button the composition walk keeps (a link painted as a button counts, input buttons too) by its accessible name. Hint when a whole name, normalized, is one of the phrases, naming each one; pass when none is; nothing when the page shows no button. A name that holds a generic word next to an outcome is not listed, and meaning is not judged.
|
|
31
|
+
example: >-
|
|
32
|
+
"Send message" and "Book a first visit".
|
|
33
|
+
counterexample: >-
|
|
34
|
+
"Submit" under a booking form and "OK" closing a payment.
|
|
35
|
+
|
|
36
|
+
- id: CR2
|
|
37
|
+
name: Button labels stay short
|
|
38
|
+
area: content
|
|
39
|
+
moment: review
|
|
40
|
+
skill: lazuli-content-interface-writing
|
|
41
|
+
rule: >-
|
|
42
|
+
Check that no button name uses more words than the cutoff of H2 (CW3).
|
|
43
|
+
why: >-
|
|
44
|
+
A long button name is read slowly and wraps in narrow layouts; the words that carry the meaning get lost among the rest. (our claim)
|
|
45
|
+
origin: hypothesis
|
|
46
|
+
status: hypothesis
|
|
47
|
+
hypothesis: H2
|
|
48
|
+
source: >-
|
|
49
|
+
Our claim: the cutoff is the round starting value of H2, set before any page was measured; the H2 row says how and lists what was observed afterwards, which is not evidence.
|
|
50
|
+
measure: content.label-length
|
|
51
|
+
threshold: { maxWords: 5 }
|
|
52
|
+
when_to_break: >-
|
|
53
|
+
A label that needs more words to be exact (a payment that cannot be undone), declared with break-a-rule first.
|
|
54
|
+
break_effect: >-
|
|
55
|
+
The label carries the whole consequence, at the cost of a slower scan.
|
|
56
|
+
test: >-
|
|
57
|
+
check-design counts the words of every button's accessible name (a word keeps an inner hyphen, period or apostrophe, so "e-mail" is one word). Hint when one uses more words than the cutoff, naming each with its count; pass when every one is within it; nothing when the page shows no button. Portuguese needs more words than English for the same label, and a short name that says nothing passes here (CR1 reads that).
|
|
58
|
+
example: >-
|
|
59
|
+
"Download the report".
|
|
60
|
+
counterexample: >-
|
|
61
|
+
"Create my free account now today please".
|
|
62
|
+
|
|
63
|
+
- id: CR3
|
|
64
|
+
name: One capitalization style
|
|
65
|
+
area: content
|
|
66
|
+
moment: review
|
|
67
|
+
skill: lazuli-content-interface-writing
|
|
68
|
+
rule: >-
|
|
69
|
+
Check that the buttons of a page share one capitalization style (CW5).
|
|
70
|
+
why: >-
|
|
71
|
+
Mixed styles make controls look as if they came from different products. (our claim)
|
|
72
|
+
origin: hypothesis
|
|
73
|
+
status: hypothesis
|
|
74
|
+
hypothesis: H3
|
|
75
|
+
source: >-
|
|
76
|
+
Our claim, a hint only (H3): no number is used as a cutoff; the H3 row says how a style is read.
|
|
77
|
+
measure: content.label-case
|
|
78
|
+
when_to_break: >-
|
|
79
|
+
A single control in capitals as part of the brand, declared with break-a-rule first.
|
|
80
|
+
break_effect: >-
|
|
81
|
+
One control stands apart on purpose, at the cost of reading as louder than the rest.
|
|
82
|
+
test: >-
|
|
83
|
+
check-design reads each button's style from its text-transform, else from its source text (uppercase, lowercase, title or sentence; a name of one word has none). Hint when the buttons mix styles, listing each style in order of first appearance; pass when every button with a readable style shares one; nothing when fewer than two have a style. A proper noun in a sentence-case label reads as title case, and a brand name in capitals reads as uppercase.
|
|
84
|
+
example: >-
|
|
85
|
+
"Book a visit", "See plans" and "Contact us".
|
|
86
|
+
counterexample: >-
|
|
87
|
+
"Book A Visit" beside "See plans" and "SAVE DRAFT".
|
|
88
|
+
|
|
89
|
+
- id: CR4
|
|
90
|
+
name: Error messages carry their parts
|
|
91
|
+
area: content
|
|
92
|
+
moment: review
|
|
93
|
+
skill: lazuli-content-interface-writing
|
|
94
|
+
rule: >-
|
|
95
|
+
Check that no visible error message is a generic phrase or a code alone, and that each one tied to a field names that field (CW4). Where the message sits and how it is tied are XM5 and XR5.
|
|
96
|
+
why: >-
|
|
97
|
+
A message that only says something failed leaves the person to find the field and guess the fix. (our claim)
|
|
98
|
+
origin: hypothesis
|
|
99
|
+
status: hypothesis
|
|
100
|
+
hypothesis: H4
|
|
101
|
+
source: >-
|
|
102
|
+
Our claim, a hint only (H4): the phrase list is rule data, written before any page was read; the H4 row says what counts as naming the field and lists what was observed afterwards, which is not evidence.
|
|
103
|
+
measure: content.errors
|
|
104
|
+
threshold:
|
|
105
|
+
phrases: [error, invalid, invalid value, invalid input, something went wrong, an error occurred, oops, try again, erro, inválido, invalido, valor inválido, campo inválido, algo deu errado, ocorreu um erro, tente novamente, ops]
|
|
106
|
+
when_to_break: >-
|
|
107
|
+
A message that cannot say more without exposing data (a failed sign in), declared with break-a-rule first.
|
|
108
|
+
break_effect: >-
|
|
109
|
+
The account stays private, at the cost of a less specific message.
|
|
110
|
+
test: >-
|
|
111
|
+
check-design reads the messages shown on this render: the error text tied to each invalid field and each visible alert. Hint when one is a phrase of the list, a code alone (no lowercase letter and a digit) or a field message that does not name its field, with the reasons; pass when none is; nothing when no message is shown, with a note to stage an error state. The CLI never submits a form, so only messages already on the page are read; the fix part is read by the reviewer; text the composition walk does not keep is not read.
|
|
112
|
+
example: >-
|
|
113
|
+
"Enter your full name as it appears on your ID" under the name field.
|
|
114
|
+
counterexample: >-
|
|
115
|
+
"Invalid" under the name field and "ERR_422" as an alert.
|
|
116
|
+
|
|
117
|
+
- id: CR5
|
|
118
|
+
name: One destination, one name
|
|
119
|
+
area: content
|
|
120
|
+
moment: review
|
|
121
|
+
skill: lazuli-content-interface-writing
|
|
122
|
+
rule: >-
|
|
123
|
+
Check that each destination linked from navigation keeps one name across the screens checked (CW2).
|
|
124
|
+
why: >-
|
|
125
|
+
A page with two names in navigation reads as two pages. (our claim)
|
|
126
|
+
origin: hypothesis
|
|
127
|
+
status: hypothesis
|
|
128
|
+
hypothesis: H5
|
|
129
|
+
source: >-
|
|
130
|
+
Our claim, a hint only (H5): no number is used as a cutoff; the H5 row says what one destination is and lists what was observed afterwards, which is not evidence.
|
|
131
|
+
measure: terms.same-target
|
|
132
|
+
when_to_break: >-
|
|
133
|
+
A name that changes on purpose with the person's progress, declared with break-a-rule first.
|
|
134
|
+
break_effect: >-
|
|
135
|
+
The name follows the state of the thing, at the cost of one more name to learn.
|
|
136
|
+
test: >-
|
|
137
|
+
This rule runs only when check-design gets two or more screens (--site or several targets). check-design reads the links in navigation regions of every screen; one name inside another is the same name, and a link named only by an image or an aria-label is not a name. Hint when one destination carries two names, naming the destination and the screens; pass when every destination linked more than once keeps one; nothing when no destination is linked more than once.
|
|
138
|
+
example: >-
|
|
139
|
+
"Plans" in the header of every screen and in the footer.
|
|
140
|
+
counterexample: >-
|
|
141
|
+
"Plans" in the header and "Pricing" in the footer, both to the same page.
|
|
142
|
+
|
|
143
|
+
- id: CR6
|
|
144
|
+
name: One term, one spelling
|
|
145
|
+
area: content
|
|
146
|
+
moment: review
|
|
147
|
+
skill: lazuli-content-interface-writing
|
|
148
|
+
rule: >-
|
|
149
|
+
Check that no term is written two ways across the screens checked, such as "E-mail" and "Email" or "Log in" and "Login" (CW2).
|
|
150
|
+
why: >-
|
|
151
|
+
One term written two ways makes the person wonder whether it is two things. (our claim)
|
|
152
|
+
origin: hypothesis
|
|
153
|
+
status: hypothesis
|
|
154
|
+
hypothesis: H6
|
|
155
|
+
source: >-
|
|
156
|
+
Our claim, a hint only (H6): no number is used as a cutoff; the H6 row says how spellings are compared and lists what was observed afterwards, which is not evidence.
|
|
157
|
+
measure: terms.spelling
|
|
158
|
+
when_to_break: >-
|
|
159
|
+
A spelling fixed by a brand or a quoted name, declared with break-a-rule first.
|
|
160
|
+
break_effect: >-
|
|
161
|
+
The brand keeps its own spelling, at the cost of a second form on the screen.
|
|
162
|
+
test: >-
|
|
163
|
+
This rule runs only when check-design gets two or more screens (--site or several targets). check-design compares the words and adjacent word pairs of every screen with separators removed and accents and apostrophes kept, so "você" and "voce" stay apart and numbers never form a term. Hint when a term is written two ways, listing the forms; pass when none is.
|
|
164
|
+
example: >-
|
|
165
|
+
"E-mail" on the sign up form and on the contact page.
|
|
166
|
+
counterexample: >-
|
|
167
|
+
"E-mail" on the sign up form and "Email" on the contact page.
|
|
168
|
+
|
|
169
|
+
- id: CR7
|
|
170
|
+
name: Text that grows does not break the layout
|
|
171
|
+
area: content
|
|
172
|
+
moment: review
|
|
173
|
+
skill: lazuli-content-interface-writing
|
|
174
|
+
rule: >-
|
|
175
|
+
Check that the page keeps working when every text grows by the factor of H7, as when the language changes (CW7).
|
|
176
|
+
why: >-
|
|
177
|
+
Text laid out to fit in one language breaks when a translation arrives longer. (our claim)
|
|
178
|
+
origin: hypothesis
|
|
179
|
+
status: hypothesis
|
|
180
|
+
hypothesis: H7
|
|
181
|
+
source: >-
|
|
182
|
+
Our claim: the factor is the round starting value of H7, set before any page was measured; the H7 row says how and lists what was observed afterwards, which is not evidence.
|
|
183
|
+
measure: extreme.growth
|
|
184
|
+
threshold: { growth: 1.3 }
|
|
185
|
+
when_to_break: >-
|
|
186
|
+
A page that will never be translated and whose text is fixed by the product, declared with break-a-rule first.
|
|
187
|
+
break_effect: >-
|
|
188
|
+
Tighter boxes where the text cannot change, at the cost of a fix if it ever does.
|
|
189
|
+
test: >-
|
|
190
|
+
The cases run on a script-free copy of the page and report only what the case adds: at each width check-design loads the copy untouched and with every visible text grown, and compares them. Hint when the grown copy adds a sideways scroll, a text that spills out of its box, a text cut or cut away, or a pair of texts that overlap, naming each; pass when it adds none; nothing when the case did not run. Text the composition walk does not keep (a box under a clipping parent that is not its containing block, content below an app shell's scroll area) is never tested; inline elements moved by position relative or negative margins inside one block are never compared for overlap; text hidden from assistive technology (aria-hidden) is neither changed nor read; for overlap, each line box is clamped to its computed line-height, so texts of two blocks that touch only through tight leading are not reported; a visible layer behind the text can form overlap pairs when the text grows over it.
|
|
191
|
+
example: >-
|
|
192
|
+
Buttons that wrap a longer label onto two lines and keep all of it.
|
|
193
|
+
counterexample: >-
|
|
194
|
+
A tab bar that cuts a longer tab name in a box sized for the English one.
|
|
195
|
+
|
|
196
|
+
- id: CR8
|
|
197
|
+
name: Long Portuguese text breaks nothing
|
|
198
|
+
area: content
|
|
199
|
+
moment: review
|
|
200
|
+
skill: lazuli-content-interface-writing
|
|
201
|
+
rule: >-
|
|
202
|
+
Check that the page keeps working with long Portuguese text in every label, heading and paragraph, one very long word included (CW7).
|
|
203
|
+
why: >-
|
|
204
|
+
Real names, headings and descriptions arrive longer than the sample, and Portuguese takes more room than English. (our claim)
|
|
205
|
+
origin: hypothesis
|
|
206
|
+
status: hypothesis
|
|
207
|
+
hypothesis: H8
|
|
208
|
+
source: >-
|
|
209
|
+
Our claim, a hint only (H8): no number is used as a cutoff; the three samples were written before any page was measured, and the H8 row lists what was observed afterwards, which is not evidence.
|
|
210
|
+
measure: extreme.long-text
|
|
211
|
+
when_to_break: >-
|
|
212
|
+
A page whose text is fixed and never arrives from content, declared with break-a-rule first.
|
|
213
|
+
break_effect: >-
|
|
214
|
+
Boxes sized to the fixed text, at the cost of a fix if the text ever changes.
|
|
215
|
+
test: >-
|
|
216
|
+
The cases run on a script-free copy of the page and report only what the case adds: at each width check-design loads the copy untouched and with the long samples in labels, headings and the other text, and compares them. Hint when the case adds a sideways scroll, a spill, a cut, a text cut away or an overlap, naming each; pass when it adds none; nothing when the case did not run. Inputs, placeholders and text drawn in images, canvas or SVG are not filled; text the composition walk does not keep (a box under a clipping parent that is not its containing block, content below an app shell's scroll area) is never tested; inline elements moved by position relative or negative margins inside one block are never compared for overlap; text hidden from assistive technology (aria-hidden) is neither changed nor read; for overlap, each line box is clamped to its computed line-height, so texts of two blocks that touch only through tight leading are not reported; a visible layer behind the text can form overlap pairs when the text grows over it; absolutely positioned labels that receive long text overlap every neighbour they reach, and those pairs are true by definition; text in a fixed or sticky box can form pairs with the text that moves under it.
|
|
217
|
+
example: >-
|
|
218
|
+
A card whose title wraps "Informações completas sobre atendimento" and pushes the link below it down.
|
|
219
|
+
counterexample: >-
|
|
220
|
+
A card with a fixed height that cuts its description and hides its "See details" link.
|
|
221
|
+
|
|
222
|
+
- id: CR9
|
|
223
|
+
name: An empty list breaks nothing
|
|
224
|
+
area: content
|
|
225
|
+
moment: review
|
|
226
|
+
skill: lazuli-content-interface-writing
|
|
227
|
+
rule: >-
|
|
228
|
+
Check that the page keeps working when every list is emptied (CW8).
|
|
229
|
+
why: >-
|
|
230
|
+
The first real account has no items, and a layout that leans on the list collapses without it. (our claim)
|
|
231
|
+
origin: hypothesis
|
|
232
|
+
status: hypothesis
|
|
233
|
+
hypothesis: H9
|
|
234
|
+
source: >-
|
|
235
|
+
Our claim, a hint only (H9): no number is used as a cutoff; how lists are found was fixed before any page was measured, and the H9 row lists what was observed afterwards, which is not evidence.
|
|
236
|
+
measure: extreme.empty
|
|
237
|
+
when_to_break: >-
|
|
238
|
+
A list whose length is fixed by the product, declared with break-a-rule first.
|
|
239
|
+
break_effect: >-
|
|
240
|
+
No empty case to design, since it cannot happen.
|
|
241
|
+
test: >-
|
|
242
|
+
The cases run on a script-free copy of the page and report only what the case adds: at each width check-design loads the copy untouched and with every list emptied, and compares them. Hint when the case adds a break, naming each; pass when it adds none; nothing when no list was found or the case did not run, with a note. What the empty list says to the person is read by the reviewer (CW8): a list rendered by script shows no empty state in the copy. A slow page may leave the list cases unchecked, with a note; text the composition walk does not keep (a box under a clipping parent that is not its containing block, content below an app shell's scroll area) is never tested; inline elements moved by position relative or negative margins inside one block are never compared for overlap; text hidden from assistive technology (aria-hidden) is neither changed nor read; for overlap, each line box is clamped to its computed line-height, so texts of two blocks that touch only through tight leading are not reported; a visible layer behind the text can form overlap pairs; list items are block-level: a child whose computed display is inline, inline-block, inline-flex or inline-grid is never an item, so the inline word or letter spans of a heading are never a list (a flex or grid heading's word spans are blockified and can still be read as a list) and an inline chip row is not tested with many items.
|
|
243
|
+
example: >-
|
|
244
|
+
A results section that keeps its heading and footer in place with no item under it.
|
|
245
|
+
counterexample: >-
|
|
246
|
+
A footer that rides up over the heading when the grid above it is empty.
|
|
247
|
+
|
|
248
|
+
- id: CR10
|
|
249
|
+
name: One item breaks nothing
|
|
250
|
+
area: content
|
|
251
|
+
moment: review
|
|
252
|
+
skill: lazuli-content-interface-writing
|
|
253
|
+
rule: >-
|
|
254
|
+
Check that the page keeps working when every list holds one item (CW8).
|
|
255
|
+
why: >-
|
|
256
|
+
A layout made for a full row can stretch or misplace a single item. (our claim)
|
|
257
|
+
origin: hypothesis
|
|
258
|
+
status: hypothesis
|
|
259
|
+
hypothesis: H9
|
|
260
|
+
source: >-
|
|
261
|
+
Our claim, a hint only (H9): no number is used as a cutoff; how lists are found was fixed before any page was measured, and the H9 row lists what was observed afterwards, which is not evidence.
|
|
262
|
+
measure: extreme.one
|
|
263
|
+
when_to_break: >-
|
|
264
|
+
A list that always holds several items, declared with break-a-rule first.
|
|
265
|
+
break_effect: >-
|
|
266
|
+
No single-item case to design, since it cannot happen.
|
|
267
|
+
test: >-
|
|
268
|
+
The cases run on a script-free copy of the page and report only what the case adds: at each width check-design loads the copy untouched and with one item in every list, and compares them. Hint when the case adds a break, naming each; pass when it adds none; nothing when no list was found or the case did not run, with a note. Whether one item looks broken is also judged by the reviewer (CW8). A slow page may leave the list cases unchecked, with a note; text the composition walk does not keep (a box under a clipping parent that is not its containing block, content below an app shell's scroll area) is never tested; inline elements moved by position relative or negative margins inside one block are never compared for overlap; text hidden from assistive technology (aria-hidden) is neither changed nor read; for overlap, each line box is clamped to its computed line-height, so texts of two blocks that touch only through tight leading are not reported; a visible layer behind the text can form overlap pairs; list items are block-level: a child whose computed display is inline, inline-block, inline-flex or inline-grid is never an item, so the inline word or letter spans of a heading are never a list (a flex or grid heading's word spans are blockified and can still be read as a list) and an inline chip row is not tested with many items.
|
|
269
|
+
example: >-
|
|
270
|
+
A single card that keeps its width in the grid.
|
|
271
|
+
counterexample: >-
|
|
272
|
+
A single card stretched across the whole row with its text running past the image.
|
|
273
|
+
|
|
274
|
+
- id: CR11
|
|
275
|
+
name: Hundreds of items break nothing
|
|
276
|
+
area: content
|
|
277
|
+
moment: review
|
|
278
|
+
skill: lazuli-content-interface-writing
|
|
279
|
+
rule: >-
|
|
280
|
+
Check that the page keeps working when every list holds hundreds of items (CW8).
|
|
281
|
+
why: >-
|
|
282
|
+
The busiest account has hundreds of items, and a box sized for a handful cuts them or pushes the page sideways. (our claim)
|
|
283
|
+
origin: hypothesis
|
|
284
|
+
status: hypothesis
|
|
285
|
+
hypothesis: H9
|
|
286
|
+
source: >-
|
|
287
|
+
Our claim, a hint only (H9): no number is used as a cutoff; the size of the case is a definition fixed before any page was measured, and the H9 row lists what was observed afterwards, which is not evidence.
|
|
288
|
+
measure: extreme.many
|
|
289
|
+
when_to_break: >-
|
|
290
|
+
A list whose length is fixed and short, declared with break-a-rule first.
|
|
291
|
+
break_effect: >-
|
|
292
|
+
No large case to design, since it cannot happen.
|
|
293
|
+
test: >-
|
|
294
|
+
The cases run on a script-free copy of the page and report only what the case adds: at each width check-design loads the copy untouched and with every list filled with copies of its items, and compares them. Hint when the case adds a break, naming each; pass when it adds none; nothing when no list was found or the case did not run, with a note. A list that already hides some of its items (a carousel) is not judged for cut items; whether hundreds stay usable (search, filter or pages) is judged by the reviewer (CW8). A slow page may leave the list cases unchecked, with a note; text the composition walk does not keep (a box under a clipping parent that is not its containing block, content below an app shell's scroll area) is never tested; inline elements moved by position relative or negative margins inside one block are never compared for overlap; text hidden from assistive technology (aria-hidden) is neither changed nor read; for overlap, each line box is clamped to its computed line-height, so texts of two blocks that touch only through tight leading are not reported; a visible layer behind the text can form overlap pairs; list items are block-level: a child whose computed display is inline, inline-block, inline-flex or inline-grid is never an item, so the inline word or letter spans of a heading are never a list (a flex or grid heading's word spans are blockified and can still be read as a list) and an inline chip row is not tested with many items.
|
|
295
|
+
example: >-
|
|
296
|
+
A list in a scroll box that keeps every item reachable.
|
|
297
|
+
counterexample: >-
|
|
298
|
+
A list in a box of fixed height with hidden overflow, whose later items are cut away.
|
|
299
|
+
|
|
300
|
+
- id: CR12
|
|
301
|
+
name: The copy passes the swap test
|
|
302
|
+
area: content
|
|
303
|
+
moment: review
|
|
304
|
+
skill: lazuli-content-voice
|
|
305
|
+
rule: >-
|
|
306
|
+
Judge, from the capture and the page text, whether the headlines and lead sentences hold only for this product (CV2).
|
|
307
|
+
why: >-
|
|
308
|
+
The award level of the kit author's internal product plan for content is text only that product could have, with a recognizable voice; no count can tell that. (our claim)
|
|
309
|
+
origin: hypothesis
|
|
310
|
+
status: hypothesis
|
|
311
|
+
hypothesis: H10
|
|
312
|
+
source: >-
|
|
313
|
+
Our claim: the award row of the kit author's internal product plan for content (default "generic sentences that would serve any company", award "text only that product could have, with a recognizable voice"). Judged in words by the reviewer (H10).
|
|
314
|
+
when_to_break: >-
|
|
315
|
+
A page whose wording is fixed by law or a regulator, declared with break-a-rule first and logged with record-decision.
|
|
316
|
+
break_effect: >-
|
|
317
|
+
The fixed wording stays exact, at the cost of a generic sentence where it sits.
|
|
318
|
+
test: >-
|
|
319
|
+
The reviewer runs the swap test: a fresh agent that did not write the copy reads the capture and the page text, replaces the product name with a competitor's in each headline and lead sentence, and lists the ones that still hold, in words. This rule has no measure: the CLI never says copy has a voice, is clear or fits the audience.
|
|
320
|
+
example: >-
|
|
321
|
+
A review that lists the two headlines that still hold with a competitor's name and the fact each could be rewritten around.
|
|
322
|
+
counterexample: >-
|
|
323
|
+
A review that calls the copy on brand without swapping a single name.
|
|
324
|
+
|
|
325
|
+
- id: CR13
|
|
326
|
+
name: Every number, scarcity line and claim shows its source
|
|
327
|
+
area: content
|
|
328
|
+
moment: review
|
|
329
|
+
skill: lazuli-content-voice
|
|
330
|
+
rule: >-
|
|
331
|
+
Check that every number, scarcity line and result claim has its source on the page. Numbers and statistics say where they come from, next to them or in a note the page links to. A discount matches the page's own prices: the old price, the new price and the discount agree wherever they appear. A scarcity or deadline line (a countdown, "few left", "offer ends today") is true for every visitor, not generated from the date of the visit or a random stock. A health, income or result claim names the study, the data or the condition it rests on, and a testimonial with a result is one people can generally expect, or the page says next to it what result a typical buyer gets; a results-not-typical line alone is not a source. In regulated sectors (food supplements, health, finance) a person who knows the local regulation reviews the claims; the kit does not.
|
|
332
|
+
why: >-
|
|
333
|
+
A number, a deadline or a result claim with nothing behind it misleads the person who acts on it, and the advertiser has to be able to prove it (Law 8.078/1990, article 38; FTC Health Products Compliance Guidance, section II.A). A discount that does not add up with the page's own prices, or a countdown that starts again on every visit, shows as soon as the person checks, and every other claim of the page loses weight with it. (our claim, the second sentence)
|
|
334
|
+
origin: source
|
|
335
|
+
status: active
|
|
336
|
+
source: >-
|
|
337
|
+
Brazil, Law 8.078/1990 (Consumer Defense Code), Section III "Da Publicidade", articles 36 to 38, https://www.planalto.gov.br/ccivil_03/leis/l8078compilado.htm, opened 2026-11-27: the advertiser keeps in its possession, for those with a legitimate interest, the factual, technical and scientific data that support the message (article 36, sole paragraph); advertising that is wholly or partly false, or that misleads even by omission about the nature, characteristics, quality, quantity, properties, origin, price or any other data of a product or service, is misleading and prohibited (article 37, paragraphs 1 and 3); the burden of proving that the advertising is true and correct falls on whoever sponsors it (article 38). US Federal Trade Commission, Health Products Compliance Guidance, https://www.ftc.gov/business-guidance/resources/health-products-compliance-guidance, opened 2026-11-27: before disseminating an ad, advertisers must have adequate substantiation for all objective product claims, and health claims need competent and reliable scientific evidence (section II.A); the same principles apply to any health-related product (section I); testimonials that report results more dramatic than users can generally expect are likely to be deceptive, and a "Results not typical" line does not cure that (section III.C.1). Neither text says the source must be shown on the page, and neither names countdowns or "few left" lines: showing the source on the page, and reading a generated deadline or stock line as false data about quantity or price, are our claim. Neither text is the law of every country, and the kit gives no legal opinion.
|
|
338
|
+
when_to_break: >-
|
|
339
|
+
Never for numbers, prices, discounts and health or financial claims. A tone of urgency is allowed only when the deadline is real (a sale that ends on a stated date for everyone), and then the date is shown.
|
|
340
|
+
break_effect: >-
|
|
341
|
+
Numbers and health or financial claims have no break. A real deadline told with urgency helps people who already wanted to act, at the cost of pressure on those who did not. (our claim)
|
|
342
|
+
test: >-
|
|
343
|
+
No measure: the agent checks it while writing and the reviewer walks it as a checklist, one line per claim on the page: the claim as written, its kind (number, discount, scarcity or deadline, health, income or result), and where its source is shown on the page (next to it, in a note, on a linked page) or "no source on the page". A discount line also names the prices it was checked against, and a deadline line says whether it changes between two visits or two days. A claim with no source on the page is a finding. The CLI never says a claim is true, legal or proven: the reviewer says where the source is shown, and a person who knows the local regulation judges a regulated claim.
|
|
344
|
+
example: >-
|
|
345
|
+
"Rated 4.8 by 1,200 buyers" with the reviews below it, and "From 120 to 90, 25% off" with both prices the same in the cart.
|
|
346
|
+
counterexample: >-
|
|
347
|
+
"Only a few left, offer ends today" with today's date on every visit, and a food supplement page that says it cures a disease with no study named.
|