@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.
Files changed (179) hide show
  1. package/CHANGELOG.md +120 -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 +747 -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 +19 -0
  22. package/rules/content/_area.yaml +8 -0
  23. package/rules/content/review.yaml +378 -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 +18 -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 +271 -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 +246 -0
  50. package/rules/ui/grid.yaml +75 -0
  51. package/rules/ui/review.yaml +400 -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 +183 -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 +36 -0
  64. package/skills/lazuli/procedures/show-options.md +33 -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 +40 -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 +45 -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 +162 -0
  88. package/src/commands/capture.mjs +313 -0
  89. package/src/commands/catalog.mjs +37 -0
  90. package/src/commands/check-design.mjs +463 -0
  91. package/src/commands/check-goals.mjs +57 -0
  92. package/src/commands/compare-designs.mjs +160 -0
  93. package/src/commands/draft-memo.mjs +162 -0
  94. package/src/commands/hooks.mjs +345 -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 +325 -0
  101. package/src/commands/record-task.mjs +250 -0
  102. package/src/commands/render-options.mjs +227 -0
  103. package/src/commands/start-project.mjs +32 -0
  104. package/src/measure/a11y.mjs +391 -0
  105. package/src/measure/asset.mjs +206 -0
  106. package/src/measure/at-rest.mjs +49 -0
  107. package/src/measure/cases.mjs +566 -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 +86 -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 +522 -0
  117. package/src/measure/in-page/color.js +348 -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 +377 -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 +171 -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 +269 -0
  130. package/src/measure/in-page/weight.js +207 -0
  131. package/src/measure/layout.mjs +100 -0
  132. package/src/measure/motion.mjs +509 -0
  133. package/src/measure/piece.mjs +195 -0
  134. package/src/measure/registry.mjs +253 -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 +168 -0
  149. package/src/project/lazuli-md.mjs +521 -0
  150. package/src/project/log.mjs +335 -0
  151. package/src/project/match.mjs +200 -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 +227 -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 +133 -0
  159. package/src/report/evaluators/content.mjs +112 -0
  160. package/src/report/evaluators/extreme.mjs +87 -0
  161. package/src/report/evaluators/forms.mjs +116 -0
  162. package/src/report/evaluators/layout.mjs +103 -0
  163. package/src/report/evaluators/motion.mjs +280 -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 +166 -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 +274 -0
  177. package/src/rules/public-text.mjs +56 -0
  178. package/src/rules/schema.mjs +220 -0
  179. package/templates/LAZULI.md +88 -0
