basalt-ui 2.20.0 → 2.21.0

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 (132) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/MIGRATING.md +129 -12
  3. package/agent/agents/basalt-design-reviewer.md +22 -5
  4. package/agent/rules/basalt-tokens.md +2 -2
  5. package/agent/skills/basalt-design/SKILL.md +10 -23
  6. package/agent/skills/basalt-design/references/anti-defaults.md +24 -0
  7. package/agent/skills/basalt-design/references/catalogue.md +48 -0
  8. package/agent/skills/basalt-design/references/concept.md +36 -0
  9. package/agent/skills/basalt-design/references/encoding-rules.md +45 -0
  10. package/agent/skills/basalt-design/references/stat-tile.md +24 -0
  11. package/agent/templates/AGENTS-block.md.tpl +3 -3
  12. package/configs/oxlint-plugin.js +1 -0
  13. package/dist/charts/ChartCard.d.ts +6 -2
  14. package/dist/charts/ChartCard.d.ts.map +1 -1
  15. package/dist/charts/ChartCard.js +4 -0
  16. package/dist/charts/state.d.ts +5 -0
  17. package/dist/charts/state.d.ts.map +1 -1
  18. package/dist/charts/state.js +2 -0
  19. package/dist/cli/check-theme.d.ts.map +1 -1
  20. package/dist/cli/check-theme.js +3 -0
  21. package/dist/cli/help.d.ts.map +1 -1
  22. package/dist/cli/help.js +3 -2
  23. package/dist/cli/index.d.ts +4 -2
  24. package/dist/cli/index.d.ts.map +1 -1
  25. package/dist/cli/index.js +27 -15
  26. package/dist/cli/init.d.ts.map +1 -1
  27. package/dist/cli/init.js +3 -2
  28. package/dist/cli/shot/capture.d.ts.map +1 -1
  29. package/dist/cli/shot/capture.js +6 -1
  30. package/dist/cli/shot/detect.d.ts +51 -0
  31. package/dist/cli/shot/detect.d.ts.map +1 -0
  32. package/dist/cli/shot/detect.js +396 -0
  33. package/dist/cli/shot/index.d.ts.map +1 -1
  34. package/dist/cli/shot/index.js +7 -4
  35. package/dist/cli/shot/measure.d.ts +2 -0
  36. package/dist/cli/shot/measure.d.ts.map +1 -1
  37. package/dist/cli/shot/measure.js +2 -0
  38. package/dist/cli/shot/types.d.ts +4 -1
  39. package/dist/cli/shot/types.d.ts.map +1 -1
  40. package/dist/cli/shot/types.js +2 -0
  41. package/dist/cli/sync.d.ts +2 -0
  42. package/dist/cli/sync.d.ts.map +1 -1
  43. package/dist/cli/sync.js +2 -2
  44. package/dist/common/retry-button.d.ts +12 -0
  45. package/dist/common/retry-button.d.ts.map +1 -0
  46. package/dist/common/retry-button.js +22 -0
  47. package/dist/common/retry-button.module.css +58 -0
  48. package/dist/common/retry-button.module.css.d.ts +8 -0
  49. package/dist/dashboard/bar-list.d.ts +5 -2
  50. package/dist/dashboard/bar-list.d.ts.map +1 -1
  51. package/dist/dashboard/bar-list.js +2 -2
  52. package/dist/dashboard/meter-model.d.ts +34 -6
  53. package/dist/dashboard/meter-model.d.ts.map +1 -1
  54. package/dist/dashboard/meter-model.js +44 -13
  55. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  56. package/dist/dashboard/meter-parts.js +167 -135
  57. package/dist/dashboard/meter.d.ts +11 -7
  58. package/dist/dashboard/meter.d.ts.map +1 -1
  59. package/dist/dashboard/meter.js +5 -1
  60. package/dist/dashboard/meter.module.css +18 -65
  61. package/dist/dashboard/meter.module.css.d.ts +2 -7
  62. package/dist/dashboard/query-state.d.ts +1 -1
  63. package/dist/dashboard/query-state.d.ts.map +1 -1
  64. package/dist/dashboard/query-state.js +3 -2
  65. package/dist/dashboard/stat-card.d.ts.map +1 -1
  66. package/dist/dashboard/stat-card.js +2 -1
  67. package/dist/dashboard/stat-strip.d.ts +17 -0
  68. package/dist/dashboard/stat-strip.d.ts.map +1 -1
  69. package/dist/dashboard/stat-strip.js +35 -5
  70. package/dist/dashboard/stat-strip.module.css +97 -14
  71. package/dist/dashboard/stat-strip.module.css.d.ts +4 -0
  72. package/dist/dashboard/visual-slot.d.ts +2 -0
  73. package/dist/dashboard/visual-slot.d.ts.map +1 -0
  74. package/dist/dashboard/visual-slot.js +5 -0
  75. package/dist/guard/index.d.ts +15 -2
  76. package/dist/guard/index.d.ts.map +1 -1
  77. package/dist/guard/index.js +14 -0
  78. package/dist/guard/palette.d.ts +51 -0
  79. package/dist/guard/palette.d.ts.map +1 -0
  80. package/dist/guard/palette.js +190 -0
  81. package/dist/guard/series-file.d.ts +15 -0
  82. package/dist/guard/series-file.d.ts.map +1 -0
  83. package/dist/guard/series-file.js +29 -0
  84. package/dist/guard/types.d.ts +3 -3
  85. package/dist/guard/types.d.ts.map +1 -1
  86. package/dist/surfaces.d.ts +1 -1
  87. package/dist/surfaces.d.ts.map +1 -1
  88. package/dist/surfaces.js +2 -0
  89. package/dist/theme/controls.module.css +10 -0
  90. package/dist/theme/index.d.ts.map +1 -1
  91. package/dist/theme/index.js +18 -0
  92. package/dist/tokens/oklab.d.ts +28 -0
  93. package/dist/tokens/oklab.d.ts.map +1 -0
  94. package/dist/tokens/oklab.js +73 -0
  95. package/llms.txt +7 -5
  96. package/package.json +1 -1
  97. package/src/charts/ChartCard.tsx +9 -1
  98. package/src/charts/state.tsx +9 -0
  99. package/src/cli/check-theme.ts +3 -0
  100. package/src/cli/help.ts +18 -1
  101. package/src/cli/index.ts +48 -17
  102. package/src/cli/init.ts +2 -1
  103. package/src/cli/shot/capture.ts +15 -2
  104. package/src/cli/shot/detect.ts +533 -0
  105. package/src/cli/shot/index.ts +8 -4
  106. package/src/cli/shot/measure.ts +4 -0
  107. package/src/cli/shot/types.ts +5 -1
  108. package/src/cli/sync.ts +4 -2
  109. package/src/common/retry-button.module.css +58 -0
  110. package/src/common/retry-button.module.css.d.ts +8 -0
  111. package/src/common/retry-button.tsx +29 -0
  112. package/src/dashboard/bar-list.tsx +11 -8
  113. package/src/dashboard/meter-model.ts +91 -20
  114. package/src/dashboard/meter-parts.tsx +155 -115
  115. package/src/dashboard/meter.module.css +18 -65
  116. package/src/dashboard/meter.module.css.d.ts +2 -7
  117. package/src/dashboard/meter.tsx +18 -8
  118. package/src/dashboard/query-state.tsx +4 -7
  119. package/src/dashboard/stat-card.tsx +4 -1
  120. package/src/dashboard/stat-strip.module.css +97 -14
  121. package/src/dashboard/stat-strip.module.css.d.ts +4 -0
  122. package/src/dashboard/stat-strip.tsx +85 -5
  123. package/src/dashboard/visual-slot.ts +8 -0
  124. package/src/guard/index.ts +16 -4
  125. package/src/guard/palette.ts +261 -0
  126. package/src/guard/series-file.ts +51 -0
  127. package/src/guard/types.ts +3 -2
  128. package/src/surfaces.ts +2 -0
  129. package/src/theme/__snapshots__/plain-theme.test.ts.snap +82 -48
  130. package/src/theme/controls.module.css +10 -0
  131. package/src/theme/index.ts +26 -0
  132. package/src/tokens/oklab.ts +97 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,42 @@
