@valiify/dashboard-ui 0.3.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/CHANGELOG.md +948 -10
  2. package/COMPONENTS.md +199 -79
  3. package/GETTING_STARTED.md +116 -54
  4. package/QUICK_REFERENCE.md +48 -30
  5. package/README.md +107 -85
  6. package/TROUBLESHOOTING.md +52 -34
  7. package/class-manifest.json +141 -71
  8. package/design-methodology/dashboard.md +92 -80
  9. package/dist/dashboard-ui.css +1529 -1078
  10. package/dist/index.css +1250 -732
  11. package/package.json +17 -10
  12. package/scripts/codemods/0.5.0-chip-sizes.mjs +437 -0
  13. package/src/build/utilities.css +7 -10
  14. package/src/components/_template.css +12 -8
  15. package/src/components/alert.css +35 -8
  16. package/src/components/avatar.css +42 -30
  17. package/src/components/breadcrumbs.css +39 -22
  18. package/src/components/button.css +84 -14
  19. package/src/components/card.css +2 -2
  20. package/src/components/checkbox.css +16 -11
  21. package/src/components/chip.css +155 -79
  22. package/src/components/composer.css +145 -0
  23. package/src/components/data-row.css +10 -6
  24. package/src/components/divider.css +17 -22
  25. package/src/components/dropdown-field.css +83 -43
  26. package/src/components/dropdown-menu.css +80 -14
  27. package/src/components/field-verification.css +21 -5
  28. package/src/components/filter-segment.css +27 -8
  29. package/src/components/icon-button.css +49 -10
  30. package/src/components/index.css +2 -0
  31. package/src/components/input.css +88 -32
  32. package/src/components/link.css +27 -16
  33. package/src/components/loading-inline.css +15 -21
  34. package/src/components/menu-item.css +149 -49
  35. package/src/components/modal.css +8 -5
  36. package/src/components/navigation-rail.css +67 -31
  37. package/src/components/pagination-item.css +29 -28
  38. package/src/components/pagination.css +9 -14
  39. package/src/components/pill.css +16 -10
  40. package/src/components/progress-bar.css +8 -10
  41. package/src/components/radio-select.css +9 -2
  42. package/src/components/recipient-input.css +119 -0
  43. package/src/components/section-marker.css +5 -5
  44. package/src/components/segment-selector.css +9 -3
  45. package/src/components/sensitive-data.css +7 -5
  46. package/src/components/skeleton.css +18 -6
  47. package/src/components/step.css +15 -4
  48. package/src/components/stepper.css +3 -2
  49. package/src/components/switch.css +7 -0
  50. package/src/components/tabs.css +122 -28
  51. package/src/components/tag.css +156 -51
  52. package/src/components/text-button.css +54 -59
  53. package/src/components/textarea.css +87 -22
  54. package/src/components/toast.css +41 -15
  55. package/src/components/tooltip.css +13 -2
  56. package/src/fonts.css +2 -1
  57. package/src/library.css +1 -1
  58. package/src/reset.css +1 -1
  59. package/src/themes/valiify-tokens.css +101 -126
  60. package/src/themes/valiify.css +258 -157
  61. package/src/utility-surface.css +51 -49
  62. package/types/components.d.ts +145 -25
  63. package/CLAUDE.md +0 -3740
  64. package/examples/README.md +0 -198
  65. package/examples/basic/index.html +0 -155
  66. package/examples/daisyui-starter/README.md +0 -58
  67. package/examples/daisyui-starter/check-no-bleed.mjs +0 -249
  68. package/examples/daisyui-starter/index.html +0 -72
  69. package/examples/daisyui-starter/linked.html +0 -74
  70. package/examples/daisyui-starter/package-lock.json +0 -2221
  71. package/examples/daisyui-starter/package.json +0 -22
  72. package/examples/daisyui-starter/postcss.config.js +0 -1
  73. package/examples/daisyui-starter/src/host.css +0 -14
  74. package/examples/daisyui-starter/src/only-import.css +0 -4
  75. package/examples/daisyui-starter/src/styles.css +0 -36
  76. package/examples/daisyui-starter/tailwind.config.js +0 -13
  77. package/examples/postcss-starter/README.md +0 -47
  78. package/examples/postcss-starter/index.html +0 -54
  79. package/examples/postcss-starter/package.json +0 -19
  80. package/examples/postcss-starter/postcss.config.js +0 -5
  81. package/examples/postcss-starter/src/styles.css +0 -17
  82. package/examples/sveltekit-starter/README.md +0 -32
  83. package/examples/sveltekit-starter/check-scoped-styles.mjs +0 -103
  84. package/examples/sveltekit-starter/package-lock.json +0 -1300
  85. package/examples/sveltekit-starter/package.json +0 -24
  86. package/examples/sveltekit-starter/src/app.css +0 -17
  87. package/examples/sveltekit-starter/src/app.html +0 -11
  88. package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +0 -20
  89. package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +0 -27
  90. package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +0 -22
  91. package/examples/sveltekit-starter/src/routes/+layout.svelte +0 -6
  92. package/examples/sveltekit-starter/src/routes/+page.svelte +0 -10
  93. package/examples/sveltekit-starter/svelte.config.js +0 -4
  94. package/examples/sveltekit-starter/vite.config.js +0 -6
  95. package/examples/vite-starter/README.md +0 -125
  96. package/examples/vite-starter/index.html +0 -12
  97. package/examples/vite-starter/package.json +0 -19
  98. package/examples/vite-starter/src/main.js +0 -188
  99. package/examples/vite-starter/src/styles.css +0 -22
  100. package/examples/vite-starter/vite.config.js +0 -6
  101. package/src/themes/valiify-type-prefixed.css +0 -37
package/CHANGELOG.md CHANGED
@@ -12,16 +12,16 @@ These are the things consumers depend on, and therefore the things we cannot
12
12
  change quietly:
13
13
 
14
14
  1. **Component class names** — `.vd-btn`, `.vd-btn-primary`, `.vd-card`, `.vd-input`,
15
- and their modifiers. All 313 are namespaced `vd-`; the generated list is
15
+ and their modifiers. All 396 are namespaced `vd-`; the generated list is
16
16
  `class-manifest.json`, exported as `./manifest`.
17
17
  2. **Design token names** — every `--color-*`, `--radius-*`, `--border-*`,
18
- `--text-*`, `--shadow-*`, and `--ring-*` custom property, **and the Tailwind
18
+ `--height-*`, `--text-*`, `--shadow-*`, and `--ring-*` custom property, **and the Tailwind
19
19
  utilities generated from them** (`bg-approved`, `rounded-control`,
20
- `text-body-1`, …).
20
+ `text-body-dense`, …).
21
21
  3. **Entry points** — `.`, `./index.css`, `./styles.css`, `./reset.css`, `./source`,
22
22
  `./fonts`, `./icons/sprite.svg`, `./manifest`, `./types`.
23
- 4. **Custom utilities** — `focus-ring`, `type-label-*`. Unprefixed on `./source`;
24
- on `./styles.css` only the ones in the closed set, spelled `vd:`.
23
+ 4. **Custom utilities** — `focus-ring` (the six `type-label-*` were removed in
24
+ 0.5.0). Unprefixed on `./source`; on `./styles.css` spelled `vd:focus-ring`.
25
25
 
26
26
  **Token names are part of the public API. Renaming or removing one is a breaking
27
27
  change**, even though the value lives in a generated file. Downstream apps write
@@ -34,6 +34,929 @@ whole point of tokens. Changing its _name_ is.
34
34
  When a rename is genuinely needed, ship the new name alongside the old one, note
35
35
  the deprecation here, and remove the old name in a later release.
36
36
 