@@ -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. The same page says nothing about headings or display type, so the lower bound being skipped for display type (24 px and up, or 18.66 px and up at weight 700 or more, the WCAG 2.2 large scale that RV2 reads) is our claim, not the source's. 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; a block at WCAG large scale is display type and is hinted only above the upper bound.
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. The pair of the two largest blocks (UC9) leads when the second is at least 2 times the third, the same cutoff applied to the pair. 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
@@ -0,0 +1,246 @@
1
+ # Composition moves. A move is a way to set elements against the page and each other,
2
+ # never a layout to copy. Each move names what it is (rule), the effect it causes (why),
3
+ # when it works (works_when), when it becomes excess (excess_when), and how to push it on purpose.
4
+
5
+ - id: UC1
6
+ name: A huge number that leaves the edge of the screen
7
+ area: ui
8
+ moment: create
9
+ skill: lazuli-ui-composition
10
+ rule: >-
11
+ Set one number or short word so large that part of it runs past the edge of the viewport, and let the cut be visible. The figure is the subject of the view, not a label on it.
12
+ why: >-
13
+ Scale beyond the frame makes the element feel bigger than the screen can hold, so it becomes the focal point at once and the page reads as confident and physical rather than polite.
14
+ works_when: >-
15
+ The number or word carries the message on its own (a year, a price, a count, a name), and enough of it stays inside the frame to be read without effort.
16
+ excess_when: >-
17
+ The cut removes the part that makes it legible, more than one element in the same view bleeds this way, or the figure only decorates and says nothing the visitor needs.
18
+ origin: hypothesis
19
+ source: >-
20
+ Example move listed in the kit author's internal product plan (not public), award level section; the effect is our claim. Context only: the data.europa.eu guide page https://data.europa.eu/apps/data-visualisation-guide/breaking-the-grid (section "Breaking the grid", opened 2026-11-25) describes chart peaks that run off the image edge to stand out.
21
+ when_to_break: >-
22
+ Push it further (a figure that fills the view and is cropped hard) only for a single statement moment such as an opening or a launch, declared with break-a-rule first.
23
+ break_effect: >-
24
+ The viewer feels the page shout one fact, so the number becomes the memory of the page and everything else reads as its footnote.
25
+ test: >-
26
+ The layout report shows a text element whose box crosses the viewport edge and is the largest element of the first view (the focal point). The reviewer checks the figure is still readable at every width. Choosing the move is logged with record-decision as followed; pushing it past its excess is a break, declared with break-a-rule, and its broken decision is logged only after the break is kept after review.
27
+ example: >-
28
+ An architecture studio opens with the year it was founded set so large that the last digit is sliced by the right edge, with one line of text below.
29
+ counterexample: >-
30
+ A statistic set at the same size as the headline beside it, centered in a box with padding on all sides.
31
+
32
+ - id: UC2
33
+ name: The text column on the side opposite the image
34
+ area: ui
35
+ moment: create
36
+ skill: lazuli-ui-composition
37
+ rule: >-
38
+ Move the text column away from the center to the side opposite the main image, so the two weigh against each other across the page instead of stacking on one axis.
39
+ why: >-
40
+ The eye travels between the two masses, which gives the view tension and direction; a centered stack gives the eye nothing to cross.
41
+ works_when: >-
42
+ The image has its own weight and a direction (a gaze, a line, an open area) that points toward the text, and the column keeps a comfortable line length.
43
+ excess_when: >-
44
+ The column is pushed so far that it reads as a margin note, the gap between text and image is so wide that they look unrelated, or every section repeats the same swap until it becomes a pattern.
45
+ origin: hypothesis
46
+ source: >-
47
+ Example move listed in the kit author's internal product plan (not public), award level section; the effect is our claim.
48
+ when_to_break: >-
49
+ Put the text over the image itself, on its quiet area, when the image and the words must be read as one statement; declare it with break-a-rule first.
50
+ break_effect: >-
51
+ Text and image fuse into a single poster-like unit, so the view feels bolder and more editorial, at the cost of some reading comfort.
52
+ test: >-
53
+ The layout report shows the text block and the main media block on opposite sides of the center of the view, with no overlap. The reviewer checks the text is still the reading path. Choosing the move is logged with record-decision as followed; pushing it is a break, declared with break-a-rule, and its broken decision is logged only after the break is kept after review.
54
+ example: >-
55
+ A portrait over most of the left of the view, looking right, and a narrow text column on the far right where the gaze lands.
56
+ counterexample: >-
57
+ The image centered on top and the text centered under it, on every section of the page.
58
+
59
+ - id: UC3
60
+ name: An image that invades the next section
61
+ area: ui
62
+ moment: create
63
+ skill: lazuli-ui-composition
64
+ rule: >-
65
+ Let one image cross the boundary between two sections, so part of it sits in the section below and the edge between them is no longer a straight line.
66
+ why: >-
67
+ A crossing ties the two sections into one surface and tells the visitor that the page continues, so the end of a section stops looking like the end of the page.
68
+ works_when: >-
69
+ The two sections belong to the same thought, and the crossing image is the one element that connects them.
70
+ excess_when: >-
71
+ Several images cross at once, the crossing covers text, or it happens at every boundary so the page has no edges left to cross.
72
+ origin: hypothesis
73
+ source: >-
74
+ Example move listed in the kit author's internal product plan (not public), award level section. The effect in why follows Nielsen Norman Group, "The Illusion of Completeness", https://www.nngroup.com/articles/illusion-of-completeness/ (section "Ensure Your Pages Communicate Continuation Versus Completeness", opened 2026-11-25), which advises letting content peek past the fold or bleed off screen so people see there is more; applying it to a section boundary is our claim.
75
+ when_to_break: >-
76
+ Let the image take over most of the next section for a turning point in the story, declared with break-a-rule first.
77
+ break_effect: >-
78
+ The visitor feels carried across the boundary, so the next section reads as a consequence of the image instead of a new topic.
79
+ test: >-
80
+ The layout report counts a crossing: a media block whose box spans two sections. The reviewer checks it covers no text. Choosing the move is logged with record-decision as followed; pushing it is a break, declared with break-a-rule, and its broken decision is logged only after the break is kept after review.
81
+ example: >-
82
+ A product photo that starts in the opening section and ends halfway into the section on how it is made.
83
+ counterexample: >-
84
+ Each section a closed band with its own background and a straight edge, so the page looks like stacked strips.
85
+
86
+ - id: UC4
87
+ name: The rhythm changes in the middle of the scroll
88
+ area: ui
89
+ moment: create
90
+ skill: lazuli-ui-composition
91
+ rule: >-
92
+ Change the tempo of the page once, on purpose, somewhere in the middle of the scroll: from dense to open, from short sections to one long one, from many small elements to one large one.
93
+ why: >-
94
+ A change of pace marks a turn in the story and keeps attention from settling into a pattern, so the visitor feels a sequence with a shape instead of a list.
95
+ works_when: >-
96
+ The change sits where the content itself turns (from the problem to the answer, from the offer to the proof), and it is written in the rhythm map before the page is built.
97
+ excess_when: >-
98
+ The tempo changes at every section, so there is no rhythm left to break, or the change has no reason in the content.
99
+ origin: hypothesis
100
+ source: >-
101
+ Example move listed in the kit author's internal product plan (not public), award level section; a single change placed where the content turns is our claim. Support for varying the pace comes from Designer Daily, "The Architecture of Reading: Designing Magazine Layouts for Different Paces", https://www.designer-daily.com/the-architecture-of-reading-designing-magazine-layouts-for-different-paces-211795 (section "The Feature Well: Designing for the Sink-In", part "Pacing Through the Spread", opened 2026-11-25; the page shows no publication date): within a feature the pace should vary from spread to spread, a text-heavy spread followed by a quiet image or a burst of pictures.
102
+ when_to_break: >-
103
+ Make the change abrupt (a sudden full-view silence after a dense run) when the story has a real rupture, declared with break-a-rule first.
104
+ break_effect: >-
105
+ The visitor feels a jolt, so the moment after the change is remembered as the point of the page.
106
+ test: >-
107
+ The rhythm report shows section heights or densities that change once in the middle of the scroll, and the change matches the declared rhythm map. Choosing the move is logged with record-decision as followed; pushing it is a break, declared with break-a-rule, and its broken decision is logged only after the break is kept after review.
108
+ example: >-
109
+ A service page that moves quickly through short dense sections, then slows to one long open section with a single image and one paragraph where the method is told.
110
+ counterexample: >-
111
+ Every section the same height, the same density and the same title size from top to bottom.
112
+
113
+ - id: UC5
114
+ name: Empty space as the main element
115
+ area: ui
116
+ moment: create
117
+ skill: lazuli-ui-composition
118
+ rule: >-
119
+ Make the empty area the largest thing in a view and place the content against it, so the space is composed rather than left over.
120
+ why: >-
121
+ Generous empty space can make a layout read as classic, elegant or rich, while a crowded view reads as cluttered; an element isolated in the space becomes the one thing to look at.
122
+ works_when: >-
123
+ The view has one message, the content placed against the space is the one thing to see, and something still signals that the page continues.
124
+ excess_when: >-
125
+ The space sits at the top of the page and hides what the page offers, it separates items that belong together so they look unrelated, or it makes the view look finished so people stop scrolling (a false floor).
126
+ origin: hypothesis
127
+ source: >-
128
+ Example move listed in the kit author's internal product plan (not public), award level section; the weight of an isolated element is our claim. The elegance effect follows Wikipedia, "White space (visual arts)", https://en.wikipedia.org/wiki/White_space_(visual_arts) (introductory section, opened 2026-11-25): extensive white space can give a classic, elegant or rich appearance, and little of it can look cluttered. The false floor in excess_when follows Nielsen Norman Group, "The Illusion of Completeness", https://www.nngroup.com/articles/illusion-of-completeness/ (section "Illusion of Completeness on the Vertical Dimension", opened 2026-11-25), which lists wide white space between elements as a cause. Space at the top hiding the offer and related items looking unrelated follow Portent, "Less Is Not Always More: How Too Much White Space Can Harm User Experience", https://portent.com/blog/content/less-is-not-always-more-how-too-much-white-space-can-harm-user-experience.htm (opened 2026-11-25).
129
+ when_to_break: >-
130
+ Leave a whole view almost empty for a pause or a single line of text, declared with break-a-rule first.
131
+ break_effect: >-
132
+ The visitor slows down and reads the one line as a statement, so the page feels confident enough to say nothing for a moment.
133
+ test: >-
134
+ The layout report shows which cells of the first view are empty and where the focal point sits; the reviewer checks the view still signals that the page continues. Choosing the move is logged with record-decision as followed; pushing it is a break, declared with break-a-rule, and its broken decision is logged only after the break is kept after review.
135
+ example: >-
136
+ A jeweler's page where a small photo of one ring sits low on the right of a wide empty view, with the next section's edge visible at the bottom.
137
+ counterexample: >-
138
+ Space spread evenly as padding around every element, so no area is empty enough to be seen.
139
+
140
+ - id: UC6
141
+ name: One element crosses the gutter and ties two halves
142
+ area: ui
143
+ moment: create
144
+ skill: lazuli-ui-composition
145
+ rule: >-
146
+ In a view split into two halves or columns, let one element (usually the title) run across the gutter between them, off the alignment the rest keeps.
147
+ why: >-
148
+ An element that leaves the alignment of the grid creates tension and dynamism, and a title that crosses a split joins the two halves into one statement.
149
+ works_when: >-
150
+ The rest of the view keeps the grid, so the one crossing is visible, and the two halves really belong to the same idea.
151
+ excess_when: >-
152
+ Several elements cross, so the split no longer reads, or the crossing title lands on an image where it cannot be read.
153
+ origin: source
154
+ source: >-
155
+ data.europa.eu data visualisation guide, "Breaking the grid", https://data.europa.eu/apps/data-visualisation-guide/breaking-the-grid (section "Breaking the grid", opened 2026-11-25): an element not aligned to the grid of a publication creates tension and dynamism, with an example of a title crossing a split layout.
156
+ when_to_break: >-
157
+ Let the crossing element dominate both halves (a title larger than either column) when the two halves are a comparison, declared with break-a-rule first.
158
+ break_effect: >-
159
+ The view reads as a confrontation framed by one word, so the comparison feels charged instead of neutral.
160
+ test: >-
161
+ The layout report shows a text block whose box spans both columns of a split section while the other blocks stay inside their column. Choosing the move is logged with record-decision as followed; pushing it is a break, declared with break-a-rule, and its broken decision is logged only after the break is kept after review.
162
+ example: >-
163
+ A before and after of a renovation, a photo in each half, and the project name set across the seam between them.
164
+ counterexample: >-
165
+ Two halves with their own centered titles, so the view reads as two unrelated panels side by side.
166
+
167
+ - id: UC7
168
+ name: An opening that sets the tone with one full-bleed image
169
+ area: ui
170
+ moment: create
171
+ skill: lazuli-ui-composition
172
+ rule: >-
173
+ Open the page (or a long story inside it) with one dominant image that runs to the edges of the view, and keep the words to the minimum that names what follows.
174
+ why: >-
175
+ A bold full-bleed opening works like a curtain raiser: it sets the emotional tone before the visitor reads anything, so the rest of the page is read in that mood.
176
+ works_when: >-
177
+ The image carries the mood the goals ask for, and the opening still shows what the page offers and that it continues.
178
+ excess_when: >-
179
+ The image fills the whole first view with no sign of more below, so people take it for the whole page, or it is a generic photo that sets no tone at all.
180
+ origin: source
181
+ source: >-
182
+ Designer Daily, "The Architecture of Reading: Designing Magazine Layouts for Different Paces", https://www.designer-daily.com/the-architecture-of-reading-designing-magazine-layouts-for-different-paces-211795 (section "The Feature Well: Designing for the Sink-In", part "Pacing Through the Spread", opened 2026-11-25; the page shows no publication date): the opening spread of a feature should be bold and atmospheric and set the tone, often with a dominant full-bleed image; applying it from a magazine spread to a web page is our claim. Excess from Nielsen Norman Group, "The Illusion of Completeness", https://www.nngroup.com/articles/illusion-of-completeness/ (section "Illusion of Completeness on the Vertical Dimension", opened 2026-11-25), which names large hero images as a cause of the false floor.
183
+ when_to_break: >-
184
+ Let the image take the whole first view with no text when the brand is known and the mood is the message, declared with break-a-rule first.
185
+ break_effect: >-
186
+ The visitor enters a place before reading a pitch, so the page feels like an experience rather than an offer.
187
+ test: >-
188
+ The layout report shows one media block covering most of the first view and touching its side edges, and the reviewer checks there is a sign that the page continues. Choosing the move is logged with record-decision as followed; pushing it is a break, declared with break-a-rule, and its broken decision is logged only after the break is kept after review.
189
+ example: >-
190
+ A mountain hotel opening with a wide photo of the valley at dawn, its name small in a corner, and the top of the next section visible at the bottom.
191
+ counterexample: >-
192
+ A stock photo of people shaking hands behind a centered headline and two buttons.
193
+
194
+ - id: UC8
195
+ name: A breather after a dense stretch
196
+ area: ui
197
+ moment: create
198
+ skill: lazuli-ui-composition
199
+ rule: >-
200
+ After a run of dense sections, place one open section with little content and wide margins before the next dense part.
201
+ why: >-
202
+ Open areas give the eye somewhere to rest and let what was just read settle, so the dense parts feel lighter and the page has a pulse.
203
+ works_when: >-
204
+ The dense part before it asked for real effort, and the breather holds one small thing worth a pause (a quote, a figure, an image).
205
+ excess_when: >-
206
+ Breathers come after every section, so the page feels empty, or the open section is so tall that it looks like the end of the page.
207
+ origin: source
208
+ source: >-
209
+ Designer Daily, "The Architecture of Reading: Designing Magazine Layouts for Different Paces", https://www.designer-daily.com/the-architecture-of-reading-designing-magazine-layouts-for-different-paces-211795 (section "The Feature Well: Designing for the Sink-In", part "The Breather", opened 2026-11-25; the page shows no publication date): generous margins and deliberately empty areas give the eye a place to rest so complex ideas settle; applying it from a magazine feature to the scroll of a web page, and that the dense parts feel lighter and the page has a pulse, are our claim.
210
+ when_to_break: >-
211
+ Make the breather a full view with nothing but color or texture, declared with break-a-rule first.
212
+ break_effect: >-
213
+ The visitor feels a deliberate silence, so the section after it lands with more force.
214
+ test: >-
215
+ The rhythm report shows a low-density section between denser ones. Choosing the move is logged with record-decision as followed; pushing it is a break, declared with break-a-rule, and its broken decision is logged only after the break is kept after review.
216
+ example: >-
217
+ A long technical page that, after the specifications, gives one open view to a single sentence from a customer.
218
+ counterexample: >-
219
+ Specifications, pricing, questions and contact packed one after another with the same tight spacing.
220
+
221
+ - id: UC9
222
+ name: Two blocks in deliberate tension
223
+ area: ui
224
+ moment: create
225
+ skill: lazuli-ui-composition
226
+ rule: >-
227
+ Give the first view two protagonists of near-equal weight, set so they press on each other (they touch, overlap or face each other across a narrow gap), with everything else clearly smaller.
228
+ why: >-
229
+ Two masses that neither wins keep the eye moving between them, so the view reads as a contest or a dialogue instead of a single statement.
230
+ works_when: >-
231
+ The two blocks carry two halves of one message (a claim and its proof, a product and its price, a before and an after), and together they clearly outweigh the rest of the view.
232
+ excess_when: >-
233
+ A third block of similar weight joins them, so the view has no pair and no lead, or the two blocks say the same thing, so the tension has no meaning.
234
+ origin: hypothesis
235
+ source: >-
236
+ Our claim, grown from the when_to_break of UR3 (a deliberate standoff between two equal halves); the effect is our claim.
237
+ when_to_break: >-
238
+ Let the two blocks collide so hard that one partly hides the other, for a single statement moment such as an opening, declared with break-a-rule first.
239
+ break_effect: >-
240
+ The viewer feels a clash rather than a dialogue, so the view reads as loud and physical, at the cost of reading one of the two in full.
241
+ test: >-
242
+ UR3 reads the pair: the layout report names the two largest blocks of the first view, gives the second as a multiple of the third (the pair leads when it reaches the UR3 cutoff) and says whether their boxes overlap or how far apart they are. The move is declared with record-decision --rule "UC9 followed"; then a UR3 hint where the pair leads reads as the declared move, and one where it does not stays a hint that says the move reads as its excess.
243
+ example: >-
244
+ A giant headline and a giant product photo that overlap at the center of the view, with one small line of text in a corner.
245
+ counterexample: >-
246
+ Four cards of the same size across the first view, with the headline as large as each of them.
@@ -0,0 +1,75 @@
1
+ # The grid as a decision. Which grid a page uses is chosen for the idea and logged,
2
+ # never inherited without a word.
3
+
4
+ - id: UG1
5
+ name: Choose the grid for the idea and log it
6
+ area: ui
7
+ moment: create
8
+ skill: lazuli-ui-composition
9
+ rule: >-
10
+ Choose the grid from the idea of the piece before placing anything: modular (equal fields that hold many items with the same weight), asymmetric (unequal columns that give one side the lead) or broken on purpose (a grid kept so that chosen elements can leave it). Log the choice with record-decision, naming the idea it serves and the alternative it rejects.
11
+ why: >-
12
+ A grid is a tool for an idea, not a mandatory starting point; used by habit it gives every page the same corporate look, and chosen for the idea it gives the page its structure and its character.
13
+ origin: source
14
+ source: >-
15
+ Wikipedia, "Grid (graphic design)", https://en.wikipedia.org/wiki/Grid_(graphic_design) (section "Reaction and reassessment", opened 2026-11-25): designers reacted against rigid, dogmatic use of the grid, which had become a corporate look, and it is now taught as a useful tool rather than a required starting point. The three kinds named in the rule, the logging, and that a grid chosen for the idea gives the page its structure and its character are our claim.
16
+ when_to_break: >-
17
+ Work without a declared grid for a piece that must look made by hand (a collage, a poster, a zine page); that choice is still logged with record-decision, and leaving a grid already chosen is a break declared with break-a-rule.
18
+ break_effect: >-
19
+ The viewer feels spontaneity and a personal hand, so the piece reads as made rather than assembled from a system.
20
+ test: >-
21
+ The Decisions log in LAZULI.md has an entry, marked followed and citing UG1, that names the grid, the idea it serves and the rejected alternative. Fail if the grid is justified only as what the tool or framework gave.
22
+ example: >-
23
+ A catalog of tools, all of equal weight: a modular grid, chosen over an asymmetric one because no item should lead.
24
+ counterexample: >-
25
+ A page built in whatever columns the starter template had, with no entry that says why.
26
+
27
+ - id: UG2
28
+ name: A default container is a choice only when logged
29
+ area: ui
30
+ moment: create
31
+ skill: lazuli-ui-composition
32
+ rule: >-
33
+ A framework's default container and columns count as a design choice only when they are logged as one with record-decision, with the reason they fit this idea. Unlogged, they are an inherited default and the grid decision is still open.
34
+ why: >-
35
+ The default container gives every site built on the same framework the same width, margins and columns, so pages that never chose their grid look alike before any content is placed.
36
+ origin: hypothesis
37
+ status: hypothesis
38
+ hypothesis: H8
39
+ measure: layout.grid
40
+ threshold: { minViewport: 768 }
41
+ source: >-
42
+ Our claim, not verified yet. Context only: the CSS Design Awards page https://www.cssdesignawards.com/about (opened 2026-11-25) says templates may be entered but winning depends on the originality of the design and the code; it says nothing about containers.
43
+ when_to_break: >-
44
+ Ship the inherited default with no design reason only when the piece is a throwaway or an internal tool where the grid carries no idea. That is a break: declare it with break-a-rule first, and log its broken decision only after the break is kept after review. Keeping the default for a stated reason (for example continuity with a product around it) follows this rule and is logged with record-decision as followed.
45
+ break_effect: >-
46
+ The page looks like every other page built on the same framework, so it reads as neutral and disposable, which is acceptable only where no one needs to remember it.
47
+ test: >-
48
+ If the rendered page uses the framework's default container width and columns, the Decisions log has an entry citing UG2 that says why. The reviewer asks for the entry when it is missing. The layout measurer helps: it gives a hint when every section of the render sits between the same edges, centered in the viewport (the hint is a hypothesis, not a verdict). The hint is read only at viewports of minViewport px and wider: at a phone width almost every page is one column between two margins, so a phone width is never judged.
49
+ example: >-
50
+ A marketing page inside a dashboard product keeps the product's container, logged as "kept for continuity with the app".
51
+ counterexample: >-
52
+ A brand launch page that uses the default centered container because it was there.
53
+
54
+ - id: UG3
55
+ name: A grid broken on purpose names what it breaks
56
+ area: ui
57
+ moment: create
58
+ skill: lazuli-ui-composition
59
+ rule: >-
60
+ When an element leaves the chosen grid on purpose, name the grid line or field it breaks and the effect the break is meant to cause. Declare it with break-a-rule first; log its broken decision only after the break is kept after review. A grid chosen normally is logged with record-decision as followed.
61
+ why: >-
62
+ An element not aligned to the grid creates tension and dynamism and draws attention to itself, which only works when the rest keeps the grid and the break is chosen; unnamed breaks read as mistakes.
63
+ origin: source
64
+ source: >-
65
+ data.europa.eu data visualisation guide, "Breaking the grid", https://data.europa.eu/apps/data-visualisation-guide/breaking-the-grid (section "Breaking the grid", opened 2026-11-25): an element not aligned to the grid creates tension and dynamism, and breaking the grid can draw attention to outliers in the data. Applying it from data points to any element of a page, that it only works when the rest keeps the grid, that unnamed breaks read as mistakes, declaring the break and logging it after review are our claim and follow the kit's break-a-rule procedure.
66
+ when_to_break: >-
67
+ Leave breaks unnamed only in an exploratory sketch that will not ship; before the piece ships, each break is named and declared with break-a-rule.
68
+ break_effect: >-
69
+ The sketch stays fast and loose, so ideas come quickly; the cost is that nobody can tell yet which breaks were chosen and which were accidents.
70
+ test: >-
71
+ For each element that leaves the grid, the Breaks log has an entry with the line or field broken and the effect, and its broken decision exists only after the break is marked kept. Fail if elements leave the grid with no entry.
72
+ example: >-
73
+ A headline that runs out of the text column into the margin, logged as breaking the right edge of column two so the claim feels too big for the page.
74
+ counterexample: >-
75
+ Elements off the columns by a few pixels here and there, with no entry, because the spacing was eyeballed.