1
+ # [2.21.0](https://github.com/jkrumm/basalt-ui/compare/v2.20.0...v2.21.0) (2026-10-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * clip the Meter label row so a hidden name cannot overflow ([48c1174](https://github.com/jkrumm/basalt-ui/commit/48c117452412d4e5f870e5d964512ab65ff062e7))
7
+ * correct basalt-design import paths and resolve only public entries ([4901a14](https://github.com/jkrumm/basalt-ui/commit/4901a148cb5ecaa15704fcd7f9856278d6ac225d))
8
+ * cover strip states and footer, align the first cell, drop the opt-out ([eaa6dbe](https://github.com/jkrumm/basalt-ui/commit/eaa6dbe2f17af0a3d876d5935125dc0c1e330b89))
9
+ * derive the tracked skill files from the shipped skills tree ([ea4b3db](https://github.com/jkrumm/basalt-ui/commit/ea4b3dbdaaa813e19e52bbb12c0e3ed85ecd3cf8))
10
+ * draw strip dividers as borders in forced colors ([5842e63](https://github.com/jkrumm/basalt-ui/commit/5842e6347226037659ff2ca299cb786926d1ffc4))
11
+ * harden shot detect history, I/O errors and severity exit ([f85a10e](https://github.com/jkrumm/basalt-ui/commit/f85a10e35165907e13ec41c2b9220bf82c882b83))
12
+ * keep series-palette off the guard hook path and test its routing ([c2d10aa](https://github.com/jkrumm/basalt-ui/commit/c2d10aa1ed130f8693c1f3f28bdbb13846d73310))
13
+ * keep the blocked reason and one-line titles on the S3 stuck list ([fd5da9f](https://github.com/jkrumm/basalt-ui/commit/fd5da9ffd30253631dafc8d3fd9efac69e59b75f))
14
+ * keep the holding Meter zone name and pin label sets per width ([5fef7ff](https://github.com/jkrumm/basalt-ui/commit/5fef7ffd68230e42cf1087e01512189217b4b0d8))
15
+ * level the first strip cell with padding, keep the divider rule ([9a5049f](https://github.com/jkrumm/basalt-ui/commit/9a5049f847351c49807f46bbacffcfc188d3dc77))
16
+ * name the button section var like Mantine's own ([cd9f821](https://github.com/jkrumm/basalt-ui/commit/cd9f821736126d1e9f794bc38d691f31b3c407dd))
17
+ * put button section insets on the spacing scale ([a67e246](https://github.com/jkrumm/basalt-ui/commit/a67e2461263c7949350020feaa939bdcd57c940a))
18
+ * review round 1 on strip state, Retry paint and the hosted marker ([8b42a9e](https://github.com/jkrumm/basalt-ui/commit/8b42a9e3d02a70a09b9f2866f03d205238a5a42c))
19
+ * scope the muted Meter default to plain value bars ([e49b713](https://github.com/jkrumm/basalt-ui/commit/e49b7139c3e934d1165a64ae1613e0cf3466adf0))
20
+ * skip disabled controls in the shot contrast measure ([ab28344](https://github.com/jkrumm/basalt-ui/commit/ab2834459280a2357d27d3731667b5dc773412ba))
21
+ * split the buttons specimen into one anchor per size row ([c8a15d0](https://github.com/jkrumm/basalt-ui/commit/c8a15d0082d3144d9db0d1be7fa804dd4aa9a49d))
22
+ * strip cells align their rows instead of stretching to a void ([dd30822](https://github.com/jkrumm/basalt-ui/commit/dd30822c7363bcdb099b4ac844ee49228248472b))
23
+ * strip cells keep on-scale insets and no stretched void ([6a7e7fe](https://github.com/jkrumm/basalt-ui/commit/6a7e7fe86bdbfd92771d33b5b4450c3affe2393b))
24
+ * update zone name layout tests for the holding-name priority ([b0b5043](https://github.com/jkrumm/basalt-ui/commit/b0b504368248e094c01ff9fc8ca85064b427627f))
25
+
26
+
27
+ ### Features
28
+
29
+ * basalt-design as a router with concept and decision references ([5699f58](https://github.com/jkrumm/basalt-ui/commit/5699f588cb3322d5e38c2ffa66e95a686c33e8e4))
30
+ * center Meter zone labels under their spans with inline end ticks ([136af57](https://github.com/jkrumm/basalt-ui/commit/136af57a22f1444fbe914ef8d69ab1a4db783b69))
31
+ * harden skill reference placement and cover it end to end ([9e5ab89](https://github.com/jkrumm/basalt-ui/commit/9e5ab89d8ae925d355bc0f58d3de5df26caf1c88))
32
+ * let Meter zones take a short label before a name hides ([faa67b6](https://github.com/jkrumm/basalt-ui/commit/faa67b6ad1298ca8cd0eff417d8474207e720d9c))
33
+ * muted Meter fill and thin BarList rows by default ([428a015](https://github.com/jkrumm/basalt-ui/commit/428a0154978f5ab1792343faf1fd4bdff3f95ee6))
34
+ * register the shared Retry in the shadow-surface registry ([80fefe2](https://github.com/jkrumm/basalt-ui/commit/80fefe260b036a64b516771684f23d414be1440b))
35
+ * series-palette guard computes the series file's palette ([b508eaa](https://github.com/jkrumm/basalt-ui/commit/b508eaabddec8ec1623b4f0022eb3dd18b1a13c7))
36
+ * ship skill reference files through init and sync ([2b012c5](https://github.com/jkrumm/basalt-ui/commit/2b012c551ccfdafba28b68715aba70de10ffbb4d))
37
+ * shot detect, the deterministic second review pass ([716f74b](https://github.com/jkrumm/basalt-ui/commit/716f74bce59dd7cff7dc3ee5d02ecfa2bdf0141f))
38
+ * strip cell state and one Retry in the shared error anatomy ([f5eb252](https://github.com/jkrumm/basalt-ui/commit/f5eb252641fbb6e4a32b20e73c0c69a10ebe10ef))
39
+
1
40
  # [2.20.0](https://github.com/jkrumm/basalt-ui/compare/v2.19.0...v2.20.0) (2026-10-17)
2
41
 
3
42
 
package/MIGRATING.md CHANGED
@@ -66,18 +66,18 @@ There is one row per SURFACE, not per export, and a surface earns a row once any
66
66
  shipped lefthook preset both changed in 1.30.0 with no row that owned them — which is how a
67
67
  consumer read this index, found nothing, and diffed a KPI row that had silently gone 4-up → 2-up.
68
68
 
69
- | Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.9.0 | 2.9.1 | 2.10.0 | 2.11.0 | 2.11.1 | 2.12.0 | 2.13.0 | 2.13.1 | 2.13.2 | 2.13.3 | 2.14.0 | 2.15.0 | 2.16.0 | 2.17.0 | 2.18.0 | 2.19.0 | 2.20.0 | Unreleased |
70
- | ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
71
- | **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | spacing, radius, type and the dense tier (§ 2.16.0) | — | — | — | — | — |
72
- | **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BandSpan.absentFraction` + `absentState` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
73
- | **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltProvider` embedded mode, `spotlight` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | expanded gutter 24 (§ 2.16.0) | — | — | light/outline Buttons ink, no status edges (§ 2.19.0) | — | — |
74
- | **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | dense 28 tier at a fine pointer (§ 2.16.0) | — | — | — | — | — |
75
- | **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
76
- | **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
77
- | **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | card inset 12/16, `kpi` 22 / 500 (§ 2.16.0) | — | — | StatCard status dot, Meter/BarList refinements (§ 2.19.0) | — | — |
78
- | **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
79
- | **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `doctor`: CSS + forced dropped subpaths, `oxlint-floor`, Start wiring (§ 2.8.0) | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
80
- | **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | `inline-spacing` steps, `card-inset` accepts both pairs (§ 2.16.0) | — | — | — | — | — |
69
+ | Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.9.0 | 2.9.1 | 2.10.0 | 2.11.0 | 2.11.1 | 2.12.0 | 2.13.0 | 2.13.1 | 2.13.2 | 2.13.3 | 2.14.0 | 2.15.0 | 2.16.0 | 2.17.0 | 2.18.0 | 2.19.0 | 2.20.0 | 2.21.0 | Unreleased |
70
+ | ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
71
+ | **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | spacing, radius, type and the dense tier (§ 2.16.0) | — | — | — | — | — | — |
72
+ | **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BandSpan.absentFraction` + `absentState` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
73
+ | **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltProvider` embedded mode, `spotlight` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | expanded gutter 24 (§ 2.16.0) | — | — | light/outline Buttons ink, no status edges (§ 2.19.0) | — | — | — |
74
+ | **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | dense 28 tier at a fine pointer (§ 2.16.0) | — | — | — | — | — | — |
75
+ | **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
76
+ | **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
77
+ | **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | card inset 12/16, `kpi` 22 / 500 (§ 2.16.0) | — | — | StatCard status dot, Meter/BarList refinements (§ 2.19.0) | — | plain `Meter` value bar fill muted (`tone="ink"` to opt out); `BarList` default `thin`, `variant="default"` → `inline` (§ 2.21.0) | — |
78
+ | **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
79
+ | **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `doctor`: CSS + forced dropped subpaths, `oxlint-floor`, Start wiring (§ 2.8.0) | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
80
+ | **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | `inline-spacing` steps, `card-inset` accepts both pairs (§ 2.16.0) | — | — | — | — | `series-palette` at `warn` (§ 2.21.0) | — |
81
81
 
82
82
  ---
83
83
 
@@ -1046,6 +1046,123 @@ The `basalt-ui/router-tanstack` subpath is **removed** in 2.x, not moved: an imp
1046
1046
  _Nothing yet. Author the next section under this heading as `## Unreleased — <title>`; the
1047
1047
  release renames it and opens a new one here._
1048
1048
 
1049
+ ## 2.21.0 — strip cell state, one Retry, and the marker reading
1050
+
1051
+ ### One Retry in the shared error anatomy
1052
+
1053
+ **Changed:** `ErrorState`'s Retry (and so `StatCard`'s) is now a plain button shared with `ChartCard`
1054
+ and the strip cell error, styled from the same tokens as the Mantine `size="xs" variant="default"`
1055
+ Button it replaces (panel fill, `shadow-raised`, control radius, 30px). A refetch in flight now
1056
+ disables it and sets `aria-busy` instead of showing Mantine's loader overlay. **Opt out:** render
1057
+ your own Mantine `Button` through `ErrorState`'s `action` and omit `onRetry`.
1058
+
1059
+ New, additive: `ChartCard` takes `onRetry` and `retrying`. An errored `state` then shows that same
1060
+ Retry under the message, before `stateAction` (which stays for other actions). Without `onRetry`
1061
+ nothing changes, so a consumer passing its own Retry through `stateAction` keeps it — drop it for
1062
+ `onRetry` to match `StatCard`.
1063
+
1064
+ ### `StatGroup variant="strip"` cells take `state`
1065
+
1066
+ New, additive: a cell's `state` is `{ kind: 'empty', reason? }` or `{ kind: 'error', error?, onRetry?,
1067
+ retrying? }`. Empty shows `—` in the value position plus the muted reason; error shows the compact
1068
+ error anatomy (status dot, `Failed`, the message, Retry). Either replaces the cell's hero, `visual`,
1069
+ `rows` and `footer`; the caption stays and `loading` wins while pending. Before, both read as `—`
1070
+ with a footer note.
1071
+
1072
+ ### A zoned `Meter` names each zone under its own span
1073
+
1074
+ **Changed default:** zone names were left-aligned at their band start and wrapped into a list when two
1075
+ touched. They now sit centred on their zone's span in one label row; a name wider than its span (or
1076
+ clashing with a tick) hides instead of wrapping, and every zone stays named in the accessible
1077
+ description. Labelled `ticks` on a zoned `Meter` join that row at the track's ends instead of floating
1078
+ above the track, so the Meter has at most one caption line below. A plain tick `Meter` is unchanged
1079
+ except that two colliding tick captions now hide the later one instead of wrapping to a list.
1080
+ An end tick yields to the holding zone's name; the holding name never hides for width. **Opt out:** none for the placement; render a legend yourself from the same zones if you need every
1081
+ name visible at any width.
1082
+
1083
+ ### `MeterZone` takes a `short` label
1084
+
1085
+ New, additive: `{ from, to, label, short? }`. A zone name too wide for its span now falls back to
1086
+ `short` before it hides; the holding zone keeps its full `label`, and the described-by text still
1087
+ names every zone in full. Without `short` nothing changes. **Opt out:** omit `short`.
1088
+
1089
+ ### A zoned `Meter` in a hero host no longer prints the reading at its marker
1090
+
1091
+ **Changed default:** a `Meter` with `zones` inside a `StatCard` `sparkline` slot or a strip cell's
1092
+ `visual` drew the reading at the marker beside a hero showing the same number. Those hosts now
1093
+ suppress it; the track, marker and zone labels stay, and a standalone `Meter` is unchanged.
1094
+ **Opt out:** render the reading yourself where you want it (the value is in the Meter's `aria-valuetext`),
1095
+ or place the `Meter` outside those two slots.
1096
+
1097
+ ### `Meter`: the non-verdict fill is now muted
1098
+
1099
+ **Changed default:** plain `value` bars only (no `segments`, no `zones`, no `color`, no `tone`);
1100
+ `segments` (incl. forecast) and `zones` keep today's fills. A bar `Meter` with no `color` used to
1101
+ draw the full ink fill (`--vx-line`), near-white in dark. With no `color` and no `tone` it now draws
1102
+ `tone="muted"` (`--vx-muted` at a strength that holds 3:1 against the track in both schemes).
1103
+ Verdict colours (`color`, status tones) are unchanged; the ring is unchanged. Opt out: `tone="ink"`.
1104
+
1105
+ ### `BarList`: the thin track is the default
1106
+
1107
+ **Changed default:** `variant` is now `'thin' | 'inline'`, default `'thin'`
1108
+ (label on its own line above a thin bar, value right-aligned). The old default look is
1109
+ `variant="inline"`. The `'default'` literal is gone, so `variant="default"` is a type error: replace
1110
+ it with `variant="inline"` to keep the heavy label-in-track slabs, or delete the prop to take thin.
1111
+ `variant="thin"` is now redundant and still valid. The root now always carries `data-variant`
1112
+ (`thin` or `inline`) — it was absent on the old default, so `[data-variant]`-absent selectors must
1113
+ become `[data-variant='inline']`.
1114
+
1115
+ ### New guard kind `series-palette` (ships `warn`)
1116
+
1117
+ `check-theme` now judges the series module (`basalt.seriesModulePath`, default
1118
+ `<root>/lib/series.ts`) — the file the line scan exempts. Each `defineSeries({...})` call is one
1119
+ ordered categorical group; each scheme is measured against its own surface (the derive engine's
1120
+ default `surface.panel`; a consumer's `derive` overrides are not read). One finding per failed
1121
+ check, naming the key(s), scheme, measured number and threshold:
1122
+
1123
+ | Check | Threshold |
1124
+ | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
1125
+ | OKLCH lightness | light 0.43–0.77, dark 0.58–0.88 |
1126
+ | OKLCH chroma | ≥ 0.10 per categorical series |
1127
+ | Adjacent series under protanopia / deuteranopia (Machado 2009, severity 1.0) | OKLab ΔE×100 ≥ 8 |
1128
+ | Worst pair in the group, normal vision | OKLab ΔE×100 ≥ 15 |
1129
+ | Contrast against the surface | ≥ 3:1 |
1130
+ | Group size / repeats | ≤ 8 series (a 9th folds into `other`), no repeated colour |
1131
+ | Value format | #rgb or #rrggbb only; anything else is reported and left out of that scheme's other checks |
1132
+
1133
+ Only literal `{ light: '#hex', dark: '#hex' }` entries are read. A deliberately neutral series is
1134
+ keyed `other`: it skips the chroma floor and nothing else. The kind is a grace kind — `warn` from
1135
+ 2.21.0, `error` from 2.23.0 — so the upgrade stays green; the fix is to retune the hex in the series
1136
+ file, not to waive anything.
1137
+
1138
+ **Opt-out:** `"basalt": { "severity": { "series-palette": "warn" } }` keeps it a warning past
1139
+ 2.23.0, `"basalt": { "exemptRules": { "series-palette": ["<series file>"] } }` silences it for the
1140
+ file. The guard now has 27 kinds.
1141
+
1142
+ ### `StatGroup variant="strip"` cells align by part
1143
+
1144
+ **Changed:** strip cells no longer stretch to the row's tallest cell with the footer pinned to the
1145
+ bottom. Each cell spans the same five tracks of the grid (caption, value, visual, rows, footer), so
1146
+ captions and values line up across a row, and a void opens only where a sibling's same part is
1147
+ taller. Footers line up for `rows` cells (the shared footer track) and for visuals of equal height;
1148
+ a `footer` under a `visual` (and no `rows`) rides with that visual and sits one gap under it, so a
1149
+ taller sibling's visual never pushes it down or shows as a void (S3's oldest-wait Meter read 46 %
1150
+ empty beside a tall fleet legend). A cell without a visual keeps its `rows` and `footer` directly
1151
+ under its value, so a short cell ("verdicts 78 %") stays compact. The strip's hairlines are outer
1152
+ box-shadows (borders in forced-colors mode), so every cell has the same `stack-md` top inset. No new
1153
+ prop, no opt-out for the alignment, and no per-cell `align`.
1154
+
1155
+ ### `Button` section insets sit on the spacing scale
1156
+
1157
+ **Changed:** a `Button` with a `leftSection` / `rightSection` padded that side by Mantine's
1158
+ `--button-padding-x / 1.5` (5.33 / 10.67 / 13.33 / 21.33 px by size), off the 4px scale. The section
1159
+ side now takes the nearest stack step at level 0: xs 8, sm 12, md 12, lg 16, xl 24, `ctl` 8;
1160
+ compact-xs/sm 4, compact-md/lg 8, compact-xl 12 (density-scaled). The side without a section is
1161
+ unchanged.
1162
+
1163
+ **Opt out:** set `--button-section-padding-x` on the Button (`vars` or `style`) — e.g.
1164
+ `calc(var(--button-padding-x) / 1.5)` restores Mantine's value.
1165
+
1049
1166
  ## 2.20.0 — the sparkline reference and readout
1050
1167
 
1051
1168
  **`Sparkline` now answers hover and keyboard focus.** A pointer over the cell, or arrow keys /
@@ -7,6 +7,8 @@ model: inherit
7
7
 
8
8
  You score a rendered UI. You did not build it. Do not read the app's source to excuse a defect: judge only what the shots show.
9
9
 
10
+ **Honesty rule.** You are valid only as an isolated subagent that did not write this UI. If you are the builder (the session that wrote or restyled it scores its own shots inline), your output's FIRST line is `DEGRADED: inline review by the builder`, and the run cannot pass: every verdict is `fail`.
11
+
10
12
  ## Input
11
13
 
12
14
  A shot out dir (default `.basalt/shots`, or the `out` in `.basalt/shots/last.json`):
@@ -14,9 +16,10 @@ A shot out dir (default `.basalt/shots`, or the `out` in `.basalt/shots/last.jso
14
16
  - `board.html` — every crop, labelled by component, scheme, viewport and state.
15
17
  - `metrics.json` — per anchor: `padding`, `gap`, `radius` (px, or `"full"` for a fully rounded box such as a `50%` circle or pill), `nested`, `fontSizes`, `emptyRatio`, `contrast`, `sheet`; `scale` (the theme's resolved spacing, radius and font-size steps) and `scaleError`; `shots[]` with each file's `status`.
16
18
  - `png/*.png` — the crops, images you can see. Each anchor has a contact sheet (`sheet`: one image holding that anchor's crop for every state × scheme × viewport, each labelled, with the status text where a crop does not exist) and each route a full-page shot (`_page`). Score every anchor in both schemes and both viewports.
19
+ - `detect.json`, only if the out dir has one (`basalt-ui shot detect`): the deterministic findings for the [measured] items and `basalt/*` lint. Cite each at its own severity as `metrics.json <anchor>`, do not re-derive them, and map the rule to its item: `craft-N/*` → Craft N, `lint/*` → its rubric item, Craft 4 by default.
17
20
  - A layout-suite result, only if the out dir has one.
18
21
 
19
- A shot with status `not-declared` or `skipped` (mobile hover and tooltip: touch has no hover, by design) is not a defect. A missing hover, focus or tooltip crop for an anchor that has such a target is (Craft 7).
22
+ A shot with status `not-declared`, `absent` (the anchor declares itself missing in that state) or `skipped` (mobile hover and tooltip: touch has no hover, by design) is not a defect. A missing hover, focus or tooltip crop for an anchor that has such a target is (Craft 7).
20
23
 
21
24
  ## Fail closed
22
25
 
@@ -42,7 +45,7 @@ Score per component, then add one line per page for the page items (Communicatio
42
45
 
43
46
  ### Expression
44
47
 
45
- 1. Name the data's shape and the encoding used; both must match a row of the encoding table (the catalogue) in the `/basalt-design` skill.
48
+ 1. Name the data's shape and the encoding used; both must match a row of the catalogue at `.claude/skills/basalt-design/references/catalogue.md`.
46
49
  2. Every visual answers the question its caption names; a decorative visual fails.
47
50
  3. A hue appears only for a trend, a status or a category; a single metric is neutral. A delta is text in its trend colour with a direction glyph and no fill: a fill or a badge on a delta fails here and Craft 4. A status drawn as a coloured leading-edge stripe fails here too: it is decoration, where the dot and the word carry the verdict in shape and text.
48
51
  4. A number with a target shows the target; a number with a history shows it; a whole with parts shows the parts.
@@ -70,14 +73,28 @@ Fail any of these on sight, in any language the app ships:
70
73
  - "Loading…" text where a skeleton belongs; "Click here"; exclamation marks; emoji in chrome.
71
74
  - Units spelled out at length in a dense surface ("kilometres") where the unit symbol reads.
72
75
 
76
+ ## Severity
77
+
78
+ P0 and P1 fail the component; P2 and P3 are noted on their line and do not.
79
+
80
+ - **P0** broken or unreadable: a contrast failure, an `error` shot, a fail-closed run (no `metrics.json`, no anchors).
81
+ - **P1** a rubric item fails (including `unverified`).
82
+ - **P2** degraded but legible: contrast judged on an assumed backdrop, a banned phrase in a secondary label.
83
+ - **P3** polish: a measured value a rounding off a step, a one-word wording slip.
84
+
73
85
  ## Output
74
86
 
75
- Strict. Nothing before the table, no praise, no summary, no code rewrites. Name the defect, not the fix.
87
+ Strict. Nothing before the table (but the `DEGRADED` line when it applies), no praise, no summary, no code rewrites. Name the defect, not the fix. Order every list **content** → **layout** → **style** (what the surface says, where it sits, how it looks):
88
+
89
+ - **content**: Communication 1–4 and 6, Expression 1, 2 and 4, Craft 5 (text contrast).
90
+ - **layout**: Craft 1, 3, 6 and 7, Communication 5, Expression 5.
91
+ - **style**: Craft 2 and 4, Expression 3.
76
92
 
77
93
  1. A table, one row per component: `| component | verdict | failed items |` — `pass` or `fail`; failed items like `Craft 3, Communication 1`, or `—`. Add one `page` line per route for the page items.
78
94
  Under it, one line per component: `Read: <sheet file>, <page shot files>, <any single crops opened>`.
79
- 2. Then, for EVERY failure, one line:
80
- `<axis> <n> — <png file> (<scheme>, <viewport>, <state>) — <defect in one sentence>`
95
+ 2. Then, for EVERY failure, one line, content first:
96
+ `<P0-P3> <axis> <n> — <png file> (<scheme>, <viewport>, <state>) — <defect in one sentence>`
81
97
  A [measured] item cites `metrics.json <anchor>` instead of a PNG; an `unverified` item names the missing input.
98
+ 3. Last line: `Score: <0-100>` = 100 − (25 per P0 + 10 per P1 + 3 per P2 + 1 per P3), floored at 0 — the same score `basalt-ui shot detect` computes. A `DEGRADED` run scores 0.
82
99
 
83
100
  A failure you cannot cite from a crop or from `metrics.json` is not a failure.
@@ -7,7 +7,7 @@ paths:
7
7
 
8
8
  <!-- basalt:coverage -->
9
9
  <!-- GENERATED from src/surfaces.ts — `bun scripts/check-coverage.ts --write`. Do not hand-edit. -->
10
- <!-- backed by: guard kinds — css-raw-surface, inline-font-size, off-identity-accent, off-system-surface-var, raw-color-fn, raw-font-family, raw-hex, raw-radius, raw-surface, surface-shadow-override, theme-allow-unscoped, unknown-vx-token · oxlint rules — basalt/no-raw-font-size, basalt/raw-size-literal -->
10
+ <!-- backed by: guard kinds — css-raw-surface, inline-font-size, off-identity-accent, off-system-surface-var, raw-color-fn, raw-font-family, raw-hex, raw-radius, raw-surface, series-palette, surface-shadow-override, theme-allow-unscoped, unknown-vx-token · oxlint rules — basalt/no-raw-font-size, basalt/raw-size-literal -->
11
11
  <!-- not guarded: — -->
12
12
  <!-- /basalt:coverage -->
13
13
 
@@ -24,7 +24,7 @@ Every value is a `VX.*` reference or a theme prop; the palette is derived, never
24
24
  - Never read a raw ramp var (`--mantine-color-gray-N`); use `VX.surface.*`. [check-theme off-system-surface-var]
25
25
  - Fill a control with `VX.accentFill` labelled `VX.onAccent`, never `VX.accent` (that is ink). [type VX]
26
26
  - Name only `--vx-*` vars that basalt emits. [check-theme unknown-vx-token]
27
- - Series color is app data: `defineSeries` → `seriesTokens`/`groupTokens`, each entry a `{ light, dark }` pair, in one file that `check-theme` exempts. [type defineSeries]
27
+ - Series color is app data: `defineSeries` → `seriesTokens`/`groupTokens`, each entry a `{ light, dark }` pair, in one file that `check-theme` exempts from the hex scan but judges for lightness, chroma, CVD separation and contrast. [type defineSeries] [check-theme series-palette]
28
28
  - `groupTokens` returns the group to pass to `buildPaletteCss` or `BasaltProvider` `paletteOptions`; never retype its key. [type groupTokens]
29
29
 
30
30
  ## Surfaces, radius, depth
@@ -1,36 +1,23 @@
1
1
  ---
2
2
  name: basalt-design
3
- description: Build or restyle dashboards and metric UIs in a basalt-ui app — scenario, encoding, build, then rounds of screenshots scored by a reviewer subagent.
3
+ description: Build or restyle dashboards and metric UIs in a basalt-ui app — concept first, then encoding, build, then rounds of screenshots scored by a reviewer subagent.
4
4
  when_to_use: User is building or restyling dashboards, charts or metric UIs; tuning a palette; or says a UI looks inconsistent, over-colored or "AI default". Entry point for "make this look professional".
5
5
  ---
6
6
 
7
- Method only; the law is `.claude/rules/basalt-*.md` and `./DESIGN.md`.
7
+ Method only; the law is `.claude/rules/basalt-*.md` and `./DESIGN.md`. Each step loads its reference on demand.
8
8
 
9
9
  ## Steps
10
10
 
11
- 1. Read `./DESIGN.md` and the rules `basalt-tokens.md`, `basalt-mantine.md`, `basalt-controls.md`, `basalt-charts.md`. No `DESIGN.md`: run `/basalt-app` first.
12
- 2. **Scenario first.** Write down realistic fixture data, the user's question, and the decision the view supports. Decide which metrics earn a hue (trend, status, separation; the rest neutral), the one primary action per view, each control's home (a `SettingsRow` preference via `createLocalStore`, never `useState`).
13
- 3. **Pick each encoding from the data's shape**, then the shipped composite (`StatCard`, `ChartCard`, `Section`, `WidgetHeader`, `BasaltDataTable`, `EmptyState`; a gap is reported, not routed around). Chart kinds and `ChartCard` import from `basalt-ui/charts`, `BasaltDataTable` from `basalt-ui/table`, the rest from `basalt-ui`:
14
-
15
- | Data shape | Encoding | Component |
16
- | ----------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
17
- | Single value with a trend | figure, text delta, `qualifier`, axis-less sparkline (end dot) along the card's bottom | `StatCard` + `sparkline` slot (`Sparkline`) |
18
- | Value over time | line or stacked area | `Lines` / `StackedArea` in a `ChartCard` |
19
- | Compare categories | bars | `Bars layout="grouped"` |
20
- | Part of a whole, 2–6 parts | one segmented (stacked) bar, parts in order — not a donut plus a total card, not a row of N `StatCard`s | `Bars` (stacked, the default) |
21
- | Distribution | small axis-less histogram | `Bars` in a `ChartCard` |
22
- | Status over time | band strip; a heat grid for daily data | `BandStrip` / `Heatmap` |
23
- | Many rows, several attributes | table, right-aligned tabular figures | `BasaltDataTable` |
24
- | Nothing yet / failed | why + what to do | `EmptyState` / the component's own state |
25
-
26
- No row fits the data → say so; never default to a number in a box.
27
-
28
- 4. Build with Mantine primitives and the composites; every color from `VX.*` or a series token. Tune by eye in the theme lab (`dev.theme` Spotlight command, dev only) in both schemes, then bake values into the `derive` knobs of `createBasaltTheme` and series colors into `src/lib/series.ts`.
29
- 5. **Mark up for the board.** Tag each scored component `data-shot="<name>"`; hover and tooltip targets inside it get `data-shot-hover` / `data-shot-tooltip`; when the target's centre paints no readout (a donut's hole), add `data-shot-at="x,y"` (fractions of its box, e.g. `0.25,0.2`) and the shot hovers there. Declare supported states with `data-shot-states="empty loading error"` and render them when the `shot-state` URL param asks.
11
+ 1. **Concept — mandatory, gating.** Nothing is built before the concept exists: write `docs/design/<screen>.md` (the user's question, the decision, datasets and chosen encodings, layout at 1440 and 390, copy, pass criteria) before any component code. Template: `references/concept.md`. Also read `./DESIGN.md` and the rules `basalt-tokens.md`, `basalt-mantine.md`, `basalt-controls.md`, `basalt-charts.md`; no `DESIGN.md`: run `/basalt-app` first.
12
+ 2. **Scenario.** Realistic fixture data. Decide which metrics earn a hue (trend, status, separation; the rest neutral), the one primary action per view, each control's home (a `SettingsRow` preference via `createLocalStore`, never `useState`).
13
+ 3. **Encoding: is it even a chart?** Run the router, then pick each encoding from the data's shape, then the shipped composite. A gap is reported, not routed around; no row fits the data → say so, never default to a number in a box. `references/catalogue.md`. A metric tile follows the slot contract in `references/stat-tile.md`.
14
+ 4. **Build** with Mantine primitives and the composites; every color from `VX.*` or a series token. Chart kinds and `ChartCard` import from `basalt-ui/charts`, `BasaltDataTable` from `basalt-ui/table`, `FilterSet` and the other filters from `basalt-ui/controls`, the rest from `basalt-ui`. Hold the encoding law (`references/encoding-rules.md`: axes, color, tooltips, refetch, filters, number typography) and avoid the dashboard tells (`references/anti-defaults.md`: fact-only copy, uniform cards, one radius). Tune by eye in the theme lab (`dev.theme` Spotlight command, dev only) in both schemes, then bake values into the `derive` knobs of `createBasaltTheme` and series colors into `src/lib/series.ts`.
15
+ 5. **Mark up for the board.** Tag each scored component `data-shot="<name>"`; hover and tooltip targets inside it get `data-shot-hover` / `data-shot-tooltip`; when the target's centre paints no readout (a donut's hole), add `data-shot-at="x,y"` (fractions of its box, e.g. `0.25,0.2`) and the shot hovers there. Declare supported states with `data-shot-states="empty loading error"` and render them when the `shot-state` URL param asks. An anchor legitimately absent in some states declares them with `data-shot-absent="empty error"`.
30
16
  6. **Rounds, at least three.** Playwright is the app's dev dependency: `bun add -d playwright && bunx playwright install chromium`. Then:
31
17
  - `basalt-ui shot <routes> --dist <built app>` (or `--base <url>` for a running server); a real, signed-in app (live data, no `data-shot` yet): `basalt-ui shot /overview --dist dist --api /api=https://app.example.com --local-storage auth-token=@env:APP_TOKEN --auto-anchors` seeds the token (app origin only; `@env:`/`@file:`, never inline), proxies GET/HEAD under `/api` (writes get 405 unless `--api-allow-writes`) and crops every large Card, Paper and table. One `--header authorization=@env:NAME` goes to EVERY `--api` origin (https required for any secret), never on a navigation. A redirect, 401/403/404, 5xx or dead API fails every shot of that page; a key the app already holds is never overwritten. These shots reach the reviewer subagent's model provider, the session's own: an app holding third parties' data should point `--api` at staging or synthetic data;
32
- - hand the out dir (`.basalt/shots`) to the `basalt-design-reviewer` subagent by name; it reads each component's contact sheet (`png/*__sheet.png`) and every page shot;
18
+ - review with TWO isolated passes: (A) hand the out dir (`.basalt/shots`) to the `basalt-design-reviewer` subagent by name; it reads each component's contact sheet (`png/*__sheet.png`) and every page shot; (B) run the deterministic detector `basalt-ui shot detect` on the same out dir (exit 0 clean / 2 findings / 1 scan failure). A review the builder runs inline instead of the subagent starts with a `DEGRADED` banner and does not count as done;
19
+ - judge content first, then layout, then style; rank findings P0–P3;
33
20
  - revise every failing item at its source, rebuild, and shoot again.
34
21
  Boards stay local (gitignored); the scored verdict and notes are worth committing.
35
- 7. **Done** only when the reviewer passes every component, and never before round three: a pass earlier does not end the loop. After five failed rounds stop and show the owner the boards and the failing items.
22
+ 7. **Done** only when both passes are clean (the reviewer passes every component, `basalt-ui shot detect` exits 0), and never before round three: a pass earlier does not end the loop. After five failed rounds stop and show the owner the boards and the failing items.
36
23
  8. Run the repo's own gate (e.g. `make check`); fix every finding at its source. `shot` captures desktop (1440) and mobile (390) in both schemes; check both.
@@ -0,0 +1,24 @@
1
+ # Anti-defaults
2
+
3
+ ## Fact-only copy
4
+
5
+ - The banned-filler list lives in the `basalt-design-reviewer` subagent; do not duplicate it, write to it.
6
+ - A page summary sentence carries at least one live number ("12 tickets open, 3 past SLA."); a summary with none is cut.
7
+ - Titles are precise nouns with their scope ("Ride distance, 7 days"). Empty states say why and what to do.
8
+
9
+ ## Dashboard tells
10
+
11
+ | Tell | Do instead |
12
+ | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
13
+ | Equal-width rounded cards in a uniform grid | Pair cards by what they answer; let the lead card span; `StatGroup variant="strip"` for KPIs about one record |
14
+ | One radius everywhere, regardless of hierarchy | Use the theme radius steps; nested surfaces step down by at least 3 px |
15
+ | The same soft shadow under every tile | Let `StatCard`, `ChartCard` and `Section` own their surface; add none |
16
+ | A delta with no period | `deltaPeriod` / `DeltaBadge` `period` ("vs last week") |
17
+ | A coloured left edge for status | `StatCard` `tone` (status dot plus a word) |
18
+ | Filler-question subtitles ("How is my training going?") | A number or fact line, or nothing |
19
+ | A big number in a box with no history, target or parts | Add a `sparkline` slot (`Sparkline`, or `Meter` with `target`); if there is none, it belongs in a strip cell |
20
+ | Columns ending unbalanced, a dead void beside a short card | Pair cards of similar height in a row, or let the short card span or move |
21
+ | Heavy filled bar slabs with labels inside | `BarList`'s default rows: a thin track carries the same data; avoid the slab look |
22
+ | A marker that restates the headline value | Mark the target or the limit, not the reading |
23
+ | Unlabelled marks with no axis or scale | Direct-label the end points, or add an axis; or use a table (`BasaltDataTable`) |
24
+ | Three rows of KPI cards | One strip, then the chart or list that explains it |
@@ -0,0 +1,48 @@
1
+ # Encoding catalogue
2
+
3
+ Shipped composites: `StatCard`, `ChartCard`, `Section`, `WidgetHeader`, `BasaltDataTable`, `EmptyState`. Imports: chart kinds and `ChartCard` from `basalt-ui/charts`, `BasaltDataTable` from `basalt-ui/table`, the rest from `basalt-ui`. A gap is reported, never hand-rolled. The reviewer cites this file for Expression 1: the data's shape and the encoding used must match a row here.
4
+
5
+ ## 1. Is it even a chart?
6
+
7
+ Run this first. A "yes, chart" answer sends you to § 2.
8
+
9
+ | The data is | Not this | Use |
10
+ | ------------------------------- | ---------------- | ------------------------------------------------------- |
11
+ | One current value | A one-bar chart | `StatCard` (`stat-tile.md`) |
12
+ | A handful of headline numbers | A grouped bar | `StatGroup variant="strip"` or a row of `StatCard` |
13
+ | One ratio against a limit | A two-slice pie | `Meter` with a target tick |
14
+ | More than ~7 meaningful classes | More colours | `BasaltDataTable` |
15
+ | Fewer than 4 points | A line | `StatCard` |
16
+ | 3–10 target-vs-actual metrics | A bar per metric | A grid of `Meter`s with `target` (basalt's bullet form) |
17
+
18
+ ## 2. Data shape to expression
19
+
20
+ | Data shape | Encoding | basalt export (import path) | Not this |
21
+ | ------------------------------------------------------------ | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | ------------------------------------ |
22
+ | Single value with a trend | Figure, text delta, `qualifier`, axis-less sparkline with end dot along the bottom | `StatCard` (`basalt-ui`) + `sparkline` slot with `Sparkline` (`basalt-ui/charts`) | A bare number in a box |
23
+ | Progress to a target | Filled track, target tick, end captions; extra cut-offs as `ticks` | `Meter` (`basalt-ui`) with `target`, `ticks` | A hand-rolled progress bar |
24
+ | Committed vs forecast | Two segments, the forecast lighter, a tick and a caption at the boundary | `Meter` `segments`, `forecastCaption` | Two cards |
25
+ | Headline ratio where the shape is the message | Ring, value centred, one per row | `Meter shape="ring"` | A donut plus a total card |
26
+ | Reading in named bands (low / ok / high) | Zoned bar with the reading as a marker; `ticks` mark cut-offs or a window mean | `Meter` `zones`, `ticks` | Colour-only thresholds |
27
+ | Part of a whole, 2–6 parts | One segmented bar, parts in order, captions under the segments | `Meter` `segments`; `Bars` stacked | A row of N `StatCard`s; a donut |
28
+ | Part of a whole when the parts are the page's subject | Donut | `Donut` (`basalt-ui/charts`) | Donut beside a total card |
29
+ | Ranked list, top N (5–10) | Label, bar on a shared scale, right-aligned value | `BarList` (`basalt-ui`), its default thin-track rows | A table with a `%` column |
30
+ | Value over time | Line; stacked area for parts of a total | `Lines` / `StackedArea` in a `ChartCard` | A bar per day |
31
+ | Compare categories | Bars | `Bars layout="grouped"` in a `ChartCard` | A pie |
32
+ | Distribution as a slot micro-visual (`StatCard`, strip cell) | Small axis-less histogram | `Bars`, no axes, in the slot | A mean alone |
33
+ | Distribution as a card's subject | One bar per bin, x labelled with the bin range ("€0–50"), y axis optional | `Bars` in a `ChartCard` | A mean alone; an axis-less histogram |
34
+ | Status over time | Band strip; heat grid for daily data | `BandStrip` / `Heatmap` (`basalt-ui/charts`) | A table of dates |
35
+ | A set of KPIs about one record | One joined surface, cells split by hairlines | `StatGroup variant="strip"` | N unrelated cards |
36
+ | Many rows, several attributes | Table, right-aligned figures | `BasaltDataTable` (`basalt-ui/table`) | Cards per row |
37
+ | Nothing yet / failed | Why and what to do | `EmptyState`, or the component's own `query` state | "No data" |
38
+
39
+ ## Not shipped — report the gap, don't hand-roll
40
+
41
+ | Shape | Missing |
42
+ | -------------------------------------------------------------------- | -------------- |
43
+ | Event sequence (day groups, time pinned right) | `EventList` |
44
+ | Work items by status (columns with counts) | `Board` |
45
+ | Record page (header, facts line, strip, events) and list-row recipes | recipes only |
46
+ | Bounded score inside a row | tick meter |
47
+ | Daily data over months with month labels | calendar grid |
48
+ | Gapless histogram with bin-edge ticks | histogram kind |
@@ -0,0 +1,36 @@
1
+ # Concept doc — template
2
+
3
+ Write `docs/design/<screen>.md` before any component code. One doc per screen. The reviewer reads it as the contract; its pass criteria are what the shot rounds try to fail.
4
+
5
+ ## Sections
6
+
7
+ | Section | Holds | Fails when |
8
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
9
+ | Question and decision | One sentence each: what the user asks of this screen, what they decide after reading it | The decision is "monitor" or "stay informed" |
10
+ | Datasets | One row per dataset: `dataset \| source \| shape \| chosen encoding \| basalt export \| reason` | A row has no shape from `catalogue.md`, or "default" as the reason |
11
+ | Layout at 1440 | Row by row: which cards pair, which span, what sits above the fold | Equal-width cards in a uniform grid with no stated reason |
12
+ | Layout at 390 | The single-column order; what collapses, what moves behind a disclosure | "Stacks" with no order |
13
+ | Copy | Page title, summary sentence (carries a live number), card titles, captions, facts lines, tooltips, empty and error text | Any line from the banned filler list, or a title that is a category |
14
+ | Pass criteria | Checkable sentences, numbered, each one a reviewer can fail on a crop | "Looks clean", "feels balanced" |
15
+
16
+ Add a baseline verdict (what the current screen gets wrong) when restyling. Append each round's verdict to the doc.
17
+
18
+ ## Mini example — a support inbox
19
+
20
+ ```md
21
+ # Support inbox — concept
22
+
23
+ Question: is the queue draining faster than it fills, and what needs me now?
24
+ Decision: reassign, escalate, or leave each aging ticket.
25
+
26
+ | dataset | source | shape | chosen encoding | basalt export | reason |
27
+ | ------------------- | ------------ | ----------------------------- | ------------------------------------- | ------------------------ | ----------------------------- |
28
+ | Open tickets by age | GET /tickets | ranked list, top N | rows with a bar on a shared scale | `BarList` | length ranks before reading |
29
+ | First-reply time | GET /stats | single value with a trend | figure, delta vs last week, sparkline | `StatCard` + `Sparkline` | history says if 4 h is normal |
30
+ | SLA budget used | GET /stats | one ratio against a limit | meter with a tick at the limit | `Meter` | the limit is visible |
31
+ | All tickets | GET /tickets | many rows, several attributes | table | `BasaltDataTable` | scanned by column |
32
+
33
+ Layout 1440: summary line; strip of 3 stat cells; BarList beside the SLA meter; table. 390: summary, strip (one column), meter, BarList, table.
34
+ Copy: "12 tickets open, 3 past SLA." Captions "First reply · 7 days". Empty: "No open tickets — the queue is clear."
35
+ Pass: 1. the summary carries a count. 2. every delta names its period. 3. the SLA meter shows the limit tick. 4. no card has an empty lower 40 %.
36
+ ```
@@ -0,0 +1,45 @@
1
+ # Encoding rules
2
+
3
+ Checkable sentences. Each one is a reviewer fail.
4
+
5
+ ## Nine non-negotiables
6
+
7
+ 1. One axis per chart; never a dual axis.
8
+ 2. Colour follows the entity, never its rank.
9
+ 3. Categorical colours come in fixed order and never cycle; the ninth series folds into "Other".
10
+ 4. Sequential scales are one hue, light to dark.
11
+ 5. Diverging scales are two hues with a neutral grey midpoint.
12
+ 6. Never a rainbow.
13
+ 7. Status colours are reserved for status, and always paired with an icon or word, never colour alone.
14
+ 8. Text wears text tokens (`VX.*`), never the series colour.
15
+ 9. Markers are at least 8 px; hit areas at least 24 px.
16
+
17
+ ## Tooltips enhance, never gate
18
+
19
+ - Every value is reachable without hover: direct labels, a caption under the segments, or a `BasaltDataTable` alongside.
20
+ - A tooltip shows the same content on keyboard focus as on hover.
21
+ - One tooltip for all series at a point (`chartCursor` on lines, the mark itself as hit target on bars).
22
+ - Values lead, labels follow ("12.4 K sessions", not "Sessions: 12.4 K").
23
+ - Label text is set as text, never as HTML.
24
+
25
+ ## A refetch keeps the frame
26
+
27
+ - On refetch hold the previous render (React Query `placeholderData: keepPreviousData`); dim it, do not blank it.
28
+ - Skeletons are for the first load only, at the final footprint; there is no layout jump when data arrives or refreshes.
29
+ - A refetch that fails over existing data keeps the data and flags the failure (the `query` prop of `StatCard`, `Section` and `BasaltDataTable` branches this way); only no-data-and-failed shows the error.
30
+ - `StatStripCell` `stale` dims a cell while placeholder data shows.
31
+
32
+ ## Filter grammar
33
+
34
+ - One left-aligned filter row above what it scopes (`PageBar` `filters` from `basalt-ui`; `FilterSet` (`basalt-ui/controls`), `RangeFilter` (`basalt-ui/controls`)).
35
+ - Date range comes first.
36
+ - Filters scope everything below them; never a filter inside one chart.
37
+ - A filter that empties a view offers "clear filters" in the `EmptyState`.
38
+
39
+ ## Number typography
40
+
41
+ - Hero values, row labels and body text: proportional sans, lining figures.
42
+ - `tabular-nums` only in table columns and axis ticks.
43
+ - Mono only for UPPERCASE micro-captions, times and code.
44
+ - Ticks compact from 1,000: `0 / 1K / 2K`; values compact as `1,284 / 12.9K / $4.2M`.
45
+ - Every number carries its unit inline; a rate or total carries its period.
@@ -0,0 +1,24 @@
1
+ # Stat tile — slot contract
2
+
3
+ A metric tile is `StatCard` (separate card) or a cell of `StatGroup variant="strip"` (joined surface). Read top to bottom; the reviewer fails a tile slot by slot.
4
+
5
+ | Slot | Prop (`StatCard`) | Required | The reviewer fails |
6
+ | ------------ | ----------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7
+ | Caption | `title` | Yes | Title case, a trailing colon, a category noun ("Metrics"), a label that restates the value |
8
+ | Qualifier | `qualifier` | When the figure has a period, target or source | A rate or total with no period anywhere on the tile |
9
+ | Value | `value` | Yes | A monospace or tabular figure (the hero is proportional sans, lining); a long number not compacted (`12.9K`, `$4.2M`); `0` or `n/a` for a missing reading (use `—`) |
10
+ | Unit | `unit` | When the figure has one | Unit spelled out at length; unit in the caption instead of beside the figure |
11
+ | Delta | `delta` + `deltaPeriod` (`DeltaBadge` `period`) | Optional | No named period ("▲ 4.2%" alone); a fill, pill or border on the delta; colour not following direction × whether up is good (`polarity="up-bad"` for latency, errors); a leading "+" |
12
+ | Micro-visual | `sparkline` | Whenever the number has history, a target or parts | A visual that restates the headline; one that encodes neither a target/limit nor the history; axes or gridlines; an empty lower 40 % |
13
+ | Footer | `subtitle` | Optional | A restatement of the caption; a raw key or parameter dump |
14
+ | Verdict | `tone` | Only when the number crossed a threshold | A coloured left edge instead; a tint on a reading with no verdict |
15
+ | Info tooltip | `info` | Only where the definition, period or source is not on the surface | A tooltip on a plain count of visible items; a definition that is the only place the period appears |
16
+
17
+ ## Rules
18
+
19
+ - Exactly three type sizes: micro (caption, qualifier, delta period), sm (unit, delta, footer), the hero.
20
+ - Delta colour is text, never a fill. Zero is faint with no glyph.
21
+ - A micro-visual encodes a target or limit (`Meter` with `target`, `Sparkline` with a reference line) or the history (`Sparkline` with its end dot). Anything else is decoration.
22
+ - A tile with no visual is allowed only when the number has no history, target or parts.
23
+ - In a strip cell the same slots apply (`caption`, `qualifier`, `value`, `unit`, `delta`, `visual`, `footer`, `info`); a cell with `null` value prints `—`.
24
+ - A pending query shows the tile's own skeleton, never a spinner; the caption row stays put.
@@ -21,7 +21,7 @@ under the depending package; `basalt-ui doctor` prints where; a fresh worktree n
21
21
  **Skills and subagent** (installed in `.claude/`; invoke by name):
22
22
 
23
23
  - `/basalt-app`: scaffold, wire, upgrade or verify the app (`init`, `doctor`, `sync`).
24
- - `/basalt-design`: build or restyle a screen — scenario, `basalt-ui shot` rounds, review, revise.
24
+ - `/basalt-design`: build or restyle a screen — scenario, `basalt-ui shot` rounds, review, revise; routes to its `references/` on demand.
25
25
  - `/basalt-charts`: add or extend a chart, register its series colors.
26
26
  - `basalt-design-reviewer` (subagent): scores a `basalt-ui shot` out dir per component; run it after every shot round, never on your own work.
27
27
 
@@ -31,7 +31,7 @@ under the depending package; `basalt-ui doctor` prints where; a fresh worktree n
31
31
  surface: no "bold aesthetic direction", gradient meshes, grain or dramatic motion. Neutral by default,
32
32
  the single accent spent only when earned.
33
33
 
34
- **Chart override.** The `basalt-charts` rule supersedes any global visx or chart rule: compose
35
- `CartesianChart`.
34
+ **Chart override.** `/basalt-design`, `/basalt-charts` and the `basalt-charts` rule supersede any global chart rule and
35
+ the bundled `/dataviz` skill (its palette, marks, forms yield to basalt's tokens, catalogue, guards): compose `CartesianChart`.
36
36
 
37
37
  <!-- basalt:end -->
@@ -183,6 +183,7 @@ export const KNOWN_RULE_IDS = new Set([
183
183
  'raw-selection-control',
184
184
  'raw-media-query',
185
185
  'unknown-vx-token',
186
+ 'series-palette',
186
187
  // Retired guard kinds — no longer in GUARD_RULES, but a `theme-allow` naming one must still
187
188
  // parse as a real (dead) waiver rather than an unknown-id typo. See RETIRED_RULE_IDS above.
188
189
  ...RETIRED_RULE_IDS,