37
+ ## 0.5.1 — unreleased
38
+
39
+ ### Added
40
+
41
+ - **`.vd-tab-stretch` — a full-height tab.** Figma stretches a Tabs instance to
42
+ fill a fixed-height header row: the right-panel header on the business account
43
+ review page is 40px, and its underline tabs are drawn `h-full` with the 2px
44
+ active rule on the row's bottom edge. The control ladder pins underline sm at
45
+ 24, so a library tab in that row centred and its rule floated 8px above the
46
+ edge. The modifier drops the pinned height (`height: auto; align-self:
47
+ stretch`); type, padding, gap and the rule are unchanged, and the consumer
48
+ gives the row its height. Additive: no existing class changes. The
49
+ `StretchInHeader` story and visual spec assert 40px height, 12px type, 6px
50
+ padding and the 2px rule.
51
+
52
+ ## 0.5.0 — 2026-10-01
53
+
54
+ > **Upgrading from npm means upgrading from 0.3.0.** 0.4.0 was released in
55
+ > this repository (commit `291ef8e`) but never tagged or published (npm's versions are 0.1.x, 0.2.0, 0.2.1 and
56
+ > 0.3.0). If your app is on 0.3.0, apply the **0.4.0** section below as well —
57
+ > its control-height rescale and Icon Button renames are breaking too, and the
58
+ > Icon Button codemod order there matters — then this one.
59
+
60
+ ### Packaging and fixes from the release review (2026-10-01)
61
+
62
+ - **The codemod ships.** `scripts/codemods/` is in `files`, so every
63
+ `node node_modules/@valiify/dashboard-ui/scripts/codemods/0.5.0-chip-sizes.mjs …`
64
+ command below runs from an installed package. `verify:package` extracts each
65
+ such command from this file and runs it from the installed tarball on
66
+ pre-0.5.0 markup.
67
+ - **Installs next to Tailwind 3.** The `tailwindcss` peer is now `>=3.0.0` and
68
+ **optional**. The prebuilt entries (`.`, `./styles.css`) need no Tailwind;
69
+ only `./source` needs **Tailwind 4**, and fails loudly at build time without
70
+ it. A required `>=4` peer made `npm install` fail with `ERESOLVE` in a
71
+ Tailwind 3 + daisyUI host, and so did an optional `>=4`: npm still checks a
72
+ host's own Tailwind against an optional peer's range. `verify:package` now
73
+ installs the tarball next to Tailwind 3 + daisyUI 4 and next to Tailwind 4.
74
+ - **Dropdown Field keeps its error hairline on hover and focus.** The hover and
75
+ open/focused rules outranked the error rule (their `:not()` guards made them
76
+ (0,4,0) against (0,2,0)), so a field in error turned `Stroke/Border` on hover
77
+ and `Primary/Main` on focus — while the user was fixing it. They now exclude
78
+ the error state by name, as Input always behaved. Three visual-spec checks
79
+ (hover, focused + open, focused + closed) assert it; reverting the fix fails
80
+ all three.
81
+ - **The package no longer ships `examples/` or `CLAUDE.md`.** Starters are
82
+ copied from GitHub, not `node_modules`; `CLAUDE.md` is this repo's maintainer
83
+ and agent guide. 76 files, down from 113.
84
+ - **`verify:utility-precedence` fails when a hover utility can never apply.**
85
+ It used to print every loss to a component's `:hover` rule as
86
+ state-conditional and pass, which is right for a rest-state utility and wrong
87
+ for a `vd:hover:` one: when the component's rule for that same state outranks
88
+ the utility, the utility never applies. That is how the warning cross-link
89
+ recipe shipped dead (`.vd-text-button`'s (0,4,0) hover rule against the (0,2,0)
90
+ `vd:hover:text-warning`). Proved on the pre-removal bundle: the old gate passed
91
+ that markup, the new one fails it; a hover canary keeps the rule from passing
92
+ vacuously. The gate also takes `--bundle <file>` and `--markup <file>` to
93
+ re-measure a released artifact.
94
+ - **`npm pack` / `npm publish` no longer modify the working tree.** `prepack`
95
+ used to pin the examples' `file:../..` to `^<version>` and nothing restored
96
+ it. With the examples out of the package it is gone (`prepack` is the build
97
+ alone), and `verify:package` asserts the tree is unchanged by a pack.
98
+
99
+ ### Docs and starters (2026-10-01)
100
+
101
+ - **One answer to "which file do I import"**, in README, GETTING_STARTED,
102
+ QUICK_REFERENCE and TROUBLESHOOTING. **Tailwind 4 is the default:**
103
+ `@import "tailwindcss";` then `@import "@valiify/dashboard-ui/source";`, and
104
+ `./source` requires Tailwind 4. The alternatives are labelled as such: a
105
+ Tailwind 3 host (or any app with its own reset) imports `./styles.css` as its
106
+ first line; a page with no Tailwind imports `./reset.css` then `./styles.css`
107
+ (or links `dist/index.css`, which carries its own Preflight).
108
+ - **"Don't disable Preflight"** in the Tailwind 4 setup (README and
109
+ GETTING_STARTED, Step 3). Preflight is the reset the components are sized
110
+ against: measured without it, the small input renders 26 against 24 and the
111
+ Alert 152 against 98. The remedy, if Preflight must go, is
112
+ `@import "@valiify/dashboard-ui/reset.css" layer(base);` — a plain import
113
+ over-corrects (Alert 106), because the unlayered reset beats `./source`'s
114
+ layered components. `verify:package` checks the warning and remedy ship in
115
+ the installed docs, and builds the remedy to confirm the reset lands in
116
+ `@layer base`. The no-Tailwind path now makes loading the reset a required
117
+ first step.
118
+ - **The `degit` starters install.** `vite-starter` and `postcss-starter` depend
119
+ on the published `^0.5.0` instead of `file:../..`, which only resolved inside
120
+ this repository. (The daisyUI and SvelteKit host checks keep `file:../..`;
121
+ they exist to test the local build.)
122
+ - **The dropdown snippet runs.** The GETTING_STARTED, TROUBLESHOOTING and
123
+ QUICK_REFERENCE copies queried an unprefixed pre-0.2.0 class and threw on the
124
+ first click. They are now one snippet that handles several dropdowns, outside
125
+ clicks and Escape, and `npm run verify:snippets` (in CI) runs all three
126
+ verbatim in Chromium.
127
+ - **COMPONENTS.md matches 0.5.0:** Button's five sizes and four displays, the
128
+ Avatar and Chip rescales, Tag's sizes and slots, width-stable tab labels,
129
+ valid ARIA (`aria-pressed` on toggle buttons, `menuitemradio` / `option`
130
+ instead of `aria-selected` on `role="menuitem"`, type-driven Alert roles), the
131
+ Menu Item slots and Dropdown Menu regions, and new Composer and
132
+ RecipientInput sections.
133
+ - **The methodology's warning cross-link recipe** dropped `vd:hover:text-warning`.
134
+ On the `.vd-text-button` it sits on, the button's own hover rule (0,4,0)
135
+ always outranked it, so it never applied (measured in Chromium: the ink went
136
+ to Content/Primary on hover). It and its `vd:md:` twin left the closed set,
137
+ and `--utilities` reports them. The Reject recipe's `vd:hover:border-critical`
138
+ / `vd:hover:text-critical` do apply on `.vd-btn-outline` (measured) and stay.
139
+
140
+ ### Breaking — the 0.4.0 deprecations are removed (2026-10-01)
141
+
142
+ 0.4.0 deprecated three names "for removal in 0.5.0". They are gone:
143
+
144
+ | Removed | Use instead | Codemod |
145
+ | --- | --- | --- |
146
+ | `.vd-menu-item-badge` | `.vd-menu-item-tile` (an identical rule) | renamed by every class pass |
147
+ | `.vd-menu-item-combined` | a `.vd-menu-item-tile` plus `.vd-menu-item-subtitle` at default tone — the old row's primary colour and 500 title weight are not part of the Rev3 set | **reported**, never rewritten: a rename would silently change how the row looks |
148
+ | `vd:h-[26px]`, `vd:md:h-[26px]` (closed utility set) | `vd:h-control-sm` (**24**, the rescale's step) | **reported** by `--utilities`, never rewritten: the box shrinks 2px, the same reason `vd:py-1.25` is report-only |
149
+
150
+ `MenuItemVariant` and the `combined` prop leave `./types` with them.
151
+
152
+ ### Breaking — the legacy type scale is removed (2026-10-01)
153
+
154
+ The 37 pre-Revision-3 `--text-*` tokens and the six `type-label-*` utilities are
155
+ **gone** — from the theme, from both prebuilt bundles and from the utilities
156
+ `./source` generates. Every component already uses the Revision 3 scale (21
157
+ styles, each also a `.vd-text-*` class). **A removed utility fails silently**: on
158
+ `./source` Tailwind simply does not generate it, and on the prebuilt bundles a
159
+ `vd:` spelling was already outside the closed set, so text falls back to the
160
+ inherited style with nothing reporting an error. An `@apply` of a removed token
161
+ in your own CSS **does** fail your build, loudly.
162
+
163
+ **Run the codemod**, in this order: `--source` for unprefixed code on the
164
+ `./source` entry, `--utilities` for `vd:` markup on the prebuilt bundle (see the
165
+ codemod section below; `--source-only` / `--utilities-only` if the class pass
166
+ has already run). It rewrites 20 names — 16 with a same-family, same-size,
167
+ same-weight successor (at most a line-height step), and the four bold label
168
+ names, which move to `text-label-compact` on the Revision 3 evidence (10 / 10.5
169
+ → 12px, and the uppercase is dropped) — and **reports** the 23 whose replacement
170
+ depends on the role, along with every `var(--text-<legacy>)` reference, which no rename can fix.
171
+
172
+ | Removed | Figma style (gone from Figma 2026-09-28) | Size / line / weight | Replacement | Codemod |
173
+ | --- | --- | --- | --- | --- |
174
+ | `text-data-xs` | Data/Data xs | Mono 12 / 16.5 / 400 | `text-data-compact` | rewritten (identical) |
175
+ | `text-data-s` | Data/Data S | Mono 13 / 19.5 / 400 | `text-data-dense` | rewritten (identical) |
176
+ | `text-data-m` | Data/Data M | Mono 14 / 21 / 500 | `text-data-emphasis` | rewritten (identical) |
177
+ | `text-data-l` | Data/Data L | Mono 18 / 21.6 / 500 | `text-data-large` | rewritten (line 22) |
178
+ | `text-caption` | Body Content/Caption | 12 / 18 / 400 | `text-supporting-caption` | rewritten (identical) |
179
+ | `text-caption-bold` | Body Content/Caption - Bold | 12 / 18 / 500 | `text-supporting-caption-strong` | rewritten (identical) |
180
+ | `text-body-1` | Body Content/Body 1 | 13 / 19.5 / 400 | `text-body-dense` | rewritten (line 18) |
181
+ | `text-body-1-bold` | Body Content/Body 1 - Bold | 13 / 19.5 / 500 | `text-body-dense-strong` | rewritten (line 18) |
182
+ | `text-h1` | Body Content/H1 | 19 / 21.8 / 600 | `text-heading-page` | rewritten (line 24) |
183
+ | `text-h2` | Body Content/H2 | 17 / 19.5 / 600 | `text-heading-section` | rewritten (line 22) |
184
+ | `text-display` | Body Content/Display | 46 / 39 / 300 | `text-display-metric` | rewritten (line 52) |
185
+ | `text-subtitle` | Body Content/Subtitle | 14 / 19.6 / 500 | `text-body-default-strong` | rewritten (line 20) |
186
+ | `text-action-l` | Action L | 13 / Auto / 500 | `text-action-default` | rewritten (line 18) |
187
+ | `text-action-l-bold` | Action L - bold | 13 / Auto / 600 | `text-action-default-active` | rewritten (line 18) |
188
+ | `text-action-s` | Action S | 12 / 14 / 500 | `text-action-compact` | rewritten (line 16) |
189
+ | `text-action-s-bold` | Action S - Bold | 12 / 14 / 600 | `text-action-compact-active` | rewritten (line 16) |
190
+ | `type-label-l-bold` | Label L Sans - Bold, uppercase | 10.5 / 19.6 / 600, +10% | `text-label-compact` | rewritten (12 / 16, **mixed case**) |
191
+ | `type-label-s-bold` | Label S Sans - Bold, uppercase | 10 / 12 / 600, +10% | `text-label-compact` | rewritten (12 / 16, **mixed case**) |
192
+ | `text-label-l-bold` | Label L Sans - Bold | 10.5 / 19.6 / 600 | `text-label-compact` | rewritten (12 / 16) |
193
+ | `text-label-s-bold` | Label S Sans - Bold | 10 / 12 / 600 | `text-label-compact` | rewritten (12 / 16) |
194
+ | `text-body-2` | Body Content/Body 2 | 12.5 / 12.5 / 400 | by role: `text-body-dense` (table cells), `text-supporting-caption` (check names), `text-supporting-caption-strong` (KPI labels) | reported |
195
+ | `text-body-2-bold` | Body Content/Body 2 - Bold | 12.5 / 12.5 / 500 | by role: `text-body-dense-strong` (row titles) | reported |
196
+ | `text-action-m` | Action M | 12.5 / 14 / 500 | `text-action-default` (13; Button md moved 12.5 → 13) | reported |
197
+ | `text-action-m-bold` | Action M - Bold | 12.5 / 14 / 600 | `text-action-default-active` | reported |
198
+ | `text-micro-l` | Micro L | 11 / Auto / 400 | by role: `text-supporting-caption` (regular text), `text-action-compact` (TextButton and FilterSegment labels) | reported |
199
+ | `text-micro-l-bold` | Micro L - Bold | 11 / Auto / 500 | by role: `text-action-compact-active` (emphasis, as FilterSegment's chosen value) | reported |
200
+ | `text-micro-m` | Micro M | 8.5 / Auto / 400 | no Rev3 8.5; `text-utility-avatar-initials` (8) for initials | reported |
201
+ | `text-micro-m-bold` | Micro M - Bold | 8.5 / Auto / 500 | `text-utility-avatar-initials` (8 / 600; Avatar's old md label) | reported |
202
+ | `text-micro-s` | Micro S | 8 / Auto / 400 | `text-utility-avatar-initials` (8 / 600) for initials | reported |
203
+ | `text-micro-s-bold` | Micro S - Bold | 8 / Auto / 600 | by role: `text-utility-avatar-initials` (initials), `text-action-compact` (chip labels — the `vd:` codemod's mapping) | reported |
204
+ | `text-data-micro-l` | Micro Data L | Mono 11 / Auto / 500 | by role: `text-utility-badge-count` (counts, 10), `text-data-compact` (data, 12) | reported |
205
+ | `text-data-micro-m` | Micro Data M | Mono 8.5 / Auto / 500 | `text-utility-badge-count` | reported |
206
+ | `text-data-micro-s` | Micro Data S | Mono 8 / Auto / 500 | `text-utility-badge-count` | reported |
207
+ | `text-statecap` | Statecap | 9.5 / Auto / 600 | `text-supporting-caption-strong` (Pill's label) | reported |
208
+ | `text-help-caption` | Help & Caption | 12 / 14 / 400 | by role: `text-action-compact` (Modal description), `text-supporting-caption` | reported |
209
+ | `text-label-l` | Label L Sans | 10.5 / 19.6 / 400 | `text-label-compact` (12 / 600), or `text-supporting-caption` where the label was regular weight | reported |
210
+ | `text-label-s` | Label S Sans | 10 / 12 / 400 | as above | reported |
211
+ | `text-label-l-mono` | Label L Mono | Mono 10.5 / 12.6 / 500 | `text-data-compact font-mono` where the label is data | reported |
212
+ | `text-label-s-mono` | Label S Mono | Mono 10 / 12 / 700 | `text-utility-badge-count` or `text-data-compact` | reported |
213
+ | `type-label-l` | Label L Sans, uppercase | as `text-label-l` | as `text-label-l`; casing is now typed | reported |
214
+ | `type-label-s` | Label S Sans, uppercase | as `text-label-s` | as `text-label-s`; casing is now typed | reported |
215
+ | `type-label-l-mono` | Label L Mono, uppercase | as `text-label-l-mono` | as `text-label-l-mono`; casing is now typed | reported |
216
+ | `type-label-s-mono` | Label S Mono, uppercase | as `text-label-s-mono` | as `text-label-s-mono`; casing is now typed | reported |
217
+
218
+ - **Labels lose their uppercase.** `type-label-*` applied `text-transform:
219
+ uppercase`; `text-label-compact` applies none, because no Revision 3 style
220
+ does. A label written "Beneficial owners" now renders that way. Type the caps
221
+ into the string if you want them.
222
+ - **`--text-*` custom properties are public API, so referencing one directly
223
+ breaks too**: `var(--text-caption)` resolves to nothing. Replace it with the
224
+ same Rev3 name as the table.
225
+ - "by role" replacements are the ones this library's own migration chose, read
226
+ from the Revision 3 file per component; where none applied, the nearest Rev3
227
+ style by metrics is suggested. They are guidance, not a rule: pick by
228
+ what the text is, not by its old size.
229
+ - **Removed with them:** the prefixed type-utility twin
230
+ (`src/themes/valiify-type-prefixed.css`, never an entry point) and the legacy
231
+ typography showcase in Storybook's Foundations page, which now shows the
232
+ Revision 3 scale.
233
+ - **Val's component registry is regenerated** (`val/registry/components.json`,
234
+ which Val reads from this repo; it is not part of the npm package). It was
235
+ last built in the 0.4.0 era: Avatar now lists `xl`, Chip lists `xs`, and
236
+ MenuItem, Input and DropdownField list real icon names instead of `", "`. It is
237
+ built by the new `npm run build:registry`, which runs `val-core`'s generator
238
+ and corrects three of its 0.8.0 gaps (an empty `""` option misaligning a
239
+ list, numeric options skipped, hand-added variant axes overwritten), and is
240
+ checked by the new `npm run verify:registry` (in CI): every one of its 240
241
+ variant values must resolve to a built class, a sprite symbol, an attribute or
242
+ a stated non-class, and every story `options` array must be reflected exactly.
243
+ Canaried: the 0.4-era registry fails it on Avatar, Chip and six icon axes.
244
+
245
+ ### Breaking — Chip / Badge / Dot rebuilt on the Rev3 scale (2026-09-29)
246
+
247
+ Figma re-cut the set (79:275, now 81 variants) with an XS axis, control-ladder
248
+ heights and the Rev3 type scale. **Both old chip size names now mean new
249
+ things**, so this is a hard break with no aliases possible — the same shape as
250
+ the 0.4.0 icon-button rename.
251
+
252
+ | selector | was | now | note |
253
+ | --- | ---: | ---: | --- |
254
+ | `.vd-chip` (bare) | 20, 8px label | 20, **12px label** | re-points to the new XS — height holds, the label grows |
255
+ | **`.vd-chip-sm`** | **20** | **24** | **hard break — old sm markup wants `-xs`** |
256
+ | **`.vd-chip-md`** | **23** | **28** | **hard break — old md markup wants `-sm` (24)** |
257
+ | `.vd-chip-xs` | — | 20 | new; the old sm |
258
+ | `.vd-badge` / `-xs` / `-sm` | 15 | 16 | name unchanged; box +1, now **hugs** multi-digit counts (min-width 16) |
259
+ | `.vd-badge-md` | 19 | 20 | name unchanged; min-width 20 |
260
+ | `.vd-dot` / `-xs` | 5 | 4 | bare re-points to XS |
261
+ | `.vd-dot-sm` / `-md` | 5 / 7 | 6 / 8 | names unchanged |
262
+
263
+ Chip labels move off the retired micro scale onto `Action/Compact` (12/16/500,
264
+ XS + SM) and `Action/Default` (13/18/500, MD) — weight 500 at every size.
265
+
266
+ **Contrast pass (2026-09-29, second Figma update):** chip and badge labels now
267
+ bind the **Content ramp** (`warning-content`, `critical-content`,
268
+ `approved-content`, `neutral-content`; primary stays `primary`) — the darker
269
+ steps that clear WCAG AA on the soft tints. The chip's inner dot does **not**
270
+ follow: it keeps Main (`neutral-strong` on neutral chips), so `.vd-chip-dot`
271
+ no longer inherits the label colour — each variant sets its dot fill.
272
+ `--color-critical-content` was **de-aliased** from Critical/Strong in the same
273
+ pass and is raw `#b3363f` now (which also makes Link's critical `:active`
274
+ distinct from hover again — designer-list item 20 is half-resolved). Figma also
275
+ moved the **standalone** neutral dot to `Neutral/Main` (#9999a6) — **not
276
+ followed, by decision (2026-09-29)**: a severity dot that light is
277
+ near-invisible on the frame surface, and the neutral chip's inner dot kept
278
+ Strong, so both stay on `neutral-strong` and designer-list item 22 questions
279
+ the binding. Figma's briefly-stale dot inner shapes were fixed the same day;
280
+ the shipped 4/6/8 geometry was already correct and is unchanged. The
281
+ `.vd-with-ring` treatment moved from **inset to outside** (Figma draws the Ring
282
+ frame with an OUTSIDE 2px stroke): ringed chips/badges/dots now extend 2px
283
+ beyond their box. Two consequences the inset ring did not have: **a parent
284
+ with `overflow: hidden` crops the ring**, and since outlines take no layout
285
+ space, **ringed chips closer than 4px overlap each other's rings**. No library
286
+ container that hosts chip-family slots clips overflow (checked: Tabs, Tag);
287
+ host containers are the consumer's to audit. At this step only the chip family
288
+ moved; every other `.vd-with-ring` component followed as its own set was
289
+ re-swept later in 0.5.0, so in the release **every Ring draws outside**.
290
+ `BG=no` badges keep their box (previously the circle vanished). The Tag
291
+ status-dot slot mismatch noted here (4px against Figma's 5) was resolved by the
292
+ Tag rebuild below: the slot is `.vd-dot vd-dot-sm` (6px).
293
+
294
+ **Three `vd:` utilities left the closed set** (public API item 4):
295
+ `vd:text-micro-s-bold`, `vd:px-2.25` and `vd:py-1.25`, plus their `vd:md:`
296
+ variants — the methodology's chip recipe moved to `vd:h-control-xs` +
297
+ `vd:px-1.5` + `vd:text-action-compact`. Markup still using a retired utility
298
+ renders unstyled with nothing failing. The codemod's opt-in `--utilities` flag
299
+ rewrites the first two to their exact replacements (`vd:text-micro-s-bold →
300
+ vd:text-action-compact`, `vd:px-2.25 → vd:px-1.5`, both spellings) in the same
301
+ single pass; `vd:py-1.25` is **reported, never rewritten** — on a DIY non-flex
302
+ chip that padding is what vertically centres the label, so each occurrence
303
+ needs eyes.
304
+
305
+ **Codemod** — run in each consumer repo; it does both renames in a single
306
+ simultaneous pass, so the `sm→xs` / `md→sm` overlap cannot corrupt markup:
307
+
308
+ ```bash
309
+ node node_modules/@valiify/dashboard-ui/scripts/codemods/0.5.0-chip-sizes.mjs --dry-run # preview
310
+ node node_modules/@valiify/dashboard-ui/scripts/codemods/0.5.0-chip-sizes.mjs # apply the class renames
311
+ node node_modules/@valiify/dashboard-ui/scripts/codemods/0.5.0-chip-sizes.mjs --utilities # also rewrite retired vd: utilities
312
+ node node_modules/@valiify/dashboard-ui/scripts/codemods/0.5.0-chip-sizes.mjs --source # also rewrite unprefixed ./source utilities
313
+ ```
314
+
315
+ Vendored library bundles are skipped and listed; `--utilities-only` /
316
+ `--source-only` re-run a utility pass without the class renames.
317
+
318
+ It renames `vd-chip-sm → vd-chip-xs` and `vd-chip-md → vd-chip-sm`; badge and
319
+ dot names are untouched. After running, old-sm markup renders identically in
320
+ height (20) with the larger Rev3 label; old-md markup grows 23 → 24. See the
321
+ retired-utilities note above for what `--utilities` adds.
322
+
323
+ ### Breaking — the methodology's `vd:` utilities on the Rev3 scale (2026-10-01)
324
+
325
+ The design methodology cited **74 legacy `vd:` utilities**, and **all 74 move
326
+ to Rev3 successors**: 70 read from the live file, and 4 decided where the
327
+ file is ambiguous or silent (designer-list items 50 and 51 stay open). The
328
+ closed `vd:` set follows: **fourteen legacy utilities leave it, each with its
329
+ `vd:md:` twin** (`text-data-xs`, `-caption`, `-data-s`, `-body-1`,
330
+ `-body-1-bold`, `-body-2`, `-body-2-bold`, `-h1`, `-h2`, `-display`,
331
+ `-micro-l`, `-help-caption`, `-statecap`, and `vd:type-label-l-bold`), and
332
+ nine Rev3 utilities enter it.
333
+ **Markup that still uses a retired utility renders unstyled with nothing
334
+ failing**, as with the chip utilities above.
335
+
336
+ - **Each mapping was read from the live file, not by nearest size.** Several
337
+ roles moved family or weight: module and snapshot labels are
338
+ `Label/Compact` (12/16/600, **mixed case**: the uppercase
339
+ `type-label-l-bold` is gone), the owner row's name is `Supporting/Caption
340
+ Strong` rather than a Body style, and the Risk Overview check name is
341
+ `Supporting/Caption`. Pagination cells, the summary and the tag count are
342
+ no longer mono.
343
+ - **`vd:type-label-l-bold` left the closed set.** `./styles.css` now exposes
344
+ one custom utility, `vd:focus-ring` (`vd:type-label-s-bold` left earlier in
345
+ 0.5.0). A page
346
+ that relied on the label's CSS uppercase now renders the text as typed.
347
+ - **Decided where the file does not say:** the KPI card label
348
+ (`vd:text-body-2`, three citations) is bound two ways in the file, and
349
+ follows four of the five cards to `vd:text-supporting-caption-strong`
350
+ (item 50). The Risk Overview optional detail line (`vd:text-micro-l`) is
351
+ drawn by no Rev3 instance, and takes `vd:text-supporting-caption`, the
352
+ successor `micro-l` took for regular text elsewhere (item 51).
353
+ - **Codemod `--utilities`** gains nine renames whose successor does not depend
354
+ on the role — eight with the same family, size and weight, plus
355
+ `type-label-l-bold`, which moves to Label/Compact on the Revision 3 evidence: `text-data-xs → text-data-compact`, `text-caption →
356
+ text-supporting-caption`, `text-data-s → text-data-dense`, `text-body-1 →
357
+ text-body-dense`, `text-body-1-bold → text-body-dense-strong`, `text-h1 →
358
+ text-heading-page`, `text-h2 → text-heading-section`, `text-display →
359
+ text-display-metric`, `type-label-l-bold → text-label-compact`, plus each
360
+ `vd:md:` spelling. Line heights move by up to 2.5px, except `text-display` →
361
+ `text-display-metric` (39 → 52) and `type-label-l-bold` → `text-label-compact`
362
+ (10.5 → 12px, line 19.6 → 16, no uppercase). **Reported, never
363
+ rewritten**, because the successor depends on the role: `text-body-2`,
364
+ `text-body-2-bold`, `text-micro-l`, `text-statecap`, `text-help-caption`.
365
+ - **New `--utilities-only` mode** rewrites the utilities without the class
366
+ renames and skips the run-once guard. That makes it safe on markup that
367
+ already ran the class pass, and it is idempotent.
368
+ - **The codemod never rewrites a prebuilt library bundle.** A vendored
369
+ `dist/index.css` or `dashboard-ui.css` defines the OLD selectors, and renaming
370
+ them corrupted the bundle (measured on a 0.4.0 Val package: 4 selectors
371
+ rewritten, two rules left for one name and none for another). A stylesheet
372
+ carrying the library banner, or defining the tokens AND 40+ `.vd-` selectors,
373
+ is skipped and listed under SKIPPED. Upgrade a vendored bundle by replacing
374
+ the file.
375
+ - **New `--source` / `--source-only` modes** for code on the `./source` entry,
376
+ where token utilities are unprefixed (`text-caption`, `md:text-data-xs`,
377
+ `@apply text-body-1-bold`, `type-label-l-bold`). They stop being generated when
378
+ the legacy tokens go, silently. Same safe/report split as `--utilities`, over
379
+ every legacy type utility the theme generated (37 tokens + 6 `type-label-*`):
380
+ 20 renames (16 same-family, same-size, same-weight; the four bold label names
381
+ to `text-label-compact`, 10 / 10.5 → 12px with the uppercase dropped), 23
382
+ report-only names, and every
383
+ `var(--text-<legacy>)` reference reported. Two deliberate differences from
384
+ `--utilities`: spacing is untouched (`px-2.25` / `py-1.25` only left the closed
385
+ `vd:` set), and `text-micro-s-bold` is report-only (its `vd:` rewrite was the
386
+ chip recipe's). Variant chains (`md:`, `hover:`, `!`, Svelte's `class:`) are
387
+ kept; a chain starting `vd:` is left to `--utilities`. The full lists are in the
388
+ codemod's header.
389
+ - **`npm run verify:codemod`** (new, in CI) runs the codemod against fixtures:
390
+ the one-pass renames, the run-once guard, every rewrite and report in both
391
+ utility modes, look-alikes and the prefixed form left alone, both kinds of
392
+ bundle left byte-identical, a consumer stylesheet that imports the package
393
+ still scanned, idempotence, and coverage of every legacy type token in the
394
+ theme. Canaried: disabling bundle detection fails 3 checks; the earlier loose
395
+ banner match (any mention of the package in a file's first 1KB, which
396
+ skipped a consumer's own `app.css`) fails 1.
397
+ - **`vd:text-action-m` is now reported by `--utilities`.** It left the closed set
398
+ with the Button migration but was in neither list, so a page using it went
399
+ unstyled with the codemod saying nothing. Every utility that left the closed set
400
+ during 0.5.0 (44 with their `vd:md:` twins, diffed against the 0.4.0 release —
401
+ including `vd:h-[26px]` and `vd:hover:text-warning`, which left later) is now
402
+ either rewritten or reported.
403
+ - **Scaffold template** (`npm run new:component`) now writes Rev3 tokens
404
+ (`text-action-default`, `text-body-dense`, `text-heading-page`,
405
+ `text-data-compact font-mono`).
406
+ - **Card placeholder**: title `text-heading-section` (17/22/600, was H2's
407
+ 19.5 line), body `text-body-dense` (13/18/400, was Body 1's 19.5). Same
408
+ sizes and weights; Card is still placeholder scaffolding.
409
+ - **FilterSegment**: the story's chosen value steps to
410
+ `text-action-compact-active` (600 over the 500 rest), keeping the
411
+ emphasis. The Figma example it came from (1018:33960) is deleted and all
412
+ 18 variants draw `Action/Compact` 12 Medium, so this is a decision
413
+ (designer-list item 52).
414
+ - **This cleared the way for the removal** (the first entry in this section):
415
+ nothing outside the token definitions, the Foundations legacy showcase and
416
+ historical comments referenced a legacy type token, and all three were then
417
+ removed.
418
+
419
+ ### Breaking — the text and indicator tail on the Rev3 scale (2026-10-01)
420
+
421
+ No class renames. The last legacy text tokens leave the components.
422
+
423
+ - **Link**: strong and critical bind `Body/Default Strong` (14/20/**500** —
424
+ strong drops from SemiBold 600), quiet `Body/Default`, monospace `Data/Dense`
425
+ (Regular, was Medium), inline `Body/Default` (**14, grew from 12**). **Rev3's
426
+ Figma draws no underlines at all; the library keeps its underline behaviour**
427
+ as a pinned divergence (item 48): an inline link without one fails WCAG 1.4.1
428
+ (2.14:1 against the body text, 3:1 needed), and dropping the standalone
429
+ styles' underlines is a decision, not a token swap.
430
+ - **Pill**: the label is `Supporting/Caption Strong` (**12**/18/500, was the
431
+ 9.5px Statecap) in the unchanged 17px frame. Measured first: the line box is
432
+ taller than the content box, but the ink never reaches the frame — forcing
433
+ `overflow: hidden` changes zero pixels, even for accented capitals and
434
+ descenders — so nothing clips and no divergence was needed. Pills grow wider
435
+ (the "All" sample: ~29.9 → 32.6px). Ring → OUTSIDE.
436
+ - **Tooltip**: title `Supporting/Caption` (12, was 11), content `Action/Compact`
437
+ (12/16/500, was 12/18/400), subtext `Body/Default` (**14**, was 11) — the
438
+ title and subtext no longer share a style.
439
+ - **Divider**: the labeled label is `Label/Compact` (12, was 10); metadata keys
440
+ and values are `Supporting/Caption` / `Caption Strong`, so the metadata row is
441
+ 18px (was 16).
442
+ - **Loading Inline**: all four sizes bound — XS/SM `Supporting/Caption`, MD/LG
443
+ `Body/Default`, rows 22/22/24/24. XS grows 11 → 12; **LG shrinks 16 → 14**.
444
+ - **Skeleton radii step up with size** (they were one value per shape): Line LG
445
+ 6, Heading MD 6 / LG 8, Button LG 8, Rectangle LG 12. Dimensions unchanged.
446
+ - Confirmed unchanged against the re-cut sets: Loading Indicator, Icon.
447
+ - **Every Figma-backed component is off the legacy type tokens.** The
448
+ remaining uses — 74 legacy `vd:` citations in the design methodology, the
449
+ Card placeholder (2) and the scaffold template (3) — were migrated in the
450
+ entries above, and the tokens were then removed (the first entry in this
451
+ section).
452
+
453
+ ### Breaking — review and status surfaces on the Rev3 scale (2026-10-01)
454
+
455
+ No class renames. Six components move onto bound Rev3 styles; three of them
456
+ **stop uppercasing text in CSS**.
457
+
458
+ - **Field Verification** rows grow to **24px**: the label is `Body/Default`
459
+ (14/20, was the 12px Caption) with 2px padding; `none` is 18. Checked first:
460
+ a 24px row sits inside the 38px Data Row at y 7–31 with nothing overflowing —
461
+ exactly where Figma places it. The expanded panel's detail is `Data/Compact`,
462
+ its action `Action/Compact` (500, was 400). Ring → OUTSIDE.
463
+ - **Data Row** field and value are `Body/Dense` (13/18, was Body 2 12.5/12.5),
464
+ and so is the Sensitive Data override inside it. Ring → OUTSIDE.
465
+ - **Modal**: title `Heading/Page` (19/24, was 21.8 leading); subtitle and
466
+ description are **one style now**, `Action/Compact` (12/16/**500**, up from
467
+ 400), differing only in ink; the context line is `Data/Compact`.
468
+ - **Progress Bar**, previously raw, is bound throughout: title `Label/Compact`
469
+ (12/16/600, 0.08em — was 11px), value `Body/Dense Strong`, legend
470
+ `Supporting/Caption`.
471
+ - **Step**: labels bind per state — completed/active `Label/Compact` (600, was
472
+ 500), upcoming `Supporting/Caption` (400) — at 12px (was 10); the number is
473
+ `Supporting/Caption Strong` (12, was 11); the completed check takes its
474
+ authored 2px stroke (item 47). Steps are 46/48 tall, so Stepper connectors sit
475
+ 11px below marker centres (was 9).
476
+ - **Stepper** title: `Supporting/Caption Strong` (12/18/500, was raw 11px).
477
+ - **Casing is the caller's now** for the Progress Bar title, Stepper title and
478
+ Step labels: the CSS `uppercase` is gone, because none of the Rev3 styles
479
+ transforms case — Figma types the caps into the two titles' strings and
480
+ renders "Step" mixed-case. **Markup that passes mixed-case strings to those
481
+ three now renders mixed case.** On the pre-publish consumer scan. When you
482
+ type a visible label in caps, keep any `aria-label` derived from it in natural
483
+ case — some screen readers spell an all-caps label out.
484
+
485
+ ### Breaking — Avatar rescaled on the Rev3 scale (2026-10-01)
486
+
487
+ Figma's Avatar Size axis is now XS / S / M / LG / XL = **12 / 16 / 20 / 28 / 34**,
488
+ and two class names change meaning:
489
+
490
+ | class | before | after |
491
+ | ---------------- | ------ | ----------------------------- |
492
+ | `.vd-avatar-xs` | 16 | **12** (new size) |
493
+ | `.vd-avatar-sm` | 18 | **16** (the old 18 is gone) |
494
+ | `.vd-avatar-md` | 20 | 20 (the base, unchanged) |
495
+ | `.vd-avatar-lg` | 34 | **28** (new size) |
496
+ | `.vd-avatar-xl` | — | **34** (the old lg's new name) |
497
+
498
+ - **Run the codemod.** `scripts/codemods/0.5.0-chip-sizes.mjs` now also renames
499
+ `vd-avatar-lg → vd-avatar-xl` and `vd-avatar-xs → vd-avatar-sm`, in the same
500
+ single simultaneous pass as the chip renames. **`vd-avatar-lg` markup that
501
+ doesn't run the codemod silently renders at 28px instead of 34px**, and
502
+ un-migrated `vd-avatar-xs` markup silently renders at 12px instead of 16px —
503
+ nothing fails, the avatars just shrink.
504
+ - **`vd-avatar-sm` cannot be codemodded**: its name survives with a new size, so
505
+ every existing `vd-avatar-sm` shrinks 18 → 16 regardless. On the pre-publish
506
+ consumer scan.
507
+ - **The codemod now refuses to run twice.** Its maps are not idempotent — a
508
+ second pass would turn new 12px `vd-avatar-xs` into 16 and new 24px
509
+ `vd-chip-sm` into 20 — so it exits 1 when the tree already contains
510
+ `vd-chip-xs` or `vd-avatar-xl` (names that cannot exist before 0.5.0), unless
511
+ `--force`. `--dry-run` only warns.
512
+ - **One type style at every size**: `Utility/Avatar Initials` (Inter Semi Bold
513
+ 8 / 8 / 600) replaces the three-style ramp (8/600, 8.5/500, 11/500). The 34px
514
+ avatar's initials shrink 11 → 8 and md's 8.5 → 8 — as drawn; designer-list
515
+ item 46 asks about legibility at the large end and the 12px edge-to-edge fit.
516
+ - The Ring moves to the 2px `Primary/Main` OUTSIDE outline (was inset).
517
+ - **Hosts follow the instances Figma nests**: Tag (md/lg, recipient sm/lg) and
518
+ Dropdown Field (xs–lg) take `vd-avatar-sm` (16 — their old `xs`); **Tag
519
+ xs-recipient now carries a real 12px `vd-avatar-xs`** (item 24, resolved);
520
+ **Menu Item lg rows take `vd-avatar-md` (20)** where the docs said 16 at every
521
+ size — Figma's lg row nests Avatar M; Dropdown Field xl keeps `md`.
522
+
523
+ ### Breaking — selection controls and markers on the Rev3 scale (2026-10-01)
524
+
525
+ No class renames. Checkbox's box stroke rebinds (`Neutral/Main` rest — was
526
+ `Stroke/Divider`; `Stroke/Border` disabled — was `Stroke/Disabled`), its
527
+ checkmark takes the authored 1.5px stroke (the icon ramp's 10px step is half
528
+ that), and Figma drew checked+hover (`Primary/Dark` — the rule the CSS
529
+ already carried). Labels move to the Rev3 styles at identical metrics:
530
+ Checkbox/Radio/SensitiveData `Supporting/Caption`, Checkbox's subtitle
531
+ `Data/Compact`; FilterSegment's label grows 11 → 12 (`Action/Compact`,
532
+ explicit 16px line — the Auto-line trap retires). Radio and Switch state
533
+ colours were already aligned with the re-cut. **Seven rings move to the 2px
534
+ `Primary/Main` OUTSIDE outline** (Checkbox, Radio — new boolean, Switch —
535
+ new boolean, FilterSegment, SensitiveData, SectionMarker, IconButton's
536
+ `.vd-icon-ring`), per each set's Ring frame; item 21's inside/outside split
537
+ is resolving itself as the tail migrates.
538
+
539
+ ### Added — width-stable tabs (2026-09-30)
540
+
541
+ Switching the active tab no longer reflows the row. The SM-height types'
542
+ 500 → 600 active step (and chip/segment's active-only hairline) moved tab
543
+ widths by up to 3.8px and neighbours by ~3px — Figma draws the same shift
544
+ (item 44). Two reservations fix it: the new **`.vd-tab-label`** part (wrap
545
+ the label, mirror it in `data-label` — a hidden bold ghost holds the active
546
+ width), and chip/segment now carry their active hairline **transparent at
547
+ rest**. Rest tabs render ~1px wider than Figma's rest frames — a pinned
548
+ divergence. Bare-text tabs keep working and shift as the file draws. The
549
+ WidthStability story + a new cross-element visual-spec mechanism
550
+ (`expect: { sel }`) assert tab-by-tab equality between two rows differing
551
+ only in the active index.
552
+
553
+ **Migration note (0.5.0)**: stable widths require the wrapper — a tab whose
554
+ label is bare text still shifts when it becomes active, exactly as the file
555
+ draws. Wrap every tab label in `.vd-tab-label` with a matching `data-label`
556
+ when migrating. On the pre-publish consumer scan: tab markup with bare-text
557
+ labels.
558
+
559
+ ### Breaking — Tabs, Breadcrumbs and Pagination on the Rev3 scale (2026-09-30)
560
+
561
+ No class renames. One closed-set utility retires (codemod-able):
562
+
563
+ - **`vd:text-action-s` leaves the closed `vd:` set** — its one methodology
564
+ citation (the Tabs chip recipe) moves to `vd:text-action-compact`
565
+ (12/16/500; the line grew 14 → 16). The codemod's `--utilities` map gains
566
+ `vd:text-action-s → vd:text-action-compact` (and the `md:` form).
567
+ - **Tabs — the weight story inverts.** underline lg binds `Action/Default`
568
+ (13/18/500) in every state: the 500 → 600 active bump is GONE at lg. Every
569
+ SM-height type (underline sm, chip, segment) rests at `Action/Compact` and
570
+ steps to `Action/Compact Active` (600) when active. The subtitle grew from
571
+ 8px Micro S to `Action/Compact Active` (12). Chip/segment REST ink ships
572
+ `Content/Secondary`, not Figma's `Content/Tertiary` (4.26:1 on the segment
573
+ selector's own `Surface/Frame` fill) — pinned divergence, designer-list
574
+ item 39. The underline label-badge gap ships at a single 10px (Figma moves
575
+ it 8 → 10 on hover — item 40). The chip row's padding-y is 8 (was 6); the
576
+ segment selector is bound `Height/Control/MD` — pinned 28 with 2px padding
577
+ (was a content-driven 26 on 1px). Tabs and Navigation gained Ring booleans,
578
+ drawn OUTSIDE — `.vd-with-ring` here moves from inset to the outline
579
+ pattern. The tablist keyboard contract (roving tabindex, arrow keys,
580
+ aria-controls → tabpanel) is documented and wired in the new
581
+ KeyboardReference story — the library ships no JavaScript, and role="tab"
582
+ without it over-promises to screen readers.
583
+ - **Breadcrumbs** — items bind `Body/Dense` / `Body/Dense Strong` (13/18);
584
+ the crumb box is 22 exactly and **the row's `Height/Control/SM` binding is
585
+ gone from the file**, so `.vd-breadcrumbs` hugs at 22 (was pinned 24) —
586
+ on the 0.5.0 pre-publish consumer scan. Separators bind
587
+ `Supporting/Caption`, the loose middot `Body/Dense`.
588
+ **`[aria-current="page"]` is styled now** alongside
589
+ `.vd-breadcrumb-current`, closing the parked accessibility item; the class
590
+ survives for the slash variant's first current half.
591
+ - **Pagination / Pagination Item** — every cell binds `Action/Default`
592
+ (13/18, Inter Medium): the JetBrains Mono cell and its per-kind weights are
593
+ gone, and the active cell's Bold (700) — the library's last Inter-700
594
+ usage, always faux-bold — is deleted. The bar's summary is
595
+ `Action/Compact` in Inter (was 12px mono); simple's status marks the
596
+ current page by **colour only** (the Semi Bold step is gone). The
597
+ hover/pressed ramps stay raw in Figma; the library keeps its tokens
598
+ (item 41, superseding the pre-Rev3 form).
599
+
600
+ ### Breaking — Alert + Toast on the Rev3 scale (2026-09-30)
601
+
602
+ No class renames — nothing codemod-able. The breaks are type, one colour
603
+ re-point and one pin:
604
+
605
+ - **Shared type moves**: titles bind `Body/Dense Strong` → `text-body-dense-strong`
606
+ (13/18/500 — Medium despite the name; was the 12.5/12.5 Body 2 - Bold);
607
+ messages bind `Body/Default` → `text-body-default` (**14/20** — grown from
608
+ the 12px Caption). With the 20px Rev3 Text Button slot, both reconcile to
609
+ Figma's authored frames exactly: Alert 98, Toast Full 106.
610
+ - **`.vd-alert-info` rides the real Info ramp now** (`Info/Soft` fill,
611
+ `Info/Main` rail + icon) — a pinned divergence: Figma's info variant still
612
+ binds Primary, never rebound after Rev3 added the ramp (designer-list
613
+ item 35). Contrast verified: 5.46 on Paper, 4.93 on Frame, all text 5.3+.
614
+ - **Toast Simple's pin moves 35 → 38**: its label is `Body/Dense` (13/18) now,
615
+ and Figma authors 10 + 18 + 10 with the stroke inside.
616
+ - **Toast's timestamp** is `Data/Compact` → `text-data-compact` (the same
617
+ 12/16.5 mono metrics — a pure rename) but ships `Content/Tertiary`, not
618
+ Figma's `Content/Faint` (1.73:1 on the card) — pinned divergence, item 37.
619
+ - **`--shadow-toast` value corrected** to the live effect (blur 6 → 12;
620
+ `0 4px 12px rgba(20,20,40,0.07)`) — a token value change, not a rename.
621
+ - **Screen-reader contract**: the Alert role is type-driven — critical and
622
+ warning render `role="alert"`, success/info/neutral `role="status"`; either
623
+ announces only on DOM insertion. Every toast is `role="status"` (implicit
624
+ polite + atomic), the region must exist before the message is injected, a
625
+ toast carrying an action must persist until dismissed, and auto-dismiss is
626
+ for supplementary status only — generous duration, paused on hover/focus
627
+ (WCAG 2.2.1). Simple has no dismiss control in Figma: transient
628
+ confirmations only.
629
+ - The warning icon ships as drawn at 2.74:1 against the 3:1 graphics rule
630
+ (aria-hidden, title adjacent) — item 36; Toast's 1px icon strokes vs the
631
+ ramp's 1.25 — item 38.
632
+
633
+ ### Breaking — the field family on the Rev3 scale (2026-09-30)
634
+
635
+ Input, Search Field, Text Area, Dropdown Field, Dropdown Menu, Menu Item,
636
+ Composer and Recipient Input in one campaign. **No class renames.** Geometry,
637
+ ladder bindings and floors are unchanged everywhere except one recompute (see
638
+ Text Area). The breaks:
639
+
640
+ - **Entry text**: `Supporting/Caption` (12/18) at xs/sm and `Body/Dense`
641
+ (13/18) from md up, across every field — the Micro L / Body 1 / Body 2 tiers
642
+ are gone (Dropdown's md moves 12.5 → 13).
643
+ - **Field labels are `Label/Compact` (12/16/600) and MIXED-CASE** — the 10px
644
+ uppercase Label S died with the scale. The codemod's `--utilities` map now
645
+ rewrites `vd:type-label-s-bold → vd:text-label-compact` (both spellings);
646
+ **the target carries no `text-transform`, so labels stop shouting** — the
647
+ casing was the utility's, not the strings'.
648
+ - **Placeholders are `Content/Tertiary` family-wide by decision**: Figma
649
+ draws Search/Dropdown/Textarea/Composer placeholders `Content/Faint`, which
650
+ measures **1.73:1** on Paper. Pinned divergence, designer-list item.
651
+ - **Menu Item**: titles/subtitle/meta re-typed (subtitle 11 → 12; meta matches
652
+ the title size); subtitle and meta ship `Content/Secondary` — Figma's
653
+ Tertiary is 4.19:1 on a hovered row (designer item); the title's **raw
654
+ `#000000`** binding ships as `Content/Primary` (designer item); Figma's
655
+ disabled draws no dimming at all (designer item) — the house
656
+ `Content/Tertiary` rule replaces the old `opacity-50` blanket; critical
657
+ tone gains its `Critical/Soft` hover.
658
+ - **Dropdown Menu**: the header is 28 now (8 top padding + the 16px
659
+ Label/Compact line + 4 bottom; it was 24); panels grow 4px.
660
+ - **Text Area xs/sm floor paddings recomputed** (2 → 0, 4 → 2): Caption's
661
+ explicit 18px line would push a one-line field past its floor; the
662
+ floor-exact contract wins.
663
+ - **Dropdown Field states**: open/focus is the 0.5px `Primary/Main` hairline
664
+ (the 2px ring stays on `:focus-visible`); **error now beats the open
665
+ hairline** — the re-cut inverted the old open-ring-wins behaviour. Text
666
+ inputs and textareas keep the 2px ring on focus (browsers match
667
+ `:focus-visible` on pointer focus for typable fields).
668
+ - **Composer**: Rows floors unchanged (20/58/98) — full row-counts now sit
669
+ under their floors (3 × 18 = 54), so rows land floor-exact; the old
670
+ half-pixel oddity is gone.
671
+ - New disabled fills family-wide: `Action/Subtle` (White BG) /
672
+ `Surface/Neutral` (Neutral BG).
673
+
674
+ ### Toggle buttons move to `aria-pressed`; menu toggles to `menuitemradio` / `menuitemcheckbox` (2026-09-30)
675
+
676
+ axe flags `aria-selected` on a bare `<button>` (aria-allowed-attr — the
677
+ attribute belongs to option/tab/row/gridcell roles), and it was the library's
678
+ most repeated ARIA defect (handoff report §3c). Applied:
679
+
680
+ - **Button styles `[aria-pressed="true"]` beside every
681
+ `[aria-selected="true"]` selector** — additive, nothing breaks. The docs,
682
+ stories and methodology recipes switch plain toggle buttons (the Filter
683
+ button pattern) to `aria-pressed`; `aria-selected` stays styled for hosts
684
+ whose role supports it (`role="option"`, `role="tab"`), and the
685
+ AllVariants story pins the legacy selector working inside a listbox.
686
+ - **MenuItem toggle markup is corrected**: a selected row is
687
+ `role="menuitemradio"` (or `"menuitemcheckbox"`) with `aria-checked`
688
+ inside a `role="menu"`; `aria-selected` is valid only on
689
+ `role="option"` rows in a listbox; plain `role="menuitem"` supports
690
+ NEITHER attribute. No CSS change — `.vd-menu-item` already styled both
691
+ attributes; the docs and every story now pair each with a valid role.
692
+ Select-style menu stories (DropdownMenu Default / ApplicantPicker /
693
+ AllSizes / WithTrigger) are `menuitemradio` + `aria-checked`; region
694
+ dividers inside menus carry `role="separator"`; the Regions composite
695
+ popup (search + header + footer chrome) drops `role="menu"` entirely,
696
+ since a menu may own only menuitem\* children. Tabs keep `aria-selected`
697
+ — valid on `role="tab"`.
698
+ - **Not codemod-able**: whether `aria-selected → aria-pressed` is correct
699
+ depends on the element's role, which lives elsewhere in the markup — a blind
700
+ rewrite would corrupt tabs and listbox options. The consumer scan can LOCATE
701
+ candidates (aria-selected without a tab/option/row context) for manual
702
+ review; it cannot rewrite them.
703
+
704
+ ### Breaking — Button + TextButton on the Rev3 scale (2026-09-30)
705
+
706
+ **No class renames** — the first set with nothing codemod-able. Geometry did
707
+ not move either (heights/padding/gaps/icons unchanged); the breaks are type
708
+ and state:
709
+
710
+ - **Button labels**: xs/sm bind `Action/Compact Active` — **12/16/600, Semi
711
+ Bold at rest**, via a style literally named "Active" (designer-list item 28;
712
+ as drawn). md/lg/xl all bind `Action/Default` 13/18/500 — md grows
713
+ 12.5 → 13, xl shrinks 14 → 13, and the old "xl binds a Body style" designer
714
+ question is resolved by the re-cut.
715
+ - **Primary's hover, pressed and selected are one colour** (`#163a6b`) since
716
+ the Primary/Pressed → Dark alias — shipped faithfully pending designer-list
717
+ item 20. Primary also draws the `Stroke/Divider` hairline at rest (was
718
+ border-transparent); invisible on the fill, geometry-safe under border-box.
719
+ The outline/empty ramp keeps pressed fully distinct (`Primary/Soft` + blue).
720
+ - **Two new Figma booleans**: `.vd-btn.vd-with-ring` (2px `Primary/Main`
721
+ outline, OUTSIDE — Button never had a ring) and the Count slot, which is a
722
+ nested **Badge XS** (the existing `.vd-badge`, 16px, size-invariant).
723
+ - **TextButton converges on `Action/Compact`** (12/16/500) at all three types
724
+ and grows to a 20px box (cell was a pinned 15, text/primary 18) — the pin
725
+ died with the Auto line height. **Active is colour-only now** (rest is
726
+ already 500). Ring moves inset → OUTSIDE. Alert and Toast rows that slot
727
+ `.vd-text-button-primary` grow ~2px.
728
+ - **`vd:text-action-m` (+ `vd:md:` twin) left the closed utility set** — the
729
+ methodology's button recipes moved to `vd:text-action-default` /
730
+ `vd:text-action-compact-active`. `vd:text-action-s` left too when Tabs
731
+ migrated (the navigation entry below); the codemod rewrites both.
732
+ - Contrast: computed for every state — all pass (5.44–18.04); the only
733
+ sub-4.5 readings are disabled states, which WCAG exempts. No divergence
734
+ needed.
735
+
736
+ ### Breaking — Tag rebuilt on the Rev3 scale (2026-09-30)
737
+
738
+ The set (79:251, 40 variants) was re-cut with Rev3 type and integrated slot
739
+ changes. No size-class renames this time, but real breaks:
740
+
741
+ - **`.vd-tag-flag` is REMOVED** (no codemod possible — a structure change).
742
+ The External status is a nested **XS `.vd-chip vd-chip-neutral`**, a real
743
+ Chip; a tag carrying it **hugs to 24** (`.vd-tag-external:has(.vd-chip)`).
744
+ Figma literally nests a 24px SM chip inside the 20px sm tag — an overflow
745
+ (designer-list item 25) — so the designer-sanctioned XS-in-24 shape ships.
746
+ - **`.vd-tag-xs` grew 16 → 20** (raw in Figma; now the same height as sm with
747
+ denser 6px padding/gap).
748
+ - **Labels**: `Action/Compact` 12/500 at xs/sm/md (was 8.5–12px at 400) and
749
+ `Action/Default` 13/500 at lg. Active steps to `Action/Compact Active`
750
+ (600) at xs/sm/md; **lg alone stays 500** — contradicts "600 for active
751
+ regardless of size"; built as drawn, designer-list item 26.
752
+ - **`.vd-tag-count` is Inter now** (`Action/Compact`), no longer JetBrains
753
+ Mono — and it ships `content-secondary` where Figma binds
754
+ `Content/Tertiary`, because Tertiary fails AA on every filled tag state
755
+ (measured: 4.46 hover, 4.19 recipient-hover, 4.34 External, 3.92 External
756
+ on the frame surface; Secondary clears all at 5.5–6.7). Designer-list
757
+ item 27.
758
+ - **The status-dot slot is `vd-dot-sm` (6px)** — Figma nests a Chip `dot SM`
759
+ instance, resolving the 0.5.0 interim state where the bare 4px dot sat in a
760
+ slot drawn at 5. The Tag re-sweep pre-publish gate is closed.
761
+ - **`.vd-tag-external` lost its `Warning/Main` hairline** — the Rev3 External
762
+ overlay is a `Warning/Soft` fill only; the border stays `Stroke/Divider`.
763
+ - **`.vd-with-ring` on Tag moved inset → outside** (2px `Primary/Main`
764
+ outline, zero offset), joining Chip; the same overflow-crop / 4px-adjacency
765
+ caveats apply.
766
+ - **Latent state bug fixed**: the hover rule outranked the active rule, so a
767
+ hovered selected tag lost its solid fill; hover now excludes
768
+ `aria-pressed/selected` by name, matching Figma's Hover+Active variants
769
+ (solid `Primary/Main`). recipient's hover now steps `Action/Subtle` →
770
+ `Action/Hover` as drawn; `empty` is inert on hover and active.
771
+
772
+ Slot compositions are unaffected in geometry: Composer (Tag sm) and
773
+ RecipientInput (Tag sm / lg) keep their heights, so the recipient-row floor
774
+ math is unchanged — except a 24px External tag in a RecipientInput **lg** row,
775
+ which grows that shell from its 32 floor (measured in the fixture; the xl
776
+ shell absorbs it).
777
+
778
+ ### Added — token layer of the Revision 3 type/color migration (2026-09-28)
779
+
780
+ Figma replaced the 37-style type system with a 21-style scale and rebound every
781
+ component to it (verified: no pre-Revision-3 style is applied anywhere in the
782
+ Text Preview, Components, or Business Prototype sections). This entry landed
783
+ the **token layer only**; the per-component migration followed in the entries
784
+ above, and the legacy scale was removed at the end (the first entry in this
785
+ section).
786
+
787
+ - **21 new `--text-*` tokens** (Revision 3 scale): `heading-page`,
788
+ `heading-section`, `heading-compact`, `body-default(-strong)`,
789
+ `body-dense(-strong)`, `supporting-caption(-strong)`,
790
+ `action-compact(-active)`, `action-default(-active)`, `label-compact`,
791
+ `data-compact/dense/emphasis/large`, `utility-avatar-initials`,
792
+ `utility-badge-count`, `display-metric`. Every line-height is explicit — the
793
+ new scale has no "Auto" styles.
794
+ - **21 generated `.vd-text-*` classes**, one per new style, carrying the full
795
+ style *including* `font-family` and `font-variant-numeric: tabular-nums` on
796
+ the data styles (`display-metric` deliberately stays proportional — Revision
797
+ 3's stated change). They ship in both prebuilt bundles and in
798
+ `class-manifest.json` (371 → 392 classes at this step; 396 in the release),
799
+ giving bundle consumers their
800
+ first way to apply a text style; `./source` consumers may prefer the
801
+ generated `text-*` utilities.
802
+ - **8 new color tokens**: the **Info ramp is real now** — `--color-info`,
803
+ `-info-strong`, `-info-soft`, `-info-content` (#4c6285 hue, confirmed in the
804
+ Valiify collection via `search_design_system`; supersedes the old note that
805
+ info colors do not exist) — plus `--color-warning-strong`,
806
+ `--color-warning-content`, `--color-secondary-content` and
807
+ `--color-stroke-highlight`. `.vd-alert-info` was re-pointed to the Info ramp
808
+ in the Alert pass (above).
809
+ - **`@valiify/dashboard-ui/fonts` now loads Inter 300** — `Display/Metric` is
810
+ weight 300, as the deprecated Display style already was. **This is a rendering
811
+ change for weight-300 text**: browsers synthesize bold but not light, so
812
+ `font-weight: 300` previously resolved to the loaded 400 face; it now renders
813
+ the true Light face. In this repo nothing but the Storybook Foundations
814
+ typography specimen uses weight 300 (no component CSS does), so expect a
815
+ Chromatic diff on that docs page and nowhere else — but a consumer app that
816
+ loads `./fonts` and uses `font-light` (or `text-display-metric`, the
817
+ Revision 3 successor of the removed `text-display`) will see its display text
818
+ get genuinely lighter.
819
+
820
+ ### Changed
821
+
822
+ - **Four color token values** (2026-09-29 designer fixes; names unchanged, so
823
+ not breaking): `--color-approved-strong` `#168567` → `#137459` (now equal to
824
+ `approved-content`), `--color-critical-content` `#b73943` → `#ba3a44` (an alias
825
+ of `Critical/Strong` at this step — **then de-aliased to a raw `#b3363f`** in
826
+ the Chip contrast pass, which is what ships), `--color-primary-pressed`
827
+ `#003358` → `#163a6b` (now an alias of `Primary/Dark`),
828
+ `--color-stroke-highlight` alpha 0.94 → 0.92. Because pressed now equals dark,
829
+ the `:active` state of Link strong / inline and TextButton primary is no
830
+ longer distinguishable from hover — recorded on the designer list pending a
831
+ separate pressed colour. (Link critical stays distinct: its pressed is
832
+ `Critical/Content` against the `Critical/Strong` hover.)
833
+
834
+ ### Deprecated
835
+
836
+ - **The 37 pre-Revision-3 `--text-*` tokens** (`text-body-1`, `text-micro-l`,
837
+ `text-action-s`, `text-statecap`, …). Removed from Figma; kept at their
838
+ last-known values during the migration, then **removed in this same release**
839
+ — see the first entry in this section for the old → new table.
840
+ - **Weight 700 ends with the deprecated styles.** The Revision 3 scale has no
841
+ 700 anywhere, and no 700 face was ever loaded — `./fonts` has always been
842
+ Inter 300–600 + JetBrains Mono 400/500, so today's two 700 usages render
843
+ faux-bold: the deprecated `label-s-mono` token (JetBrains Mono 700) and
844
+ PaginationItem's `font-bold` active page number. Both are resolved in 0.5.0
845
+ alongside the token removal: `label-s-mono` goes with the deprecated scale,
846
+ and PaginationItem's weight gets re-verified against the redesigned Figma set
847
+ in the component pass (Inter 700 has zero usages and needs no action).
848
+
849
+ ## 0.4.0
850
+
851
+ ### Breaking
852
+
853
+ **Every interactive control now sizes from one five-step ladder** —
854
+ `--height-control-{xs,sm,md,lg,xl}` = **20 / 24 / 28 / 32 / 40**, authored in
855
+ Figma as `Height/Control/XS..XL` (FLOAT, scope `WIDTH_HEIGHT`) and bound on every
856
+ in-scope variant. Before this, 20 distinct control heights shipped and a button
857
+ beside a field in the same form row sat 3px short (`.vd-btn-lg` 32 vs
858
+ `.vd-input-lg` 35). Rendered heights of shipped classes change, so this is a
859
+ breaking release even where no class name moved. `verify:height-scale` (new CI
860
+ gate) reads 0 violations on this tree and 24 on the pre-migration tree.
861
+
862
+ #### Migration table
863
+
864
+ | selector | was | now | note |
865
+ | --- | ---: | ---: | --- |
866
+ | `.vd-btn` / `.vd-btn-md` | 28 | 28 | `-md` added as an explicit alias of the base; `-xs` (20) and `-xl` (40) new |
867
+ | `.vd-btn-sm` / `.vd-btn-lg` | 24 / 32 | 24 / 32 | unchanged values, now `h-control-*` |
868
+ | `.vd-icon-button` (bare) | 28 | 28 | base re-points from the old lg to the new md |
869
+ | **`.vd-icon-button-md`** | **18** | **28** | **hard break — see the codemod** |
870
+ | **`.vd-icon-button-lg`** | **28** | **32** | **hard break — see the codemod** |
871
+ | `.vd-icon-button-inline` | — | 18 | new name for the 18px size |
872
+ | `.vd-icon-button-sm` / `-xl` | — | 24 / 40 | new |
873
+ | `.vd-input-field` (bare) | **35 (lg)** | **28 (md)** | **base normalised lg → md** |
874
+ | `.vd-input-sm` / `-md` / `-lg` | 25 / 29 / 35 | 24 / 28 / 32 | padding-y 5.5 / 4 / 7 → 0 |
875
+ | `.vd-input-xs` / `-xl` | — | 20 / 40 | new |
876
+ | `.vd-input-search` | — | — | new modifier: Search Field 854:24901 |
877
+ | `.vd-dropdown-field` (bare) | **35 (lg)** | **28 (md)** | **base normalised lg → md**; md type is Body 2 |
878
+ | `.vd-dropdown-field-sm` / `-md` / `-lg` | 25 / 29 / 35 | 24 / 28 / 32 | padding-y → 0 |
879
+ | `.vd-dropdown-field-xs` / `-xl` | — | 20 / 40 | new |
880
+ | `.vd-textarea-field` (bare) | no floor | floor 28 (md) | `min-height`; `-xs`…`-xl` new (20 / 24 / 28 / 32 / 40); padding-y 7 → 3 |
881
+ | `.vd-filter-segment` / `-sm` | 21 | 20 | `-sm` added explicitly; padding-y 4 → 0 |
882
+ | `.vd-filter-segment-md` | 28 | 28 | padding-y 4 → 0 |
883
+ | `.vd-tag` / `-sm` | 21 | 20 | padding-y 4 → 0 |
884
+ | `.vd-tag-md` | 24 | 24 | padding-y 4 → 0; Kind=default only |
885
+ | `.vd-tag-xs` / `-lg` | — | 16 / 32 | new; `-recipient` `-empty` `-external` `-flag` new |
886
+ | `.vd-tab-underline` | 32 | 32 | padding-y 8 → 0 |
887
+ | `.vd-tab-underline.vd-tab-sm` | 26 | 24 | padding-y 6 → 0 |
888
+ | `.vd-tab-chip` / `.vd-tab-segment` | 26 | 24 | bind `Height/Control/SM` despite Figma's `Size=lg` label |
889
+ | `.vd-segment-selector` | 28 | 26 | derived: 1 + 24 + 1 |
890
+ | `.vd-pagination-item` | 32 | 32 | `h-control-lg aspect-square` |
891
+ | `.vd-breadcrumbs` (row) | content ~24 | 24 | `h-control-sm` on the row |
892
+ | `.vd-menu-item-sm` / `-md` / `-lg` | content 25 / 29 / 42 | floors 24 / 28 / 32 | `min-height`; padding-y 6 / 7 / 11 → 2 / 4 / 6 |
893
+ | `.vd-composer` · `.vd-recipient-input` | — | — | new components |
894
+
895
+ #### Icon Button codemod — in this order
896
+
897
+ The two old names are **reused with new meanings**, so no alias was possible and
898
+ order matters:
899
+
900
+ 1. `vd-icon-button-md` → `vd-icon-button-inline` (every 18px dismiss / action)
901
+ 2. `vd-icon-button-lg` → `vd-icon-button-md` (every 28px control)
902
+
903
+ Running step 2 first turns your 28s into 18s. The bare `.vd-icon-button` needs no
904
+ change — it still renders 28.
905
+
906
+ #### Input Field and Dropdown Field: base lg → md
907
+
908
+ A bare `.vd-input-field` or `.vd-dropdown-field` rendered the lg size (35) and
909
+ now renders md (28), the library-wide convention (base = md on every control
910
+ with an md step). Add `.vd-input-lg` / `.vd-dropdown-field-lg` where the taller
911
+ field was intended.
912
+
913
+ #### Removed in 0.5.0 (deprecated now, still rendering)
914
+
915
+ - `.vd-menu-item-combined` — the old emphasised row; the new Figma set models it
916
+ as `.vd-menu-item-tile` + `.vd-menu-item-subtitle` at default tone
917
+ - `.vd-menu-item-badge` — now `.vd-menu-item-tile`
918
+ - `vd:h-[26px]` in the closed utility set — now `vd:h-control-sm`
919
+
920
+ ### Added
921
+
922
+ - **Tokens** `--height-control-xs` / `-sm` / `-md` / `-lg` / `-xl` (20 / 24 / 28 / 32 /
923
+ 40) in `@theme static`, Tailwind's `--height-*` namespace — generating
924
+ `h-control-*`, `min-h-control-*`, `max-h-control-*` on `./source`, and
925
+ `vd:h-control-*`, `vd:min-h-control-*`, `vd:aspect-square` in the closed set. Also
926
+ `--vd-height-control-*` under the prefixed pass. `--height-<number>` is
927
+ prohibited (it would shadow `h-8`); the generator throws.
928
+ - **Components** `Composer` (Comment Composer 1289:3690 — xl floor; Rows body
929
+ floors 20 / 58 / 98) and `RecipientInput` (1290:4812 — lg / xl floors, chips
930
+ keyed to size). 41 components, 40 with a visual spec.
931
+ - **Classes** `.vd-btn-xs` `-md` `-xl`; `.vd-icon-button-inline` `-sm` `-lg` `-xl`;
932
+ `.vd-input-xs` `-xl` `.vd-input-search`; `.vd-dropdown-field-xs` `-xl`;
933
+ `.vd-textarea-xs`…`-xl`; `.vd-filter-segment-sm`; `.vd-tag-xs` `-lg` `-recipient`
934
+ `-empty` `-external` `-flag`; `.vd-menu-item-meta` `-critical` `-icon` `-tile`
935
+ `-tile-lg` `-avatar` `-checkbox` `-check` `-chevron` `-chevron-left` `-shortcut`
936
+ `-action`; `.vd-dropdown-menu-search` `-header` `-header-label` `-footer`.
937
+ - **Gates** `verify:height-scale` (rules 1–4, two-way exemptions, matcher canary,
938
+ compile probe, `--against <ref>`); `get: 'overflow'` and `{ token, kind: 'length' }`
939
+ against measured heights in `verify:visual`; the Foundations → Control Heights
940
+ story pins the ladder.
941
+ - **Docs** `tokens/control-heights.json` (per-selector map, compositions,
942
+ exemptions, designer questions), `docs/figma-renames.md`,
943
+ `docs/figma-component-index.md`; every CLAUDE.md component header links its
944
+ Figma node.
945
+
946
+ ### Changed
947
+
948
+ - **Vertical padding is 0 on every height-bound control** — the box is the token,
949
+ `items-center` centres the content.
950
+ - **Floor components** (Text Area, Menu Item, Comment Composer, Recipient Input)
951
+ use `min-h-control-*` and **subtract the rendered 1px hairline per side from
952
+ their vertical padding**, so a one-line floor renders exactly on its step.
953
+ - Figma set renames absorbed: Text Input Container → Input Field, Search
954
+ Container → Search Field, Dropdown Field Container → Dropdown Field, Text
955
+ Field Container → Text Area, Status → Chip; Menu Item is the new set
956
+ 1304:35667; Dropdown Menu rebuilt with Search / Header / Footer.
957
+ - Recorded debt (designer-owned): Tag sm, Filter Segment sm, Icon Button xs and
958
+ inline sit below WCAG 2.2 SC 2.5.8's 24px — handoff report §4a.
959
+
37
960
  ## 0.3.0
38
961
 
39
962
  ### Added
@@ -124,7 +1047,11 @@ the deprecation here, and remove the old name in a later release.
124
1047
  contradicting CLAUDE.md's Modal section. That is a pre-existing defect on that entry,
125
1048
  out of scope for this release.
126
1049
 
127
- ## Unreleased
1050
+ ## 0.2.0 and 0.2.1
1051
+
1052
+ One section for both releases (it was never split). 0.2.1 added the _Fixed — the
1053
+ prebuilt bundle is now unlayered_ entry and the host-verification gates it ships
1054
+ with; everything else is 0.2.0.
128
1055
 
129
1056
  ### Breaking
130
1057
 
@@ -142,8 +1069,20 @@ the deprecation here, and remove the old name in a later release.
142
1069
  Our rules live in `@layer components`; daisyUI 4 is unlayered, and an unlayered rule
143
1070
  wins before specificity or import order is consulted. Namespacing is the only fix.
144
1071
 
145
- **Migrating.** The codemod that performed this rename ships in the repo and is
146
- runnable against consumer code:
1072
+ **Migrating.** _Corrected 2026-10-01: an earlier version of this entry called the
1073
+ codemod below "runnable against consumer code". It is not._ `scripts/codemod-prefix.mjs`
1074
+ is the one-shot script that renamed **this repository**. It walks only the library's
1075
+ own tree, takes no target path, reads files with `.css .ts .tsx .mjs .js .md .mdx
1076
+ .html` extensions only (no `.svelte`, `.vue`, `.jsx`, `.astro`), and three of its
1077
+ seven matchers fire only on library paths (`src/**/*.css`, `types/`,
1078
+ `scripts/visual-specs.mjs`). Pointing it at a consumer by editing its `walk()` root,
1079
+ as this entry used to suggest, would silently miss most of a real app. **A consumer
1080
+ migrating from 0.1.x renames by hand**: the rule is mechanical (every component class
1081
+ gains the `vd-` prefix; utilities are unchanged on `./source`), and the full table is
1082
+ under _Full class rename table_ below. Then follow 0.4.0's Icon Button order and run
1083
+ the 0.5.0 codemod.
1084
+
1085
+ How the library's own rename was done, for the record:
147
1086
 
148
1087
  ```bash
149
1088
  node scripts/codemod-prefix.mjs # dry run — prints every edit
@@ -157,8 +1096,7 @@ the deprecation here, and remove the old name in a later release.
157
1096
  template literals that compose a class (`` `btn-${variant}` ``), string literals that
158
1097
  hold one, and backticked spans in prose that already contain a dotted token. It skips
159
1098
  ARIA and HTML attribute values (`role="tab"`, `type="checkbox"`), and template
160
- expressions whose class list is not statically knowable. Point it at a consumer repo
161
- by editing its `walk()` root; read the dry-run output before applying.
1099
+ expressions whose class list is not statically knowable.
162
1100
 
163
1101
  - **New entry point `./styles.css`** — the prefixed, **preflight-free** bundle, and the
164
1102
  one a host app should import: