@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,219 @@
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.
@@ -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.