@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,159 @@
1
+ # Review. The rules check-design reads from the chart measure on the rendered page (svg geometry and paint,
2
+ # canvas pixels), and the message at first look that the first look and the reviewer judge. Each one points at
3
+ # the create rule it checks; the numbers are hypotheses in HYPOTHESES.md of this area, never verdicts.
4
+
5
+ - id: DR1
6
+ name: Bars start at zero, read from the chart
7
+ area: data
8
+ moment: review
9
+ skill: lazuli-data-charts-and-dashboards
10
+ rule: >-
11
+ In every bar chart on the page, the value the bars grow from is zero on the value axis (DC3). check-design reads it from the rendered chart: the base the bars share and the value of that base on the axis ticks.
12
+ why: >-
13
+ Bars are read by their length, so a base above zero makes a small difference look large; reading the rendered chart catches an axis a library cut on its own, which the code may not show.
14
+ origin: source
15
+ source: >-
16
+ Government Analysis Function (UK), Data visualisation: charts, publication date 19 May 2022, https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-charts/ (sections "Formatting bar charts" and "Do not break the numerical axis on bar charts", opened 2026-11-26): breaking the numerical axis on a bar chart distorts the relative proportions of the bars. Reading the base value from the rendered svg, through the ticks fitted to a linear scale, is our claim.
17
+ measure: chart.baseline
18
+ when_to_break: >-
19
+ None for bars: when zero hides the story, change the form (DC2) instead of cutting the bars. A range drawn as floating bars is not read as bars from one base.
20
+ break_effect: >-
21
+ Not applicable to bars.
22
+ test: >-
23
+ check-design reads each svg bar chart: the bars that share one base, and the value of that base on the axis when the tick numbers lie on a linear scale. Hint naming the base value and the tick range. Not read: the baseline of a canvas chart (read from its pixels only), stacked or floating bars, an axis whose ticks are not plain numbers on a linear scale (a log axis, dates), gradient paints and clip paths other than one rect; each is noted. The reviewer checks a cut line axis by DC3.
24
+ example: >-
25
+ Bars of sales by region growing from the 0 tick of the axis.
26
+ counterexample: >-
27
+ Bars whose axis starts at 50, so a region with 60 looks twice the size of one with 55.
28
+
29
+ - id: DR2
30
+ name: Chart labels are large enough
31
+ area: data
32
+ moment: review
33
+ skill: lazuli-data-charts-and-dashboards
34
+ rule: >-
35
+ Every label of a chart (axis ticks, series names, values, annotations and the legend texts) renders at the size of H1 or larger at every width the page runs at (DC8).
36
+ why: >-
37
+ A chart scaled down with its container shrinks its text with it; the rendered size, not the size in the code, is what the reader gets. (our claim)
38
+ origin: hypothesis
39
+ status: hypothesis
40
+ hypothesis: H1
41
+ source: >-
42
+ Our claim, not verified yet. The H1 row says how the size was picked, before any chart was measured, and that published guidance gives no minimum size.
43
+ measure: chart.label-size
44
+ threshold: { minLabelPx: 12 }
45
+ when_to_break: >-
46
+ A dense chart for a large screen only (a control room wall) may keep smaller labels, declared with break-a-rule first, as DC8 says.
47
+ break_effect: >-
48
+ More labels fit, at the cost of the readers who view the chart closer or smaller than planned.
49
+ test: >-
50
+ check-design reads the rendered size of each text of an svg chart (its computed font size times the scale of its screen transform) at each width and hints with the labels under the cutoff of H1. Not read: the labels of a canvas chart (read from its pixels only), text drawn as paths, the chart's HTML title and caption, gradient paints and clip paths other than one rect. The first look at the smallest width says whether the labels can be read.
51
+ example: >-
52
+ An svg bar chart whose tick labels keep their size when the chart narrows to a phone.
53
+ counterexample: >-
54
+ An svg chart scaled with its viewBox whose tick labels render at a third of their size on a phone.
55
+
56
+ - id: DR3
57
+ name: Series are named at the data, not only in a legend
58
+ area: data
59
+ moment: review
60
+ skill: lazuli-data-charts-and-dashboards
61
+ rule: >-
62
+ In a chart with several series, each series is named next to its data (DC4); a series named only in a legend, or not named at all, is matched by color alone, which DC6 forbids for the information.
63
+ why: >-
64
+ A legend makes the reader match names to data by color, back and forth, which some people with color vision deficiencies cannot do; a name next to the data needs no matching.
65
+ origin: hypothesis
66
+ status: hypothesis
67
+ hypothesis: H2
68
+ source: >-
69
+ Our claim, a heuristic reading. It borrows WCAG 2.2 1.4.1 Use of Color (Understanding SC 1.4.1, https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html, opened 2026-11-26 for DC6) for a reading of the markup that can be wrong both ways, so it is a hypothesis hint and never a norm fail; the norm is DC6, judged by the reviewer. The definitions the reading rests on are in H2.
70
+ measure: chart.direct-labels
71
+ when_to_break: >-
72
+ A chart whose series overlap so densely that no label fits next to its data may use a legend, declared with break-a-rule first, as DC4 says; the series still need a second cue for DC6.
73
+ break_effect: >-
74
+ The chart keeps every series, at the cost of a color matching step for the reader.
75
+ test: >-
76
+ check-design reads, in each svg chart with two or more series, the texts within reach of each series' marks or in the series' color, and the legend (an element whose class, id or label has the word legend). Hint naming the series found only in the legend and the count of series named neither at the data nor in the legend. Not read: the legend and labels of a canvas chart (read from its pixels only), a legend whose markup lacks the word (its swatches read as marks), gradient paints and clip paths other than one rect. The reviewer checks DC6 on the chart sheet.
77
+ example: >-
78
+ Three lines each named in dark text at their right end, with no legend.
79
+ counterexample: >-
80
+ Three lines named only in a box of colored squares under the chart.
81
+
82
+ - id: DR4
83
+ name: Few saturated colors per chart
84
+ area: data
85
+ moment: review
86
+ skill: lazuli-data-charts-and-dashboards
87
+ rule: >-
88
+ A chart uses no more saturated colors for its series than the count of H3 (DC5); the other series are neutral, grouped, or split into small multiples.
89
+ why: >-
90
+ Many strong colors compete for the eye and are hard to tell apart and to remember; a chart with one highlight and neutral series points at its message. (our claim)
91
+ origin: hypothesis
92
+ status: hypothesis
93
+ hypothesis: H3
94
+ source: >-
95
+ Our claim, carried over from the color area of this kit: the count is that of color H19 (the hypothesis of ES8, few colors in a chart) and the definition of a saturated color is that of color H2 (the hypothesis of PA4), both unchanged. They are kit rules, not opened pages, so this rule is a hypothesis.
96
+ measure: chart.categories
97
+ threshold: { maxCategories: 6, minSaturation: 60, minLightness: 25, maxLightness: 75 }
98
+ when_to_break: >-
99
+ A chart whose categories are all equal in weight and must each be found (a map legend of parties) may color every category, declared with break-a-rule first, as DC5 says.
100
+ break_effect: >-
101
+ Every category can be found by color, at the cost of a chart with no single point of attention.
102
+ test: >-
103
+ check-design counts the saturated colors of each chart: the series colors of an svg chart, and the color buckets of a canvas chart from its pixels. Hint naming the chart and its saturated colors. Not read: an svg series in gray, gradient paints, clip paths other than one rect, and the pixels of a canvas outside the first view. The reviewer names the series each strong color points at.
104
+ example: >-
105
+ A line chart with one blue highlight and four gray lines.
106
+ counterexample: >-
107
+ A bar chart of nine months with a different bright color for every bar.
108
+
109
+ - id: DR5
110
+ name: Series colors stay apart for color vision deficiencies
111
+ area: data
112
+ moment: review
113
+ skill: lazuli-data-charts-and-dashboards
114
+ rule: >-
115
+ Every pair of series colors in a chart stays at least the distance of H4 apart in normal vision and in the simulated protanopia, deuteranopia, tritanopia and grayscale views, unless both series are named at their data (DC4, DC5, DC6).
116
+ why: >-
117
+ Two colors that look different in normal vision may be one color for a person with a color vision deficiency or on a grey print; a pair that stays apart in every view can be told apart by more readers.
118
+ origin: source
119
+ status: hypothesis
120
+ hypothesis: H4
121
+ source: >-
122
+ The simulation is the model of Machado, Oliveira and Fernandes (2009), "A Physiologically-based Model for Simulation of Color Vision Deficiency", IEEE TVCG 15(6), from the authors' page https://www.inf.ufrgs.br/~oliveira/pubs_files/CVD_Simulation/CVD_Simulation.html (Table 1, opened 2026-11-26): matrices for protanomaly, deuteranomaly and tritanomaly by severity, severity 1.0 being the highest severity or a case of dichromacy; the kit uses the columns at 1.0 and names them protanopia, deuteranopia and tritanopia. The page names no color space; the matrices are applied in linear sRGB (our claim). The distance is CIE 1976 Delta E in CIELAB, with the conversions of CSS Color 4, section 19 "Sample code for Color Conversions", https://www.w3.org/TR/css-color-4/#color-conversion-code (opened 2026-11-26). The cutoff is our claim (H4).
123
+ measure: chart.cvd
124
+ threshold: { minDeltaE: 10, minSaturation: 60, minLightness: 25, maxLightness: 75 }
125
+ when_to_break: >-
126
+ Two series that never need to be told apart (both neutral context lines) may share close colors, declared with break-a-rule first.
127
+ break_effect: >-
128
+ One color fewer to choose, at the cost of two series a reader cannot tell apart.
129
+ test: >-
130
+ check-design simulates each pair of series colors (svg series colors; the saturated buckets of a canvas chart) in the four views and hints with the pairs under the cutoff of H4, naming the views; a pair whose two series are both labeled at the data is not counted. It writes the chart sheet `.lazuli/charts/<target key>/charts-<width>.png`: each chart as captured and in the four simulated views, for the reviewer only (the post-edit check writes no sheet). Not read: gradient paints, clip paths other than one rect, the pixels of a canvas outside the first view, and severities below 1. The reviewer says in words what each view of the sheet still shows.
131
+ example: >-
132
+ A blue and an orange line that stay apart in every simulated view.
133
+ counterexample: >-
134
+ A red and a green line of the same lightness that become one brown line with deuteranopia.
135
+
136
+ - id: DR6
137
+ name: The chart's message shows at first look
138
+ area: data
139
+ moment: review
140
+ skill: lazuli-data-charts-and-dashboards
141
+ rule: >-
142
+ A reader who sees the page once says the chart's message (DC1): the finding of its title, the comparison its form makes and the series that carries it.
143
+ why: >-
144
+ A chart can pass every measure and still show nothing at first look; only a reader who did not make it can say what it shows. (our claim)
145
+ origin: hypothesis
146
+ status: hypothesis
147
+ hypothesis: H5
148
+ source: >-
149
+ Our claim, not verified yet. The H5 row says how the first look is to be validated; no number is used.
150
+ when_to_break: >-
151
+ A chart meant for exploration has no single message (DC1); it may skip this check, declared with break-a-rule first, and the first look then says what the reader can explore.
152
+ break_effect: >-
153
+ The reader gets freedom to look for their own finding, at the cost of a chart that shows nothing at first look.
154
+ test: >-
155
+ Judged at first look, never measured: the goal's `Understand:` line states the chart's message; the first look (`lazuli capture`, then `record-first-look`) is asked, from the captures only, what the chart says, and the reviewer compares that answer with the Understand line. The first look never sees the review sheet. Reported in words; the CLI never says a chart is clear.
156
+ example: >-
157
+ The goal says "online sales passed store sales in March" and the first look answers "online overtook the stores in March".
158
+ counterexample: >-
159
+ The maker approves a chart of four equal lines because they know which one matters.
@@ -0,0 +1,18 @@
1
+ # Graphic design hypotheses to validate in the A/B
2
+
3
+ Numbers and measures of symbols and derived pieces 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. A row with a cutoff starts with `Cutoff: <key> <value>.`, says how the value was picked before any real asset was measured, and lists asset readings under "Observed so far, not evidence".
4
+
5
+ Where a row or a rule cites the kit author's internal product plan, that plan is not public and what it says is our claim.
6
+
7
+ | ID | Principle | Candidate limit | How to validate in the A/B |
8
+ |---|---|---|---|
9
+ | H1 | GR1 (the silhouette holds down to 16 px, symbol.silhouette) | Cutoff: minOverlap 0.8. How it was picked: a round starting value, our claim, set before any symbol was measured; the stub used the same. At each size the pixels of the symbol are laid over those of its largest size (nearest neighbour onto the large grid, both boxes laid out the same way) and the overlap is the shared pixels over the pixels of either; the hint fires at a size under 0.8. Definitions it rests on, fixed in advance and not cutoffs: the symbol is drawn through an image at device scale 1 on the ladder 512, 256, 128, 64, 48, 32, 24 and 16 px, starting at a raster's own longer side; a size is the longer side of the symbol's box; a pixel belongs to the symbol at alpha 128 of 255 or more (half coverage). Limits: a symbol drawn at a scale of 2 or 3 on a phone is sharper than at scale 1, so the readings are those of a scale 1 screen; a hand-hinted small raster is read as drawn; an opaque box (an app icon on its own square) has no silhouette and is not measured. Observed so far, not evidence: lazuli-symbol.svg 0.919 at 32 px and 0.881 at 16 px, the lowest of its ladder; lazuli-symbol-simple.svg, square.svg and dark-square.svg at or above 0.8 at every size; lazuli-favicon-32.png and lazuli-favicon.ico at or above 0.8 at 24 and 16 px; ring.svg 0.734 at 64 px down to 0 at 16 px; wordmark-wide.svg 0.757 at 48 px, 0.717 at 24 px and 0.367 at 16 px; stripes.svg 0 from 128 px down; lazuli-app-light-512.png not measured (opaque); smoke favicons (2026-11-26): test site A's 192 px PNG icon, read from 128 px down, 0.993 at 16 px; test site B's 180 px apple-icon PNG is an opaque square, not measured | Needs symbols outside the test assets: marks that reviewers, shown the same contact sheet, say read or do not read at 16 px, before the cutoff is applied; then compare overlaps of 0.6, 0.7, 0.8 and 0.9 on how well each separates the two groups |
10
+ | H2 | GR2 (no part of the symbol disappears in the sizes a version serves, symbol.detail) | Cutoff: minPartShare 0.02. How it was picked: a round starting value, our claim, set before any symbol was measured; the stub used the same. A part is a color bucket of the symbol's pixels at the largest size of its file (4 bits per channel, the color measurer's buckets, the 24 largest read), with its share of the symbol's pixels; only parts of at least 0.02 are checked, and a part is drawn at a size when at least one symbol pixel there falls in its bucket. Definitions it rests on, fixed in advance and not cutoffs: the symbol is drawn through an image at device scale 1 on the ladder 512, 256, 128, 64, 48, 32, 24 and 16 px; a size is the longer side of the symbol's box; a pixel belongs to the symbol at alpha 128 of 255 or more (half coverage). Limits: gradients and textures split into many buckets, each small, so their loss is read only for buckets at or above the cutoff; antialiased edges add buckets of mixed colors; a symbol drawn at a scale of 2 or 3 on a phone is sharper than at scale 1; a hand-hinted small raster is read as drawn. Observed so far, not evidence: lazuli-symbol.svg has 271 buckets at 512 px, 17 of them at 0.02 or more, none of those lost (three under the cutoff are lost: 0.012 at 24 px, 0.016 and 0.008 at 16 px); gold-lines.svg loses its gold part (0.035) from 64 px down; ring.svg loses its one part at 16 px and stripes.svg from 128 px down; lazuli-favicon-32.png and lazuli-favicon.ico each have two parts at exactly 0.02, on the cutoff, lost at 24 and 16 px; square.svg, dark-square.svg, wordmark-wide.svg, lazuli-symbol-simple.svg and lazuli-app-light-512.png keep every part; smoke favicons (2026-11-26): test site A's icon has two parts at 0.02 or more (0.624 and 0.295), both kept down to 16 px; test site B's icon has one (0.941), kept | Needs symbols outside the test assets: marks whose authors name the part that carries the idea, checked against which parts the hint lists, before the cutoff is applied; then compare shares of 0.01, 0.02 and 0.05 |
11
+ | H3 | GR3 (no stroke under one pixel at the smallest size a version serves, symbol.stroke) | Cutoff: minStrokePx 1. How it was picked: one device pixel at scale 1, the wording of the kit author's internal product plan, set before any symbol was measured; the stub used the same. The width of a stroke at a size is its drawn width scaled by its screen transform at the largest size of its file, times the size over that largest size (a non-scaling stroke keeps its width); every stroke of the file that serves a size is checked and the thinnest is reported. Definitions it rests on, fixed in advance and not cutoffs: the symbol is drawn at device scale 1 on the ladder 512, 256, 128, 64, 48, 32, 24 and 16 px; a size is the longer side of the symbol's box. Limits: strokes are read from an SVG only, so a raster gives no reading and a thin filled shape is left to the parts check (H2); a stroke drawn through a use of a shape kept in defs is not read; a symbol drawn at a scale of 2 or 3 on a phone is sharper than at scale 1; a hand-hinted small raster is read as drawn. Observed so far, not evidence: ring.svg 12 px at 512 px, 1.5 at 64, 1.125 at 48, 0.75 at 32, 0.563 at 24 and 0.375 at 16; lazuli-symbol.svg thinnest 1.28 px at 512 px down to 0.04 px at 16 px (a highlight line), under the cutoff from 256 px down; square.svg, dark-square.svg, gold-lines.svg, stripes.svg, wordmark-wide.svg and lazuli-symbol-simple.svg have no stroke; the smoke favicons of test site A and test site B are PNG files, so no stroke was read | Needs symbols outside the test assets: renders of marks at 16 and 32 px judged by reviewers ("is this line still there?") against the stroke widths, before the cutoff is applied; then compare 0.5, 1 and 1.5 px |
12
+ | H4 | GR4 (the edge holds on light and dark, symbol.contrast) | Cutoff: minContrast 3. How it was picked: the 3:1 of WCAG 2.2 1.4.11, borrowed, our claim, set before any symbol was measured; the stub used the same. 1.4.11 exempts logos, so the number is borrowed, not a norm. Each edge pixel (a symbol pixel with a 4-neighbour that is not of the symbol or lies outside the tile) is composited over the background and its contrast ratio to the background taken; the reading is the median edge pixel, so the hint fires when half of the edge is under 3:1 on either background at any size. Definitions it rests on, fixed in advance and not cutoffs: the two backgrounds are the extremes white (#ffffff) and black (#000000); the ladder 512, 256, 128, 64, 48, 32, 24 and 16 px at device scale 1; a size is the longer side of the symbol's box; a pixel belongs to the symbol at alpha 128 of 255 or more (half coverage). Limits: an opaque box is read on its box edge, so an app icon square is judged by its own background color; the median hides an outline thinner than half the edge; a symbol drawn at a scale of 2 or 3 on a phone is sharper than at scale 1; a hand-hinted small raster is read as drawn. Observed so far, not evidence: lazuli-symbol.svg on white 2.54 at 512 px and 2.5 at 256 px, 4.34 to 6.59 below; on black 2.61 to 4.14, under 3 at 48, 32, 24 and 16 px; square.svg 2.12 on black at every size; dark-square.svg 1.11 on black; gold-lines.svg 2.3 on black; ring.svg 2.05 at 512 px down to 1.39 at 24 px on black, no edge drawn at 16 px; stripes.svg 2.12 on black at 512 and 256 px, no edge drawn below; lazuli-symbol-simple.svg 1.99 to 2.63 on black; lazuli-app-light-512.png 1.13 on white at every size (a light square); lazuli-favicon-32.png and lazuli-favicon.ico 1.99, 2.63 and 2.59 on black at 32, 24 and 16 px; smoke favicons (2026-11-26): test site A 2.43 on white and 8.65 on black at every size; test site B's opaque black square 21 on white and 1 on black at every size | Needs symbols outside the test assets: marks shown on white and black tabs at 16 and 32 px, with reviewers saying where the edge is lost, before the cutoff is applied; then compare 2, 3 and 4.5 |
13
+ | H5 | GR5 (the small sizes read as the same mark, judged blind) | Our claim, judged in words; no number is used as a cutoff. How it was picked: the kit leaves to a blind look what a measure cannot say (whether 16 and 32 px are still the mark), and the CLI never says a symbol is recognizable. A fresh agent that did not draw the symbol and is not told the brand sees only sheet.png, the blind copy of symbol-sheet.png outside the project (the ladder on white and black, the small sizes also enlarged, each tile labeled with its size only), and says what it sees at 16 and 32 px and whether they are the large one. Limits: an agent's naming is not a person's; an agent may know a famous mark from training; the answer is reported in words only in v1.0 and is not counted by the effect gate. Observed so far, not evidence: no blind look has been recorded yet | Validated with the same sheet shown to people from the audience who do not know the brand, comparing what each names at 16 px, 32 px and large with what the fresh agent named; the look holds when the agent and the people name the same thing |
14
+ | H6 | GR6 (the piece fits its declared canvas, piece.fit) | Our claim, a hint only; no number is used as a cutoff. How it was picked: no value is picked; the render is compared with the declared Size exactly. An HTML piece is opened at each declared canvas at device scale 1, read at rest, and the spill is how far the document reaches past the canvas to the right and below (its scroll width and height against the viewport), the part the PNG cuts; a raster piece is compared with its natural size. Limits: content that runs past the left or top edge is not read; a spill inside a box whose overflow is hidden is not read, since that box already cuts it; overflow hidden on html or body still shows the spill; a raster piece is read for its size only. Observed so far, not evidence: og-good.html fits 1200x630; og-off.html runs 40 px below 1200x630; hidden-spill.html, with overflow hidden on html and body, runs 40 px below 400x300; the piece template fits 1200x630; app-light-512.png is the declared 512x512 and is not 1200x630; smoke (2026-11-26): no og:image was run, since test site A declares an SVG og:image (skipped as not jpeg, png or webp) and the home of test site B declares none; run by hand as a 1200x630 piece, the 192 px favicon PNG of test site A reads 192x192, not the declared size | Needs pieces outside the test assets: renders whose authors say whether the cut part mattered, checked against the spill each hint names |
15
+ | H7 | GR7 (every color of a piece is a Brand color, piece.palette) | Our claim, a hint only; no number is used as a cutoff. How it was picked: no value is picked; each color read is compared with the Brand Color lines as an exact lowercase hex. Read: the html and body backgrounds, then each visible element the walk keeps (text color where it has its own text, background color, border colors, gradient stops converted by the browser into sRGB) and the drawn fill and stroke of the shapes inside each inline svg (a shape drawn through a use of an in-document symbol is read with the paint its copy gets). Limits: colors in images, canvas and filters are not read; alpha is dropped, so a token used at 40 percent opacity counts as the token; pseudo-element colors (::before, ::after) are not read; a paint that is not a color (a url() paint server) is counted as unread in a note, never compared; a shape drawn through a use whose fill comes only from a style sheet rule on the referenced symbol is read with the use's own color; an element hidden or clipped away is not read. Observed so far, not evidence: og-good.html reads #23399a and #f4efe6, both Brand colors; og-off.html reads #e0457b on a band and a badge, off brand; body-bg.html reads #e0457b on body; sprite.html reads #e0457b on one use and #23399a on the other; svg.html reads two rect colors and one url() paint unread; smoke (2026-11-26): no og:image was read (an SVG on test site A, none on test site B), and a raster piece is read for its size only | Needs pieces outside the test assets: pieces whose authors list the colors they meant, checked against what the hint lists and misses, before the read is trusted as complete |
16
+ | H8 | GR8 (every font of a piece is a Brand font, piece.fonts) | Our claim, a hint only; no number is used as a cutoff. How it was picked: no value is picked; each rendered family is compared with the Brand Font lines by name, as the type measurer matches names. The families are those the browser reports it rendered for the visible text, read by the type measurer. Limits: fallbacks are counted as the type measurer counts them: a family that paints most of an element's glyphs counts (a font that did not load), one that paints only a few glyphs the main font lacks (an arrow, an accent) does not; text that is hidden, clipped away by a box or placed off the canvas is never counted, so an off-brand font there is not listed; a box that scrolls and spans the canvas does not clip; text drawn in images, canvas or SVG outlines is not read; a piece with no text gives no reading. Observed so far, not evidence: og-good.html renders one family, the Brand font of its test; favicon.html renders no text, so its fonts were not checked; smoke (2026-11-26): no og:image was read (an SVG on test site A, none on test site B), and a raster piece is read for its size only | Needs pieces outside the test assets: renders where the author checks which font shows on screen, against the families the hint lists |
17
+ | H9 | GR9 (the piece shows the Brand symbol file, piece.symbol) | Our claim, a hint only; no number is used as a cutoff. How it was picked: no value is picked; the address of each image, SVG image, use of another file and CSS background url of the visible piece is compared with the Brand Symbol files as the goal matcher compares targets. Limits: an inline copy of the symbol's markup is not recognized, so reference the file; a copy of the file under another name or address is not recognized; the size reported is the box the reference is drawn in, not the symbol's own pixels; whether the version fits the size (GS2) is left to the reviewer. Observed so far, not evidence: og-good.html shows lazuli-symbol.svg at 240 px; svg.html shows it at 160 px through an SVG image; favicon.html at 32 px shows lazuli-symbol-simple.svg at 24 px; og-off.html shows no Brand symbol file; smoke (2026-11-26): no og:image was read (an SVG on test site A, none on test site B), and a raster piece is read for its size only | Needs pieces outside the test assets: pieces that show the symbol in each way (file, inline copy, redrawn), checked against what the hint finds |
18
+ | H10 | GR10 (the first view shows a Brand color, color.brand) | Cutoff: maxDeltaE 10, minShare 0.005. How it was picked: carried over, not picked from a site, both set before any page was read. maxDeltaE is data H4's minDeltaE, the kit's distance under which two colors read as one (our claim there too). minShare is the chart measurer's MIN_SERIES_SHARE, the share at which a color bucket counts as present. Distance: Delta E 1976 with the conversion of in-page/cvd.js. A Brand color is present when the first-view area entries within maxDeltaE of it cover at least minShare of the first view. Definitions it rests on, fixed in advance and not cutoffs: the first view is the first viewport at the run's width and height; the entries are the color measurer's buckets (4 bits per channel, mean color of each bucket, share in percent). Limits: the screenshot is read as drawn, so text and images count by their pixels; a Brand color that appears only as a thin line or a small icon may stay under minShare; a photo of the product in brand colors counts as the brand; Delta E 1976 is not uniform across hues, so a pair near the cutoff can read differently to a person. Observed so far, not evidence: a synthetic page with a hero in the Brand blue covers 85.8% of the first view; one with a red hero finds the blue absent, its nearest bucket at Delta E 5.3 holding under 0.1% of the view (the share is rounded to 0.1 in the color report, so a bucket under 0.05% reads 0); smoke (2026-11-29, one made-up Brand blue, 1440 px): the first views of test site A and test site B found it absent, the nearest buckets at Delta E 9.3 and 60.8, both at 0% | Needs pages whose first views people sorted into showing and not showing the brand, with the Brand tokens written by the brand's own team, checked against the cutoffs before they are applied; then compare Delta E of 5, 10 and 15 and shares of 0.005, 0.02 and 0.05 |
@@ -0,0 +1,8 @@
1
+ area: graphic
2
+ title: Graphic design
3
+ summary: "A symbol with an idea only this brand could have, read from large down to 16 px on light and dark, and derived pieces that take every color, font and symbol from the Brand tokens."
4
+ order: 60
5
+ prefixes: [GI, GS, GD, GR]
6
+ skills:
7
+ - lazuli-graphic-identity
8
+ - lazuli-graphic-derived-pieces
@@ -0,0 +1,141 @@
1
+ # Identity. The symbol and the small system around it (colors with names, fonts, symbol files) that every
2
+ # derived piece reads. These rules are for the moment the identity is made. The reviewer and a blind look
3
+ # judge the idea and the distance from the sector; check-design reads the files once they exist.
4
+
5
+ - id: GI1
6
+ name: The symbol starts from the project's idea
7
+ area: graphic
8
+ moment: create
9
+ skill: lazuli-graphic-identity
10
+ rule: >-
11
+ Before any drawing, read `## Idea` in LAZULI.md and write in one sentence what only this brand has (a place, a craft, a way of working, a story) and the visual device that carries it (a cut, a fold, a letter turned into a shape, a rhythm of lines). Every symbol direction is drawn from that sentence. A symbol that could belong to any business of the sector is not started.
12
+ why: >-
13
+ A mark drawn from what the brand alone has gives people something to recognize and to retell, while a mark drawn from the sector's habits blends into its neighbors. Writing the idea first keeps the drawing from deciding it by accident. (our claim)
14
+ origin: hypothesis
15
+ source: >-
16
+ Our claim: no page opened on 2026-11-26 states this as a rule. It comes from the kit author's internal product plan (award level for graphic design: a symbol with its own idea that only that brand could have and that works from billboard to favicon) and the kit's practice of writing the idea under `## Idea` before any piece.
17
+ when_to_break: >-
18
+ A brand that keeps an existing, recognized symbol and only needs it redrawn for small sizes may skip writing a new idea, declared with break-a-rule first, and write instead what in the old symbol must be kept.
19
+ break_effect: >-
20
+ The recognition the old symbol already has is kept, and the work goes into making it read at every size.
21
+ test: >-
22
+ The reviewer checks that `## Idea` holds the sentence and the visual device before the first sketch, and that each direction shown can be traced to it.
23
+ example: >-
24
+ A bakery that opens at four in the morning: idea "the first light over the oven", device "a loaf whose score line is a horizon". Every direction starts from the score line.
25
+ counterexample: >-
26
+ A bakery symbol of a wheat ear and a chef's hat, drawn first and explained afterwards.
27
+
28
+ - id: GI2
29
+ name: Several directions side by side at 16 px and large
30
+ area: graphic
31
+ moment: create
32
+ skill: lazuli-graphic-identity
33
+ rule: >-
34
+ Draw several symbol directions and show them side by side, each at 16 px and at a large size (a billboard or a full screen), before choosing one. Choose by what reads at both sizes and carries the idea, and log the choice with record-decision, naming the directions that were dropped and why.
35
+ why: >-
36
+ A direction judged only large hides the detail that will vanish in a browser tab, and a choice made among several directions at both sizes is a choice, not the first drawing kept. (our claim)
37
+ origin: hypothesis
38
+ source: >-
39
+ Our claim: no page opened on 2026-11-26 states this as a rule; drawing several directions side by side, the 16 px size and logging the choice come from the kit author's internal product plan. Related reading, not the source of the rule: Smashing Magazine, Jon Tarr, How To Prepare Your Logo For Responsive Design Systems, https://www.smashingmagazine.com/2016/04/logo-design-responsive-websites/ (sections "A Simple Fact", "Spotify" and "Moving Forward", opened 2026-11-26) says a complex logo becomes hard to read when it is scaled down while a simple one scales cleanly, that Spotify's team tested its system on tiny mobile ads, and that how a brand appears scaled down is expected to become a standard test for logo projects.
40
+ when_to_break: >-
41
+ A redraw of an existing symbol with one obvious direction may show only that direction at both sizes, declared with break-a-rule first.
42
+ break_effect: >-
43
+ The time goes into refining one shape, at the cost of never seeing an alternative next to it.
44
+ test: >-
45
+ The reviewer checks that the sheet shows every direction at 16 px and large side by side and that the choice is logged with record-decision before the symbol is refined.
46
+ example: >-
47
+ Four directions on one sheet, each at 16 px and at 512 px, with a decision entry: chose the score-line loaf, dropped the sun (a disc at 16 px) and the hand-drawn loaf (its texture was gone at 16 px).
48
+ counterexample: >-
49
+ One symbol drawn at 800 px, approved on a large monitor, and first seen at 16 px after launch.
50
+
51
+ - id: GI3
52
+ name: Leave the sector's generic sign
53
+ area: graphic
54
+ moment: create
55
+ skill: lazuli-graphic-identity
56
+ rule: >-
57
+ Before choosing a direction, list the marks of three competitors of the sector and the signs the sector repeats (the tooth for dentists, the house for real estate, the leaf for anything natural). The chosen symbol must not be built on any of those devices. If the sector sign is wanted, it is reached through the brand's own idea, not drawn as the sector draws it.
58
+ why: >-
59
+ A symbol built on the sector's common sign is read as the sector, not as the brand, so it is remembered as one of many. (our claim)
60
+ origin: hypothesis
61
+ source: >-
62
+ Our claim: no page opened on 2026-11-26 measures distance from a sector's marks. It comes from the kit author's internal product plan (graphic design is measured by distance from the default and consistency with the brand) and is checked by the reviewer until the A/B tests it.
63
+ when_to_break: >-
64
+ A sector where the common sign is a safety or legal signal (a pharmacy cross where the law expects it) may keep it, declared with break-a-rule first, and carries the brand in the rest of the mark.
65
+ break_effect: >-
66
+ People find the service by its expected sign, and the brand is told apart by what surrounds it.
67
+ test: >-
68
+ The reviewer lists the marks of three competitors and the repeated signs of the sector, and checks that the chosen symbol uses none of their devices.
69
+ example: >-
70
+ A dental clinic lists three competitors (two teeth, one smile line) and draws its symbol from its idea, a window over the river the clinic faces.
71
+ counterexample: >-
72
+ A dental clinic symbol of a tooth with a sparkle, like the three clinics on the same street.
73
+
74
+ - id: GI4
75
+ name: The identity is declared as Brand tokens
76
+ area: graphic
77
+ moment: create
78
+ skill: lazuli-graphic-identity
79
+ rule: >-
80
+ Declare the identity as a small system in the `## Brand` section of LAZULI.md: one `- Color: <name> #RRGGBB` line per brand color, one `- Font: <family>` line per font, and one `- Symbol: <path or URL>` line per symbol file, the small version with its range. These lines are the only source every piece reads: a color, font or symbol that is not on them is not part of the brand.
81
+ why: >-
82
+ When the identity lives in one short list, every piece can be checked against it and nobody has to guess the right blue from an old file; when it lives in scattered files, each piece drifts a little. (our claim)
83
+ origin: hypothesis
84
+ source: >-
85
+ Our claim: no page opened on 2026-11-26 states this as a rule. It follows the kit's practice of keeping project facts in LAZULI.md, where check-design reads them.
86
+ when_to_break: >-
87
+ A campaign with its own temporary colors may add them to `## Brand` for its time, declared with break-a-rule first, and remove them when it ends.
88
+ break_effect: >-
89
+ The campaign stands out from the everyday brand while it lasts, and every campaign piece is still checked against a declared list.
90
+ test: >-
91
+ The reviewer checks that `## Brand` holds the Color, Font and Symbol lines before the first derived piece; check-design reads them when it checks a piece or a symbol.
92
+ example: >-
93
+ - Color: ink #1a1a1a, - Color: dawn #f2b05e, - Font: Inter, - Symbol: brand/symbol.svg, - Symbol: brand/symbol-small.svg (up to 32 px).
94
+ counterexample: >-
95
+ The brand colors live in a slide from the first meeting, the font in a designer's head, and the symbol in four files with different names.
96
+
97
+ - id: GI5
98
+ name: Palette and type come from their own areas
99
+ area: graphic
100
+ moment: create
101
+ skill: lazuli-graphic-identity
102
+ rule: >-
103
+ Choose the identity's palette with the color skill lazuli-color-palette-by-intent and its fonts with the typography skill lazuli-typography-choose-and-pair, then write the result as Brand tokens. The identity work does not repeat those choices; it decides how the symbol uses them.
104
+ why: >-
105
+ Palette and type have their own rules and checks in the kit; choosing them again inside the identity work would give two answers to the same question. (our claim)
106
+ origin: hypothesis
107
+ source: >-
108
+ Our claim: this is how the kit divides its areas. No page opened on 2026-11-26 is needed for it.
109
+ when_to_break: >-
110
+ A symbol in one color the brand already owns (an inherited color with recognition) may skip the palette skill, declared with break-a-rule first.
111
+ break_effect: >-
112
+ The inherited color keeps its recognition, and the palette work is limited to the colors around it.
113
+ test: >-
114
+ The reviewer checks that the colors and fonts in `## Brand` were chosen with the color and typography skills and logged with record-decision there.
115
+ example: >-
116
+ The palette is chosen with lazuli-color-palette-by-intent for "warm and early", the fonts with lazuli-typography-choose-and-pair, and both are written as Brand tokens before the symbol is colored.
117
+ counterexample: >-
118
+ The symbol is drawn in a blue picked from the drawing tool's swatches, and the site later uses another blue.
119
+
120
+ - id: GI6
121
+ name: Test the identity where it will live
122
+ area: graphic
123
+ moment: create
124
+ skill: lazuli-graphic-identity
125
+ rule: >-
126
+ Before the identity is approved, place it where it will live: a favicon in a browser tab, a social avatar in a circle, a large print or billboard, and a dark tab or dark mode. Look at each placement at its real size and fix what fails there before approval.
127
+ why: >-
128
+ The sizes an icon is shown at depend on the system and change over time; that the places a symbol lives also crop it and change its background, each showing a failure the drawing board does not, is our claim.
129
+ origin: source
130
+ source: >-
131
+ MDN Web Docs, Define your app icons, https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/How_to/Define_app_icons (sections "Design your icon" and "Create the necessary icon sizes", opened 2026-11-26): the sizes at which an icon is shown depend on the operating system and may change, so test it on every device and system to be supported. Evil Martians, How to Favicon (fetched title "How to Favicon in 2026: Three files that fit most needs"), https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs (section on the SVG icon with a light and dark version, opened 2026-11-26): an SVG favicon can switch between light and dark system themes with a media query. That the same test covers an avatar, a billboard and the whole identity is our claim.
132
+ when_to_break: >-
133
+ An identity for a single printed object (a one-off event poster) may skip the screen placements, declared with break-a-rule first.
134
+ break_effect: >-
135
+ The work stays on the one place the identity will be seen.
136
+ test: >-
137
+ The reviewer checks one screenshot per placement (favicon in a tab, avatar in a circle, a large print, a dark tab) and a blind look names the mark from the small placements without being told what it is.
138
+ example: >-
139
+ A sheet with the symbol in a light and a dark browser tab, as a round avatar, and on a billboard mockup, each at its real size.
140
+ counterexample: >-
141
+ The identity is approved from a presentation slide and first seen in a dark browser tab after launch, where it disappears.
@@ -0,0 +1,164 @@
1
+ # Derived pieces. Social posts, Open Graph images, a favicon set and a presentation cover made from the
2
+ # Brand tokens. These rules are for the moment a piece is made. check-design renders a piece at its declared
3
+ # canvas and compares it with the Brand tokens; the reviewer judges the idea and the composition.
4
+
5
+ - id: GD1
6
+ name: Every piece takes its brand from the Brand tokens
7
+ area: graphic
8
+ moment: create
9
+ skill: lazuli-graphic-derived-pieces
10
+ rule: >-
11
+ Take every color, font and symbol of a piece from the `## Brand` section of LAZULI.md: colors from the `- Color:` lines, fonts from the `- Font:` lines, the symbol from a `- Symbol:` line (the small version where its range covers the size). Copy them into the piece as named values; never pick a color by eye from a screenshot or an old file.
12
+ why: >-
13
+ Pieces made one by one drift a little each time, and after a year of posts the brand has five blues; reading one list keeps them the same and makes each piece checkable. (our claim)
14
+ origin: hypothesis
15
+ source: >-
16
+ Our claim: no page opened on 2026-11-26 states this as a rule. It follows GI4, where the identity is declared as Brand tokens.
17
+ when_to_break: >-
18
+ A partner piece that must carry another brand's colors (a co-branded event) may add them, declared with break-a-rule first, naming the partner.
19
+ break_effect: >-
20
+ Both brands appear as themselves, and the off-brand colors are explained instead of looking like drift.
21
+ test: >-
22
+ check-design renders the piece and lists colors (GR7), fonts (GR8) and symbol files (GR9) that are not in `## Brand`; the reviewer checks any that are there on purpose.
23
+ example: >-
24
+ An Open Graph piece whose background, text and accent are the ink, paper and dawn Brand colors, set in the Brand font, with the small symbol file.
25
+ counterexample: >-
26
+ An Instagram post whose orange was picked from a photo of the shop front and whose font was the editor's default.
27
+
28
+ - id: GD2
29
+ name: Each piece is an HTML file at its exact canvas
30
+ area: graphic
31
+ moment: create
32
+ skill: lazuli-graphic-derived-pieces
33
+ rule: >-
34
+ Make each piece as an HTML file at the exact canvas it ships at, and declare it under `## Goals` as a goal with a `Target:` line (the HTML file) and a `Size:` line (the canvas in pixels, such as 1200x630, or square sizes such as 16, 32, 180, 512). The piece is rendered from that file at that size; no piece is resized after it is rendered.
35
+ why: >-
36
+ A piece made at its real canvas shows what will be cut, wrapped or crowded, and a declared size lets the render be checked against it instead of against a guess. (our claim)
37
+ origin: hypothesis
38
+ source: >-
39
+ Our claim: no page opened on 2026-11-26 states this as a rule. Context: the Open Graph protocol, https://ogp.me/ (section "Structured Properties", opened 2026-11-26), gives og:image:width and og:image:height as pixel counts, so an image's size is a declared fact.
40
+ when_to_break: >-
41
+ A photograph used as a piece with no type or symbol on it may be exported from the photo tool, declared with break-a-rule first, with its size still declared.
42
+ break_effect: >-
43
+ The photo keeps its quality, and the size check still runs on the exported file.
44
+ test: >-
45
+ check-design renders the piece at its declared Size and reports when the content runs past the canvas (GR6); the reviewer checks that the goal has both lines.
46
+ example: >-
47
+ - Piece: link preview, - Target: pieces/og.html, - Size: 1200x630.
48
+ counterexample: >-
49
+ A link preview drawn on a 1000x1000 canvas and stretched to the platform's shape at upload.
50
+
51
+ - id: GD3
52
+ name: One idea per piece, composed on purpose
53
+ area: graphic
54
+ moment: create
55
+ skill: lazuli-graphic-derived-pieces
56
+ rule: >-
57
+ Give each piece one idea it must get across in the time a person looks at it, and compose it with the composition moves of the ui area (the lazuli-ui-composition skill), chosen for that idea. Do not fill a fixed layout with new words.
58
+ why: >-
59
+ A piece seen for a second in a feed carries one thought at most, and a composition chosen for that thought is remembered where a recycled layout is scrolled past. (our claim)
60
+ origin: hypothesis
61
+ source: >-
62
+ Our claim: no page opened on 2026-11-26 states it. It follows the kit's practice of composing each page as one composition with named moves.
63
+ when_to_break: >-
64
+ A series of pieces meant to be recognized as a series (a weekly tip) may share one composition, declared with break-a-rule first, with the idea changing inside it.
65
+ break_effect: >-
66
+ People learn to spot the series at a glance, and each piece is told apart by its one idea.
67
+ test: >-
68
+ The reviewer names the one idea of the piece from the render and checks that its moves are named and fit that idea.
69
+ example: >-
70
+ A post announcing early opening hours: the whole canvas is the score-line horizon, with the time set large where the sun would rise.
71
+ counterexample: >-
72
+ Every post is the same photo on top, title in the middle and logo in the corner, with only the words changed.
73
+
74
+ - id: GD4
75
+ name: Text and symbol stay inside the safe area
76
+ area: graphic
77
+ moment: create
78
+ skill: lazuli-graphic-derived-pieces
79
+ rule: >-
80
+ Keep the text and the symbol of a piece inside the area the platform never crops or covers, taken from the platform's current page when the piece is made. Where no page gives a safe area, keep them away from the edges and check the piece in the platform's own preview.
81
+ why: >-
82
+ Platforms crop pieces to circles, squares and other ratios, and what sits at the edge is the first thing lost; that they also lay buttons over a piece is our claim.
83
+ origin: source
84
+ source: >-
85
+ MDN Web Docs, Define your app icons, https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/How_to/Define_app_icons (section "Support masking", opened 2026-11-26): the safe zone of a maskable icon is a circle whose diameter is 80 percent of the icon's smaller side, and the content must stay inside it. LinkedIn Help, Make your website shareable on LinkedIn, https://www.linkedin.com/help/linkedin/answer/a521928 (section "Here's a tip", opened 2026-11-26): square and vertical images might be cropped when ads are shared organically. That the same cropping hits other shared pieces, that every platform has such an area, and the edge advice where none is given, are our claim.
86
+ when_to_break: >-
87
+ A piece whose idea is a crop (a symbol cut by the edge on purpose) may cross it, declared with break-a-rule first.
88
+ break_effect: >-
89
+ The cut reads as intended because the rest of the piece is inside the safe area.
90
+ test: >-
91
+ The reviewer checks the piece against the safe area written from the platform's page, with the page's URL in the record-decision entry; check-design reports content that runs past the canvas.
92
+ example: >-
93
+ A maskable app icon whose symbol sits inside the central circle of 80 percent of the side, on a full bleed brand color.
94
+ counterexample: >-
95
+ A square app icon whose symbol touches the corners and is cut by the round mask.
96
+
97
+ - id: GD5
98
+ name: Judge social and Open Graph pieces at feed size
99
+ area: graphic
100
+ moment: create
101
+ skill: lazuli-graphic-derived-pieces
102
+ rule: >-
103
+ Render an Open Graph or social piece at the canvas the platform's current page gives, then look at it scaled down to the size a feed or a link preview shows it, and judge the text and the symbol there. Give the Open Graph image its og:image:alt text. Text on the piece follows the color area's contrast rule RV2.
104
+ why: >-
105
+ LinkedIn shows images under 401 px wide as a thumbnail; that people see a shared link as a small card in a feed, where type that reads at full canvas can be unreadable, is our claim.
106
+ origin: source
107
+ source: >-
108
+ Meta for Developers, Images in Link Shares, https://developers.facebook.com/docs/sharing/webmasters/images/ (section "Requirements", opened 2026-11-26): images of at least 1200 x 630 pixels for the best display, at least 600 x 315 for link posts with larger images, and an aspect ratio close to 1.91:1 so the image shows uncropped. LinkedIn Help, Make your website shareable on LinkedIn, https://www.linkedin.com/help/linkedin/answer/a521928 (sections on the sharing module and "Important to know", opened 2026-11-26): at least 1200 x 627 pixels, ratio 1.91:1, and images under 401 pixels wide show as a thumbnail. The Open Graph protocol, https://ogp.me/ (section "Structured Properties", opened 2026-11-26): a page with og:image should give og:image:alt. Judging the piece at feed size is our claim.
109
+ when_to_break: >-
110
+ A piece meant to be opened full screen (a story read on a phone) may be judged at its full size, declared with break-a-rule first.
111
+ break_effect: >-
112
+ The piece can carry smaller text, because it is seen at its full canvas.
113
+ test: >-
114
+ The reviewer looks at the render scaled to feed size and checks that the main text and the symbol read there; check-design checks the render equals the declared Size.
115
+ example: >-
116
+ A 1200x630 link preview whose headline is set large enough to read when the card is scaled to the width the feed shows it, with og:image:alt describing the image.
117
+ counterexample: >-
118
+ A link preview with a line of small print that turns into a gray stripe in the feed.
119
+
120
+ - id: GD6
121
+ name: A favicon set rendered from the Brand symbols
122
+ area: graphic
123
+ moment: create
124
+ skill: lazuli-graphic-derived-pieces
125
+ rule: >-
126
+ Render the favicon set from the Brand Symbol lines: sizes inside the small version's range from the small symbol, larger sizes from the main one. The set holds 16 and 32 px, a favicon.ico holding them, an app icon size such as 180 px for Apple devices and 192 and 512 px for a web app manifest, and link them with rel icon and its sizes. Take each size from the pages opened for this rule and recheck them on the platform's current page before shipping.
127
+ why: >-
128
+ Browsers pick the icon they need by its sizes; that a set rendered from the Brand symbols keeps the mark the same in the tab, on the home screen and in the app list is our claim.
129
+ origin: source
130
+ source: >-
131
+ Evil Martians, How to Favicon (fetched title "How to Favicon in 2026: Three files that fit most needs"), https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs (sections on favicon.ico, the 180x180 PNG for Apple devices and the web app manifest with 192x192 and 512x512 icons, opened 2026-11-26): a favicon.ico at the root with a 32x32 image, plus a 16x16 one when 32 does not downscale well; a 180x180 apple-touch-icon; 192x192 and 512x512 manifest icons. web.dev, article on the web app manifest, https://web.dev/articles/add-manifest (section "icons", opened 2026-11-26): Chromium needs at least a 192x192 and a 512x512 icon. MDN Web Docs, rel attribute, https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel (section "icon", opened 2026-11-26): the favicon is linked with rel icon, and with several icons the browser chooses by media, type and sizes. Rendering every size from the Brand Symbol lines, each from the version whose range covers it, is our claim.
132
+ when_to_break: >-
133
+ A site that is never installed or saved to a home screen may ship only the favicon.ico and the SVG icon, declared with break-a-rule first.
134
+ break_effect: >-
135
+ Fewer files to keep, at the cost of a generic icon if someone does save it.
136
+ test: >-
137
+ check-design renders the set at the declared Size and writes favicon.ico when the sizes include 16 and 32; check-design --asset on the small symbol gives the symbol checks GR1, GR2, GR3 and GR4 on what the small sizes are drawn from, and the blind copy of its contact sheet is what the blind look GR5 reads; the reviewer checks the sizes against the opened pages.
138
+ example: >-
139
+ - Piece: favicon set, - Target: pieces/favicon.html, - Size: 16, 32, 180, 192, 512.
140
+ counterexample: >-
141
+ A 512 px photo of the shop front scaled by the browser into a 16 px tab icon.
142
+
143
+ - id: GD7
144
+ name: A presentation cover carries the idea
145
+ area: graphic
146
+ moment: create
147
+ skill: lazuli-graphic-derived-pieces
148
+ rule: >-
149
+ Make the cover of a presentation from the brand's idea and the Brand tokens, as a composition of its own, at the canvas of the presentation. Do not use a stock cover or a template theme with the logo placed on it.
150
+ why: >-
151
+ The cover is the first and often the only slide people remember, and a stock cover tells them the presentation is like any other. (our claim)
152
+ origin: hypothesis
153
+ source: >-
154
+ Our claim: no page opened on 2026-11-26 states it. It comes from the kit author's internal product plan (graphic design covers presentations among the derived pieces).
155
+ when_to_break: >-
156
+ A presentation inside a client's own template (a talk at their event) uses their cover, declared with break-a-rule first.
157
+ break_effect: >-
158
+ The talk fits the host's event, and the brand appears in the content instead.
159
+ test: >-
160
+ The reviewer checks that the cover is built from the idea and the Brand tokens and is not a stock layout; check-design compares its colors, fonts and symbol with `## Brand`.
161
+ example: >-
162
+ A cover where the score-line horizon fills the slide and the title sits on it in the Brand font.
163
+ counterexample: >-
164
+ A stock gradient cover from the slide tool with the logo pasted in the corner.