@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,399 @@
|
|
|
1
|
+
# Measured composition checks. Each one reads the layout or rhythm report of the render and
|
|
2
|
+
# gives a hint, never a verdict: every number here is a hypothesis with its own id in
|
|
3
|
+
# HYPOTHESES.md until the A/B shows it helps.
|
|
4
|
+
|
|
5
|
+
- id: UR1
|
|
6
|
+
name: The first view has scale contrast
|
|
7
|
+
area: ui
|
|
8
|
+
moment: review
|
|
9
|
+
skill: lazuli-ui-layout-review
|
|
10
|
+
rule: >-
|
|
11
|
+
Check that the first view holds one element set far above the rest: the largest text well above the body size, or the largest block well above the typical block.
|
|
12
|
+
why: >-
|
|
13
|
+
When every element in the first view has nearly the same size, nothing says where to start, so the view reads as a list and the page gives the eye no entrance.
|
|
14
|
+
origin: hypothesis
|
|
15
|
+
status: hypothesis
|
|
16
|
+
hypothesis: H2
|
|
17
|
+
source: >-
|
|
18
|
+
Our claim, not verified yet. The cutoffs are starting values set before any real page was measured; the H2 row says how and lists what was observed afterwards, which is not evidence.
|
|
19
|
+
measure: layout.scale-contrast
|
|
20
|
+
threshold: { minTextRatio: 2, minAreaRatio: 2 }
|
|
21
|
+
when_to_break: >-
|
|
22
|
+
An even first view on purpose, such as a grid of equal items where no element may lead, declared with break-a-rule first.
|
|
23
|
+
break_effect: >-
|
|
24
|
+
The viewer feels equality and calm, so the page reads as an index to browse and not as a statement to receive.
|
|
25
|
+
test: >-
|
|
26
|
+
The layout report gives the largest text as a multiple of the body size and the largest block as a multiple of the median block. Hint when both stay below the cutoffs.
|
|
27
|
+
example: >-
|
|
28
|
+
A first view with a headline at several times the body size next to a large photo.
|
|
29
|
+
counterexample: >-
|
|
30
|
+
A first view of four paragraphs and two small images at nearly the same size.
|
|
31
|
+
|
|
32
|
+
- id: UR2
|
|
33
|
+
name: Empty space has a shape, not leftovers
|
|
34
|
+
area: ui
|
|
35
|
+
moment: review
|
|
36
|
+
skill: lazuli-ui-layout-review
|
|
37
|
+
rule: >-
|
|
38
|
+
Check that the empty area of the first view gathers in part of the view (a margin, a side, a clearing around one element) instead of being spread evenly between and around every element.
|
|
39
|
+
why: >-
|
|
40
|
+
Empty space that gathers has an outline the eye can read as a decision, while space spread as even padding is the leftover of elements that were simply placed one after another.
|
|
41
|
+
origin: hypothesis
|
|
42
|
+
status: hypothesis
|
|
43
|
+
hypothesis: H3
|
|
44
|
+
source: >-
|
|
45
|
+
Our claim, not verified yet. The cutoff is a starting value set before any real page was measured (a midpoint between two fixtures); the H3 row says how and lists what was observed afterwards, which is not evidence. The measurer reads nothing when the first view has no measured block.
|
|
46
|
+
measure: layout.empty-space
|
|
47
|
+
threshold: { minSpread: 0.5 }
|
|
48
|
+
when_to_break: >-
|
|
49
|
+
A dense view that is meant to fill the screen, such as a dashboard or a catalog, where there is no empty space to shape, declared with break-a-rule first.
|
|
50
|
+
break_effect: >-
|
|
51
|
+
The viewer feels richness and abundance, so the view reads as full of things to find, at the cost of a place to rest.
|
|
52
|
+
test: >-
|
|
53
|
+
The layout report gives the share of empty area in each of 9 areas of the first view and the difference between the emptiest and the fullest. Hint when the difference is below the cutoff. The reviewer then looks at the view.
|
|
54
|
+
example: >-
|
|
55
|
+
A first view with one small element low on the right and the rest of the view clear.
|
|
56
|
+
counterexample: >-
|
|
57
|
+
A first view where a thin band of space sits evenly around six equal elements.
|
|
58
|
+
|
|
59
|
+
- id: UR3
|
|
60
|
+
name: One focal point leads the first view
|
|
61
|
+
area: ui
|
|
62
|
+
moment: review
|
|
63
|
+
skill: lazuli-ui-layout-review
|
|
64
|
+
rule: >-
|
|
65
|
+
Check that one block in the first view clearly outweighs the next one, so the eye has a place to land first.
|
|
66
|
+
why: >-
|
|
67
|
+
Two or three blocks of almost the same weight compete for the first look, so the visitor hesitates before reading anything.
|
|
68
|
+
origin: hypothesis
|
|
69
|
+
status: hypothesis
|
|
70
|
+
hypothesis: H4
|
|
71
|
+
source: >-
|
|
72
|
+
Our claim, not verified yet. Weight here is the visible area of a block; the cutoff is a starting value set before any real page was measured; the H4 row says how and lists what was observed afterwards, which is not evidence.
|
|
73
|
+
measure: layout.focal-point
|
|
74
|
+
threshold: { minDominance: 2 }
|
|
75
|
+
when_to_break: >-
|
|
76
|
+
A deliberate standoff between two equal halves (a split view, a before and after), declared with break-a-rule first.
|
|
77
|
+
break_effect: >-
|
|
78
|
+
The viewer feels tension between two claims and has to choose, so the view reads as a comparison.
|
|
79
|
+
test: >-
|
|
80
|
+
The layout report names the largest block of the first view and gives its area as a multiple of the next largest. Hint when the multiple is below the cutoff.
|
|
81
|
+
example: >-
|
|
82
|
+
A full-height photo that is twice the area of any other block in the view.
|
|
83
|
+
counterexample: >-
|
|
84
|
+
Three blocks of the same size across the first view, with nothing above them.
|
|
85
|
+
|
|
86
|
+
- id: UR4
|
|
87
|
+
name: The page changes pace
|
|
88
|
+
area: ui
|
|
89
|
+
moment: review
|
|
90
|
+
skill: lazuli-ui-layout-review
|
|
91
|
+
rule: >-
|
|
92
|
+
Check that the sections of the page differ from one another in height or in density, so the scroll has a beat and does not repeat one block.
|
|
93
|
+
why: >-
|
|
94
|
+
A page of sections with the same height and the same amount of content tells one thing at one speed, and attention settles into the pattern.
|
|
95
|
+
origin: hypothesis
|
|
96
|
+
status: hypothesis
|
|
97
|
+
hypothesis: H5
|
|
98
|
+
source: >-
|
|
99
|
+
Our claim, not verified yet. Support for varying the pace within one piece comes from Designer Daily, "The Architecture of Reading", section "The Feature Well", part "Pacing Through the Spread" (https://www.designer-daily.com/the-architecture-of-reading-designing-magazine-layouts-for-different-paces-211795, opened 2026-11-25); the cutoffs and the way of measuring are our claim, round starting values set before any real page was measured; the H5 row says how and lists what was observed afterwards, which is not evidence.
|
|
100
|
+
measure: rhythm.pace
|
|
101
|
+
threshold: { minSections: 3, minHeightRatio: 1.5, minDensityRatio: 1.5 }
|
|
102
|
+
when_to_break: >-
|
|
103
|
+
A page that repeats one unit on purpose, such as a long list of equal entries or an archive, declared with break-a-rule first.
|
|
104
|
+
break_effect: >-
|
|
105
|
+
The viewer feels a steady, almost mechanical tempo, so the page reads as a catalog or an inventory and not as a story.
|
|
106
|
+
test: >-
|
|
107
|
+
The rhythm report gives the height and density of each section. Hint when both the height ratio and the density ratio between the extreme sections stay below the cutoffs. Silent below the minimum section count.
|
|
108
|
+
example: >-
|
|
109
|
+
A page that alternates a tall open section with a short dense one.
|
|
110
|
+
counterexample: >-
|
|
111
|
+
Six sections of the same height with the same title size and the same three paragraphs.
|
|
112
|
+
|
|
113
|
+
- id: UR5
|
|
114
|
+
name: The sequence follows the declared map
|
|
115
|
+
area: ui
|
|
116
|
+
moment: review
|
|
117
|
+
skill: lazuli-ui-layout-review
|
|
118
|
+
rule: >-
|
|
119
|
+
Check the sections of the render against the Rhythm line of the goal in LAZULI.md: the beats the map declares (breathe, accelerate, climax) must match the sections the page has.
|
|
120
|
+
why: >-
|
|
121
|
+
A rhythm written before the build is a promise; without a check it drifts as sections are added or merged, and nobody notices that the page no longer has the shape that was chosen.
|
|
122
|
+
origin: hypothesis
|
|
123
|
+
status: hypothesis
|
|
124
|
+
hypothesis: H7
|
|
125
|
+
source: >-
|
|
126
|
+
Our claim, not verified yet. The map is the one set with set-goals; the comparison is by density against the median and by beat count, and no number is used as a cutoff.
|
|
127
|
+
measure: rhythm.map
|
|
128
|
+
when_to_break: >-
|
|
129
|
+
Leave a page without a map when it does not scroll or is a single piece (a logo, a post). A map that no longer fits the page is changed in LAZULI.md, not ignored.
|
|
130
|
+
break_effect: >-
|
|
131
|
+
The page keeps its freedom to find its own sequence while it is built, at the cost of a check that the sequence was meant.
|
|
132
|
+
test: >-
|
|
133
|
+
The rhythm report compares each section with its beat. Hint when the counts differ, when a section marked breathe is denser than the median, or when one marked accelerate is sparser. A goal with no map gets a hint asking for one.
|
|
134
|
+
example: >-
|
|
135
|
+
A map of five beats that the page follows with five sections, the third the densest.
|
|
136
|
+
counterexample: >-
|
|
137
|
+
A map of four beats on a page that grew to seven sections.
|
|
138
|
+
|
|
139
|
+
- id: UR6
|
|
140
|
+
name: The climax is where it was declared
|
|
141
|
+
area: ui
|
|
142
|
+
moment: review
|
|
143
|
+
skill: lazuli-ui-layout-review
|
|
144
|
+
rule: >-
|
|
145
|
+
Check that the moment of the page set in the largest type sits near the position the map gives the climax beat, measured as a share of the page height.
|
|
146
|
+
why: >-
|
|
147
|
+
A climax that lands far from where it was planned usually means the story was reordered by the build, so the page peaks at the wrong moment.
|
|
148
|
+
origin: hypothesis
|
|
149
|
+
status: hypothesis
|
|
150
|
+
hypothesis: H6
|
|
151
|
+
source: >-
|
|
152
|
+
Our claim, not verified yet. The largest type stands in for the climax, which is a simplification; the cutoff is a round starting value set before any real page was measured; the H6 row says how.
|
|
153
|
+
measure: rhythm.climax
|
|
154
|
+
threshold: { maxShift: 0.2 }
|
|
155
|
+
when_to_break: >-
|
|
156
|
+
A climax carried by an image, a color or a silence and not by type, declared with break-a-rule first.
|
|
157
|
+
break_effect: >-
|
|
158
|
+
The peak is felt in something the measurer cannot see, so the reviewer judges it by eye.
|
|
159
|
+
test: >-
|
|
160
|
+
The rhythm report gives the position of the section with the largest type and the map gives the position of the climax beat. Hint when they differ by more than the cutoff. Silent without a declared climax or on a page that does not scroll.
|
|
161
|
+
example: >-
|
|
162
|
+
A map that puts the climax at the middle beat and a page whose largest headline sits halfway down.
|
|
163
|
+
counterexample: >-
|
|
164
|
+
A map that puts the climax last and a page whose largest headline is in the opening section.
|
|
165
|
+
|
|
166
|
+
- id: UR7
|
|
167
|
+
name: Distance from the default is checked against a baseline
|
|
168
|
+
area: ui
|
|
169
|
+
moment: review
|
|
170
|
+
skill: lazuli-ui-layout-review
|
|
171
|
+
rule: >-
|
|
172
|
+
Compare the page with a baseline built for the same brief without the kit, using compare-designs, and read the distance together with the reviewer's own look: the page should not sit where the default sits.
|
|
173
|
+
why: >-
|
|
174
|
+
A page can pass every check and still look like what any tool would produce for the same brief; the distance from that default is the only way to see how far the composition went.
|
|
175
|
+
origin: hypothesis
|
|
176
|
+
status: hypothesis
|
|
177
|
+
hypothesis: H1
|
|
178
|
+
source: >-
|
|
179
|
+
Our claim, not verified yet. The distance is the structural signature distance defined in the H1 row; whether it ranks pairs the way people see them is what the A/B will test.
|
|
180
|
+
when_to_break: >-
|
|
181
|
+
A page that must match an existing product or a fixed template, where being close to the default is the brief, declared with break-a-rule first.
|
|
182
|
+
break_effect: >-
|
|
183
|
+
The page reads as familiar and safe, which is what the brief asked for.
|
|
184
|
+
test: >-
|
|
185
|
+
Run compare-designs on the page and a no-kit baseline for the same brief and report the distance as a hint with its parts. A small distance asks the reviewer to say what is the decision here.
|
|
186
|
+
example: >-
|
|
187
|
+
A distance of the same order as between two unrelated sites, with the reviewer able to name what the page chose.
|
|
188
|
+
counterexample: >-
|
|
189
|
+
A page whose structure matches the baseline almost point for point.
|
|
190
|
+
|
|
191
|
+
- id: UR8
|
|
192
|
+
name: The award criteria are the reviewer's checklist
|
|
193
|
+
area: ui
|
|
194
|
+
moment: review
|
|
195
|
+
skill: lazuli-ui-layout-review
|
|
196
|
+
rule: >-
|
|
197
|
+
Before judging a piece meant for an award, read the criteria the jury of that award publishes, and use them as the reviewer's checklist next to the measured hints. Quote none of them; paraphrase each in the review.
|
|
198
|
+
why: >-
|
|
199
|
+
Juries judge by their own published criteria, and a review that uses other ones answers a question the jury is not asking.
|
|
200
|
+
origin: hypothesis
|
|
201
|
+
source: >-
|
|
202
|
+
Our claim, not verified yet. Context only: the CSS Design Awards page https://www.cssdesignawards.com/about (opened 2026-11-25) says winning depends on the originality of the design and the code. The Awwwards evaluation page https://www.awwwards.com/about-evaluation/ (opened 2026-11-25) names four criteria with weights (design, usability, creativity, content) and does not describe them, and https://thefwa.com/about, which gives no criteria. None of the opened pages gives composition criteria, so none is stated here.
|
|
203
|
+
when_to_break: >-
|
|
204
|
+
A piece with no award in view is reviewed on the measured hints and the reviewer's own judgment, with no jury checklist.
|
|
205
|
+
break_effect: >-
|
|
206
|
+
The review stays about the brief and the audience, not about a jury, so it fits the work and loses nothing it did not need.
|
|
207
|
+
test: >-
|
|
208
|
+
The review names the jury and lists each criterion that jury publishes with the reviewer's reading of the piece against it. The reviewer asks for the list when the piece targets an award and the review has none.
|
|
209
|
+
example: >-
|
|
210
|
+
A review for a site entered in an awards program, with one line per published criterion.
|
|
211
|
+
counterexample: >-
|
|
212
|
+
A review that says the piece "looks award worthy" and names no criteria.
|
|
213
|
+
|
|
214
|
+
# Measured state and coherence checks (lazuli-ui-states-and-system). The states report forces :hover and
|
|
215
|
+
# :active on the rendered controls and compares disabled and aria-invalid controls with their peers; the
|
|
216
|
+
# coherence report compares components across several screens. Each comparison is our claim and gives a
|
|
217
|
+
# hint, never a verdict; only UR14 uses a number, set before any page was measured (H14).
|
|
218
|
+
|
|
219
|
+
- id: UR9
|
|
220
|
+
name: Hover changes the look of every control
|
|
221
|
+
area: ui
|
|
222
|
+
moment: review
|
|
223
|
+
skill: lazuli-ui-states-and-system
|
|
224
|
+
rule: >-
|
|
225
|
+
Check that each distinct look of a button or link changes when :hover is forced on it. Only what the measurer sees is checked: the computed color, background, border, radius, outline, shadow, text decoration, weight, letter spacing, opacity, transform, filter, fill and stroke of the element, its ::before, ::after and its children. A hover made by a script (a class added on mouseenter) or styled on a parent (a card that changes when the pointer is anywhere on it) is not seen, so the reviewer checks those by pointing at them. Looks are read at rest (running animations finished or stopped), so a hover or press shown only by an animation is not seen, and motion driven by requestAnimationFrame (GSAP and similar) cannot be stopped and may be read mid-frame.
|
|
226
|
+
why: >-
|
|
227
|
+
A control that does not answer the pointer leaves the person unsure whether it can be pressed before they commit (US2).
|
|
228
|
+
origin: hypothesis
|
|
229
|
+
status: hypothesis
|
|
230
|
+
hypothesis: H9
|
|
231
|
+
source: >-
|
|
232
|
+
Our claim, not verified yet. Context from opened pages: W3C, Understanding SC 1.4.11 Non-text Contrast, https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html (section on hover, opened 2026-11-25), treats hover styles as supplemental; Carbon Design System, Button style, https://carbondesignsystem.com/components/button/style/ (sections "interactive state color", opened 2026-11-25), gives every button variant a hover token. Forcing :hover and comparing computed looks is our claim; no number is used as a cutoff (H9).
|
|
233
|
+
measure: states.hover
|
|
234
|
+
when_to_break: >-
|
|
235
|
+
A dense list that hovers the row and not each control in it, declared with break-a-rule first (US2).
|
|
236
|
+
break_effect: >-
|
|
237
|
+
The screen stays calm under a moving pointer and the row is the unit the person acts on.
|
|
238
|
+
test: >-
|
|
239
|
+
check-design forces :hover on one control per distinct look and lists the looks whose computed look did not change. Hint when any is listed; the message says only what was checked. The reviewer points at every listed control, since a script or a parent may give it a hover the measurer does not see.
|
|
240
|
+
example: >-
|
|
241
|
+
A button whose background darkens one step under the pointer and a link that gains an underline.
|
|
242
|
+
counterexample: >-
|
|
243
|
+
A button that looks exactly the same with the pointer on it.
|
|
244
|
+
|
|
245
|
+
- id: UR10
|
|
246
|
+
name: Pressed changes the look of every control
|
|
247
|
+
area: ui
|
|
248
|
+
moment: review
|
|
249
|
+
skill: lazuli-ui-states-and-system
|
|
250
|
+
rule: >-
|
|
251
|
+
Check that each distinct look of a button or link changes when :active is forced on it, on the same properties UR9 reads. :active is forced alone, without :hover, so a pressed look written only for hover and active together (:hover:active) is not seen; the reviewer presses those controls by hand. Looks are read at rest (running animations finished or stopped), so a hover or press shown only by an animation is not seen, and motion driven by requestAnimationFrame (GSAP and similar) cannot be stopped and may be read mid-frame.
|
|
252
|
+
why: >-
|
|
253
|
+
The press is the moment the person commits; a look that answers at that instant tells them the control took it (US4).
|
|
254
|
+
origin: hypothesis
|
|
255
|
+
status: hypothesis
|
|
256
|
+
hypothesis: H10
|
|
257
|
+
source: >-
|
|
258
|
+
Our claim, not verified yet. Context from opened pages: Carbon Design System, Button style, https://carbondesignsystem.com/components/button/style/ (sections "interactive state color", opened 2026-11-25), gives primary, secondary and danger buttons an active token distinct from hover; Nielsen Norman Group, "Progress Indicators Make a Slow System Less Insufferable", https://www.nngroup.com/articles/progress-indicators/ (opening section, opened 2026-11-25), asks for a visual response as soon as the person acts. Forcing :active and comparing computed looks is our claim; no number is used as a cutoff (H10).
|
|
259
|
+
measure: states.active
|
|
260
|
+
when_to_break: >-
|
|
261
|
+
A control whose result appears at once in place (a checkbox ticking, a switch flipping), declared with break-a-rule first (US4).
|
|
262
|
+
break_effect: >-
|
|
263
|
+
The interface feels lighter, with one change per action instead of two.
|
|
264
|
+
test: >-
|
|
265
|
+
check-design forces :active alone on one control per distinct look and lists the looks whose computed look did not change. Hint when any is listed. The report notes that :active is forced alone, and the reviewer presses the listed controls.
|
|
266
|
+
example: >-
|
|
267
|
+
A button whose fill goes one step darker than its hover fill while pressed.
|
|
268
|
+
counterexample: >-
|
|
269
|
+
A button with a hover color and nothing that changes while it is pressed.
|
|
270
|
+
|
|
271
|
+
- id: UR11
|
|
272
|
+
name: Disabled does not look enabled
|
|
273
|
+
area: ui
|
|
274
|
+
moment: review
|
|
275
|
+
skill: lazuli-ui-states-and-system
|
|
276
|
+
rule: >-
|
|
277
|
+
Check that every disabled button or field (the disabled attribute or aria-disabled) looks different from an enabled control of the same kind on the same page. The reviewer then checks the label stays readable and that the page says why it is disabled (US5).
|
|
278
|
+
why: >-
|
|
279
|
+
A disabled control that looks enabled invites a press that does nothing, and the person blames the page or themselves.
|
|
280
|
+
origin: hypothesis
|
|
281
|
+
status: hypothesis
|
|
282
|
+
hypothesis: H11
|
|
283
|
+
source: >-
|
|
284
|
+
Our claim, not verified yet. Context from opened pages: GOV.UK Design System, Button, https://design-system.service.gov.uk/components/button/ (section "Disabled buttons", opened 2026-11-25), on the confusion disabled buttons cause; WAI-ARIA 1.2, https://www.w3.org/TR/wai-aria-1.2/ (section "aria-disabled state", opened 2026-11-25), a disabled element is perceivable but not operable. Comparing the computed look with an enabled peer of the same kind is our claim; no number is used as a cutoff (H11).
|
|
285
|
+
measure: states.disabled
|
|
286
|
+
when_to_break: >-
|
|
287
|
+
None for the look: a control that cannot be used should never pass for one that can. Keeping the control enabled and explaining what is missing is the better path (US5).
|
|
288
|
+
break_effect: >-
|
|
289
|
+
Not applicable; the rule is kept.
|
|
290
|
+
test: >-
|
|
291
|
+
check-design compares each disabled control with an enabled control of the same kind and lists those whose computed look is identical. Hint when any is listed. Silent when the page has no disabled control or no enabled peer; the report notes what was missing.
|
|
292
|
+
example: >-
|
|
293
|
+
A disabled Pay button in a muted fill next to an enabled Back button in the full brand fill.
|
|
294
|
+
counterexample: >-
|
|
295
|
+
A disabled button with the same fill, border and text color as the enabled one.
|
|
296
|
+
|
|
297
|
+
- id: UR12
|
|
298
|
+
name: An invalid field does not look valid
|
|
299
|
+
area: ui
|
|
300
|
+
moment: review
|
|
301
|
+
skill: lazuli-ui-states-and-system
|
|
302
|
+
rule: >-
|
|
303
|
+
Check that every field marked aria-invalid looks different from a valid field on the same page. A different look alone is not enough: the error also needs words and a second channel next to the field, never color alone (ES2), which the reviewer checks (US8).
|
|
304
|
+
why: >-
|
|
305
|
+
A field in error that looks like the others hides where the problem is, so the person reads the whole form to find it.
|
|
306
|
+
origin: hypothesis
|
|
307
|
+
status: hypothesis
|
|
308
|
+
hypothesis: H12
|
|
309
|
+
source: >-
|
|
310
|
+
Our claim, not verified yet. Context from opened pages: WAI-ARIA 1.2, https://www.w3.org/TR/wai-aria-1.2/ (section "aria-invalid state", opened 2026-11-25), on when a value is marked invalid; GOV.UK Design System, Error message, https://design-system.service.gov.uk/components/error-message/ (section "How it works", opened 2026-11-25), on showing the message with the field. Comparing the computed look with a valid field is our claim; no number is used as a cutoff (H12).
|
|
311
|
+
measure: states.invalid
|
|
312
|
+
when_to_break: >-
|
|
313
|
+
A form of one or two fields that shows one message for the form, declared with break-a-rule first (US8); the field still differs from a valid one.
|
|
314
|
+
break_effect: >-
|
|
315
|
+
The screen stays compact, at the cost of the person working out which field the message means.
|
|
316
|
+
test: >-
|
|
317
|
+
check-design compares each aria-invalid field with valid, enabled fields and lists those whose computed look is identical. Hint when any is listed. Silent when the rendered page holds no invalid field; the error state is staged as US8 says. The reviewer checks the message and its second channel (ES2).
|
|
318
|
+
example: >-
|
|
319
|
+
An email field in error with a red border and an icon, next to valid fields with a gray border.
|
|
320
|
+
counterexample: >-
|
|
321
|
+
An aria-invalid field with the same border as every other field and a message at the top of the form.
|
|
322
|
+
|
|
323
|
+
- id: UR13
|
|
324
|
+
name: The same component looks the same on every screen
|
|
325
|
+
area: ui
|
|
326
|
+
moment: review
|
|
327
|
+
skill: lazuli-ui-states-and-system
|
|
328
|
+
rule: >-
|
|
329
|
+
Run check-design on several screens of one product and check that each component found on two or more of them has the same color, type, radius, border, padding and shadow on each. Identity is the kind plus the text: the "Get started" button is one component whatever its class names. Components the kit cannot match by text are named with data-component. Limits: buttons and links with no text or label (icon buttons) are not matched; headings are matched by level (every h1 with every h1), whatever their text, so a hero h1 set apart on purpose on the home page reads as a difference, a hint to keep through break-a-rule and not a defect; two different components with the same kind and text (the same link text in the header and the footer) are one until marked with data-component; fields with no name, id or placeholder are matched with every other such field of the same type; a current-page marker made with a class alone, without aria-current, reads as a difference.
|
|
330
|
+
why: >-
|
|
331
|
+
The person learns a component once and recognizes it everywhere; the same button with another radius on the next screen reads as another action or as a careless product (US10).
|
|
332
|
+
origin: hypothesis
|
|
333
|
+
status: hypothesis
|
|
334
|
+
hypothesis: H13
|
|
335
|
+
source: >-
|
|
336
|
+
Our claim, not verified yet. Context from an opened page: Nielsen Norman Group, consistency and standards article, https://www.nngroup.com/articles/consistency-and-standards/ (section "Internal Consistency", opened 2026-11-25), asks a product to use the same patterns throughout. Identity by kind and text, headings by level, and the comparison of computed looks are our claim; no number is used as a cutoff (H13).
|
|
337
|
+
measure: coherence.same-component
|
|
338
|
+
when_to_break: >-
|
|
339
|
+
A campaign screen that restyles a component on purpose, or a home page hero heading set apart from the inner pages, declared with break-a-rule first (US10).
|
|
340
|
+
break_effect: >-
|
|
341
|
+
The screen stands out from the rest of the product as an event, so the person notices it is special.
|
|
342
|
+
test: >-
|
|
343
|
+
check-design with two or more screens (more targets, or --site for the Target lines in LAZULI.md) lists each component whose look differs between screens, with the property and its value on each screen. Hint when any differs. Silent with one screen; the report says when the screens given were the same page.
|
|
344
|
+
example: >-
|
|
345
|
+
The "Get started" button with the same fill, radius and type on the home page and the pricing page, written with different class lists.
|
|
346
|
+
counterexample: >-
|
|
347
|
+
The "Get started" button rounded 8 px on the home page and 4 px on the pricing page.
|
|
348
|
+
|
|
349
|
+
- id: UR14
|
|
350
|
+
name: Few looks per kind across the screens
|
|
351
|
+
area: ui
|
|
352
|
+
moment: review
|
|
353
|
+
skill: lazuli-ui-states-and-system
|
|
354
|
+
rule: >-
|
|
355
|
+
Run check-design on several screens and check that buttons and fields keep to a small set of looks across them. Every visible, enabled button and field counts, named or not; disabled, invalid and current ones are states, not looks. More looks than the cutoff asks whether each was chosen and logged (US11).
|
|
356
|
+
why: >-
|
|
357
|
+
A few variants with a clear job keep the hierarchy readable; a new look for every screen dilutes it until no action leads.
|
|
358
|
+
origin: hypothesis
|
|
359
|
+
status: hypothesis
|
|
360
|
+
hypothesis: H14
|
|
361
|
+
source: >-
|
|
362
|
+
Our claim, not verified yet. Context from an opened page: Carbon Design System, Button usage, https://carbondesignsystem.com/components/button/usage/ (sections on variants and emphasis, opened 2026-11-25), on a clear hierarchy among button variants. The cutoff is a round starting value set before any page was measured; the H14 row says how and lists what was observed afterwards, which is not evidence.
|
|
363
|
+
measure: coherence.variants
|
|
364
|
+
threshold: { maxLooks: 3 }
|
|
365
|
+
when_to_break: >-
|
|
366
|
+
A product with many kinds of action (an editor, a dashboard) that logged more variants, each with its job, declared with break-a-rule first (US11).
|
|
367
|
+
break_effect: >-
|
|
368
|
+
The interface can say more kinds of action, at the cost of the person learning more looks.
|
|
369
|
+
test: >-
|
|
370
|
+
check-design with two or more screens counts the distinct computed looks of buttons and of fields across them. Hint when a kind has more looks than the cutoff, listing each look by the text of its first named element, its count and the properties that differ. The reviewer compares the looks with the variants logged in LAZULI.md.
|
|
371
|
+
example: >-
|
|
372
|
+
Buttons in three looks (filled, outlined, text only) across five screens, each logged with its job.
|
|
373
|
+
counterexample: >-
|
|
374
|
+
Seven button looks across five screens, none logged.
|
|
375
|
+
|
|
376
|
+
- id: UR15
|
|
377
|
+
name: Loading, empty, error and success are staged and reviewed
|
|
378
|
+
area: ui
|
|
379
|
+
moment: review
|
|
380
|
+
skill: lazuli-ui-states-and-system
|
|
381
|
+
rule: >-
|
|
382
|
+
Review the loading, empty, error and success states of every component that has them (US6 to US9) on staged renders: the agent stages each through the app's own means (a query string, mocked data, a story, a dev flag), runs check-design and capture on each staged render, and the reviewer judges the captures. A state that could not be staged is reported as not checked, never as passed.
|
|
383
|
+
why: >-
|
|
384
|
+
These states appear only with app data, so a review of the default render alone never sees them, and they are where a person is most often lost.
|
|
385
|
+
origin: hypothesis
|
|
386
|
+
status: hypothesis
|
|
387
|
+
hypothesis: H15
|
|
388
|
+
source: >-
|
|
389
|
+
Our claim, not verified yet. That staging each state through the app's own means and reviewing the captures catches what the default render hides is our claim; no number is used as a cutoff (H15).
|
|
390
|
+
when_to_break: >-
|
|
391
|
+
A static page with no data (a portfolio, a landing page) has no such states to stage.
|
|
392
|
+
break_effect: >-
|
|
393
|
+
Not applicable; the review covers what the page has.
|
|
394
|
+
test: >-
|
|
395
|
+
Staged: the CLI cannot produce this state. The review lists each of the four states for each component that has them, with the capture of its staged render or the words "not checked" and the reason. The reviewer judges each capture against US6 to US9.
|
|
396
|
+
example: >-
|
|
397
|
+
A review of an order list with captures of its loading, empty, error and success renders, each staged with a query string.
|
|
398
|
+
counterexample: >-
|
|
399
|
+
A review that approves the order list from its default render, with no word on the other states.
|