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