@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.
Files changed (179) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/LICENSE +21 -0
  3. package/README.md +202 -2
  4. package/agents/lazuli-design-reviewer.md +30 -0
  5. package/agents/lazuli-first-look.md +22 -0
  6. package/agents/lazuli-task-tester.md +25 -0
  7. package/bin/lazuli.mjs +699 -0
  8. package/package.json +11 -4
  9. package/rules/accessibility/HYPOTHESES.md +8 -0
  10. package/rules/accessibility/_area.yaml +7 -0
  11. package/rules/accessibility/operable.yaml +100 -0
  12. package/rules/accessibility/perceivable.yaml +153 -0
  13. package/rules/accessibility/robust.yaml +24 -0
  14. package/rules/accessibility/understandable.yaml +72 -0
  15. package/rules/color/HYPOTHESES.md +27 -0
  16. package/rules/color/_area.yaml +10 -0
  17. package/rules/color/adapt.yaml +183 -0
  18. package/rules/color/create.yaml +259 -0
  19. package/rules/color/review.yaml +215 -0
  20. package/rules/color/signal.yaml +196 -0
  21. package/rules/content/HYPOTHESES.md +18 -0
  22. package/rules/content/_area.yaml +8 -0
  23. package/rules/content/review.yaml +347 -0
  24. package/rules/content/voice.yaml +144 -0
  25. package/rules/content/writing.yaml +202 -0
  26. package/rules/data/HYPOTHESES.md +11 -0
  27. package/rules/data/_area.yaml +7 -0
  28. package/rules/data/charts.yaml +189 -0
  29. package/rules/data/dashboards.yaml +141 -0
  30. package/rules/data/review.yaml +159 -0
  31. package/rules/graphic/HYPOTHESES.md +17 -0
  32. package/rules/graphic/_area.yaml +8 -0
  33. package/rules/graphic/identity.yaml +141 -0
  34. package/rules/graphic/pieces.yaml +164 -0
  35. package/rules/graphic/review.yaml +242 -0
  36. package/rules/graphic/symbol.yaml +141 -0
  37. package/rules/motion/HYPOTHESES.md +19 -0
  38. package/rules/motion/_area.yaml +7 -0
  39. package/rules/motion/micro.yaml +143 -0
  40. package/rules/motion/review.yaml +347 -0
  41. package/rules/motion/transitions.yaml +169 -0
  42. package/rules/typography/HYPOTHESES.md +12 -0
  43. package/rules/typography/_area.yaml +8 -0
  44. package/rules/typography/adapt.yaml +45 -0
  45. package/rules/typography/create.yaml +126 -0
  46. package/rules/typography/review.yaml +127 -0
  47. package/rules/ui/HYPOTHESES.md +23 -0
  48. package/rules/ui/_area.yaml +9 -0
  49. package/rules/ui/compose.yaml +219 -0
  50. package/rules/ui/grid.yaml +75 -0
  51. package/rules/ui/review.yaml +399 -0
  52. package/rules/ui/states.yaml +257 -0
  53. package/rules/ux/HYPOTHESES.md +13 -0
  54. package/rules/ux/_area.yaml +8 -0
  55. package/rules/ux/flows.yaml +164 -0
  56. package/rules/ux/forms.yaml +142 -0
  57. package/rules/ux/review.yaml +186 -0
  58. package/skills/lazuli/SKILL.md +180 -0
  59. package/skills/lazuli/procedures/create.md +29 -0
  60. package/skills/lazuli/procedures/explain-decisions.md +22 -0
  61. package/skills/lazuli/procedures/improve.md +30 -0
  62. package/skills/lazuli/procedures/remember-this.md +41 -0
  63. package/skills/lazuli/procedures/review-design.md +35 -0
  64. package/skills/lazuli/procedures/show-options.md +32 -0
  65. package/skills/lazuli-accessibility-check/SKILL.md +68 -0
  66. package/skills/lazuli-color-context-and-culture/SKILL.md +53 -0
  67. package/skills/lazuli-color-context-and-culture/references/sectors.md +26 -0
  68. package/skills/lazuli-color-palette-by-intent/SKILL.md +54 -0
  69. package/skills/lazuli-color-palette-by-intent/references/intent-chords.md +51 -0
  70. package/skills/lazuli-color-screen-review/SKILL.md +51 -0
  71. package/skills/lazuli-color-states-and-signals/SKILL.md +53 -0
  72. package/skills/lazuli-content-interface-writing/SKILL.md +53 -0
  73. package/skills/lazuli-content-voice/SKILL.md +39 -0
  74. package/skills/lazuli-data-charts-and-dashboards/SKILL.md +59 -0
  75. package/skills/lazuli-graphic-derived-pieces/SKILL.md +40 -0
  76. package/skills/lazuli-graphic-derived-pieces/references/piece-template.html +24 -0
  77. package/skills/lazuli-graphic-identity/SKILL.md +43 -0
  78. package/skills/lazuli-motion-micro-and-transitions/SKILL.md +49 -0
  79. package/skills/lazuli-typography-choose-and-pair/SKILL.md +50 -0
  80. package/skills/lazuli-typography-screen-review/SKILL.md +51 -0
  81. package/skills/lazuli-ui-composition/SKILL.md +42 -0
  82. package/skills/lazuli-ui-composition/references/option-template.html +34 -0
  83. package/skills/lazuli-ui-layout-review/SKILL.md +47 -0
  84. package/skills/lazuli-ui-states-and-system/SKILL.md +54 -0
  85. package/skills/lazuli-ux-flows-and-forms/SKILL.md +51 -0
  86. package/skills/lazuli-ux-task-test/SKILL.md +44 -0
  87. package/src/browser.mjs +161 -0
  88. package/src/commands/capture.mjs +313 -0
  89. package/src/commands/catalog.mjs +37 -0
  90. package/src/commands/check-design.mjs +428 -0
  91. package/src/commands/check-goals.mjs +57 -0
  92. package/src/commands/compare-designs.mjs +97 -0
  93. package/src/commands/draft-memo.mjs +161 -0
  94. package/src/commands/hooks.mjs +343 -0
  95. package/src/commands/install-hooks.mjs +120 -0
  96. package/src/commands/install.mjs +132 -0
  97. package/src/commands/list-rules.mjs +49 -0
  98. package/src/commands/map-page.mjs +594 -0
  99. package/src/commands/record-answers.mjs +79 -0
  100. package/src/commands/record-log.mjs +296 -0
  101. package/src/commands/record-task.mjs +250 -0
  102. package/src/commands/render-options.mjs +164 -0
  103. package/src/commands/start-project.mjs +32 -0
  104. package/src/measure/a11y.mjs +383 -0
  105. package/src/measure/asset.mjs +206 -0
  106. package/src/measure/at-rest.mjs +49 -0
  107. package/src/measure/cases.mjs +549 -0
  108. package/src/measure/chart-read.mjs +401 -0
  109. package/src/measure/chart.mjs +264 -0
  110. package/src/measure/coherence.mjs +145 -0
  111. package/src/measure/color.mjs +79 -0
  112. package/src/measure/content.mjs +82 -0
  113. package/src/measure/cvd.mjs +24 -0
  114. package/src/measure/extreme.mjs +241 -0
  115. package/src/measure/forms.mjs +150 -0
  116. package/src/measure/in-page/a11y.js +489 -0
  117. package/src/measure/in-page/color.js +346 -0
  118. package/src/measure/in-page/composition.js +1496 -0
  119. package/src/measure/in-page/contrast.js +15 -0
  120. package/src/measure/in-page/cvd.js +173 -0
  121. package/src/measure/in-page/extreme.js +355 -0
  122. package/src/measure/in-page/frames.js +781 -0
  123. package/src/measure/in-page/look.js +28 -0
  124. package/src/measure/in-page/motion-probe.js +169 -0
  125. package/src/measure/in-page/style.js +107 -0
  126. package/src/measure/in-page/svg-strokes.js +112 -0
  127. package/src/measure/in-page/svg-uses.js +50 -0
  128. package/src/measure/in-page/symbol.js +123 -0
  129. package/src/measure/in-page/type.js +266 -0
  130. package/src/measure/in-page/weight.js +207 -0
  131. package/src/measure/layout.mjs +91 -0
  132. package/src/measure/motion.mjs +508 -0
  133. package/src/measure/piece.mjs +195 -0
  134. package/src/measure/registry.mjs +252 -0
  135. package/src/measure/rhythm.mjs +81 -0
  136. package/src/measure/signature.mjs +65 -0
  137. package/src/measure/states.mjs +240 -0
  138. package/src/measure/style.mjs +13 -0
  139. package/src/measure/symbol.mjs +268 -0
  140. package/src/measure/terms.mjs +153 -0
  141. package/src/measure/tiles.mjs +20 -0
  142. package/src/measure/timeline.mjs +621 -0
  143. package/src/measure/type.mjs +167 -0
  144. package/src/measure/weight.mjs +18 -0
  145. package/src/private-strings.mjs +81 -0
  146. package/src/project/blind.mjs +70 -0
  147. package/src/project/edits.mjs +154 -0
  148. package/src/project/gate.mjs +159 -0
  149. package/src/project/lazuli-md.mjs +497 -0
  150. package/src/project/log.mjs +329 -0
  151. package/src/project/match.mjs +112 -0
  152. package/src/project/records.mjs +380 -0
  153. package/src/project/tasks.mjs +153 -0
  154. package/src/report/evaluate.mjs +27 -0
  155. package/src/report/evaluators/a11y.mjs +206 -0
  156. package/src/report/evaluators/chart.mjs +151 -0
  157. package/src/report/evaluators/coherence.mjs +103 -0
  158. package/src/report/evaluators/color.mjs +86 -0
  159. package/src/report/evaluators/content.mjs +112 -0
  160. package/src/report/evaluators/extreme.mjs +53 -0
  161. package/src/report/evaluators/forms.mjs +116 -0
  162. package/src/report/evaluators/layout.mjs +94 -0
  163. package/src/report/evaluators/motion.mjs +273 -0
  164. package/src/report/evaluators/piece.mjs +69 -0
  165. package/src/report/evaluators/rhythm.mjs +99 -0
  166. package/src/report/evaluators/states.mjs +39 -0
  167. package/src/report/evaluators/style.mjs +35 -0
  168. package/src/report/evaluators/symbol.mjs +110 -0
  169. package/src/report/evaluators/terms.mjs +49 -0
  170. package/src/report/evaluators/type.mjs +163 -0
  171. package/src/report/evaluators/weight.mjs +51 -0
  172. package/src/report/evidence.mjs +4 -0
  173. package/src/report/finding.mjs +11 -0
  174. package/src/report/format.mjs +215 -0
  175. package/src/rules/hypotheses.mjs +28 -0
  176. package/src/rules/load.mjs +256 -0
  177. package/src/rules/public-text.mjs +56 -0
  178. package/src/rules/schema.mjs +212 -0
  179. package/templates/LAZULI.md +86 -0
