@uselazuli/cli 0.0.0-stage → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +120 -0
- package/LICENSE +21 -0
- package/README.md +202 -2
- package/agents/lazuli-design-reviewer.md +30 -0
- package/agents/lazuli-first-look.md +22 -0
- package/agents/lazuli-task-tester.md +25 -0
- package/bin/lazuli.mjs +747 -0
- package/package.json +11 -4
- package/rules/accessibility/HYPOTHESES.md +8 -0
- package/rules/accessibility/_area.yaml +7 -0
- package/rules/accessibility/operable.yaml +100 -0
- package/rules/accessibility/perceivable.yaml +153 -0
- package/rules/accessibility/robust.yaml +24 -0
- package/rules/accessibility/understandable.yaml +72 -0
- package/rules/color/HYPOTHESES.md +27 -0
- package/rules/color/_area.yaml +10 -0
- package/rules/color/adapt.yaml +183 -0
- package/rules/color/create.yaml +259 -0
- package/rules/color/review.yaml +215 -0
- package/rules/color/signal.yaml +196 -0
- package/rules/content/HYPOTHESES.md +19 -0
- package/rules/content/_area.yaml +8 -0
- package/rules/content/review.yaml +378 -0
- package/rules/content/voice.yaml +144 -0
- package/rules/content/writing.yaml +202 -0
- package/rules/data/HYPOTHESES.md +11 -0
- package/rules/data/_area.yaml +7 -0
- package/rules/data/charts.yaml +189 -0
- package/rules/data/dashboards.yaml +141 -0
- package/rules/data/review.yaml +159 -0
- package/rules/graphic/HYPOTHESES.md +18 -0
- package/rules/graphic/_area.yaml +8 -0
- package/rules/graphic/identity.yaml +141 -0
- package/rules/graphic/pieces.yaml +164 -0
- package/rules/graphic/review.yaml +271 -0
- package/rules/graphic/symbol.yaml +141 -0
- package/rules/motion/HYPOTHESES.md +19 -0
- package/rules/motion/_area.yaml +7 -0
- package/rules/motion/micro.yaml +143 -0
- package/rules/motion/review.yaml +347 -0
- package/rules/motion/transitions.yaml +169 -0
- package/rules/typography/HYPOTHESES.md +12 -0
- package/rules/typography/_area.yaml +8 -0
- package/rules/typography/adapt.yaml +45 -0
- package/rules/typography/create.yaml +126 -0
- package/rules/typography/review.yaml +127 -0
- package/rules/ui/HYPOTHESES.md +23 -0
- package/rules/ui/_area.yaml +9 -0
- package/rules/ui/compose.yaml +246 -0
- package/rules/ui/grid.yaml +75 -0
- package/rules/ui/review.yaml +400 -0
- package/rules/ui/states.yaml +257 -0
- package/rules/ux/HYPOTHESES.md +13 -0
- package/rules/ux/_area.yaml +8 -0
- package/rules/ux/flows.yaml +164 -0
- package/rules/ux/forms.yaml +142 -0
- package/rules/ux/review.yaml +186 -0
- package/skills/lazuli/SKILL.md +183 -0
- package/skills/lazuli/procedures/create.md +29 -0
- package/skills/lazuli/procedures/explain-decisions.md +22 -0
- package/skills/lazuli/procedures/improve.md +30 -0
- package/skills/lazuli/procedures/remember-this.md +41 -0
- package/skills/lazuli/procedures/review-design.md +36 -0
- package/skills/lazuli/procedures/show-options.md +33 -0
- package/skills/lazuli-accessibility-check/SKILL.md +68 -0
- package/skills/lazuli-color-context-and-culture/SKILL.md +53 -0
- package/skills/lazuli-color-context-and-culture/references/sectors.md +26 -0
- package/skills/lazuli-color-palette-by-intent/SKILL.md +54 -0
- package/skills/lazuli-color-palette-by-intent/references/intent-chords.md +51 -0
- package/skills/lazuli-color-screen-review/SKILL.md +51 -0
- package/skills/lazuli-color-states-and-signals/SKILL.md +53 -0
- package/skills/lazuli-content-interface-writing/SKILL.md +53 -0
- package/skills/lazuli-content-voice/SKILL.md +40 -0
- package/skills/lazuli-data-charts-and-dashboards/SKILL.md +59 -0
- package/skills/lazuli-graphic-derived-pieces/SKILL.md +40 -0
- package/skills/lazuli-graphic-derived-pieces/references/piece-template.html +24 -0
- package/skills/lazuli-graphic-identity/SKILL.md +45 -0
- package/skills/lazuli-motion-micro-and-transitions/SKILL.md +49 -0
- package/skills/lazuli-typography-choose-and-pair/SKILL.md +50 -0
- package/skills/lazuli-typography-screen-review/SKILL.md +51 -0
- package/skills/lazuli-ui-composition/SKILL.md +42 -0
- package/skills/lazuli-ui-composition/references/option-template.html +34 -0
- package/skills/lazuli-ui-layout-review/SKILL.md +47 -0
- package/skills/lazuli-ui-states-and-system/SKILL.md +54 -0
- package/skills/lazuli-ux-flows-and-forms/SKILL.md +51 -0
- package/skills/lazuli-ux-task-test/SKILL.md +44 -0
- package/src/browser.mjs +162 -0
- package/src/commands/capture.mjs +313 -0
- package/src/commands/catalog.mjs +37 -0
- package/src/commands/check-design.mjs +463 -0
- package/src/commands/check-goals.mjs +57 -0
- package/src/commands/compare-designs.mjs +160 -0
- package/src/commands/draft-memo.mjs +162 -0
- package/src/commands/hooks.mjs +345 -0
- package/src/commands/install-hooks.mjs +120 -0
- package/src/commands/install.mjs +132 -0
- package/src/commands/list-rules.mjs +49 -0
- package/src/commands/map-page.mjs +594 -0
- package/src/commands/record-answers.mjs +79 -0
- package/src/commands/record-log.mjs +325 -0
- package/src/commands/record-task.mjs +250 -0
- package/src/commands/render-options.mjs +227 -0
- package/src/commands/start-project.mjs +32 -0
- package/src/measure/a11y.mjs +391 -0
- package/src/measure/asset.mjs +206 -0
- package/src/measure/at-rest.mjs +49 -0
- package/src/measure/cases.mjs +566 -0
- package/src/measure/chart-read.mjs +401 -0
- package/src/measure/chart.mjs +264 -0
- package/src/measure/coherence.mjs +145 -0
- package/src/measure/color.mjs +86 -0
- package/src/measure/content.mjs +82 -0
- package/src/measure/cvd.mjs +24 -0
- package/src/measure/extreme.mjs +241 -0
- package/src/measure/forms.mjs +150 -0
- package/src/measure/in-page/a11y.js +522 -0
- package/src/measure/in-page/color.js +348 -0
- package/src/measure/in-page/composition.js +1496 -0
- package/src/measure/in-page/contrast.js +15 -0
- package/src/measure/in-page/cvd.js +173 -0
- package/src/measure/in-page/extreme.js +377 -0
- package/src/measure/in-page/frames.js +781 -0
- package/src/measure/in-page/look.js +28 -0
- package/src/measure/in-page/motion-probe.js +171 -0
- package/src/measure/in-page/style.js +107 -0
- package/src/measure/in-page/svg-strokes.js +112 -0
- package/src/measure/in-page/svg-uses.js +50 -0
- package/src/measure/in-page/symbol.js +123 -0
- package/src/measure/in-page/type.js +269 -0
- package/src/measure/in-page/weight.js +207 -0
- package/src/measure/layout.mjs +100 -0
- package/src/measure/motion.mjs +509 -0
- package/src/measure/piece.mjs +195 -0
- package/src/measure/registry.mjs +253 -0
- package/src/measure/rhythm.mjs +81 -0
- package/src/measure/signature.mjs +65 -0
- package/src/measure/states.mjs +240 -0
- package/src/measure/style.mjs +13 -0
- package/src/measure/symbol.mjs +268 -0
- package/src/measure/terms.mjs +153 -0
- package/src/measure/tiles.mjs +20 -0
- package/src/measure/timeline.mjs +621 -0
- package/src/measure/type.mjs +167 -0
- package/src/measure/weight.mjs +18 -0
- package/src/private-strings.mjs +81 -0
- package/src/project/blind.mjs +70 -0
- package/src/project/edits.mjs +154 -0
- package/src/project/gate.mjs +168 -0
- package/src/project/lazuli-md.mjs +521 -0
- package/src/project/log.mjs +335 -0
- package/src/project/match.mjs +200 -0
- package/src/project/records.mjs +380 -0
- package/src/project/tasks.mjs +153 -0
- package/src/report/evaluate.mjs +27 -0
- package/src/report/evaluators/a11y.mjs +227 -0
- package/src/report/evaluators/chart.mjs +151 -0
- package/src/report/evaluators/coherence.mjs +103 -0
- package/src/report/evaluators/color.mjs +133 -0
- package/src/report/evaluators/content.mjs +112 -0
- package/src/report/evaluators/extreme.mjs +87 -0
- package/src/report/evaluators/forms.mjs +116 -0
- package/src/report/evaluators/layout.mjs +103 -0
- package/src/report/evaluators/motion.mjs +280 -0
- package/src/report/evaluators/piece.mjs +69 -0
- package/src/report/evaluators/rhythm.mjs +99 -0
- package/src/report/evaluators/states.mjs +39 -0
- package/src/report/evaluators/style.mjs +35 -0
- package/src/report/evaluators/symbol.mjs +110 -0
- package/src/report/evaluators/terms.mjs +49 -0
- package/src/report/evaluators/type.mjs +166 -0
- package/src/report/evaluators/weight.mjs +51 -0
- package/src/report/evidence.mjs +4 -0
- package/src/report/finding.mjs +11 -0
- package/src/report/format.mjs +215 -0
- package/src/rules/hypotheses.mjs +28 -0
- package/src/rules/load.mjs +274 -0
- package/src/rules/public-text.mjs +56 -0
- package/src/rules/schema.mjs +220 -0
- package/templates/LAZULI.md +88 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# Recorded motion checks. check-design records the page's own timeline at the first width of a run (the
|
|
2
|
+
# animation inventory, long frames, layout shifts, frames and gradient clips, and a run with reduced motion
|
|
3
|
+
# asked for) and these rules read it. MR1 to MR11 are hypotheses with their own ids in HYPOTHESES.md and
|
|
4
|
+
# give a hint, never a verdict. MR12 and MR13 are WCAG 2.2 Level A criteria, norms that a declared break
|
|
5
|
+
# never waives. The post-edit hook leaves this area out: run check-design --area motion after motion work.
|
|
6
|
+
|
|
7
|
+
- id: MR1
|
|
8
|
+
name: Microinteractions finish quickly
|
|
9
|
+
area: motion
|
|
10
|
+
moment: review
|
|
11
|
+
skill: lazuli-motion-micro-and-transitions
|
|
12
|
+
rule: >-
|
|
13
|
+
Check that every microinteraction (an animation started by a hover, a focus or a click on the element it answers) ends within the cutoff of H1, delay and every iteration included (MI2).
|
|
14
|
+
why: >-
|
|
15
|
+
Feedback that outlasts the action makes a fast person wait and reads as a slow interface. (our claim)
|
|
16
|
+
origin: hypothesis
|
|
17
|
+
status: hypothesis
|
|
18
|
+
hypothesis: H1
|
|
19
|
+
source: >-
|
|
20
|
+
Our claim: the cutoff is the round starting value of H1, set before any page was measured; the H1 row says how and lists what was observed afterwards, which is not evidence.
|
|
21
|
+
measure: motion.micro-duration
|
|
22
|
+
threshold: { maxMs: 400 }
|
|
23
|
+
when_to_break: >-
|
|
24
|
+
A microinteraction that reports a slow result (an upload that finishes) may play longer, declared with break-a-rule first, as long as the control stays usable while it plays.
|
|
25
|
+
break_effect: >-
|
|
26
|
+
The result gets a moment of its own, and nothing waits on it because the control is free.
|
|
27
|
+
test: >-
|
|
28
|
+
The recorder hovers and focuses the first first-view controls on every page and clicks disclosure controls on a local page only. An animation counts for this rule when it starts within STEP_WINDOW_MS of the step on the element the step acted on, an element inside it or one that holds it; anything else that starts during a step is not judged by any duration (a note counts it). Its length is delay plus duration times iterations, read from the Web Animations API; the reverse transition after the pointer leaves counts once; endless animations and animations linked to scroll (animation-timeline), which have no length, are not judged. Hint when one is longer than the cutoff, pass when every one is within it, nothing when no microinteraction was recorded. Motion driven by script (requestAnimationFrame, canvas, video) is not in the API, so its length is not read.
|
|
29
|
+
example: >-
|
|
30
|
+
A button whose hover lift uses the shortest duration token of the vocabulary.
|
|
31
|
+
counterexample: >-
|
|
32
|
+
A card whose hover zoom plays for most of a second before the card can be read.
|
|
33
|
+
|
|
34
|
+
- id: MR2
|
|
35
|
+
name: Transitions and entrances end soon, stagger included
|
|
36
|
+
area: motion
|
|
37
|
+
moment: review
|
|
38
|
+
skill: lazuli-motion-micro-and-transitions
|
|
39
|
+
rule: >-
|
|
40
|
+
Check that every transition and entrance that runs at load or after a scroll, stagger included, ends within the cutoff of H2 (MT4).
|
|
41
|
+
why: >-
|
|
42
|
+
Content that is ready but still on its way in makes the person wait for the motion. (our claim)
|
|
43
|
+
origin: hypothesis
|
|
44
|
+
status: hypothesis
|
|
45
|
+
hypothesis: H2
|
|
46
|
+
source: >-
|
|
47
|
+
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.
|
|
48
|
+
measure: motion.transition-duration
|
|
49
|
+
threshold: { maxMs: 1000 }
|
|
50
|
+
when_to_break: >-
|
|
51
|
+
A brand opening that is the content may run longer, declared with break-a-rule first, with a way to skip it.
|
|
52
|
+
break_effect: >-
|
|
53
|
+
The opening is watched as intended, and anyone in a hurry skips it.
|
|
54
|
+
test: >-
|
|
55
|
+
Each finite animation that starts in the load window or within STEP_WINDOW_MS of the scripted scroll, other than one linked to scroll (animation-timeline), which has no length, is measured as delay plus duration times iterations, so the last item of a stagger carries the whole stagger in its delay. Hint when one is longer than the cutoff, pass when every one is within it, nothing when none was recorded. The load window ends early after QUIET_MS with no animation, so an animation that starts later is not read (the report says when the recording ended); a stagger made of script timers is read per animation; script motion is not read.
|
|
56
|
+
example: >-
|
|
57
|
+
A list whose items arrive a short step apart, the last one in place soon after the first.
|
|
58
|
+
counterexample: >-
|
|
59
|
+
A grid of thirty products where each item waits for the previous one.
|
|
60
|
+
|
|
61
|
+
- id: MR3
|
|
62
|
+
name: Finite movement eases
|
|
63
|
+
area: motion
|
|
64
|
+
moment: review
|
|
65
|
+
skill: lazuli-motion-micro-and-transitions
|
|
66
|
+
rule: >-
|
|
67
|
+
Check that no finite animation that moves an element runs at constant speed (MT3).
|
|
68
|
+
why: >-
|
|
69
|
+
Constant speed on a move that starts and stops looks mechanical. (our claim)
|
|
70
|
+
origin: hypothesis
|
|
71
|
+
status: hypothesis
|
|
72
|
+
hypothesis: H3
|
|
73
|
+
source: >-
|
|
74
|
+
Our claim, a hint only (H3): no number is used as a cutoff; the H3 row says what is read.
|
|
75
|
+
measure: motion.easing
|
|
76
|
+
when_to_break: >-
|
|
77
|
+
A mechanical brand may move at constant speed on purpose, declared with break-a-rule first.
|
|
78
|
+
break_effect: >-
|
|
79
|
+
The motion reads as the brand's machine, at the cost of looking stiff wherever it is not expected.
|
|
80
|
+
test: >-
|
|
81
|
+
For each finite animation that changes a move property (transform, translate, scale, rotate, the inset properties, offset-distance), the curve is read from the Web Animations API: the effect's easing, or the keyframes' common easing when the effect is linear. Hint naming each one whose curve is linear or cubic-bezier(0, 0, 1, 1); pass when none is; nothing when no finite move was recorded. The CSS linear() function with stops is not read as constant speed; endless loops are not judged; script motion is not read; an animation linked to scroll (animation-timeline) is not judged and is counted in a note.
|
|
82
|
+
example: >-
|
|
83
|
+
A toast that enters with the vocabulary's entering curve.
|
|
84
|
+
counterexample: >-
|
|
85
|
+
A modal that slides up at constant speed and stops abruptly.
|
|
86
|
+
|
|
87
|
+
- id: MR4
|
|
88
|
+
name: Animate no layout property
|
|
89
|
+
area: motion
|
|
90
|
+
moment: review
|
|
91
|
+
skill: lazuli-motion-micro-and-transitions
|
|
92
|
+
rule: >-
|
|
93
|
+
Check that no recorded animation changes a property that lays the page out again (MI4).
|
|
94
|
+
why: >-
|
|
95
|
+
Layout properties make the browser lay out and paint again on every frame, while opacity and transform can stay on the compositing stage.
|
|
96
|
+
origin: source
|
|
97
|
+
status: hypothesis
|
|
98
|
+
hypothesis: H4
|
|
99
|
+
source: >-
|
|
100
|
+
web.dev, How to create high-performance CSS animations, https://web.dev/articles/animations-guide (sections "Avoid properties that trigger layout or paint" and "Animate at the composite stage", opened 2026-11-26): avoid any property that triggers layout or paint unless it is absolutely necessary; where possible, restrict animations to opacity and transform. Our claim, beyond the page: that the LAYOUT_PROPS list read here is the set to avoid, and that a finding on a recorded animation is a useful hint (H4); the page names no list and no check.
|
|
101
|
+
measure: motion.properties
|
|
102
|
+
when_to_break: >-
|
|
103
|
+
An accordion that must push the content below it may animate its height, declared with break-a-rule first, on a small element with nothing heavy below.
|
|
104
|
+
break_effect: >-
|
|
105
|
+
The content below follows the panel smoothly, at the cost of a layout pass on every frame.
|
|
106
|
+
test: >-
|
|
107
|
+
Each recorded animation's properties are compared with LAYOUT_PROPS (sizes, insets, margins, paddings, border widths, font-size, line-height, letter-spacing, flex-basis, grid template sizes). Hint naming each animation and its layout properties; pass when none has one; nothing when no animation was recorded. Paint-only properties (color, background, shadow) are not named; script motion is not read.
|
|
108
|
+
example: >-
|
|
109
|
+
A card that lifts on hover with transform and fades its shadow through opacity.
|
|
110
|
+
counterexample: >-
|
|
111
|
+
A side menu that slides in by animating left.
|
|
112
|
+
|
|
113
|
+
- id: MR5
|
|
114
|
+
name: Not every entrance is the same animation
|
|
115
|
+
area: motion
|
|
116
|
+
moment: review
|
|
117
|
+
skill: lazuli-motion-micro-and-transitions
|
|
118
|
+
rule: >-
|
|
119
|
+
Check that the entrances of the page are not all one animation, the default the kit author's internal product plan names: "everything appears with the same fade" (MT2).
|
|
120
|
+
why: >-
|
|
121
|
+
One fade for every element says nothing about what each element is and reads as no decision at all. (our claim)
|
|
122
|
+
origin: hypothesis
|
|
123
|
+
status: hypothesis
|
|
124
|
+
hypothesis: H5
|
|
125
|
+
source: >-
|
|
126
|
+
Our claim: the default line comes from the kit author's internal product plan (award level for motion: default "everything appears with the same fade"); the cutoff is the round starting value of H5, set before any page was measured.
|
|
127
|
+
measure: motion.sameness
|
|
128
|
+
threshold: { minEntrances: 3 }
|
|
129
|
+
when_to_break: >-
|
|
130
|
+
A quiet brand may decide on one restrained entrance for everything, declared with break-a-rule first and logged with record-decision.
|
|
131
|
+
break_effect: >-
|
|
132
|
+
The page stays calm and consistent, at the cost of motion telling the roles apart.
|
|
133
|
+
test: >-
|
|
134
|
+
An entrance is a finite animation at load or after the scroll, not linked to scroll (animation-timeline), where opacity rises or a move property returns to rest. Two entrances are the same animation when they change the same properties between the same values over the same duration with the same curve; delay and name do not count, so a stagger of one fade is one animation. With at least minEntrances entrances, hint when all of them are one animation and pass when they differ; with fewer, nothing. Whether they differ by role and carry the brand is judged by the reviewer from the filmstrip (MR11), never by this count.
|
|
135
|
+
example: >-
|
|
136
|
+
A heading that rises, a figure revealed by a mask and list items that arrive from the side.
|
|
137
|
+
counterexample: >-
|
|
138
|
+
Heading, image, buttons and footer all fade in the same way.
|
|
139
|
+
|
|
140
|
+
- id: MR6
|
|
141
|
+
name: No long frames while the page moves
|
|
142
|
+
area: motion
|
|
143
|
+
moment: review
|
|
144
|
+
skill: lazuli-motion-micro-and-transitions
|
|
145
|
+
rule: >-
|
|
146
|
+
Check that no frame takes longer than the cutoff of H6 while the page loads and the scripted steps run.
|
|
147
|
+
why: >-
|
|
148
|
+
A long frame freezes every animation on the page and delays the answer to the person's action. (our claim)
|
|
149
|
+
origin: hypothesis
|
|
150
|
+
status: hypothesis
|
|
151
|
+
hypothesis: H6
|
|
152
|
+
source: >-
|
|
153
|
+
Our claim: the cutoff is the round starting value of H6, set before any page was measured. Chrome for Developers, Long Animation Frames API, https://developer.chrome.com/docs/web-platform/long-animation-frames (sections "Background: the Long Tasks API" and "The Long Animation Frames API", opened 2026-11-26): a long animation frame is a rendering update delayed beyond 50 milliseconds, the same threshold as the Long Tasks API; that page sets the floor of what is reported, not the cutoff.
|
|
154
|
+
measure: motion.long-frames
|
|
155
|
+
threshold: { maxFrameMs: 100 }
|
|
156
|
+
when_to_break: >-
|
|
157
|
+
A heavy first paint that no person can use yet (a loader screen) may hold a long frame, declared with break-a-rule first.
|
|
158
|
+
break_effect: >-
|
|
159
|
+
The page gets its heavy work done in one go, at the cost of a frozen moment.
|
|
160
|
+
test: >-
|
|
161
|
+
Long frames come from a PerformanceObserver of type long-animation-frame (longtask when unsupported, named in the report) in the run that captures no pixels, from load to the end of the steps. They are judged with TIMING_TOLERANCE_MS: hint when a frame is longer than the cutoff plus the tolerance (above 150 ms), nothing and a note when the longest is within the tolerance of the cutoff (from 50 to 150 ms), pass only when no frame over 50 ms was reported; the API reports only frames of 50 ms or more, so a pass means no entry above that floor. A reading depends on this machine and its load.
|
|
162
|
+
example: >-
|
|
163
|
+
A page whose load work is split so no frame blocks the first entrances.
|
|
164
|
+
counterexample: >-
|
|
165
|
+
A hero script that parses a large file in one task while the entrance plays.
|
|
166
|
+
|
|
167
|
+
- id: MR7
|
|
168
|
+
name: Nothing jumps
|
|
169
|
+
area: motion
|
|
170
|
+
moment: review
|
|
171
|
+
skill: lazuli-motion-micro-and-transitions
|
|
172
|
+
rule: >-
|
|
173
|
+
Check that the layout shift score of the recorded window stays at or under the cutoff of H7 (MT5).
|
|
174
|
+
why: >-
|
|
175
|
+
A late element that pushes the page moves what the person was reading or about to press.
|
|
176
|
+
origin: hypothesis
|
|
177
|
+
status: hypothesis
|
|
178
|
+
hypothesis: H7
|
|
179
|
+
source: >-
|
|
180
|
+
Our claim, borrowing a published value: web.dev, Cumulative Layout Shift (CLS), https://web.dev/articles/cls (opened 2026-11-26) says sites should strive for a CLS score of 0.1 or less, at the 75th percentile of page loads, and defines a session window as shifts less than 1 second apart, at most 5 seconds in total, the largest window counting. Applying that value to one recorded window with scripted steps on this machine is our claim (H7).
|
|
181
|
+
measure: motion.layout-shift
|
|
182
|
+
threshold: { maxShift: 0.1 }
|
|
183
|
+
when_to_break: >-
|
|
184
|
+
Content whose size cannot be known may grow below the fold, declared with break-a-rule first, as long as nothing above the person's view moves.
|
|
185
|
+
break_effect: >-
|
|
186
|
+
The content takes the space it needs, and the reader's place stays put.
|
|
187
|
+
test: >-
|
|
188
|
+
Layout shifts come from a PerformanceObserver of type layout-shift; shifts with recent input are left out; the score is the largest session window (SHIFT_GAP_MS, SHIFT_WINDOW_MS). Compared to three decimals, with no tolerance: hint above the cutoff, naming the elements that moved most (hidden or clipped sources left out), pass at or under it. The recorder's hover and scroll steps are not input for the API, so a shift they cause counts.
|
|
189
|
+
example: >-
|
|
190
|
+
A hero image with width and height and a reviews panel with a minimum height.
|
|
191
|
+
counterexample: >-
|
|
192
|
+
A banner inserted at the top after load that pushes the heading down.
|
|
193
|
+
|
|
194
|
+
- id: MR8
|
|
195
|
+
name: The screen settles soon after load
|
|
196
|
+
area: motion
|
|
197
|
+
moment: review
|
|
198
|
+
skill: lazuli-motion-micro-and-transitions
|
|
199
|
+
rule: >-
|
|
200
|
+
Check that the screen stops changing within the cutoff of H8 after load.
|
|
201
|
+
why: >-
|
|
202
|
+
A screen that keeps rearranging after load leaves the person waiting before they can read or act. (our claim)
|
|
203
|
+
origin: hypothesis
|
|
204
|
+
status: hypothesis
|
|
205
|
+
hypothesis: H8
|
|
206
|
+
source: >-
|
|
207
|
+
Our claim: the cutoff is the round starting value of H8, set before any page was measured; the H8 row says how and lists what was observed afterwards, which is not evidence.
|
|
208
|
+
measure: motion.settle
|
|
209
|
+
threshold: { maxSettleMs: 1000 }
|
|
210
|
+
when_to_break: >-
|
|
211
|
+
A brand opening that is the content may hold the screen longer, declared with break-a-rule first, with a way to skip it.
|
|
212
|
+
break_effect: >-
|
|
213
|
+
The opening is watched as intended, at the cost of a later start for anyone who came to read.
|
|
214
|
+
test: >-
|
|
215
|
+
Frames captured at FRAME_SCALE over the load window give the last time any cell of CELL_PX frame px changed by more than PIXEL_NOISE levels. Areas that keep moving (moving content and endless animations) are left out with a note, since MR13 judges them. Judged with TIMING_TOLERANCE_MS: hint when the last change is past the cutoff plus the tolerance (after 1050 ms) or when the screen was still changing within QUIET_MS of the end of the recording, nothing and a note within the tolerance (950 to 1050 ms), pass at or before 950 ms. The capture sends no frame while nothing changes; a change that starts after the window is not read.
|
|
216
|
+
example: >-
|
|
217
|
+
A page whose entrances are done and whose fonts are in place well within a second.
|
|
218
|
+
counterexample: >-
|
|
219
|
+
A page whose sections keep sliding in one after another for seconds after load.
|
|
220
|
+
|
|
221
|
+
- id: MR9
|
|
222
|
+
name: Gradients show no bands
|
|
223
|
+
area: motion
|
|
224
|
+
moment: review
|
|
225
|
+
skill: lazuli-motion-micro-and-transitions
|
|
226
|
+
rule: >-
|
|
227
|
+
Check that no gradient in the first view shows flat bands wider than the cutoff of H9.
|
|
228
|
+
why: >-
|
|
229
|
+
A gradient that breaks into visible steps looks cheap and draws the eye to its edges. (our claim)
|
|
230
|
+
origin: hypothesis
|
|
231
|
+
status: hypothesis
|
|
232
|
+
hypothesis: H9
|
|
233
|
+
source: >-
|
|
234
|
+
Our claim: the cutoff is the round starting value of H9, set before any page was measured; the H9 row says how and lists what was observed afterwards, which is not evidence.
|
|
235
|
+
measure: motion.banding
|
|
236
|
+
threshold: { maxBandPx: 32 }
|
|
237
|
+
when_to_break: >-
|
|
238
|
+
A stepped gradient drawn on purpose (posterized art) may show bands, declared with break-a-rule first.
|
|
239
|
+
break_effect: >-
|
|
240
|
+
The steps read as a graphic choice, at the cost of a smooth surface.
|
|
241
|
+
test: >-
|
|
242
|
+
Each visible gradient (at most MAX_GRADIENTS) is clipped losslessly at rest, at device scale 1, back at the top of the page, and read along its axis: neighbor runs at most BAND_LEVELS levels apart per channel are bands, a larger step is a content edge. Hint when a gradient's widest band is wider than the cutoff, pass otherwise, nothing when no gradient was clipped. The clip shows what this browser painted on this machine; another screen, color profile or browser can band differently.
|
|
243
|
+
example: >-
|
|
244
|
+
A long dark gradient with a little noise, smooth at every width.
|
|
245
|
+
counterexample: >-
|
|
246
|
+
A full-width gradient between two close dark tones that shows wide stripes.
|
|
247
|
+
|
|
248
|
+
- id: MR10
|
|
249
|
+
name: Reduced motion stops what moves
|
|
250
|
+
area: motion
|
|
251
|
+
moment: review
|
|
252
|
+
skill: lazuli-motion-micro-and-transitions
|
|
253
|
+
rule: >-
|
|
254
|
+
Check that, with reduced motion asked for, the animations that moved in the default run no longer move (MT6).
|
|
255
|
+
why: >-
|
|
256
|
+
The setting tells the page the person wants motion removed, reduced or replaced; moving parts that keep moving ignore it.
|
|
257
|
+
origin: hypothesis
|
|
258
|
+
status: hypothesis
|
|
259
|
+
hypothesis: H10
|
|
260
|
+
source: >-
|
|
261
|
+
Our claim, borrowing a criterion that is not a norm here: W3C, Understanding SC 2.3.3 Animation from Interactions, https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.html (Level AAA, sections "Intent" and "Techniques", opened 2026-11-26) says some users experience distraction or nausea from animated content and lists C39, using the CSS prefers-reduced-motion query to prevent motion. 2.3.3 is AAA, so this rule is a hypothesis (H10), never a norm, and it applies to every moving animation, not only those triggered by interaction (our claim).
|
|
262
|
+
measure: motion.reduced
|
|
263
|
+
when_to_break: >-
|
|
264
|
+
Motion that is essential to the information may keep a reduced version that still moves, declared with break-a-rule first.
|
|
265
|
+
break_effect: >-
|
|
266
|
+
The information that only motion carries is kept, with the least movement that still shows it.
|
|
267
|
+
test: >-
|
|
268
|
+
Only when something moved in the default run, the page is recorded again with prefers-reduced-motion set to reduce and its inventory compared exactly with the default one, paired by element and animation name. Hint naming each moving animation that still runs with a duration above 0 ms (a reset to 1 ms reads as still moving; one to 0.01 ms rounds to 0 and does not); pass when none does; nothing when nothing moved. A fade that replaces a move is not a move. Script motion cannot be read or stopped by the setting check.
|
|
269
|
+
example: >-
|
|
270
|
+
A carousel that swaps slides with a short fade and stops advancing when reduced motion is set.
|
|
271
|
+
counterexample: >-
|
|
272
|
+
A parallax hero that keeps moving its layers when reduced motion is set.
|
|
273
|
+
|
|
274
|
+
- id: MR11
|
|
275
|
+
name: The motion explains the interface and carries the brand
|
|
276
|
+
area: motion
|
|
277
|
+
moment: review
|
|
278
|
+
skill: lazuli-motion-micro-and-transitions
|
|
279
|
+
rule: >-
|
|
280
|
+
Judge, from the filmstrip and the animation inventory, whether the motion tells where things came from and went, answers what the person did, and moves in a way that belongs to the brand (MI1, MI6, MT1, MT2).
|
|
281
|
+
why: >-
|
|
282
|
+
The award level of the kit author's internal product plan for motion is motion that explains the interface and has the brand's personality; no count can tell that. (our claim)
|
|
283
|
+
origin: hypothesis
|
|
284
|
+
status: hypothesis
|
|
285
|
+
hypothesis: H11
|
|
286
|
+
source: >-
|
|
287
|
+
Our claim: the award row of the kit author's internal product plan for motion (default "everything appears with the same fade", award "motion that explains the interface and has the brand's personality"). Judged in words by the reviewer (H11).
|
|
288
|
+
when_to_break: >-
|
|
289
|
+
A product that decides on almost no motion may skip this, declared with break-a-rule first and logged with record-decision.
|
|
290
|
+
break_effect: >-
|
|
291
|
+
The interface stays still and fast, and the brand speaks through everything but motion.
|
|
292
|
+
test: >-
|
|
293
|
+
The reviewer opens the filmstrip (filmstrip.png, written under .lazuli/motion with one row for the load window and one per scripted step that changed the screen) and the animation inventory in the report, and says in words what each movement explains and whether it carries the brand. This rule has no measure: the CLI never says motion has personality, explains anything or feels good.
|
|
294
|
+
example: >-
|
|
295
|
+
A review that names how the product cards grow into the detail view and why the brand's slow settle suits it.
|
|
296
|
+
counterexample: >-
|
|
297
|
+
A review that calls the motion smooth and delightful without naming a single movement.
|
|
298
|
+
|
|
299
|
+
- id: MR12
|
|
300
|
+
name: Three flashes or below
|
|
301
|
+
area: motion
|
|
302
|
+
moment: review
|
|
303
|
+
skill: lazuli-motion-micro-and-transitions
|
|
304
|
+
rule: >-
|
|
305
|
+
WCAG 2.2 Success Criterion 2.3.1 Three Flashes or Below Threshold (Level A): web pages do not contain anything that flashes more than three times in any one second period, or the flash is below the general flash and red flash thresholds (MT7).
|
|
306
|
+
why: >-
|
|
307
|
+
Flashing can cause seizures in some people.
|
|
308
|
+
origin: norm
|
|
309
|
+
source: >-
|
|
310
|
+
W3C, Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation 12 December 2024, https://www.w3.org/TR/WCAG22/ (Success Criterion 2.3.1, Level A, and the definition "general flash and red flash thresholds", opened 2026-11-26): no more than three general flashes and no more than three red flashes within any one-second period, or a combined area of concurrent flashes of no more than 25% of any 10 degree visual field; a general flash is a pair of opposing changes in relative luminance of 10% or more where the darker image is below 0.80; a red flash is a pair of opposing transitions where one state has R/(R + G + B) of 0.8 or more and the difference is more than 0.2 in the CIE 1976 UCS chromaticity diagram; Note 1 gives a 341 x 256 pixel rectangle at 1024 x 768 as the 10 degree field. W3C, Understanding SC 2.3.1, https://www.w3.org/WAI/WCAG22/Understanding/three-flashes-or-below-threshold.html (section "Intent", opened 2026-11-26): substituting CSS pixels, the combined area becomes 341 x 256 CSS pixels. Reading that field in CSS px of the recorded viewport at any width is our reading.
|
|
311
|
+
measure: motion.flashes
|
|
312
|
+
threshold: { maxFlashes: 3, minLumaChange: 0.1, maxDarkLuma: 0.8, minAreaShare: 0.25, fieldWidth: 341, fieldHeight: 256, redRatio: 0.8, redChange: 0.2 }
|
|
313
|
+
when_to_break: >-
|
|
314
|
+
The criterion's own exception is the only room: a flash below the general flash and red flash thresholds. A declared break never waives this norm.
|
|
315
|
+
break_effect: >-
|
|
316
|
+
No effect is bought by flashing past the threshold.
|
|
317
|
+
test: >-
|
|
318
|
+
What is read: frames captured at FRAME_SCALE over the load window and the scripted steps are read in cells of CELL_PX frame px (32 CSS px); in each cell the mean luminance is followed from peak to valley, and a pair of opposing transitions of at least minLumaChange with the darker state under maxDarkLuma is a general flash, a pair touching a red ratio of redRatio or more with a change over redChange is a red flash (red has no luminance floor); flashes count when the cells that close them at the same time cover more than minAreaShare of a fieldWidth by fieldHeight CSS px field. Fail when more than maxFlashes flashes in one second happen in place. What is not seen: a cell mean can cancel a fine balanced pattern (stripes or a checkerboard finer than a cell), so such a pattern can pass, while the criterion's exception for patterns under 0.1 degree is not applied, so a pattern finer than that is never excused; frames during the scripted scroll and for SCROLL_SETTLE_MS after it are not read for flashes (the scroll is taken as over when the page stops scrolling for one frame); a flash whose cells cross the threshold in neighboring frames (a wipe) is split across frames and may be undercounted; content of period P that moves exactly P/2 per frame can read as flashing; movement of more than MAX_SHIFT_PX frame px between two captured frames, and zoom or rotation, are not recognized as movement. When the flashes over the limit involve movement (cells where a shift was found, or animations that move an element), the result is a hint to check the frames by eye with the filmstrip, never a fail and never a pass; only flashes in place fail. A count over the limit stands even when frames came slowly, since slow frames can only undercount; a count at or under the limit is not judged when frames came less often than one per 1000 / (2 x (maxFlashes + 1)) ms, and a pass says the interval it was read at, so a shorter flash is not seen. Changes within PIXEL_NOISE levels are no change; a pass counts the frames read, and when more than MAX_FRAMES came the later ones were not read (a note says so); the seconds a pass names are the load window, though the count covers the steps too; a time before load can read as a negative number of ms. Only the first view is read: a flash lower down the page, or shown only after a scroll, is not seen. Motion at the first width only, on this machine.
|
|
319
|
+
example: >-
|
|
320
|
+
An alert that blinks twice and stops, and a video whose cut sequence was checked frame by frame.
|
|
321
|
+
counterexample: >-
|
|
322
|
+
A hero that strobes between black and white several times a second.
|
|
323
|
+
|
|
324
|
+
- id: MR13
|
|
325
|
+
name: Pause, stop, hide
|
|
326
|
+
area: motion
|
|
327
|
+
moment: review
|
|
328
|
+
skill: lazuli-motion-micro-and-transitions
|
|
329
|
+
rule: >-
|
|
330
|
+
WCAG 2.2 Success Criterion 2.2.2 Pause, Stop, Hide (Level A): for moving, blinking or scrolling information that starts automatically, lasts more than five seconds and is presented in parallel with other content, there is a mechanism for the user to pause, stop or hide it, unless the movement is part of an activity where it is essential (MT7).
|
|
331
|
+
why: >-
|
|
332
|
+
Moving content can be a severe distraction for some people, and five seconds is long enough to get attention but not so long that a person cannot wait it out.
|
|
333
|
+
origin: norm
|
|
334
|
+
source: >-
|
|
335
|
+
W3C, Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation 12 December 2024, https://www.w3.org/TR/WCAG22/ (Success Criterion 2.2.2, Level A, opened 2026-11-26). W3C, Understanding SC 2.2.2 Pause, Stop, Hide, https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.html (section "Intent", opened 2026-11-26): five seconds was chosen because it is long enough to get attention but not so long that a user cannot wait out the distraction; moving content can be a severe distraction for some people; a mechanism to pause must not tie up the user or the focus. Reading moving content from frame cells is our reading.
|
|
336
|
+
measure: motion.moving
|
|
337
|
+
threshold: { maxMovingMs: 5000 }
|
|
338
|
+
when_to_break: >-
|
|
339
|
+
The criterion's own exceptions are the only room: movement essential to an activity, an animation in a preload phase where no interaction can happen. A declared break never waives this norm.
|
|
340
|
+
break_effect: >-
|
|
341
|
+
No effect is bought outside the exceptions; inside them, the motion is the activity itself.
|
|
342
|
+
test: >-
|
|
343
|
+
What is read: frames over the full load window (LOAD_WINDOW_MS) are read in cells of CELL_PX frame px; a cell moves when it changes by more than PIXEL_NOISE levels in at least MIN_MOVING_SECONDS distinct whole seconds over more than maxMovingMs, so one late image is not motion. Fail when content moves that long and the page has no control whose accessible name holds one of PAUSE_WORDS as a whole word (pause, stop, hide and their Portuguese forms) and no video or audio with controls, naming the moving element; pass with a note for the reviewer when such a control exists, since whether it pauses that content is not read; pass when nothing moved that long; nothing when the recording was not longer than maxMovingMs. The settle reading (MR8) leaves these areas out and they are judged here. What is not seen: content that starts after the first 2 s of the window (it cannot show more than maxMovingMs of movement before the window ends); an auto carousel whose cycle is longer than the window allows, so it changes in fewer than MIN_MOVING_SECONDS distinct seconds; a control whose name lacks the words, such as an icon button with no name or a name in another language; auto-updating content that changes rarely; content outside the first view (lower down the page, or shown only after a scroll), so a ticker or banner there is not read and its pass says nothing about it. Motion at the first width only, on this machine.
|
|
344
|
+
example: >-
|
|
345
|
+
A logo ticker with a visible Pause button before it in the focus order.
|
|
346
|
+
counterexample: >-
|
|
347
|
+
A hero carousel that advances on its own forever with no pause control, next to the page's main text.
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Transitions. How things enter, leave and change between states or pages, and what motion must never do to
|
|
2
|
+
# the person (jump, flash, move without end). These rules are for the moment the motion is made. The reviewer
|
|
3
|
+
# judges them from the code and the filmstrip; check-design --area motion records the timeline, and the review
|
|
4
|
+
# rules (review.yaml) read it.
|
|
5
|
+
|
|
6
|
+
- id: MT1
|
|
7
|
+
name: A transition shows where something came from and went
|
|
8
|
+
area: motion
|
|
9
|
+
moment: create
|
|
10
|
+
skill: lazuli-motion-micro-and-transitions
|
|
11
|
+
rule: >-
|
|
12
|
+
A change between states or pages keeps continuity: what stays on screen stays in place or moves to its new place, what is new comes from where it belongs (a detail from its list item, a panel from its edge), and what leaves goes back where it came from. A cut that swaps the whole screen is used only when nothing carries over.
|
|
13
|
+
why: >-
|
|
14
|
+
When an element travels from its old place to its new one, the person does not have to find it again, and the structure of the interface reads from the movement itself. (our claim)
|
|
15
|
+
origin: hypothesis
|
|
16
|
+
source: >-
|
|
17
|
+
Our claim: no page opened on 2026-11-26 states this as a rule. It comes from the kit author's internal product plan (award level: motion that explains the interface).
|
|
18
|
+
when_to_break: >-
|
|
19
|
+
Two pages that share nothing (a sign-in page and the dashboard behind it) may cut, declared with break-a-rule first.
|
|
20
|
+
break_effect: >-
|
|
21
|
+
The cut says a new place starts, and no false link is drawn between the two.
|
|
22
|
+
test: >-
|
|
23
|
+
The reviewer watches the filmstrip of each state or page change and names, for each element that is on both sides, whether it kept or traveled to its place.
|
|
24
|
+
example: >-
|
|
25
|
+
A product thumbnail that grows into the product page header when chosen, and shrinks back into the grid on return.
|
|
26
|
+
counterexample: >-
|
|
27
|
+
A list whose detail view fades in over a blank screen, with the chosen item nowhere in the motion.
|
|
28
|
+
|
|
29
|
+
- id: MT2
|
|
30
|
+
name: Entrances differ by role and carry the brand
|
|
31
|
+
area: motion
|
|
32
|
+
moment: create
|
|
33
|
+
skill: lazuli-motion-micro-and-transitions
|
|
34
|
+
rule: >-
|
|
35
|
+
Entrances are chosen by the role of what enters (a heading, a figure, a list of items, a message) and carry the brand's motion vocabulary, not one fade for everything. The default to leave is the one the kit author's internal product plan names: "everything appears with the same fade". Write in one line, per role, how it enters and why.
|
|
36
|
+
why: >-
|
|
37
|
+
One fade for every element says nothing about what each element is, and it is the motion every template ships, so it reads as no decision at all. Entrances that differ by role show the order of the page and give the brand a way of moving. (our claim)
|
|
38
|
+
origin: hypothesis
|
|
39
|
+
source: >-
|
|
40
|
+
Our claim: no page opened on 2026-11-26 states this as a rule. It comes from the kit author's internal product plan (award level for motion: default "everything appears with the same fade", award "motion that explains the interface and has the brand's personality").
|
|
41
|
+
when_to_break: >-
|
|
42
|
+
A quiet brand may decide on one restrained entrance for everything, declared with break-a-rule first and logged with record-decision, as a choice rather than a default.
|
|
43
|
+
break_effect: >-
|
|
44
|
+
The page stays calm and consistent, at the cost of motion telling the roles apart.
|
|
45
|
+
test: >-
|
|
46
|
+
The reviewer lists the entrances seen in the filmstrip by role and checks whether they differ (MR11); check-design --area motion counts entrances that share the same properties and timing (MR5).
|
|
47
|
+
example: >-
|
|
48
|
+
The heading rises a short way and settles, the figure is revealed by a mask that follows the brand's cut, and the list items arrive one after another from the side they will be read from.
|
|
49
|
+
counterexample: >-
|
|
50
|
+
Heading, image, buttons and footer all fade in the same way, at the same speed, as each scrolls into view.
|
|
51
|
+
|
|
52
|
+
- id: MT3
|
|
53
|
+
name: Movement eases into place and out of view
|
|
54
|
+
area: motion
|
|
55
|
+
moment: create
|
|
56
|
+
skill: lazuli-motion-micro-and-transitions
|
|
57
|
+
rule: >-
|
|
58
|
+
A finite move eases: an entering element slows into place (ease out), a leaving element speeds away (ease in), an element moving from one place on screen to another speeds up and slows down. Constant speed (linear) is kept for things that never stop moving on purpose, such as a progress spinner.
|
|
59
|
+
why: >-
|
|
60
|
+
Objects in the world start and stop gradually, so constant speed looks mechanical, and an entrance that slows into place lets the eye land on it. (our claim)
|
|
61
|
+
origin: hypothesis
|
|
62
|
+
status: hypothesis
|
|
63
|
+
hypothesis: H3
|
|
64
|
+
source: >-
|
|
65
|
+
Our claim, a hint only (H3). Related reading, not the source of the rule: Nielsen Norman Group, Page Laubheimer, Executing UX Animations: Duration and Motion Characteristics, https://www.nngroup.com/articles/animation-duration/ (section "Easing Makes Motion Feel More Natural", opened 2026-11-26) says an ease-out animation that starts quickly and slows down is the most frequent choice and that constant-speed movement looks unnatural; IBM Carbon Design System, Motion, https://carbondesignsystem.com/elements/motion/overview/ (section "Easing", opened 2026-11-26) gives exit easing where the element speeds up as it leaves view, and standard easing for an element that leaves but stays nearby.
|
|
66
|
+
when_to_break: >-
|
|
67
|
+
A mechanical brand (a machine, a clock) may move at constant speed on purpose, declared with break-a-rule first.
|
|
68
|
+
break_effect: >-
|
|
69
|
+
The motion reads as the brand's machine, at the cost of looking stiff wherever it is not expected.
|
|
70
|
+
test: >-
|
|
71
|
+
The reviewer reads the timing function of each finite move in the code and names any linear one; check-design --area motion reads the curve of each finite move (MR3).
|
|
72
|
+
example: >-
|
|
73
|
+
A toast that enters with the vocabulary's entering curve and leaves with its exit curve.
|
|
74
|
+
counterexample: >-
|
|
75
|
+
A modal that slides up at constant speed and stops abruptly.
|
|
76
|
+
|
|
77
|
+
- id: MT4
|
|
78
|
+
name: Transitions end soon after the content is ready
|
|
79
|
+
area: motion
|
|
80
|
+
moment: create
|
|
81
|
+
skill: lazuli-motion-micro-and-transitions
|
|
82
|
+
rule: >-
|
|
83
|
+
A transition or an entrance, stagger included, ends soon after the content it shows is ready: the last item of a staggered list is in place shortly after the first, and no page holds its content behind an entrance that is still playing. Count the stagger: the delay of the last item plus its duration is the length of the entrance. The cutoff the kit uses is the hypothesis H2 in `HYPOTHESES.md` of this area.
|
|
84
|
+
why: >-
|
|
85
|
+
Content that is ready but still on its way in makes the person wait for the motion, and a long stagger hides the end of a list from someone who reads fast. (our claim)
|
|
86
|
+
origin: hypothesis
|
|
87
|
+
status: hypothesis
|
|
88
|
+
hypothesis: H2
|
|
89
|
+
source: >-
|
|
90
|
+
Our claim: the limit is the round starting value of H2, set before any page was measured. Related reading, not the source of the limit and never a reason to move it: Nielsen Norman Group, Page Laubheimer, Executing UX Animations: Duration and Motion Characteristics, https://www.nngroup.com/articles/animation-duration/ (section "Animation Duration", opened 2026-11-26) says animations are more often too long than too short and gives longer durations only for large movements.
|
|
91
|
+
when_to_break: >-
|
|
92
|
+
A brand opening that is the content (a short story told in motion on a launch page) may run longer, declared with break-a-rule first, with a way to skip it.
|
|
93
|
+
break_effect: >-
|
|
94
|
+
The opening is watched as intended, and anyone in a hurry skips it.
|
|
95
|
+
test: >-
|
|
96
|
+
The reviewer adds delay and duration of the last item of each entrance in the code and compares the sum with H2; check-design --area motion records the end of each entrance, delay included (MR2).
|
|
97
|
+
example: >-
|
|
98
|
+
A list of twelve items that staggers only the first view, each item a short step after the previous one.
|
|
99
|
+
counterexample: >-
|
|
100
|
+
A grid of thirty products where each item waits for the previous one, so the last appears long after the page loaded.
|
|
101
|
+
|
|
102
|
+
- id: MT5
|
|
103
|
+
name: Nothing jumps; space is reserved before content arrives
|
|
104
|
+
area: motion
|
|
105
|
+
moment: create
|
|
106
|
+
skill: lazuli-motion-micro-and-transitions
|
|
107
|
+
rule: >-
|
|
108
|
+
Reserve the space of everything that arrives late before it arrives: images and videos with width and height (or `aspect-ratio`), embeds, ads and loaded panels with a minimum height or an aspect ratio. Content that appears after load is placed into space that was already there or overlays the page; it never pushes what the person is reading.
|
|
109
|
+
why: >-
|
|
110
|
+
A late element that pushes the page moves what the person was reading or about to press, which makes them lose their place or press the wrong thing.
|
|
111
|
+
origin: source
|
|
112
|
+
source: >-
|
|
113
|
+
web.dev, Optimize Cumulative Layout Shift, https://web.dev/articles/optimize-cls (sections on images without dimensions and on ads, embeds and other late-loaded content, opened 2026-11-26): always include width and height attributes on images and video, or reserve the space with CSS aspect-ratio; layout shifts of late-loaded content can be avoided by reserving the space in the initial layout, for example with a min-height rule. web.dev, Cumulative Layout Shift (CLS), https://web.dev/articles/cls (opened 2026-11-26) defines the score of unexpected layout shifts. The clause on what the person loses (place, wrong press) is our claim.
|
|
114
|
+
when_to_break: >-
|
|
115
|
+
Content whose size cannot be known (a user comment of any length) may grow below the fold, declared with break-a-rule first, as long as nothing above the person's view moves.
|
|
116
|
+
break_effect: >-
|
|
117
|
+
The content takes the space it needs, and the reader's place stays put.
|
|
118
|
+
test: >-
|
|
119
|
+
The reviewer lists every late element in the code and the space reserved for it; check-design --area motion records layout shifts (MR7).
|
|
120
|
+
example: >-
|
|
121
|
+
A hero image with width and height attributes and a reviews panel with a minimum height that its loaded content fills.
|
|
122
|
+
counterexample: >-
|
|
123
|
+
A cookie banner inserted at the top of the page after load that pushes the heading down as the person reaches for a link.
|
|
124
|
+
|
|
125
|
+
- id: MT6
|
|
126
|
+
name: Reduced motion stops what moves
|
|
127
|
+
area: motion
|
|
128
|
+
moment: create
|
|
129
|
+
skill: lazuli-motion-micro-and-transitions
|
|
130
|
+
rule: >-
|
|
131
|
+
When `prefers-reduced-motion: reduce` is set, moving parts stop moving (no slide, scale, parallax, auto scroll or loop) and changes become instant or a fade. Every state still shows (MI3). Write the reduced version in the same component, inside `@media (prefers-reduced-motion: reduce)`.
|
|
132
|
+
why: >-
|
|
133
|
+
The setting tells the page the person wants motion removed, reduced or replaced; scaling or panning large objects can trigger discomfort for people with vestibular motion disorders.
|
|
134
|
+
origin: source
|
|
135
|
+
source: >-
|
|
136
|
+
MDN Web Docs, prefers-reduced-motion, https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion (introduction and sections "Syntax" and "Examples", opened 2026-11-26): the feature detects a device setting to minimize non-essential motion, and conveys that the person prefers an interface that removes, reduces or replaces motion-based animations; animations such as scaling or panning large objects can be vestibular motion triggers, and the example tones a scaling animation down inside the reduce query. W3C, Understanding SC 2.3.3 Animation from Interactions (level AAA, related reading, not a norm here), https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.html (sections "Intent" and "Techniques", opened 2026-11-26) lists C39, using the CSS prefers-reduced-motion query to prevent motion. Our claim, beyond the pages: that moving parts stop moving (the list slide, scale, parallax, auto scroll and loop), that changes become instant or a fade, and that the reduced version is written in the same component; MDN's own example keeps a muted animation instead.
|
|
137
|
+
when_to_break: >-
|
|
138
|
+
Motion that is essential to the information (a chart that draws to show a trend over time) may keep a reduced version that still moves, declared with break-a-rule first.
|
|
139
|
+
break_effect: >-
|
|
140
|
+
The information that only motion carries is kept, with the least movement that still shows it.
|
|
141
|
+
test: >-
|
|
142
|
+
The reviewer reads the reduced motion query of every animated component; check-design --area motion runs the page again with reduced motion and compares what moves (MR10).
|
|
143
|
+
example: >-
|
|
144
|
+
A carousel that slides with motion allowed and, with reduced motion, swaps slides with a short fade and stops auto advancing.
|
|
145
|
+
counterexample: >-
|
|
146
|
+
A parallax hero that keeps moving its layers when reduced motion is set.
|
|
147
|
+
|
|
148
|
+
- id: MT7
|
|
149
|
+
name: Nothing flashes or moves without end and without a pause
|
|
150
|
+
area: motion
|
|
151
|
+
moment: create
|
|
152
|
+
skill: lazuli-motion-micro-and-transitions
|
|
153
|
+
rule: >-
|
|
154
|
+
WCAG 2.3.1 Three Flashes or Below Threshold (level A): nothing on the page flashes more than three times in any one second period, unless the flash is below the general flash and red flash thresholds. WCAG 2.2.2 Pause, Stop, Hide (level A): moving, blinking or scrolling content that starts automatically, lasts more than five seconds and is presented in parallel with other content has a mechanism to pause, stop or hide it, unless the movement is part of an activity where it is essential; auto-updating content that starts automatically and is presented in parallel with other content has a way to pause, stop or hide it or to control the frequency of the update, unless the auto-updating is part of an activity where it is essential.
|
|
155
|
+
why: >-
|
|
156
|
+
Flashing can cause seizures in some people, and moving content that cannot be stopped is a severe distraction for some people, especially people with attention deficit disorders.
|
|
157
|
+
origin: norm
|
|
158
|
+
source: >-
|
|
159
|
+
W3C, Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation 12 December 2024, https://www.w3.org/TR/WCAG22/ (Success Criteria 2.2.2 and 2.3.1, and the definitions "flash" and "general flash and red flash thresholds", opened 2026-11-26). W3C, Understanding SC 2.2.2 Pause, Stop, Hide, https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.html (section "Intent", opened 2026-11-26): five seconds is long enough to get attention but not so long that a person cannot wait out the distraction; moving content can be a severe distraction, and blinking content distracts people with attention deficit disorders. W3C, Understanding SC 2.3.1 Three Flashes or Below Threshold, https://www.w3.org/WAI/WCAG22/Understanding/three-flashes-or-below-threshold.html (opened 2026-11-26): the 341 x 256 px field is the WCAG reference block of a 10 degree visual field when content is viewed at 1024 x 768 pixels, and the page also substitutes CSS pixels for it (341 x 256 CSS pixels).
|
|
160
|
+
when_to_break: >-
|
|
161
|
+
The criteria's own exceptions are the only room: a flash below the thresholds, movement essential to an activity, an animation in a preload phase where no interaction can happen. A declared break never waives either criterion beyond them.
|
|
162
|
+
break_effect: >-
|
|
163
|
+
No effect is bought outside the exceptions; inside them, the motion is the activity itself.
|
|
164
|
+
test: >-
|
|
165
|
+
The reviewer lists every loop, ticker, carousel and auto-updating region in the code and the control that pauses each; check-design --area motion counts flashes (MR12) and content that moves without end with its pause control (MR13) from recorded frames.
|
|
166
|
+
example: >-
|
|
167
|
+
A logo ticker with a visible Pause button before it in the focus order, and an alert that blinks twice and stops.
|
|
168
|
+
counterexample: >-
|
|
169
|
+
A hero carousel that advances on its own forever with no pause control, next to the page's main text.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Typography hypotheses to validate in the A/B
|
|
2
|
+
|
|
3
|
+
Numbers that are not from a standard. 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. Pages marked "opened" were read on 2026-11-25; the rest is our claim.
|
|
4
|
+
|
|
5
|
+
| ID | Principle | Candidate limit | How to validate in the A/B |
|
|
6
|
+
|---|---|---|---|
|
|
7
|
+
| H1 | TR1 (line length) | Between 45 and 90 characters per line, judged per block (a block of 3 lines or more), not per line. Range from Butterick, Practical Typography, "Line length" (opened: "Aim for an average line length of 45-90 characters, including spaces"). The 3-line minimum is our claim. A block with fewer characters in all than minLines times minChars (135) is a caption, not running text, and is not judged. | Reading time and comprehension of the same text at 40, 65 and 100 characters |
|
|
8
|
+
| H2 | TC5 (body size) | Body text between 15 and 25 px on the web. Range from Butterick, Practical Typography, "Point size" (opened: 15 to 25 pixels for body text on the web) | Reported comfort at the real viewing distance on desktop and phone |
|
|
9
|
+
| H3 | TR2 (line height) | Between 1.2 and 1.5 times the font size in multi-line blocks. Range from Butterick, Practical Typography, "Line spacing" (opened: 120% to 145% of the point size), upper end raised to 1.5 to agree with WCAG 2.2 SC 1.4.8 (AAA: line spacing at least space-and-a-half). Display type (WCAG 2.2 large scale: 24 px and up, or 18.66 px and up at weight 700 or more) is judged for the upper bound only; the page says nothing about headings, so that is our claim | Reading speed and "does the text feel airy or cramped?" at 1.1, 1.3 and 1.6 |
|
|
10
|
+
| H4 | TC2 (few families) | At most 3 font families rendered on a page. Our claim | Compare pages with 2, 3 and 5 families on "does it look designed or assembled?" |
|
|
11
|
+
| H5 | TC3 (visible scale) | Neighboring sizes in the used scale differ by at least 1.125 times. Our claim | Show scales with steps of 1.05, 1.125 and 1.25 and ask which levels people can tell apart at a glance |
|
|
12
|
+
| H6 | TR5 (heading rag) | A heading that wraps to a last line of one word is flagged. Our claim, a hint only | Ask "does the headline look finished?" for headlines with and without a one-word last line |
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
- id: TA1
|
|
2
|
+
name: Room for the longer language
|
|
3
|
+
area: typography
|
|
4
|
+
moment: adapt
|
|
5
|
+
skill: lazuli-typography-screen-review
|
|
6
|
+
rule: >-
|
|
7
|
+
When the page is translated, test the longest strings in the target language, not the source copy. Portuguese runs longer than English in labels, buttons and menus, so leave room instead of fitting the English length exactly.
|
|
8
|
+
why: >-
|
|
9
|
+
A fixed-width button or a one-line menu that fits English can clip, wrap badly or overflow in the longer language, and the layout then looks broken in the market it was adapted for.
|
|
10
|
+
origin: hypothesis
|
|
11
|
+
source: >-
|
|
12
|
+
Our claim, not verified yet. It comes from the common experience that Portuguese copy is longer than English, not from a measurement we made.
|
|
13
|
+
when_to_break: >-
|
|
14
|
+
A compact, fixed-width interface (a toolbar, a data table header) where the grid must stay exact, so long strings are abbreviated by design instead of given more room.
|
|
15
|
+
break_effect: >-
|
|
16
|
+
The viewer gets a grid that stays exact and dense in both languages, and accepts that some labels are shorter and a little less clear. Check that every abbreviation is still understood without a tooltip.
|
|
17
|
+
test: >-
|
|
18
|
+
Render the translated page at 390 px and 1440 px. Fail if any label is clipped, overflows its box or breaks a word in the middle.
|
|
19
|
+
example: >-
|
|
20
|
+
A button that grows with its text and wraps to two lines on the phone.
|
|
21
|
+
counterexample: >-
|
|
22
|
+
A 120 px wide button clipping "Solicitar orçamento".
|
|
23
|
+
|
|
24
|
+
- id: TA2
|
|
25
|
+
name: The font covers the language
|
|
26
|
+
area: typography
|
|
27
|
+
moment: adapt
|
|
28
|
+
skill: lazuli-typography-screen-review
|
|
29
|
+
rule: >-
|
|
30
|
+
Check that the chosen font has every accent and symbol the language needs (for Portuguese: acute, grave, circumflex, tilde, cedilla, and the currency sign). Render real words with the accents, not only the alphabet.
|
|
31
|
+
why: >-
|
|
32
|
+
A font without a glyph borrows it from another font, and a borrowed accent has a different weight and height. The text looks wrong exactly where the language is most itself.
|
|
33
|
+
origin: hypothesis
|
|
34
|
+
source: >-
|
|
35
|
+
Our claim, not verified yet.
|
|
36
|
+
when_to_break: >-
|
|
37
|
+
The display face lacks a glyph the language needs (for example ç or ã) and a designed companion font supplies it on purpose.
|
|
38
|
+
break_effect: >-
|
|
39
|
+
The viewer sees an honest, intentional substitution: the display voice carries the title and the companion glyph reads as a chosen detail, not as an error. Check the title at 1440 and 390 px and confirm the substituted glyph matches in weight and height.
|
|
40
|
+
test: >-
|
|
41
|
+
Render a line such as "Ação, não, coração, à, é, ê, ç, R$ 1.299,90" in every family on the page. Fail if any glyph shows in another face.
|
|
42
|
+
example: >-
|
|
43
|
+
A family that ships a Latin Extended subset loaded for the Portuguese page.
|
|
44
|
+
counterexample: >-
|
|
45
|
+
A font subset limited to basic Latin, where "ç" and "ã" render in a fallback.
|