@@ -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) | 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,8 @@
1
+ area: typography
2
+ title: Typography
3
+ summary: Choosing and pairing type, and reviewing it on the rendered page.
4
+ order: 20
5
+ prefixes: [TC, TR, TA]
6
+ skills:
7
+ - lazuli-typography-choose-and-pair
8
+ - lazuli-typography-screen-review
@@ -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.
@@ -0,0 +1,126 @@
1
+ - id: TC1
2
+ name: Choose the type for the voice and the goals
3
+ area: typography
4
+ moment: create
5
+ skill: lazuli-typography-choose-and-pair
6
+ rule: >-
7
+ Choose type from the declared voice and the goals of the piece, never from a favorite list. Write the voice in three adjectives first, name two or three real alternatives with the voice each one carries, then pick one and say what it gives up.
8
+ why: >-
9
+ Letterforms speak before the words do. The same sentence reads as ceremony in a high contrast serif, as candor in a plain grotesque and as play in a rounded sans, so the type is a decision about the effect, not a finish applied at the end.
10
+ origin: hypothesis
11
+ source: >-
12
+ Our claim, not verified yet. It follows the kit thesis that every design piece is a hypothesis about an effect on people.
13
+ when_to_break: >-
14
+ When the brand already owns a typeface and a redesign of the type is not on the table. Then the work moves to scale, weight and spacing around it.
15
+ break_effect: >-
16
+ The viewer reads the brand's established voice and trusts its continuity, so the page feels familiar and dependable rather than newly invented.
17
+ test: >-
18
+ The choice is written down with the voice words, at least two alternatives and the trade-off. Fail if the font is justified only by taste ("it looks modern") or by being the default of the tool.
19
+ example: >-
20
+ A notary office: voice "exact, calm, old-fashioned on purpose". Alternatives: a sturdy text serif, a neutral grotesque, a slab. Pick the serif and give up the contemporary feel.
21
+ counterexample: >-
22
+ The default system sans kept on every project because nobody decided anything.
23
+
24
+ - id: TC2
25
+ name: Few families, each with a job
26
+ area: typography
27
+ moment: create
28
+ skill: lazuli-typography-choose-and-pair
29
+ rule: >-
30
+ Use few font families on one page, each with a different job (titles, text, code or numbers). Add weights and sizes of a family before adding another family.
31
+ why: >-
32
+ Each family is a new voice in the room. When voices multiply without a reason, the page reads as assembled rather than composed.
33
+ origin: hypothesis
34
+ status: hypothesis
35
+ hypothesis: H4
36
+ source: >-
37
+ Our claim, not verified yet. The limit of 3 is a candidate in rules/typography/HYPOTHESES.md.
38
+ measure: type.families
39
+ threshold: { maxFamilies: 3 }
40
+ when_to_break: >-
41
+ An editorial or poster-like piece where each section is its own voice, a specimen page, or a collage meant to feel collected.
42
+ break_effect: >-
43
+ The viewer feels variety, play and a curator's hand, so the page reads as a gallery of voices instead of one calm voice.
44
+ test: >-
45
+ The measurer lists the families that rendered text and their glyph counts. Fail if more than the candidate limit, unless each extra family has a stated job.
46
+ example: >-
47
+ A serif for titles, a grotesque for text, a mono for prices and codes.
48
+ counterexample: >-
49
+ Five families picked one at a time for five components.
50
+
51
+ - id: TC3
52
+ name: A scale with steps you can see
53
+ area: typography
54
+ moment: create
55
+ skill: lazuli-typography-choose-and-pair
56
+ rule: >-
57
+ Build the sizes as a scale where every neighboring step is clearly different, and give each step one role. Two sizes that are almost the same look like a mistake, not a hierarchy.
58
+ why: >-
59
+ People read the importance of text from its size before they read a word. Steps too close to tell apart make the levels blur, and the eye has no order to follow.
60
+ origin: hypothesis
61
+ status: hypothesis
62
+ hypothesis: H5
63
+ source: >-
64
+ Our claim, not verified yet. The ratio is a candidate in rules/typography/HYPOTHESES.md.
65
+ measure: type.scale
66
+ threshold: { minStepRatio: 1.125 }
67
+ when_to_break: >-
68
+ A dense data interface where small steps keep many levels in a tight space, or a deliberate one-size page where weight and color carry the hierarchy.
69
+ break_effect: >-
70
+ The viewer feels calm uniformity or the precision of a tool, so the page reads as quiet and exact instead of loud and ranked.
71
+ test: >-
72
+ The measurer lists the distinct sizes in use and the step between neighbors. Hint if any step is below the candidate ratio.
73
+ example: >-
74
+ 14, 18, 24, 32, 48 px, each with one role.
75
+ counterexample: >-
76
+ 15, 16, 17 and 18 px used for four different things.
77
+
78
+ - id: TC4
79
+ name: Pair by contrast of structure
80
+ area: typography
81
+ moment: create
82
+ skill: lazuli-typography-choose-and-pair
83
+ rule: >-
84
+ Pair families that differ clearly in structure (serif with sans, narrow with wide, geometric with humanist). Never pair near twins: two grotesques that differ by a hair look like a rendering error.
85
+ why: >-
86
+ A pair works by contrast, with one family leading and the other supporting. Near twins neither agree nor contrast, so the difference reads as an accident.
87
+ origin: hypothesis
88
+ source: >-
89
+ Our claim, not verified yet.
90
+ when_to_break: >-
91
+ One superfamily with serif and sans cuts designed together, or a single family used alone with weight as the only contrast.
92
+ break_effect: >-
93
+ The viewer reads one coherent voice with variation inside it, so the page feels unified and quiet rather than a conversation between two voices.
94
+ test: >-
95
+ Name the structural difference between each pair of families on the page. Fail if you cannot name one, or if the two are the same classification with similar proportions.
96
+ example: >-
97
+ A transitional serif for titles with a humanist sans for text.
98
+ counterexample: >-
99
+ Helvetica for titles and Arial for text.
100
+
101
+ - id: TC5
102
+ name: Body size for the reading distance
103
+ area: typography
104
+ moment: create
105
+ skill: lazuli-typography-choose-and-pair
106
+ rule: >-
107
+ Set the body size for the real reading distance and device, not for the design tool. Phones are held close and desktops are read at arm's length, so a body size that works on one can be too small or too large on the other.
108
+ why: >-
109
+ Size decides whether text is read or only looked at. Too small tires the eye and excludes people with weaker sight, and too large breaks lines early and spreads the text.
110
+ origin: hypothesis
111
+ status: hypothesis
112
+ hypothesis: H2
113
+ source: >-
114
+ Candidate range from Butterick, Practical Typography, "Point size" (opened 2026-11-25: 15 to 25 pixels for body text on the web). Treated as a hypothesis until the A/B.
115
+ measure: type.body-size
116
+ threshold: { minPx: 15, maxPx: 25 }
117
+ when_to_break: >-
118
+ Captions, legal text and data labels sit below the range on purpose. A hero lead paragraph may sit above it.
119
+ break_effect: >-
120
+ The viewer reads small text as secondary or fine print, and large text as an announcement, so the size itself sets the weight of the message.
121
+ test: >-
122
+ The measurer reports the size of the body text. Hint if outside the candidate range, at each tested width.
123
+ example: >-
124
+ A 17 px body on desktop and 16 px on a 390 px phone.
125
+ counterexample: >-
126
+ A 12 px body copied from a mock that was viewed zoomed.
@@ -0,0 +1,127 @@
1
+ - id: TR1
2
+ name: Line length for comfortable reading
3
+ area: typography
4
+ moment: review
5
+ skill: lazuli-typography-screen-review
6
+ rule: >-
7
+ Keep the lines of running text inside a comfortable length, measured on the render at each width. Cap the width of text columns with a measure in characters (the ch unit) instead of letting text span the screen.
8
+ why: >-
9
+ Lines that are too long make the eye lose its place on the return, and lines that are too short chop the sentence into fragments.
10
+ origin: hypothesis
11
+ status: hypothesis
12
+ hypothesis: H1
13
+ source: >-
14
+ Candidate range from Butterick, Practical Typography, "Line length" (opened 2026-11-25: "Aim for an average line length of 45-90 characters, including spaces"). The limit applies per block (the average line of a block of at least 3 lines), not per line; the 3-line minimum is our claim. Treated as a hypothesis until the A/B.
15
+ measure: type.line-length
16
+ threshold: { minChars: 45, maxChars: 90, minLines: 3 }
17
+ when_to_break: >-
18
+ A narrow caption or sidebar, a poem or quote set in short lines, or a wide intro line that is only one or two lines long.
19
+ break_effect: >-
20
+ The viewer reads short lines as verse or ceremony and very long lines as a wall, so the line length itself sets the pace.
21
+ test: >-
22
+ The measurer reports characters per line for every block of at least 3 lines. A block with fewer characters in all than minLines times minChars is a caption, not running text, and is not judged. Hint for each other block outside the candidate range.
23
+ example: >-
24
+ An article column capped at 65ch.
25
+ counterexample: >-
26
+ A paragraph that fills a 1440 px viewport at 150 characters per line.
27
+
28
+ - id: TR2
29
+ name: Line height that lets the lines breathe
30
+ area: typography
31
+ moment: review
32
+ skill: lazuli-typography-screen-review
33
+ rule: >-
34
+ Check the line height of every multi-line block against its size. Text needs more room as lines get longer; large headings need less.
35
+ why: >-
36
+ Tight lines make the eye land on the wrong line, and loose lines fall apart into separate sentences.
37
+ origin: hypothesis
38
+ status: hypothesis
39
+ hypothesis: H3
40
+ source: >-
41
+ Candidate range from Butterick, Practical Typography, "Line spacing" (opened 2026-11-25: 120% to 145% of the point size). The upper end is raised to 1.5 so the hint never argues against WCAG 2.2 Success Criterion 1.4.8 Visual Presentation (Level AAA, https://www.w3.org/TR/WCAG22/#visual-presentation, opened 2026-11-25), which asks that line spacing can be at least space-and-a-half within paragraphs. Treated as a hypothesis until the A/B.
42
+ measure: type.line-height
43
+ threshold: { minRatio: 1.2, maxRatio: 1.5 }
44
+ when_to_break: >-
45
+ A deliberately huge, tight headline (line height near 1) for impact, or a generous airy quote for calm.
46
+ break_effect: >-
47
+ A tight huge headline reads as one block with force, like a poster. An airy quote reads as slow and contemplative.
48
+ test: >-
49
+ The measurer reports the line height ratio of each multi-line block. Hint for blocks outside the candidate range.
50
+ example: >-
51
+ Body at 1.4, a display headline at 1.05 on purpose.
52
+ counterexample: >-
53
+ A long paragraph at line-height 1.1 inherited from a heading style.
54
+
55
+ - id: TR3
56
+ name: The chosen font is the one rendered
57
+ area: typography
58
+ moment: review
59
+ skill: lazuli-typography-screen-review
60
+ rule: >-
61
+ Confirm on the render that the first declared font family is the one that painted the text. A webfont that failed to load, a missing weight or a wrong file name falls back silently to a system font.
62
+ why: >-
63
+ The whole type decision exists only if the chosen font reaches the screen. A fallback keeps the layout and loses the voice, and nobody sees the error in the code.
64
+ origin: hypothesis
65
+ source: >-
66
+ Our claim, not verified yet. The check reads the fonts the browser actually used.
67
+ measure: type.fallback
68
+ when_to_break: >-
69
+ A system font stack chosen on purpose, where the first name is a system font that may legitimately be absent on some devices.
70
+ break_effect: >-
71
+ The viewer sees the native look of their own device, so the page feels fast, familiar and unbranded.
72
+ test: >-
73
+ The measurer lists text styles whose rendered family differs from the declared first family. Hint for each, with selector and rendered fonts.
74
+ example: >-
75
+ A declared "Satoshi" that renders as Satoshi Medium in every heading.
76
+ counterexample: >-
77
+ A declared brand serif that renders as Times New Roman because the font file path is wrong.
78
+
79
+ - id: TR4
80
+ name: Heading levels look like their order
81
+ area: typography
82
+ moment: review
83
+ skill: lazuli-typography-screen-review
84
+ rule: >-
85
+ A higher heading level must not render smaller than a lower one. Check sizes against the levels, then check that weight and spacing agree with the order too.
86
+ why: >-
87
+ Size is the first signal of rank. When an h2 is smaller than an h3 the page contradicts its own outline.
88
+ origin: hypothesis
89
+ source: >-
90
+ Our claim, not verified yet.
91
+ measure: type.hierarchy
92
+ when_to_break: >-
93
+ A small, wide-tracked uppercase heading that outranks a larger one by position and contrast, such as a kicker above a title.
94
+ break_effect: >-
95
+ The viewer reads the small line as a label or a whisper that frames the large one, so the rank comes from position and contrast instead of size.
96
+ test: >-
97
+ The measurer lists heading pairs where a higher level is smaller than a lower level. Hint for each pair.
98
+ example: >-
99
+ h1 48 px, h2 32 px, h3 22 px.
100
+ counterexample: >-
101
+ An h2 at 18 px under an h3 at 24 px because of a component style.
102
+
103
+ - id: TR5
104
+ name: No one-word last line in a headline
105
+ area: typography
106
+ moment: review
107
+ skill: lazuli-typography-screen-review
108
+ rule: >-
109
+ Look at where each headline breaks at every width. A last line with a single word reads as an accident. Balance the lines (text-wrap: balance) or edit the words.
110
+ why: >-
111
+ A lone word at the end of a headline shows that nobody looked at the break, and it weakens the first thing the page says.
112
+ origin: hypothesis
113
+ status: hypothesis
114
+ hypothesis: H6
115
+ source: >-
116
+ Our claim, not verified yet.
117
+ measure: type.heading-rag
118
+ when_to_break: >-
119
+ A last word left alone on purpose as a punchline or a pause.
120
+ break_effect: >-
121
+ The viewer pauses on the single word, which lands with emphasis, as the end of a sentence read aloud.
122
+ test: >-
123
+ The measurer lists headings with two or more lines whose last line has one word. Hint for each.
124
+ example: >-
125
+ A three-line headline balanced as 2, 2, 3 words.
126
+ counterexample: >-
127
+ A headline whose last line is the single word "today".
@@ -0,0 +1,23 @@
1
+ # UI hypotheses to validate in the A/B
2
+
3
+ Numbers and measures of composition that are not from a source or a norm yet. They stay in the rules only as hints (status hypothesis, never a verdict) and become firm only after the A/B shows they improve the result. No award jury page opened on 2026-11-25 publishes a number for composition; every row here is our claim unless it names an opened page.
4
+
5
+ Where a row or a rule cites the kit author's internal product plan, that plan is not public; the move is listed there and its effect is our claim.
6
+
7
+ | ID | Principle | Candidate limit | How to validate in the A/B |
8
+ |---|---|---|---|
9
+ | H1 | Distance from default (compare-designs) | The structural signature distance between a page and a no-kit baseline for the same brief, components weighted equally (our claim) | Ask reviewers which of several pairs "looks different" and check the distance ranks the pairs the same way |
10
+ | H2 | UR1 (scale contrast of the first view, layout.scale-contrast) | Cutoff: minTextRatio 2, minAreaRatio 2. The first view has contrast when the largest text is at least 2 times the body size or the largest block is at least 2 times the median block; the hint fires only when both fall below. How it was picked: a round starting value, our claim, set before any real page was measured (the stub used the same). Observed so far, not evidence: layout-flat 1 and 1, layout-tension 12.5 and 16.32; test site A 2.81 and 9.59 at 1440 px, 1.94 and 7.33 at 390 px; test site B 2.56 and 5.31 at 1440 px, 1.92 and 14.77 at 390 px. The text cutoff sits within 0.08 of two site readings at 390 px (1.94 and 1.92) | Needs pages outside the test sites: a set of award-listed pages against default-template pages for the same brief, judged by reviewers ("has a clear top?") before the cutoff is applied; then compare text ratios of 1, 2 and 4 |
11
+ | H3 | UR2 (empty space has a shape, layout.empty-space) | Cutoff: minSpread 0.5. The first view is read as a shape when the emptiest and the fullest of its 9 areas differ by at least 0.5 (50 percentage points of empty share); below that the space is spread evenly. How it was picked: a midpoint between the two fixtures (layout-flat 0.11, layout-tension 1), our claim, set before any real page was measured. It was briefly lowered to 0.3 and restored, because a cutoff tuned to the sites it runs on cannot be tested by them. Observed so far, not evidence: test site A 0.54 at 1440 px and 0.25 at 390 px; test site B 0.42 at 1440 px and 0.75 at 390 px. The cutoff sits within 0.04 of test site A at 1440 px | Needs pages outside the test sites: award-listed pages against default templates, judged by reviewers ("looks placed or looks left over?") before the cutoff is applied; then compare spreads of 0.1, 0.3, 0.5 and 0.7 |
12
+ | H4 | UR3 (one focal point, layout.focal-point) | Cutoff: minDominance 2. One block leads the first view when its area is at least 2 times the next largest block. How it was picked: a round starting value, our claim, set before any real page was measured (the stub used the same). It was briefly lowered to 1.5 after the site readings were known and restored, because a cutoff tuned to the sites it runs on cannot be tested by them. Observed so far, not evidence: layout-flat 1, layout-tension 16.32; test site A 1.52 at 1440 px and 2.48 at 390 px; test site B 1.06 at 1440 px and 3.76 at 390 px. At this cutoff both sites get the hint at 1440 px (test site A sits at 1.52) and neither does at 390 px | Needs pages outside the test sites: a five second test ("where did you look first?") on award-listed pages and default-template pages before the cutoff is applied; then compare dominance 1, 1.5, 2 and 3 on how often reviewers agree on one element |
13
+ | H5 | UR4 (the page changes pace, rhythm.pace) | Cutoff: minSections 3, minHeightRatio 1.5, minDensityRatio 1.5. A page of at least 3 sections changes pace when its tallest section is at least 1.5 times its shortest, or its densest at least 1.5 times its sparsest; the hint fires only when both ratios stay below. How it was picked: round starting values, our claim, set before any real page was measured. Observed so far, not evidence: height ratios rhythm-flat 1, rhythm-sequence 3, test site A 23.38 at 1440 px and 33.5 at 390 px, test site B 15 at 1440 px and 16.55 at 390 px; density ratios rhythm-flat 1, test site A 9.02 at 1440 px and 4.56 at 390 px, test site B has a section of density 0 so the ratio has no bound | Needs pages outside the test sites: scroll recordings of award-listed pages and default-template pages, judged by reviewers ("does the page have a beat or does it repeat?") before the cutoff is applied; then compare height ratios of 1, 1.5 and 3 |
14
+ | H6 | UR6 (the climax sits where it was declared, rhythm.climax) | Cutoff: maxShift 0.2. The measured climax (the section with the largest type, centered on its position in the page) may sit up to 0.2 of the page height from the climax beat of the declared map. How it was picked: a round starting value, our claim, set before any real page was measured. Observed so far, not evidence: on rhythm-sequence the climax is 0.01 from a map with the climax third and 0.39 from a map with the climax first; the two real sites declare no map, so no real page has tested it | Needs pages outside the test sites: pages whose climax was placed on purpose and mapped by their authors, judged "on the beat" or not by reviewers before the cutoff is applied |
15
+ | H7 | UR5 (the sequence follows the declared map, rhythm.map) | A section marked "breathe" should not be denser than the median section of the page and one marked "accelerate" should not be sparser; the beat count must equal the section count. Our claim, a hint only; no number is used as a cutoff. A section is flagged only when its density differs from the median by more than densityStep, the share of one row of the coverage grid in that section (8 px over the measured section height): that is the measuring resolution, not a cutoff, so a difference smaller than one row is not read as a difference. Observed so far: no real page declares a map | Needs pages outside the test sites: pages whose authors say they followed their map against pages built without one, before the hint is applied |
16
+ | H8 | UG2 (the grid is not the inherited default, layout.grid) | Cutoff: minViewport 768. The grid is judged only at viewports of 768 px and wider. How it was picked: 768 is the kit's default middle width (check-design reads 1440, 768 and 390), so a phone width is never judged; at a phone width almost every page is one column between two margins. It was not picked from a reading. The grid looks inherited when every section of the page sits between the same left and right edges, centered in the viewport. Our claim, a hint only. Observed so far, not evidence: uniformGrid is false on test site A and test site B at both widths and true on the layout-uniform fixture | Needs pages outside the test sites: ask "was this layout chosen or inherited?" for award-listed pages and default-template pages and check the flag matches the answers |
17
+ | H9 | UR9 (hover changes the look, states.hover) | Our claim, a hint only; no number is used as a cutoff. With :hover forced by DevTools on one button or link per distinct look, the computed look of the element, its ::before, ::after and its children (the properties the states measurer reads) differs from its look at rest. Limits: a hover added by a script or styled on a parent is not seen and reads as unchanged; a property outside the read list is not seen; at most 40 looks are forced per page (a sampling limit, noted when it cuts); 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. Observed so far, not evidence: states-controls fixture 5 of 9 looks unchanged (dead, scripted, parent-styled, a big descendant tree, an endless animation read at rest); test site A 4 of 4 unchanged at 1440 and 390 px; test site B 7 of 8 at 1440 px and 6 of 8 at 390 px, where one hover comes from a script | Needs pages outside the test sites: pointer recordings of award-listed and default-template pages, with reviewers marking which controls answer the pointer, against the list of unchanged looks |
18
+ | H10 | UR10 (pressed changes the look, states.active) | Our claim, a hint only; no number is used as a cutoff. With :active forced alone on one button or link per distinct look, the computed look differs from its look at rest, on the same properties as H9. Limits: :active is forced alone, so a pressed look written for :hover:active is not seen; the H9 limits apply, among them that motion driven by requestAnimationFrame (GSAP and similar) cannot be stopped and may be read mid-frame. Observed so far, not evidence: states-controls fixture 8 of 9 looks unchanged; test site A 3 of 4 unchanged at 1440 and 390 px; test site B 0 of 8 at both widths (a site-wide pressed transform) | Needs pages outside the test sites: reviewers pressing each control of award-listed and default-template pages and saying whether the press showed, against the list |
19
+ | H11 | UR11 (disabled does not look enabled, states.disabled) | Our claim, a hint only; no number is used as a cutoff. A disabled button or field (disabled or aria-disabled) is listed when an enabled, valid control of the same kind on the page has an identical computed look. Limits: with no enabled peer of the kind nothing is compared (noted); a disabled look carried by a parent (a faded wrapper) is not seen. Observed so far, not evidence: states-controls fixture 1 of 2 disabled controls alike; test site A has no disabled control; test site B 4 checked, 0 alike at 1440 px and 3 checked, 0 alike at 390 px | Needs pages outside the test sites: forms with disabled controls, with reviewers saying which ones looked pressable, against the list |
20
+ | H12 | UR12 (an invalid field does not look valid, states.invalid) | Our claim, a hint only; no number is used as a cutoff. Each field marked aria-invalid is compared with valid, enabled fields; the hint lists the ones whose computed look is identical to a valid one. Limits: only an invalid field already in the render is seen, so the error state has to be staged (US8); an error shown only by a message beside the field is not part of the field's look. Observed so far, not evidence: states-controls fixture 1 of 2 invalid fields alike; neither test site A nor test site B renders an invalid field, so no real page has tested it | Needs pages outside the test sites: staged error renders of real forms, with reviewers finding the field in error, against the list |
21
+ | H13 | UR13 (the same component looks the same on every screen, coherence.same-component) | Our claim, a hint only; no number is used as a cutoff. A component is identified by kind plus text (buttons and links by their accessible name, fields by name, id or placeholder, headings by level, data-component by its value); one found on two or more screens is compared on its most common look per screen, and every property that differs is listed. Limits: buttons and links with no text or label are not matched; two different components with the same kind and text are one until marked with data-component; headings are grouped by level whatever their text, so a hero h1 set apart on purpose reads as a difference; fields with no name, id or placeholder are matched with every other such field of their type; a current-page marker made with a class alone reads as a difference. Observed so far, not evidence: coherence fixtures (three screens) 9 shared, 2 divergent (the planted button radius and card padding); test site B (the home and two inner pages) 8 shared and 1 divergent at 1440 px, 6 shared and 1 divergent at 390 px, the divergent one being the h1 headings (home hero against inner page titles); test site A (the home and two other pages) 2 shared and 2 divergent at both widths (h3 headings and one footer link) | Needs pages outside the test sites: products of several screens with reviewers marking which differences they see as the same component drifting, against the list |
22
+ | H14 | UR14 (few looks per kind, coherence.variants) | Cutoff: maxLooks 3. How it was picked: a round starting value, our claim (one main, one secondary and one quiet look per kind), set before any page was measured; the stub used the same. Buttons and fields are counted apart; a look is the full set of compared computed properties, so a one-pixel padding change is another look. Observed so far, not evidence: coherence fixtures 4 button looks and 1 field look; test site B 7 button looks at 1440 px and 6 at 390 px; test site A 7 at 1440 px and 9 at 390 px. Both test sites are above the cutoff at both widths, which is recorded here and not a reason to change it | Needs pages outside the test sites: products whose authors logged their variants, with reviewers judging "a set or a drift?", before the cutoff is applied; then compare cutoffs of 2, 3, 4 and 6 |
23
+ | H15 | UR15 (loading, empty, error and success are staged and reviewed) | Our claim, a hint only; no number is used as a cutoff. Staging each state through the app's own means and reviewing the captures finds problems a review of the default render misses. Observed so far, not evidence: no staged render has been reviewed yet; the test sites have no app data to stage | Needs pages outside the test sites: apps with data states, reviewed once on the default render only and once on staged renders, counting the state problems each review finds |
@@ -0,0 +1,9 @@
1
+ area: ui
2
+ title: UI
3
+ summary: "Pages composed as a whole (moves, grid, scroll as a sequence) and components with every state, looking the same on every screen."
4
+ order: 40
5
+ prefixes: [UC, UG, US, UR]
6
+ skills:
7
+ - lazuli-ui-composition
8
+ - lazuli-ui-layout-review
9
+ - lazuli-ui-states-and-system