@valiify/dashboard-ui 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +411 -4
  2. package/CLAUDE.md +809 -768
  3. package/COMPONENTS.md +520 -520
  4. package/GETTING_STARTED.md +14 -14
  5. package/QUICK_REFERENCE.md +22 -22
  6. package/README.md +28 -6
  7. package/TROUBLESHOOTING.md +6 -6
  8. package/class-manifest.json +664 -0
  9. package/design-methodology/dashboard.md +496 -0
  10. package/dist/dashboard-ui.css +4897 -0
  11. package/dist/index.css +502 -502
  12. package/examples/basic/index.html +8 -8
  13. package/examples/daisyui-starter/README.md +35 -0
  14. package/examples/daisyui-starter/check-no-bleed.mjs +81 -0
  15. package/examples/daisyui-starter/index.html +45 -0
  16. package/examples/daisyui-starter/package-lock.json +2221 -0
  17. package/examples/daisyui-starter/package.json +22 -0
  18. package/examples/daisyui-starter/postcss.config.js +1 -0
  19. package/examples/daisyui-starter/src/styles.css +20 -0
  20. package/examples/daisyui-starter/tailwind.config.js +12 -0
  21. package/examples/postcss-starter/index.html +8 -8
  22. package/examples/postcss-starter/package.json +1 -1
  23. package/examples/vite-starter/README.md +4 -4
  24. package/examples/vite-starter/package.json +1 -1
  25. package/examples/vite-starter/src/main.js +41 -41
  26. package/package.json +23 -4
  27. package/src/build/components.css +29 -0
  28. package/src/build/utilities.css +42 -0
  29. package/src/components/ICON-SYSTEM.md +39 -39
  30. package/src/components/alert.css +26 -26
  31. package/src/components/avatar.css +9 -9
  32. package/src/components/breadcrumbs.css +15 -15
  33. package/src/components/button.css +21 -21
  34. package/src/components/card.css +10 -10
  35. package/src/components/checkbox.css +21 -21
  36. package/src/components/chip.css +43 -43
  37. package/src/components/data-row.css +19 -19
  38. package/src/components/divider.css +23 -23
  39. package/src/components/dropdown-field.css +34 -34
  40. package/src/components/dropdown-menu.css +12 -12
  41. package/src/components/field-verification.css +25 -25
  42. package/src/components/filter-segment.css +20 -20
  43. package/src/components/icon-button.css +11 -11
  44. package/src/components/icon.css +18 -18
  45. package/src/components/input.css +29 -29
  46. package/src/components/link.css +28 -28
  47. package/src/components/loading-indicator.css +20 -20
  48. package/src/components/loading-inline.css +8 -8
  49. package/src/components/menu-item.css +28 -28
  50. package/src/components/modal.css +36 -36
  51. package/src/components/navigation-rail.css +95 -95
  52. package/src/components/pagination-item.css +22 -22
  53. package/src/components/pagination.css +24 -24
  54. package/src/components/pill.css +14 -14
  55. package/src/components/progress-bar.css +28 -28
  56. package/src/components/radio-select.css +13 -13
  57. package/src/components/section-marker.css +12 -12
  58. package/src/components/segment-selector.css +9 -9
  59. package/src/components/sensitive-data.css +8 -8
  60. package/src/components/skeleton.css +29 -29
  61. package/src/components/step.css +14 -14
  62. package/src/components/stepper.css +15 -15
  63. package/src/components/switch.css +12 -12
  64. package/src/components/tabs.css +40 -40
  65. package/src/components/tag.css +20 -20
  66. package/src/components/text-button.css +24 -24
  67. package/src/components/textarea.css +23 -23
  68. package/src/components/toast.css +29 -29
  69. package/src/components/tooltip.css +11 -11
  70. package/src/icons/README.md +16 -10
  71. package/src/icons/sprite.svg +1 -1
  72. package/src/themes/valiify-tokens.css +285 -0
  73. package/src/themes/valiify-type-prefixed.css +37 -0
  74. package/src/utilities/index.css +1 -1
  75. package/src/utility-surface.css +321 -0
  76. package/types/components.d.ts +235 -236
package/CLAUDE.md CHANGED
@@ -7,15 +7,28 @@ A Tailwind CSS component library for building Valiify Dashboard applications. CS
7
7
  **Never run `git commit` or `git push`.** Stage changes with `git add` if asked,
8
8
  then stop — I write all commit messages and commit myself.
9
9
 
10
+ ## Val agents are generated — do not hand-edit them
11
+
12
+ `.claude/agents/*.md` and `.claude/commands/{val,extract}.md` are **generated**
13
+ by `@valiify/val-core` (`npx val-init`) from its templates plus this repo's
14
+ [val/config.json](val/config.json). Each file carries a header saying so. To
15
+ change agent behaviour, edit the template in the val-core repo
16
+ (`~/Desktop/val-core`, published to npm as `@valiify/val-core`), release it, then
17
+ bump the devDependency here and rerun `npx val-init`; to change a path, font rule
18
+ or audience sentence, edit `val/config.json`, then run `npx val-init` and stage
19
+ the output. `npx val-init --check` fails when the generated files
20
+ drift from their sources. `val/tools` is a symlink into the package; the
21
+ methodology skills live at `node_modules/@valiify/val-core/skills/`.
22
+
10
23
  ## Quick Reference
11
24
 
12
25
  ### Available Components (Phase 1 - Proof of Concept)
13
26
 
14
27
  #### Button
15
28
 
16
- - **Base**: `.btn` — Display=outline at medium size (see the note below)
17
- - **Variants**: `.btn-primary`, `.btn-outline`, `.btn-empty`, `.btn-critical` (not in Figma's Button set — see Modal)
18
- - **Sizes**: `.btn-sm` (24px), `.btn-lg` (32px) - medium (28px) is default
29
+ - **Base**: `.vd-btn` — Display=outline at medium size (see the note below)
30
+ - **Variants**: `.vd-btn-primary`, `.vd-btn-outline`, `.vd-btn-empty`, `.vd-btn-critical` (not in Figma's Button set — see Modal)
31
+ - **Sizes**: `.vd-btn-sm` (24px), `.vd-btn-lg` (32px) - medium (28px) is default
19
32
  - **States**: `:hover`, `:active`, `:focus-visible`, `:disabled`, `[aria-selected="true"]`
20
33
  - **Heights**: Explicitly set (24px / 28px / 32px) per Figma measurements
21
34
  - **Typography**: one style PER SIZE — `text-action-s` (12px), `text-action-m`
@@ -23,23 +36,23 @@ then stop — I write all commit messages and commit myself.
23
36
  - **Icons**: Use Icon component with size-matched icons (sm=13px, md=14px, lg=15px)
24
37
 
25
38
  > **There is no "default" Display value.** Figma's axis is
26
- > primary / outline / empty, and a bare `.btn` is outline — that is all
39
+ > primary / outline / empty, and a bare `.vd-btn` is outline — that is all
27
40
  > "default" ever meant here. The Storybook control still offers `default`, but
28
- > it renders a bare `.btn`, not a fourth variant.
41
+ > it renders a bare `.vd-btn`, not a fourth variant.
29
42
  >
30
43
  > **Fixed 2026-08-24:** the base previously took outline's _rest appearance_
31
- > while its interaction rules lived inside `.btn-outline`, so a bare `.btn`
44
+ > while its interaction rules lived inside `.vd-btn-outline`, so a bare `.vd-btn`
32
45
  > looked like an outline button and responded to nothing — inert on hover and on
33
- > `aria-selected`. The ramp now lives on the base and `.btn-outline` is an
46
+ > `aria-selected`. The ramp now lives on the base and `.vd-btn-outline` is an
34
47
  > explicit alias for the same thing.
35
48
  >
36
49
  > **Outline and empty share one ramp in Figma** — hover `Action/Subtle`,
37
50
  > selected `Action/Hover`, active `Primary/Soft` + `Primary/Main` — differing
38
51
  > only in the rest border and whether active draws one. That is why the ramp
39
- > sits on the base, and it also closed the two states `.btn-empty` was missing.
52
+ > sits on the base, and it also closed the two states `.vd-btn-empty` was missing.
40
53
  >
41
54
  > The filled displays override all of it. Because the base `:active` sets both a
42
- > border colour and `Primary/Main` text, `.btn-primary` and `.btn-critical` reset
55
+ > border colour and `Primary/Main` text, `.vd-btn-primary` and `.vd-btn-critical` reset
43
56
  > `border-transparent` **and** `Content/Contrast` in their own active rules —
44
57
  > without the second, a pressed primary renders a blue label on a blue fill.
45
58
  >
@@ -49,30 +62,30 @@ then stop — I write all commit messages and commit myself.
49
62
 
50
63
  ```html
51
64
  <!-- Basic buttons -->
52
- <button class="btn btn-primary">Primary Button</button>
53
- <button class="btn btn-outline btn-sm">Small Outline</button>
54
- <button class="btn btn-empty btn-lg">Large Empty</button>
55
- <button class="btn btn-primary" disabled>Disabled</button>
56
- <button class="btn btn-outline" aria-selected="true">Selected</button>
65
+ <button class="vd-btn vd-btn-primary">Primary Button</button>
66
+ <button class="vd-btn vd-btn-outline vd-btn-sm">Small Outline</button>
67
+ <button class="vd-btn vd-btn-empty vd-btn-lg">Large Empty</button>
68
+ <button class="vd-btn vd-btn-primary" disabled>Disabled</button>
69
+ <button class="vd-btn vd-btn-outline" aria-selected="true">Selected</button>
57
70
 
58
71
  <!-- Buttons with icons (using Icon component + sprite) -->
59
- <button class="btn btn-primary">
60
- <svg class="icon icon-size-14" aria-hidden="true">
72
+ <button class="vd-btn vd-btn-primary">
73
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
61
74
  <use href="#save" />
62
75
  </svg>
63
76
  Save
64
77
  </button>
65
78
 
66
- <button class="btn btn-outline btn-sm">
67
- <svg class="icon icon-size-13" aria-hidden="true">
79
+ <button class="vd-btn vd-btn-outline vd-btn-sm">
80
+ <svg class="vd-icon vd-icon-size-13" aria-hidden="true">
68
81
  <use href="#filter" />
69
82
  </svg>
70
83
  Filter
71
84
  </button>
72
85
 
73
86
  <!-- Icon-only button (requires aria-label) -->
74
- <button class="btn btn-outline" aria-label="Settings">
75
- <svg class="icon icon-size-14" aria-hidden="true">
87
+ <button class="vd-btn vd-btn-outline" aria-label="Settings">
88
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
76
89
  <use href="#settings" />
77
90
  </svg>
78
91
  </button>
@@ -82,16 +95,16 @@ then stop — I write all commit messages and commit myself.
82
95
 
83
96
  Complete form input system with labels, help text, icons, and error messages.
84
97
 
85
- - **Container**: `.input-container` (wraps label + input + error)
86
- - **Label**: `.input-label` (10px semibold uppercase, optional help button)
87
- - **Help Button**: `.icon-button icon-button-xs` (12px icon button)
88
- - **Field**: `.input-field` (the styled input row container)
89
- - **Input**: `.input` (actual input element, unstyled)
90
- - **Icons**: `.input-icon-left`, `.input-icon-right` (14px icons)
91
- - **Error**: `.input-error-message` (11px error text)
92
- - **Sizes**: `.input-sm` (25px), `.input-md` (29px), `.input-lg` (35px, default)
93
- - **BG Variants**: default (white, `surface-paper`), `.input-bg-neutral` (`surface-card`)
94
- - **States**: `.input-error`, `:hover`, `:focus-within`, `:disabled`
98
+ - **Container**: `.vd-input-container` (wraps label + input + error)
99
+ - **Label**: `.vd-input-label` (10px semibold uppercase, optional help button)
100
+ - **Help Button**: `.vd-icon-button vd-icon-button-xs` (12px icon button)
101
+ - **Field**: `.vd-input-field` (the styled input row container)
102
+ - **Input**: `.vd-input` (actual input element, unstyled)
103
+ - **Icons**: `.vd-input-icon-left`, `.vd-input-icon-right` (14px icons)
104
+ - **Error**: `.vd-input-error-message` (11px error text)
105
+ - **Sizes**: `.vd-input-sm` (25px), `.vd-input-md` (29px), `.vd-input-lg` (35px, default)
106
+ - **BG Variants**: default (white, `surface-paper`), `.vd-input-bg-neutral` (`surface-card`)
107
+ - **States**: `.vd-input-error`, `:hover`, `:focus-within`, `:disabled`
95
108
 
96
109
  Each size carries padding **and** type — lg and md are both Body 1 (13px) at
97
110
  different padding, sm drops to Micro L (11px):
@@ -112,55 +125,55 @@ different padding, sm drops to Micro L (11px):
112
125
 
113
126
  ```html
114
127
  <!-- Complete form field -->
115
- <div class="input-container">
116
- <div class="input-label">
128
+ <div class="vd-input-container">
129
+ <div class="vd-input-label">
117
130
  <span>Email Address</span>
118
- <button class="icon-button icon-button-xs" aria-label="Help">
119
- <svg class="icon icon-size-12" aria-hidden="true">
131
+ <button class="vd-icon-button vd-icon-button-xs" aria-label="Help">
132
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
120
133
  <use href="#custom-help" />
121
134
  </svg>
122
135
  </button>
123
136
  </div>
124
137
 
125
- <div class="input-field input-md">
126
- <svg class="input-icon-left icon icon-size-14" aria-hidden="true">
138
+ <div class="vd-input-field vd-input-md">
139
+ <svg class="vd-input-icon-left vd-icon vd-icon-size-14" aria-hidden="true">
127
140
  <use href="#mail" />
128
141
  </svg>
129
- <input type="email" class="input" placeholder="you@example.com" />
142
+ <input type="email" class="vd-input" placeholder="you@example.com" />
130
143
  </div>
131
144
 
132
- <div class="input-error-message">Please enter a valid email address</div>
145
+ <div class="vd-input-error-message">Please enter a valid email address</div>
133
146
  </div>
134
147
 
135
148
  <!-- Simple input (no label/icons) -->
136
- <div class="input-container">
137
- <div class="input-field">
138
- <input type="text" class="input" placeholder="Enter text..." />
149
+ <div class="vd-input-container">
150
+ <div class="vd-input-field">
151
+ <input type="text" class="vd-input" placeholder="Enter text..." />
139
152
  </div>
140
153
  </div>
141
154
 
142
155
  <!-- Small input with neutral background -->
143
- <div class="input-container">
144
- <div class="input-field input-sm input-bg-neutral">
145
- <input type="text" class="input" placeholder="Search..." />
146
- <svg class="input-icon-right icon icon-size-14" aria-hidden="true">
156
+ <div class="vd-input-container">
157
+ <div class="vd-input-field vd-input-sm vd-input-bg-neutral">
158
+ <input type="text" class="vd-input" placeholder="Search..." />
159
+ <svg class="vd-input-icon-right vd-icon vd-icon-size-14" aria-hidden="true">
147
160
  <use href="#search" />
148
161
  </svg>
149
162
  </div>
150
163
  </div>
151
164
 
152
165
  <!-- Error state -->
153
- <div class="input-container">
154
- <div class="input-field input-error">
155
- <input type="text" class="input" value="Invalid value" />
166
+ <div class="vd-input-container">
167
+ <div class="vd-input-field vd-input-error">
168
+ <input type="text" class="vd-input" value="Invalid value" />
156
169
  </div>
157
- <div class="input-error-message">This field is required</div>
170
+ <div class="vd-input-error-message">This field is required</div>
158
171
  </div>
159
172
 
160
173
  <!-- Disabled -->
161
- <div class="input-container">
162
- <div class="input-field">
163
- <input type="text" class="input" disabled value="Disabled input" />
174
+ <div class="vd-input-container">
175
+ <div class="vd-input-field">
176
+ <input type="text" class="vd-input" disabled value="Disabled input" />
164
177
  </div>
165
178
  </div>
166
179
  ```
@@ -169,16 +182,16 @@ different padding, sm drops to Micro L (11px):
169
182
 
170
183
  Multi-line text input field with labels, help text, and error messages. Separate component from Input for multi-line text entry like comments, descriptions, and messages.
171
184
 
172
- - **Container**: `.textarea-container` (wraps label + textarea + error/counter)
173
- - **Label**: `.textarea-label` (10px semibold uppercase, optional help button)
174
- - **Help Button**: `.icon-button icon-button-xs` (12px icon button)
175
- - **Field**: `.textarea-field` (the styled textarea container)
176
- - **Textarea**: `.textarea` (actual textarea element, resizable)
177
- - **Error**: `.textarea-error-message` (11px error text)
178
- - **Counter**: `.textarea-counter` (optional character counter)
185
+ - **Container**: `.vd-textarea-container` (wraps label + textarea + error/counter)
186
+ - **Label**: `.vd-textarea-label` (10px semibold uppercase, optional help button)
187
+ - **Help Button**: `.vd-icon-button vd-icon-button-xs` (12px icon button)
188
+ - **Field**: `.vd-textarea-field` (the styled textarea container)
189
+ - **Textarea**: `.vd-textarea` (actual textarea element, resizable)
190
+ - **Error**: `.vd-textarea-error-message` (11px error text)
191
+ - **Counter**: `.vd-textarea-counter` (optional character counter)
179
192
  - **Sizes**: none — height is set by `rows`, a height utility, or the resize handle
180
- - **BG Variants**: default (white, `surface-paper`), `.textarea-bg-neutral` (`surface-card`)
181
- - **States**: `.textarea-error`, `:hover`, `:focus-within`, `:disabled`
193
+ - **BG Variants**: default (white, `surface-paper`), `.vd-textarea-bg-neutral` (`surface-card`)
194
+ - **States**: `.vd-textarea-error`, `:hover`, `:focus-within`, `:disabled`
182
195
 
183
196
  > **Height is deliberately not styled.** Figma defines one geometry — 12px / 7px
184
197
  > padding, 6px radius, 0.5px hairline, Body 1 text — across 12 variants
@@ -187,57 +200,57 @@ Multi-line text input field with labels, help text, and error messages. Separate
187
200
  > a height utility, or the resize handle. Pair an explicit height with
188
201
  > `resize-none` for a fixed box.
189
202
  >
190
- > `.textarea-counter` is a library extension, not in the design file.
203
+ > `.vd-textarea-counter` is a library extension, not in the design file.
191
204
 
192
205
  ```html
193
206
  <!-- Complete textarea field -->
194
- <div class="textarea-container">
195
- <div class="textarea-label">
207
+ <div class="vd-textarea-container">
208
+ <div class="vd-textarea-label">
196
209
  <span>Description</span>
197
- <button class="icon-button icon-button-xs" aria-label="Help">
198
- <svg class="icon icon-size-12" aria-hidden="true">
210
+ <button class="vd-icon-button vd-icon-button-xs" aria-label="Help">
211
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
199
212
  <use href="#custom-help" />
200
213
  </svg>
201
214
  </button>
202
215
  </div>
203
216
 
204
- <div class="textarea-field">
217
+ <div class="vd-textarea-field">
205
218
  <textarea
206
- class="textarea"
219
+ class="vd-textarea"
207
220
  rows="4"
208
221
  placeholder="Enter description..."
209
222
  ></textarea>
210
223
  </div>
211
224
 
212
- <div class="textarea-counter">45 / 500</div>
225
+ <div class="vd-textarea-counter">45 / 500</div>
213
226
  </div>
214
227
 
215
228
  <!-- Simple textarea -->
216
- <div class="textarea-container">
217
- <div class="textarea-field">
218
- <textarea class="textarea" rows="4" placeholder="Enter text..."></textarea>
229
+ <div class="vd-textarea-container">
230
+ <div class="vd-textarea-field">
231
+ <textarea class="vd-textarea" rows="4" placeholder="Enter text..."></textarea>
219
232
  </div>
220
233
  </div>
221
234
 
222
- <!-- Small textarea with neutral background -->
223
- <div class="textarea-container">
224
- <div class="textarea-field textarea-sm textarea-bg-neutral">
225
- <textarea class="textarea" rows="3" placeholder="Quick note..."></textarea>
235
+ <!-- Textarea with neutral background -->
236
+ <div class="vd-textarea-container">
237
+ <div class="vd-textarea-field vd-textarea-bg-neutral">
238
+ <textarea class="vd-textarea" rows="3" placeholder="Quick note..."></textarea>
226
239
  </div>
227
240
  </div>
228
241
 
229
242
  <!-- Error state -->
230
- <div class="textarea-container">
231
- <div class="textarea-field textarea-error">
232
- <textarea class="textarea" rows="4">Invalid content</textarea>
243
+ <div class="vd-textarea-container">
244
+ <div class="vd-textarea-field vd-textarea-error">
245
+ <textarea class="vd-textarea" rows="4">Invalid content</textarea>
233
246
  </div>
234
- <div class="textarea-error-message">Please provide more details</div>
247
+ <div class="vd-textarea-error-message">Please provide more details</div>
235
248
  </div>
236
249
 
237
250
  <!-- Disabled -->
238
- <div class="textarea-container">
239
- <div class="textarea-field">
240
- <textarea class="textarea" rows="4" disabled>Cannot edit this</textarea>
251
+ <div class="vd-textarea-container">
252
+ <div class="vd-textarea-field">
253
+ <textarea class="vd-textarea" rows="4" disabled>Cannot edit this</textarea>
241
254
  </div>
242
255
  </div>
243
256
  ```
@@ -246,14 +259,14 @@ Multi-line text input field with labels, help text, and error messages. Separate
246
259
 
247
260
  Single row within a dropdown menu or navigation list. Supports left icon, avatar, badge, subtitle, right icon, and right text slots.
248
261
 
249
- - **Base**: `.menu-item` (defaults to md; full-width flex row)
250
- - **Parts**: `.menu-item-text` (flex column wrapper), `.menu-item-title`,
251
- `.menu-item-subtitle` (11px, same at every size), `.menu-item-right-text`,
252
- `.menu-item-badge` (20px tinted icon tile). Use the Avatar component
253
- (`.avatar avatar-md`) for the initials bubble.
254
- - **Sizes**: `.menu-item-sm` (11px / 10×6 padding), `.menu-item-md` (12.5px / 12×7, default),
255
- `.menu-item-lg` (13px / 12×11)
256
- - **Variant**: `.menu-item-combined` — medium-weight primary title, designed for `lg`
262
+ - **Base**: `.vd-menu-item` (defaults to md; full-width flex row)
263
+ - **Parts**: `.vd-menu-item-text` (flex column wrapper), `.vd-menu-item-title`,
264
+ `.vd-menu-item-subtitle` (11px, same at every size), `.vd-menu-item-right-text`,
265
+ `.vd-menu-item-badge` (20px tinted icon tile). Use the Avatar component
266
+ (`.vd-avatar vd-avatar-md`) for the initials bubble.
267
+ - **Sizes**: `.vd-menu-item-sm` (11px / 10×6 padding), `.vd-menu-item-md` (12.5px / 12×7, default),
268
+ `.vd-menu-item-lg` (13px / 12×11)
269
+ - **Variant**: `.vd-menu-item-combined` — medium-weight primary title, designed for `lg`
257
270
  - **States**: `:hover`, `:focus-visible`, `[aria-selected="true"]` /
258
271
  `[aria-checked="true"]`, `:disabled` / `[aria-disabled="true"]`
259
272
  - **Icons**: sm uses 12px icons, md and lg use 15px
@@ -264,66 +277,66 @@ Single row within a dropdown menu or navigation list. Supports left icon, avatar
264
277
 
265
278
  ```html
266
279
  <!-- Simple row -->
267
- <button class="menu-item" role="menuitem">
268
- <span class="menu-item-text">
269
- <span class="menu-item-title">Daily</span>
280
+ <button class="vd-menu-item" role="menuitem">
281
+ <span class="vd-menu-item-text">
282
+ <span class="vd-menu-item-title">Daily</span>
270
283
  </span>
271
284
  </button>
272
285
 
273
286
  <!-- Selected row with a check -->
274
- <button class="menu-item" role="menuitem" aria-selected="true">
275
- <span class="menu-item-text">
276
- <span class="menu-item-title">Weekly</span>
287
+ <button class="vd-menu-item" role="menuitem" aria-selected="true">
288
+ <span class="vd-menu-item-text">
289
+ <span class="vd-menu-item-title">Weekly</span>
277
290
  </span>
278
- <svg class="icon icon-size-15" aria-hidden="true">
291
+ <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
279
292
  <use href="#check" />
280
293
  </svg>
281
294
  </button>
282
295
 
283
296
  <!-- Left icon + keyboard shortcut -->
284
- <button class="menu-item" role="menuitem">
285
- <svg class="icon icon-size-15" aria-hidden="true">
297
+ <button class="vd-menu-item" role="menuitem">
298
+ <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
286
299
  <use href="#settings" />
287
300
  </svg>
288
- <span class="menu-item-text">
289
- <span class="menu-item-title">Preferences</span>
301
+ <span class="vd-menu-item-text">
302
+ <span class="vd-menu-item-title">Preferences</span>
290
303
  </span>
291
- <span class="menu-item-right-text">⌘,</span>
304
+ <span class="vd-menu-item-right-text">⌘,</span>
292
305
  </button>
293
306
 
294
307
  <!-- Large row with avatar and subtitle -->
295
- <button class="menu-item menu-item-lg" role="menuitem">
296
- <span class="avatar avatar-md">NC</span>
297
- <span class="menu-item-text">
298
- <span class="menu-item-title">Nicholas Cooper</span>
299
- <span class="menu-item-subtitle">Primary applicant</span>
308
+ <button class="vd-menu-item vd-menu-item-lg" role="menuitem">
309
+ <span class="vd-avatar vd-avatar-md">NC</span>
310
+ <span class="vd-menu-item-text">
311
+ <span class="vd-menu-item-title">Nicholas Cooper</span>
312
+ <span class="vd-menu-item-subtitle">Primary applicant</span>
300
313
  </span>
301
314
  </button>
302
315
 
303
316
  <!-- Combined variant: badge + primary title -->
304
- <button class="menu-item menu-item-lg menu-item-combined" role="menuitem">
305
- <span class="menu-item-badge">
306
- <svg class="icon icon-size-12" aria-hidden="true">
317
+ <button class="vd-menu-item vd-menu-item-lg vd-menu-item-combined" role="menuitem">
318
+ <span class="vd-menu-item-badge">
319
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
307
320
  <use href="#users" />
308
321
  </svg>
309
322
  </span>
310
- <span class="menu-item-text">
311
- <span class="menu-item-title">Combined</span>
312
- <span class="menu-item-subtitle">Both Applicants</span>
323
+ <span class="vd-menu-item-text">
324
+ <span class="vd-menu-item-title">Combined</span>
325
+ <span class="vd-menu-item-subtitle">Both Applicants</span>
313
326
  </span>
314
327
  </button>
315
328
 
316
329
  <!-- Small row -->
317
- <button class="menu-item menu-item-sm" role="menuitem">
318
- <span class="menu-item-text">
319
- <span class="menu-item-title">Quarterly</span>
330
+ <button class="vd-menu-item vd-menu-item-sm" role="menuitem">
331
+ <span class="vd-menu-item-text">
332
+ <span class="vd-menu-item-title">Quarterly</span>
320
333
  </span>
321
334
  </button>
322
335
 
323
336
  <!-- Disabled -->
324
- <button class="menu-item" role="menuitem" disabled>
325
- <span class="menu-item-text">
326
- <span class="menu-item-title">Archived</span>
337
+ <button class="vd-menu-item" role="menuitem" disabled>
338
+ <span class="vd-menu-item-text">
339
+ <span class="vd-menu-item-title">Archived</span>
327
340
  </span>
328
341
  </button>
329
342
  ```
@@ -333,12 +346,12 @@ Single row within a dropdown menu or navigation list. Supports left icon, avatar
333
346
  Overlay panel holding a vertical list of MenuItem rows. Rows stretch to the
334
347
  panel width on their own, so they need no extra width class.
335
348
 
336
- - **Base**: `.dropdown-menu` (200px minimum width, 4px padding, `rounded-surface`, `shadow-panel`)
337
- - **Parts**: `.dropdown-menu-divider`
338
- - **Positioning**: `.dropdown` (relative wrapper) + `.dropdown-panel` (absolute, below the trigger)
349
+ - **Base**: `.vd-dropdown-menu` (200px minimum width, 4px padding, `rounded-surface`, `shadow-panel`)
350
+ - **Parts**: `.vd-dropdown-menu-divider`
351
+ - **Positioning**: `.vd-dropdown` (relative wrapper) + `.vd-dropdown-panel` (absolute, below the trigger)
339
352
  - **States**: `:focus-visible`
340
353
 
341
- > `.dropdown-menu-divider` is **not in Figma yet**. It is composed from existing
354
+ > `.vd-dropdown-menu-divider` is **not in Figma yet**. It is composed from existing
342
355
  > tokens (0.5px `stroke-divider` rule) for grouped menus; confirm the treatment
343
356
  > with the designer before relying on it.
344
357
 
@@ -348,70 +361,70 @@ drives two attributes:
348
361
  | Element | Attribute |
349
362
  | ----------------- | --------------------------------- |
350
363
  | trigger | `aria-expanded="true" \| "false"` |
351
- | `.dropdown-panel` | `hidden` present / absent |
364
+ | `.vd-dropdown-panel` | `hidden` present / absent |
352
365
 
353
- `.dropdown-panel` deliberately declares no `display`, so the native `hidden`
366
+ `.vd-dropdown-panel` deliberately declares no `display`, so the native `hidden`
354
367
  attribute keeps working; a `[hidden] { display: none }` guard backs it up. Do
355
368
  **not** add a display utility to the panel — it would defeat `hidden` and the
356
369
  menu could never close.
357
370
 
358
371
  ```html
359
372
  <!-- Select-style menu -->
360
- <div class="dropdown-menu" role="menu">
361
- <button class="menu-item" role="menuitem" aria-selected="true">
362
- <span class="menu-item-text"
363
- ><span class="menu-item-title">Weekly</span></span
373
+ <div class="vd-dropdown-menu" role="menu">
374
+ <button class="vd-menu-item" role="menuitem" aria-selected="true">
375
+ <span class="vd-menu-item-text"
376
+ ><span class="vd-menu-item-title">Weekly</span></span
364
377
  >
365
- <svg class="icon icon-size-15" aria-hidden="true">
378
+ <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
366
379
  <use href="#check" />
367
380
  </svg>
368
381
  </button>
369
- <button class="menu-item" role="menuitem">
370
- <span class="menu-item-text"
371
- ><span class="menu-item-title">Daily</span></span
382
+ <button class="vd-menu-item" role="menuitem">
383
+ <span class="vd-menu-item-text"
384
+ ><span class="vd-menu-item-title">Daily</span></span
372
385
  >
373
386
  </button>
374
- <button class="menu-item" role="menuitem">
375
- <span class="menu-item-text"
376
- ><span class="menu-item-title">Monthly</span></span
387
+ <button class="vd-menu-item" role="menuitem">
388
+ <span class="vd-menu-item-text"
389
+ ><span class="vd-menu-item-title">Monthly</span></span
377
390
  >
378
391
  </button>
379
392
  </div>
380
393
 
381
394
  <!-- Action menu with a divider before a destructive row -->
382
- <div class="dropdown-menu" role="menu">
383
- <button class="menu-item" role="menuitem">
384
- <svg class="icon icon-size-15" aria-hidden="true">
395
+ <div class="vd-dropdown-menu" role="menu">
396
+ <button class="vd-menu-item" role="menuitem">
397
+ <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
385
398
  <use href="#pencil" />
386
399
  </svg>
387
- <span class="menu-item-text"
388
- ><span class="menu-item-title">Edit</span></span
400
+ <span class="vd-menu-item-text"
401
+ ><span class="vd-menu-item-title">Edit</span></span
389
402
  >
390
403
  </button>
391
404
 
392
- <div class="dropdown-menu-divider"></div>
405
+ <div class="vd-dropdown-menu-divider"></div>
393
406
 
394
- <button class="menu-item" role="menuitem">
395
- <svg class="icon icon-size-15 text-critical" aria-hidden="true">
407
+ <button class="vd-menu-item" role="menuitem">
408
+ <svg class="vd-icon vd-icon-size-15 text-critical" aria-hidden="true">
396
409
  <use href="#trash-2" />
397
410
  </svg>
398
- <span class="menu-item-text">
399
- <span class="menu-item-title text-critical">Delete</span>
411
+ <span class="vd-menu-item-text">
412
+ <span class="vd-menu-item-title text-critical">Delete</span>
400
413
  </span>
401
414
  </button>
402
415
  </div>
403
416
 
404
417
  <!-- Anchored under a trigger (positioning is the consumer's) -->
405
418
  <!-- Anchored under a trigger -->
406
- <div class="dropdown">
407
- <button class="btn btn-outline" aria-expanded="false" aria-haspopup="menu">
419
+ <div class="vd-dropdown">
420
+ <button class="vd-btn vd-btn-outline" aria-expanded="false" aria-haspopup="menu">
408
421
  Weekly
409
- <svg class="icon icon-size-14" aria-hidden="true">
422
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
410
423
  <use href="#chevron-down" />
411
424
  </svg>
412
425
  </button>
413
- <div class="dropdown-panel" hidden>
414
- <div class="dropdown-menu" role="menu">
426
+ <div class="vd-dropdown-panel" hidden>
427
+ <div class="vd-dropdown-menu" role="menu">
415
428
  <!-- .menu-item rows -->
416
429
  </div>
417
430
  </div>
@@ -424,18 +437,18 @@ Dropdown select field for choosing from a list of options. Supports avatar and
424
437
  left icon, with interaction states across 3 sizes. Structurally mirrors Input,
425
438
  and pairs with DropdownMenu for the panel.
426
439
 
427
- - **Container**: `.dropdown-field-container` (wraps label + field + error)
428
- - **Label**: `.dropdown-field-label` (10px semibold uppercase, optional help button)
429
- - **Trigger**: `.dropdown-field` (defaults to lg)
430
- - **Value**: `.dropdown-field-value` (chosen, `content-primary`) /
431
- `.dropdown-field-placeholder` (empty, `content-faint`)
432
- - **Slots**: `.dropdown-field-icon` (14px leading), `.dropdown-field-chevron` (14px trailing),
440
+ - **Container**: `.vd-dropdown-field-container` (wraps label + field + error)
441
+ - **Label**: `.vd-dropdown-field-label` (10px semibold uppercase, optional help button)
442
+ - **Trigger**: `.vd-dropdown-field` (defaults to lg)
443
+ - **Value**: `.vd-dropdown-field-value` (chosen, `content-primary`) /
444
+ `.vd-dropdown-field-placeholder` (empty, `content-faint`)
445
+ - **Slots**: `.vd-dropdown-field-icon` (14px leading), `.vd-dropdown-field-chevron` (14px trailing),
433
446
  Avatar for the initials bubble — `avatar-sm` (18px) at lg, `avatar-xs` (16px) at md/sm
434
- - **Error**: `.dropdown-field-error-message` (11px)
435
- - **Sizes**: `.dropdown-field-sm` (25px), `.dropdown-field-md` (29px), `.dropdown-field-lg` (35px, default)
436
- - **BG Variants**: default (white, `surface-paper`), `.dropdown-field-bg-neutral` (`surface-card`)
447
+ - **Error**: `.vd-dropdown-field-error-message` (11px)
448
+ - **Sizes**: `.vd-dropdown-field-sm` (25px), `.vd-dropdown-field-md` (29px), `.vd-dropdown-field-lg` (35px, default)
449
+ - **BG Variants**: default (white, `surface-paper`), `.vd-dropdown-field-bg-neutral` (`surface-card`)
437
450
  - **States**: `:hover`, `:focus-visible`, `[aria-expanded="true"]`,
438
- `.dropdown-field-error`, `:disabled`
451
+ `.vd-dropdown-field-error`, `:disabled`
439
452
 
440
453
  Open state comes from `aria-expanded="true"` on the trigger: it takes the focus
441
454
  ring and rotates the chevron 180°. Both icons are 14px at every size.
@@ -453,41 +466,41 @@ side by side in a form row.
453
466
  > disabled field in error keeps its crimson hairline.
454
467
  >
455
468
  > The Dropdown Field Container has **no BG property in Figma yet**.
456
- > `.dropdown-field-bg-neutral` mirrors the Text Input Container's White/Neutral
469
+ > `.vd-dropdown-field-bg-neutral` mirrors the Text Input Container's White/Neutral
457
470
  > pair so the three field types stay interchangeable; confirm with the designer.
458
471
 
459
472
  ```html
460
473
  <!-- Complete field, closed -->
461
- <div class="dropdown-field-container">
462
- <div class="dropdown-field-label">
474
+ <div class="vd-dropdown-field-container">
475
+ <div class="vd-dropdown-field-label">
463
476
  <span>Frequency</span>
464
- <button class="icon-button icon-button-xs" aria-label="Help">
465
- <svg class="icon icon-size-12" aria-hidden="true">
477
+ <button class="vd-icon-button vd-icon-button-xs" aria-label="Help">
478
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
466
479
  <use href="#custom-help" />
467
480
  </svg>
468
481
  </button>
469
482
  </div>
470
483
 
471
- <div class="dropdown">
484
+ <div class="vd-dropdown">
472
485
  <button
473
- class="dropdown-field"
486
+ class="vd-dropdown-field"
474
487
  aria-haspopup="listbox"
475
488
  aria-expanded="false"
476
489
  >
477
- <svg class="dropdown-field-icon icon icon-size-14" aria-hidden="true">
490
+ <svg class="vd-dropdown-field-icon vd-icon vd-icon-size-14" aria-hidden="true">
478
491
  <use href="#calendar" />
479
492
  </svg>
480
- <span class="dropdown-field-placeholder">Select</span>
481
- <svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
493
+ <span class="vd-dropdown-field-placeholder">Select</span>
494
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true">
482
495
  <use href="#chevron-down" />
483
496
  </svg>
484
497
  </button>
485
498
 
486
- <div class="dropdown-panel" hidden>
487
- <div class="dropdown-menu" role="listbox">
488
- <button class="menu-item" role="option" aria-selected="false">
489
- <span class="menu-item-text"
490
- ><span class="menu-item-title">Weekly</span></span
499
+ <div class="vd-dropdown-panel" hidden>
500
+ <div class="vd-dropdown-menu" role="listbox">
501
+ <button class="vd-menu-item" role="option" aria-selected="false">
502
+ <span class="vd-menu-item-text"
503
+ ><span class="vd-menu-item-title">Weekly</span></span
491
504
  >
492
505
  </button>
493
506
  </div>
@@ -496,46 +509,46 @@ side by side in a form row.
496
509
  </div>
497
510
 
498
511
  <!-- Filled -->
499
- <button class="dropdown-field" aria-haspopup="listbox" aria-expanded="false">
500
- <span class="dropdown-field-value">Weekly</span>
501
- <svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
512
+ <button class="vd-dropdown-field" aria-haspopup="listbox" aria-expanded="false">
513
+ <span class="vd-dropdown-field-value">Weekly</span>
514
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true">
502
515
  <use href="#chevron-down" />
503
516
  </svg>
504
517
  </button>
505
518
 
506
519
  <!-- With avatar -->
507
- <button class="dropdown-field" aria-haspopup="listbox" aria-expanded="false">
508
- <span class="avatar avatar-sm">NC</span>
509
- <span class="dropdown-field-value">Nicholas Cooper</span>
510
- <svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
520
+ <button class="vd-dropdown-field" aria-haspopup="listbox" aria-expanded="false">
521
+ <span class="vd-avatar vd-avatar-sm">NC</span>
522
+ <span class="vd-dropdown-field-value">Nicholas Cooper</span>
523
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true">
511
524
  <use href="#chevron-down" />
512
525
  </svg>
513
526
  </button>
514
527
 
515
528
  <!-- Small, error -->
516
- <div class="dropdown-field-container">
529
+ <div class="vd-dropdown-field-container">
517
530
  <button
518
- class="dropdown-field dropdown-field-sm dropdown-field-error"
531
+ class="vd-dropdown-field vd-dropdown-field-sm vd-dropdown-field-error"
519
532
  aria-haspopup="listbox"
520
533
  aria-expanded="false"
521
534
  >
522
- <span class="dropdown-field-placeholder">Select</span>
523
- <svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
535
+ <span class="vd-dropdown-field-placeholder">Select</span>
536
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true">
524
537
  <use href="#chevron-down" />
525
538
  </svg>
526
539
  </button>
527
- <div class="dropdown-field-error-message">Please choose an option</div>
540
+ <div class="vd-dropdown-field-error-message">Please choose an option</div>
528
541
  </div>
529
542
 
530
543
  <!-- Disabled -->
531
544
  <button
532
- class="dropdown-field"
545
+ class="vd-dropdown-field"
533
546
  aria-haspopup="listbox"
534
547
  aria-expanded="false"
535
548
  disabled
536
549
  >
537
- <span class="dropdown-field-value">Weekly</span>
538
- <svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
550
+ <span class="vd-dropdown-field-value">Weekly</span>
551
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true">
539
552
  <use href="#chevron-down" />
540
553
  </svg>
541
554
  </button>
@@ -549,33 +562,33 @@ side by side in a form row.
549
562
  > and do not build product UI on it. It is excluded from `verify:visual` on
550
563
  > purpose. When the real Card lands in Figma, rewrite the file from scratch.
551
564
 
552
- - **Base**: `.card`
553
- - **Parts**: `.card-title`, `.card-body`
554
- - **Modifiers**: `.card-compact`, `.card-bordered`, `.card-hover`
565
+ - **Base**: `.vd-card`
566
+ - **Parts**: `.vd-card-title`, `.vd-card-body`
567
+ - **Modifiers**: `.vd-card-compact`, `.vd-card-bordered`, `.vd-card-hover`
555
568
 
556
569
  ```html
557
- <div class="card">
558
- <h2 class="card-title">Title</h2>
559
- <p class="card-body">Content goes here.</p>
570
+ <div class="vd-card">
571
+ <h2 class="vd-card-title">Title</h2>
572
+ <p class="vd-card-body">Content goes here.</p>
560
573
  </div>
561
574
  ```
562
575
 
563
576
  #### RadioSelect
564
577
 
565
- - **Base**: `.radio-select` (label wrapper)
566
- - **Parts**: `.radio-select-input` (radio input), `.radio-select-label` (label text)
578
+ - **Base**: `.vd-radio-select` (label wrapper)
579
+ - **Parts**: `.vd-radio-select-input` (radio input), `.vd-radio-select-label` (label text)
567
580
  - **States**: `:hover`, `:focus-visible`, `:checked`, `:disabled`
568
581
  - **Dimensions**: 15px circle, 8px inner dot when selected, 9px gap
569
582
  - **Typography**: Caption (12px/18px/400)
570
583
 
571
584
  ```html
572
- <label class="radio-select">
573
- <input type="radio" name="group" class="radio-select-input" />
574
- <span class="radio-select-label">Option 1</span>
585
+ <label class="vd-radio-select">
586
+ <input type="radio" name="group" class="vd-radio-select-input" />
587
+ <span class="vd-radio-select-label">Option 1</span>
575
588
  </label>
576
- <label class="radio-select">
577
- <input type="radio" name="group" class="radio-select-input" checked />
578
- <span class="radio-select-label">Option 2</span>
589
+ <label class="vd-radio-select">
590
+ <input type="radio" name="group" class="vd-radio-select-input" checked />
591
+ <span class="vd-radio-select-label">Option 2</span>
579
592
  </label>
580
593
  ```
581
594
 
@@ -584,7 +597,7 @@ side by side in a form row.
584
597
  Status indicator system with three presentation modes: chip (text with optional dot), badge (circular number), and dot (indicator only).
585
598
 
586
599
  All three share Figma's **Size** property (SM / MD). **SM is the default**, so
587
- bare `.chip` / `.badge` / `.dot` are SM and need no size class.
600
+ bare `.vd-chip` / `.vd-badge` / `.vd-dot` are SM and need no size class.
588
601
 
589
602
  | | SM (default) | MD |
590
603
  | ----- | ---------------------------- | ------------------------------------- |
@@ -593,12 +606,12 @@ bare `.chip` / `.badge` / `.dot` are SM and need no size class.
593
606
  | dot | 5×5 | 7×7 |
594
607
 
595
608
  > The chip's **padding is identical** at both sizes (9 / 5) and its inner
596
- > `.chip-dot` **stays 5px** — only gap and type move. The badge is the one
609
+ > `.vd-chip-dot` **stays 5px** — only gap and type move. The badge is the one
597
610
  > element that grows its box.
598
611
 
599
612
  They also share Figma's **BG** property (yes / no). **`yes` (filled) is the
600
- default**, so bare `.chip` / `.badge` need no class; `.chip-bg-no` and
601
- `.badge-bg-no` are the opt-out — the same shape as Input/Textarea/DropdownField's
613
+ default**, so bare `.vd-chip` / `.vd-badge` need no class; `.vd-chip-bg-no` and
614
+ `.vd-badge-bg-no` are the opt-out — the same shape as Input/Textarea/DropdownField's
602
615
  `-bg-*` classes.
603
616
 
604
617
  | | BG=yes (default) | BG=no |
@@ -616,8 +629,8 @@ default**, so bare `.chip` / `.badge` need no class; `.chip-bg-no` and
616
629
  > those variants are redundant. On the designer list.
617
630
 
618
631
  > **`primary` exists only at BG=no in Figma** — there is no filled primary,
619
- > which is why `.chip-primary` and `.badge-primary` are already transparent.
620
- > Adding `.chip-bg-no` to one is harmless but redundant.
632
+ > which is why `.vd-chip-primary` and `.vd-badge-primary` are already transparent.
633
+ > Adding `.vd-chip-bg-no` to one is harmless but redundant.
621
634
 
622
635
  > **Casing is the caller's — confirmed 2026-08-26.** Figma renders the labels
623
636
  > UPPERCASE (`REVIEW`, `FLAGGED`), and for a long time nothing distinguished a
@@ -633,79 +646,79 @@ Bold` — and it applies **no** text-case: the rendered variant emits `REVIEW`
633
646
 
634
647
  **Chip** (text with optional dot):
635
648
 
636
- - **Base**: `.chip`
637
- - **Parts**: `.chip-dot` (5px circle indicator, both sizes)
638
- - **Variants**: `.chip-warning`, `.chip-critical`, `.chip-success`, `.chip-neutral`, `.chip-primary`
639
- - **Sizes**: `.chip-sm` (default), `.chip-md`
640
- - **BG**: default filled, `.chip-bg-no` (unfilled)
641
- - **States**: `.with-ring` (2px inset ring in `Primary/Main`, zero offset)
649
+ - **Base**: `.vd-chip`
650
+ - **Parts**: `.vd-chip-dot` (5px circle indicator, both sizes)
651
+ - **Variants**: `.vd-chip-warning`, `.vd-chip-critical`, `.vd-chip-success`, `.vd-chip-neutral`, `.vd-chip-primary`
652
+ - **Sizes**: `.vd-chip-sm` (default), `.vd-chip-md`
653
+ - **BG**: default filled, `.vd-chip-bg-no` (unfilled)
654
+ - **States**: `.vd-with-ring` (2px inset ring in `Primary/Main`, zero offset)
642
655
  - **Dimensions**: 9px horizontal padding, 5px vertical padding, pill-shaped
643
656
  - **Typography**: `text-micro-s-bold` (8px/600/0.4%) — MD uses `text-micro-l-bold` (11px/500)
644
657
 
645
658
  **Badge** (circular number indicator):
646
659
 
647
- - **Base**: `.badge`
648
- - **Variants**: `.badge-warning`, `.badge-critical`, `.badge-success`, `.badge-neutral`, `.badge-primary`
649
- - **Sizes**: `.badge-sm` (default), `.badge-md`
650
- - **BG**: default filled, `.badge-bg-no` (unfilled — removes the circle)
651
- - **States**: `.with-ring` (2px inset ring in `Primary/Main`, zero offset)
660
+ - **Base**: `.vd-badge`
661
+ - **Variants**: `.vd-badge-warning`, `.vd-badge-critical`, `.vd-badge-success`, `.vd-badge-neutral`, `.vd-badge-primary`
662
+ - **Sizes**: `.vd-badge-sm` (default), `.vd-badge-md`
663
+ - **BG**: default filled, `.vd-badge-bg-no` (unfilled — removes the circle)
664
+ - **States**: `.vd-with-ring` (2px inset ring in `Primary/Main`, zero offset)
652
665
  - **Dimensions**: 15px × 15px circle, 4px padding — MD is 19px × 19px, 6px padding
653
666
  - **Typography**: `text-data-micro-s` (8px/500, JetBrains Mono) — MD uses `text-data-micro-l` (11px/500)
654
667
 
655
668
  **Dot** (indicator only):
656
669
 
657
- - **Base**: `.dot`
658
- - **Variants**: `.dot-warning`, `.dot-critical`, `.dot-success`, `.dot-neutral`, `.dot-primary`
659
- - **Sizes**: `.dot-sm` (default, 5px), `.dot-md` (7px)
660
- - **States**: `.with-ring` (2px inset ring in `Primary/Main`, zero offset)
670
+ - **Base**: `.vd-dot`
671
+ - **Variants**: `.vd-dot-warning`, `.vd-dot-critical`, `.vd-dot-success`, `.vd-dot-neutral`, `.vd-dot-primary`
672
+ - **Sizes**: `.vd-dot-sm` (default, 5px), `.vd-dot-md` (7px)
673
+ - **States**: `.vd-with-ring` (2px inset ring in `Primary/Main`, zero offset)
661
674
  - **Dimensions**: 5px × 5px circle (7px at MD)
662
675
 
663
676
  ```html
664
677
  <!-- Chip with dot -->
665
- <span class="chip chip-warning">
666
- <span class="chip-dot"></span>
678
+ <span class="vd-chip vd-chip-warning">
679
+ <span class="vd-chip-dot"></span>
667
680
  <span>Warning</span>
668
681
  </span>
669
682
 
670
683
  <!-- Chip without dot -->
671
- <span class="chip chip-success">Approved</span>
684
+ <span class="vd-chip vd-chip-success">Approved</span>
672
685
 
673
686
  <!-- BG=no — same colour, unfilled -->
674
- <span class="chip chip-warning chip-bg-no">
675
- <span class="chip-dot"></span>
687
+ <span class="vd-chip vd-chip-warning vd-chip-bg-no">
688
+ <span class="vd-chip-dot"></span>
676
689
  <span>Warning</span>
677
690
  </span>
678
- <span class="badge badge-critical badge-bg-no">3</span>
691
+ <span class="vd-badge vd-badge-critical vd-badge-bg-no">3</span>
679
692
 
680
693
  <!-- Chip with ring state -->
681
- <span class="chip chip-critical with-ring">
682
- <span class="chip-dot"></span>
694
+ <span class="vd-chip vd-chip-critical vd-with-ring">
695
+ <span class="vd-chip-dot"></span>
683
696
  <span>Critical</span>
684
697
  </span>
685
698
 
686
699
  <!-- Badge (circular number) -->
687
- <span class="badge badge-critical">3</span>
688
- <span class="badge badge-warning with-ring">5</span>
700
+ <span class="vd-badge vd-badge-critical">3</span>
701
+ <span class="vd-badge vd-badge-warning vd-with-ring">5</span>
689
702
 
690
703
  <!-- Dot (indicator only) -->
691
- <span class="dot dot-success"></span>
692
- <span class="dot dot-warning with-ring"></span>
704
+ <span class="vd-dot vd-dot-success"></span>
705
+ <span class="vd-dot vd-dot-warning vd-with-ring"></span>
693
706
 
694
707
  <!-- MD size -->
695
- <span class="chip chip-warning chip-md">
696
- <span class="chip-dot"></span>
708
+ <span class="vd-chip vd-chip-warning vd-chip-md">
709
+ <span class="vd-chip-dot"></span>
697
710
  <span>Warning</span>
698
711
  </span>
699
- <span class="badge badge-critical badge-md">3</span>
700
- <span class="dot dot-success dot-md"></span>
712
+ <span class="vd-badge vd-badge-critical vd-badge-md">3</span>
713
+ <span class="vd-dot vd-dot-success vd-dot-md"></span>
701
714
  ```
702
715
 
703
716
  #### Switch
704
717
 
705
718
  Toggle switch for binary on/off settings with smooth slide animation.
706
719
 
707
- - **Base**: `.switch` (label wrapper)
708
- - **Parts**: `.switch-input` (checkbox input, visually hidden but accessible)
720
+ - **Base**: `.vd-switch` (label wrapper)
721
+ - **Parts**: `.vd-switch-input` (checkbox input, visually hidden but accessible)
709
722
  - **Dimensions**: 32px × 18px track, 14px knob diameter, 2px padding
710
723
  - **States**: `:hover`, `:focus-visible`, `:checked`, `:disabled`
711
724
  - **Animation**: Knob slides 14px on toggle with 150ms transition
@@ -713,21 +726,21 @@ Toggle switch for binary on/off settings with smooth slide animation.
713
726
 
714
727
  ```html
715
728
  <!-- Basic switch (unchecked) -->
716
- <label class="switch">
717
- <input type="checkbox" class="switch-input" />
729
+ <label class="vd-switch">
730
+ <input type="checkbox" class="vd-switch-input" />
718
731
  </label>
719
732
 
720
733
  <!-- Checked switch -->
721
- <label class="switch">
722
- <input type="checkbox" class="switch-input" checked />
734
+ <label class="vd-switch">
735
+ <input type="checkbox" class="vd-switch-input" checked />
723
736
  </label>
724
737
 
725
738
  <!-- Disabled switches -->
726
- <label class="switch">
727
- <input type="checkbox" class="switch-input" disabled />
739
+ <label class="vd-switch">
740
+ <input type="checkbox" class="vd-switch-input" disabled />
728
741
  </label>
729
- <label class="switch">
730
- <input type="checkbox" class="switch-input" checked disabled />
742
+ <label class="vd-switch">
743
+ <input type="checkbox" class="vd-switch-input" checked disabled />
731
744
  </label>
732
745
 
733
746
  <!-- With label (common pattern) -->
@@ -735,8 +748,8 @@ Toggle switch for binary on/off settings with smooth slide animation.
735
748
  style="display: inline-flex; align-items: center; gap: 8px; cursor: pointer;"
736
749
  >
737
750
  <span>Enable feature</span>
738
- <div class="switch">
739
- <input type="checkbox" class="switch-input" checked />
751
+ <div class="vd-switch">
752
+ <input type="checkbox" class="vd-switch-input" checked />
740
753
  </div>
741
754
  </label>
742
755
  ```
@@ -752,31 +765,31 @@ Hover × Active, 12 variants.
752
765
  > line box — but they are pinned here because lg's line box comes from an Auto
753
766
  > line height, which is font-dependent.
754
767
 
755
- - **Container**: `.tabs` (structural only — see below)
756
- - **Item**: `.tab` **plus a required type class**
757
- - **Types**: `.tab-underline` (32px), `.tab-chip` (26px, 6px radius),
758
- `.tab-segment` (26px, 2px radius)
759
- - **Size**: `.tab-sm` (26px) — **underline only**, Figma draws no small chip or segment
760
- - **Parts**: `.tab-subtitle`; the badge slot is `.badge badge-neutral` from Chip
768
+ - **Container**: `.vd-tabs` (structural only — see below)
769
+ - **Item**: `.vd-tab` **plus a required type class**
770
+ - **Types**: `.vd-tab-underline` (32px), `.vd-tab-chip` (26px, 6px radius),
771
+ `.vd-tab-segment` (26px, 2px radius)
772
+ - **Size**: `.vd-tab-sm` (26px) — **underline only**, Figma draws no small chip or segment
773
+ - **Parts**: `.vd-tab-subtitle`; the badge slot is `.vd-badge vd-badge-neutral` from Chip
761
774
  - **States**: `:hover`, `:focus-visible`, `[aria-selected="true"]` /
762
- `[aria-checked="true"]`, `:disabled`, `.with-ring`
775
+ `[aria-checked="true"]`, `:disabled`, `.vd-with-ring`
763
776
 
764
777
  **Selector or navigator — same styling, different contract:**
765
778
 
766
779
  | | markup | ARIA |
767
780
  | ------------------------- | ---------------------------------------- | -------------------------------------------------------------------------------------- |
768
- | navigator (swaps a panel) | `.tabs` › `.tab` | `role="tablist"` › `role="tab"` › `aria-selected`, `aria-controls` → `role="tabpanel"` |
769
- | selector (sets a value) | `.segment-selector` › `.tab tab-segment` | `role="radiogroup"` › `role="radio"` › `aria-checked` |
781
+ | navigator (swaps a panel) | `.vd-tabs` › `.vd-tab` | `role="tablist"` › `role="tab"` › `aria-selected`, `aria-controls` → `role="tabpanel"` |
782
+ | selector (sets a value) | `.vd-segment-selector` › `.vd-tab vd-tab-segment` | `role="radiogroup"` › `role="radio"` › `aria-checked` |
770
783
 
771
784
  Both attributes drive the active styling. Pick the one matching what the control
772
785
  actually does.
773
786
 
774
787
  > **A tab always needs an explicit type class.** Type is a required axis in
775
- > Figma with no default. Giving `.tab` a built-in default meant `:not()` chains
776
- > whose specificity then outranked `.tab-sm`, so small active tabs rendered at
788
+ > Figma with no default. Giving `.vd-tab` a built-in default meant `:not()` chains
789
+ > whose specificity then outranked `.vd-tab-sm`, so small active tabs rendered at
777
790
  > the large size. Explicit beats clever.
778
791
 
779
- > **`.tab` must not set `border-none`.** That sets `--tw-border-style: none`,
792
+ > **`.vd-tab` must not set `border-none`.** That sets `--tw-border-style: none`,
780
793
  > which the underline's active rule inherits through
781
794
  > `border-bottom-style: var(--tw-border-style)` — computing the 2px rule to
782
795
  > zero. Preflight already gives buttons a 0-width border.
@@ -793,12 +806,12 @@ actually does.
793
806
 
794
807
  | Figma variant | class | chrome |
795
808
  | -------------------- | ------------------- | --------------------------------------- |
796
- | Navigation / Tab | `.tabs` | bare row, 8px gap |
797
- | Navigation / chip | `.tabs tabs-chip` | bare row, 12px gap + 12/6 inset padding |
798
- | Navigation / Segment | `.segment-selector` | filled frame, 4px radius, 1px padding |
809
+ | Navigation / Tab | `.vd-tabs` | bare row, 8px gap |
810
+ | Navigation / chip | `.vd-tabs vd-tabs-chip` | bare row, 12px gap + 12/6 inset padding |
811
+ | Navigation / Segment | `.vd-segment-selector` | filled frame, 4px radius, 1px padding |
799
812
 
800
- > `.tabs` defaults to the underline row since that is the common case;
801
- > `.tabs-chip` overrides it.
813
+ > `.vd-tabs` defaults to the underline row since that is the common case;
814
+ > `.vd-tabs-chip` overrides it.
802
815
  >
803
816
  > **Not encoded:** Figma's Tab variant frame is a fixed 409×35 with 18px
804
817
  > horizontal and 3px vertical slack it has no padding to account for, and its
@@ -817,17 +830,17 @@ actually does.
817
830
 
818
831
  ```html
819
832
  <!-- Navigator -->
820
- <div class="tabs" role="tablist" aria-label="Sections" style="gap: 16px">
833
+ <div class="vd-tabs" role="tablist" aria-label="Sections" style="gap: 16px">
821
834
  <button
822
- class="tab tab-underline"
835
+ class="vd-tab vd-tab-underline"
823
836
  role="tab"
824
837
  aria-selected="true"
825
838
  aria-controls="p1"
826
839
  >
827
- Overview<span class="badge badge-neutral">3</span>
840
+ Overview<span class="vd-badge vd-badge-neutral">3</span>
828
841
  </button>
829
842
  <button
830
- class="tab tab-underline"
843
+ class="vd-tab vd-tab-underline"
831
844
  role="tab"
832
845
  aria-selected="false"
833
846
  aria-controls="p2"
@@ -838,17 +851,17 @@ actually does.
838
851
  <div id="p1" role="tabpanel">…</div>
839
852
 
840
853
  <!-- Small underline -->
841
- <button class="tab tab-underline tab-sm" role="tab" aria-selected="true">
854
+ <button class="vd-tab vd-tab-underline vd-tab-sm" role="tab" aria-selected="true">
842
855
  Overview
843
856
  </button>
844
857
 
845
858
  <!-- With a subtitle -->
846
- <button class="tab tab-underline" role="tab" aria-selected="true">
847
- <span>Overview<span class="tab-subtitle">APPLICANT</span></span>
859
+ <button class="vd-tab vd-tab-underline" role="tab" aria-selected="true">
860
+ <span>Overview<span class="vd-tab-subtitle">APPLICANT</span></span>
848
861
  </button>
849
862
 
850
863
  <!-- Chip -->
851
- <button class="tab tab-chip" role="tab" aria-selected="true">Overview</button>
864
+ <button class="vd-tab vd-tab-chip" role="tab" aria-selected="true">Overview</button>
852
865
  ```
853
866
 
854
867
  #### SegmentSelector
@@ -857,10 +870,10 @@ The framed container that wraps segment tabs. Extracted from Figma Segment
857
870
  Selector (784:34686): _"Horizontal segmented control combining multiple filter
858
871
  segments. Use for toggling between 2-5 mutually exclusive options."_
859
872
 
860
- - **Base**: `.segment-selector` (`surface-frame` fill, 4px radius, 1px padding, no gap)
861
- - **Modifier**: `.segment-selector-fill` — equal-width segments, **not from Figma**
862
- - **Children**: `.tab tab-segment`
863
- - **States**: `:focus-visible`, `.with-ring`
873
+ - **Base**: `.vd-segment-selector` (`surface-frame` fill, 4px radius, 1px padding, no gap)
874
+ - **Modifier**: `.vd-segment-selector-fill` — equal-width segments, **not from Figma**
875
+ - **Children**: `.vd-tab vd-tab-segment`
876
+ - **States**: `:focus-visible`, `.vd-with-ring`
864
877
 
865
878
  It is a **parent of Tabs, not a variant of it** — Figma composes it literally
866
879
  from `Tabs Type=segment` instances.
@@ -874,29 +887,29 @@ from `Tabs Type=segment` instances.
874
887
  > content-driven — its two segments are 79px only because both labels are the
875
888
  > string "Overview". Adding segments **grows the container**; there is no
876
889
  > overflow handling, which is why the description caps it at 2–5. Use
877
- > `.segment-selector-fill` when you want equal widths.
890
+ > `.vd-segment-selector-fill` when you want equal widths.
878
891
 
879
892
  > Deliberately no `:focus-within` on the frame — focus lands on a segment,
880
893
  > which rings itself, and ringing the frame too would double it.
881
894
 
882
895
  ```html
883
- <div class="segment-selector" role="radiogroup" aria-label="Density">
884
- <button class="tab tab-segment" role="radio" aria-checked="true">
896
+ <div class="vd-segment-selector" role="radiogroup" aria-label="Density">
897
+ <button class="vd-tab vd-tab-segment" role="radio" aria-checked="true">
885
898
  Compact
886
899
  </button>
887
- <button class="tab tab-segment" role="radio" aria-checked="false">
900
+ <button class="vd-tab vd-tab-segment" role="radio" aria-checked="false">
888
901
  Comfortable
889
902
  </button>
890
903
  </div>
891
904
 
892
905
  <!-- Equal-width -->
893
906
  <div
894
- class="segment-selector segment-selector-fill"
907
+ class="vd-segment-selector vd-segment-selector-fill"
895
908
  role="radiogroup"
896
909
  aria-label="View"
897
910
  >
898
- <button class="tab tab-segment" role="radio" aria-checked="true">All</button>
899
- <button class="tab tab-segment" role="radio" aria-checked="false">
911
+ <button class="vd-tab vd-tab-segment" role="radio" aria-checked="true">All</button>
912
+ <button class="vd-tab vd-tab-segment" role="radio" aria-checked="false">
900
913
  Needs review
901
914
  </button>
902
915
  </div>
@@ -909,9 +922,9 @@ Figma design, which splits the component across three nodes: Breadcrumb Item
909
922
  (1046:22649), Breadcrumb Separator (1046:22654) and the Breadcrumbs container
910
923
  (880:31218).
911
924
 
912
- - **Base**: `.breadcrumbs` (the row, 8px gap)
913
- - **Crumbs**: `.breadcrumb`, `.breadcrumb-current`, `.breadcrumb-home`
914
- - **Separators**: `.breadcrumb-separator`, `+ -dot`
925
+ - **Base**: `.vd-breadcrumbs` (the row, 8px gap)
926
+ - **Crumbs**: `.vd-breadcrumb`, `.vd-breadcrumb-current`, `.vd-breadcrumb-home`
927
+ - **Separators**: `.vd-breadcrumb-separator`, `+ -dot`
915
928
  - **States**: `:hover`, `:focus-visible`
916
929
 
917
930
  | Item state | treatment |
@@ -950,7 +963,7 @@ Figma design, which splits the component across three nodes: Breadcrumb Item
950
963
  > Regular in `Content/Tertiary`. The previous revision documented three
951
964
  > inconsistent treatments (13 Regular / 12 Regular / 13 Bold) and reproduced them
952
965
  > as deliberate optical corrections; the designer has since regularised them.
953
- > `.breadcrumb-separator-chevron` is **retained as a no-op** so existing markup
966
+ > `.vd-breadcrumb-separator-chevron` is **retained as a no-op** so existing markup
954
967
  > keeps working — it restates the base and is safe to drop.
955
968
 
956
969
  > **Separators must carry `aria-hidden="true"`.** They are decorative text;
@@ -976,31 +989,31 @@ Figma design, which splits the component across three nodes: Breadcrumb Item
976
989
  > in Figma any more. Add `font-mono` at the call site if you still want it.
977
990
 
978
991
  > **Still class-only:** `aria-current="page"` is documented and correct for
979
- > assistive tech, but nothing selects it — `.breadcrumb-current` drives the
992
+ > assistive tech, but nothing selects it — `.vd-breadcrumb-current` drives the
980
993
  > styling. Parked for the accessibility pass.
981
994
 
982
995
  ```html
983
- <nav class="breadcrumbs" aria-label="Breadcrumb">
984
- <svg class="breadcrumb-home icon icon-size-14" aria-hidden="true">
996
+ <nav class="vd-breadcrumbs" aria-label="Breadcrumb">
997
+ <svg class="vd-breadcrumb-home vd-icon vd-icon-size-14" aria-hidden="true">
985
998
  <use href="#home" />
986
999
  </svg>
987
- <span class="breadcrumb-separator" aria-hidden="true">&gt;</span>
988
- <a class="breadcrumb" href="/applications">Applications</a>
989
- <span class="breadcrumb-separator" aria-hidden="true">&gt;</span>
990
- <span class="breadcrumb breadcrumb-current" aria-current="page"
1000
+ <span class="vd-breadcrumb-separator" aria-hidden="true">&gt;</span>
1001
+ <a class="vd-breadcrumb" href="/applications">Applications</a>
1002
+ <span class="vd-breadcrumb-separator" aria-hidden="true">&gt;</span>
1003
+ <span class="vd-breadcrumb vd-breadcrumb-current" aria-current="page"
991
1004
  >#BA-204417</span
992
1005
  >
993
1006
  </nav>
994
1007
 
995
1008
  <!-- slash variant: two current items joined by the loose middot -->
996
- <nav class="breadcrumbs" aria-label="Breadcrumb">
997
- <a class="breadcrumb" href="/queue">Queue</a>
998
- <span class="breadcrumb-separator" aria-hidden="true">/</span>
999
- <span class="breadcrumb breadcrumb-current">#BA-204417</span>
1000
- <span class="breadcrumb-separator breadcrumb-separator-dot" aria-hidden="true"
1009
+ <nav class="vd-breadcrumbs" aria-label="Breadcrumb">
1010
+ <a class="vd-breadcrumb" href="/queue">Queue</a>
1011
+ <span class="vd-breadcrumb-separator" aria-hidden="true">/</span>
1012
+ <span class="vd-breadcrumb vd-breadcrumb-current">#BA-204417</span>
1013
+ <span class="vd-breadcrumb-separator vd-breadcrumb-separator-dot" aria-hidden="true"
1001
1014
  >&middot;</span
1002
1015
  >
1003
- <span class="breadcrumb breadcrumb-current" aria-current="page"
1016
+ <span class="vd-breadcrumb vd-breadcrumb-current" aria-current="page"
1004
1017
  >Northwind Freight LLC</span
1005
1018
  >
1006
1019
  </nav>
@@ -1011,9 +1024,9 @@ Figma design, which splits the component across three nodes: Breadcrumb Item
1011
1024
  A single marker in a stepped progression. Extracted from Figma Step (1032:2012)
1012
1025
  — 3 variants on a `State` axis, plus a Step Title boolean.
1013
1026
 
1014
- - **Base**: `.step` (the `completed` state — Figma's default)
1015
- - **States**: `.step-active`, `.step-upcoming`
1016
- - **Parts**: `.step-marker` (24px circle), `.step-label`
1027
+ - **Base**: `.vd-step` (the `completed` state — Figma's default)
1028
+ - **States**: `.vd-step-active`, `.vd-step-upcoming`
1029
+ - **Parts**: `.vd-step-marker` (24px circle), `.vd-step-label`
1017
1030
 
1018
1031
  | State | marker fill | marker border | content | label |
1019
1032
  | ----------- | --------------- | ----------------------- | ------------- | -------------------------- |
@@ -1042,10 +1055,10 @@ A single marker in a stepped progression. Extracted from Figma Step (1032:2012)
1042
1055
  A row of Steps joined by progress connectors. Extracted from Figma Stepper
1043
1056
  (1032:2013) — one symbol with a Stepper Title boolean.
1044
1057
 
1045
- - **Base**: `.stepper`
1046
- - **Parts**: `.stepper-title`, `.stepper-steps`, `.stepper-connector`,
1047
- `.stepper-connector-complete`
1048
- - **Slots (reused components)**: `.step`
1058
+ - **Base**: `.vd-stepper`
1059
+ - **Parts**: `.vd-stepper-title`, `.vd-stepper-steps`, `.vd-stepper-connector`,
1060
+ `.vd-stepper-connector-complete`
1061
+ - **Slots (reused components)**: `.vd-step`
1049
1062
 
1050
1063
  > **The connectors carry the progress, not the steps.** Each is `flex-1`, so it
1051
1064
  > absorbs whatever the labels leave — which is why Figma's step instances are
@@ -1081,26 +1094,26 @@ A row of Steps joined by progress connectors. Extracted from Figma Stepper
1081
1094
  > unintentional, and the spec pins it either way.
1082
1095
 
1083
1096
  ```html
1084
- <div class="stepper">
1085
- <p class="stepper-title">Stepped progression flow</p>
1086
- <div class="stepper-steps">
1087
- <div class="step">
1088
- <span class="step-marker">
1089
- <svg class="icon icon-size-12" aria-hidden="true">
1097
+ <div class="vd-stepper">
1098
+ <p class="vd-stepper-title">Stepped progression flow</p>
1099
+ <div class="vd-stepper-steps">
1100
+ <div class="vd-step">
1101
+ <span class="vd-step-marker">
1102
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
1090
1103
  <use href="#check" />
1091
1104
  </svg>
1092
1105
  </span>
1093
- <span class="step-label">Intake</span>
1106
+ <span class="vd-step-label">Intake</span>
1094
1107
  </div>
1095
- <span class="stepper-connector stepper-connector-complete"></span>
1096
- <div class="step step-active" aria-current="step">
1097
- <span class="step-marker">2</span>
1098
- <span class="step-label">Review</span>
1108
+ <span class="vd-stepper-connector vd-stepper-connector-complete"></span>
1109
+ <div class="vd-step vd-step-active" aria-current="step">
1110
+ <span class="vd-step-marker">2</span>
1111
+ <span class="vd-step-label">Review</span>
1099
1112
  </div>
1100
- <span class="stepper-connector"></span>
1101
- <div class="step step-upcoming">
1102
- <span class="step-marker">3</span>
1103
- <span class="step-label">Decision</span>
1113
+ <span class="vd-stepper-connector"></span>
1114
+ <div class="vd-step vd-step-upcoming">
1115
+ <span class="vd-step-marker">3</span>
1116
+ <span class="vd-step-label">Decision</span>
1104
1117
  </div>
1105
1118
  </div>
1106
1119
  </div>
@@ -1111,9 +1124,9 @@ A row of Steps joined by progress connectors. Extracted from Figma Stepper
1111
1124
  Extracted from Figma Progress Bar (1032:1991) — 2 variants, plus Top Content and
1112
1125
  Bottom Content booleans.
1113
1126
 
1114
- - **Base**: `.progress-bar` (the Primary colour scheme)
1115
- - **Scheme**: `.progress-bar-success` (the Approved ramp)
1116
- - **Parts**: `.progress-bar-header`, `-title`, `-value`, `-track`, `-fill`,
1127
+ - **Base**: `.vd-progress-bar` (the Primary colour scheme)
1128
+ - **Scheme**: `.vd-progress-bar-success` (the Approved ramp)
1129
+ - **Parts**: `.vd-progress-bar-header`, `-title`, `-value`, `-track`, `-fill`,
1117
1130
  `-legend`, `-legend-item`, `-legend-swatch`, `-legend-swatch-neutral`,
1118
1131
  `-legend-label`
1119
1132
 
@@ -1156,33 +1169,33 @@ Bottom Content booleans.
1156
1169
  > mirror it in `aria-valuenow`.
1157
1170
 
1158
1171
  ```html
1159
- <div class="progress-bar progress-bar-success">
1160
- <div class="progress-bar-header">
1161
- <span class="progress-bar-title">Review completion</span>
1162
- <span class="progress-bar-value">92%</span>
1172
+ <div class="vd-progress-bar vd-progress-bar-success">
1173
+ <div class="vd-progress-bar-header">
1174
+ <span class="vd-progress-bar-title">Review completion</span>
1175
+ <span class="vd-progress-bar-value">92%</span>
1163
1176
  </div>
1164
1177
 
1165
1178
  <div
1166
- class="progress-bar-track"
1179
+ class="vd-progress-bar-track"
1167
1180
  role="progressbar"
1168
1181
  aria-valuenow="92"
1169
1182
  aria-valuemin="0"
1170
1183
  aria-valuemax="100"
1171
1184
  aria-label="Review completion"
1172
1185
  >
1173
- <div class="progress-bar-fill" style="width: 92%"></div>
1186
+ <div class="vd-progress-bar-fill" style="width: 92%"></div>
1174
1187
  </div>
1175
1188
 
1176
- <div class="progress-bar-legend">
1177
- <span class="progress-bar-legend-item">
1178
- <span class="progress-bar-legend-swatch"></span>
1179
- <span class="progress-bar-legend-label">92% verified</span>
1189
+ <div class="vd-progress-bar-legend">
1190
+ <span class="vd-progress-bar-legend-item">
1191
+ <span class="vd-progress-bar-legend-swatch"></span>
1192
+ <span class="vd-progress-bar-legend-label">92% verified</span>
1180
1193
  </span>
1181
- <span class="progress-bar-legend-item">
1194
+ <span class="vd-progress-bar-legend-item">
1182
1195
  <span
1183
- class="progress-bar-legend-swatch progress-bar-legend-swatch-neutral"
1196
+ class="vd-progress-bar-legend-swatch vd-progress-bar-legend-swatch-neutral"
1184
1197
  ></span>
1185
- <span class="progress-bar-legend-label">8% unaccounted</span>
1198
+ <span class="vd-progress-bar-legend-label">8% unaccounted</span>
1186
1199
  </span>
1187
1200
  </div>
1188
1201
  </div>
@@ -1193,9 +1206,9 @@ Bottom Content booleans.
1193
1206
  Extracted from Figma Loading Indicator (1028:1992) — 8 variants across Type
1194
1207
  (Circle / Dots) × Size (XS / SM / MD / LG).
1195
1208
 
1196
- - **Base**: `.loading-indicator` (Circle, XS)
1197
- - **Type**: `.loading-indicator-dots` + three `.loading-indicator-dot` children
1198
- - **Sizes**: `.loading-indicator-sm` (16), `-md` (24), `-lg` (32); XS (12) is default
1209
+ - **Base**: `.vd-loading-indicator` (Circle, XS)
1210
+ - **Type**: `.vd-loading-indicator-dots` + three `.vd-loading-indicator-dot` children
1211
+ - **Sizes**: `.vd-loading-indicator-sm` (16), `-md` (24), `-lg` (32); XS (12) is default
1199
1212
 
1200
1213
  | Size | box | ring |
1201
1214
  | ---- | --- | ---- |
@@ -1237,19 +1250,19 @@ Extracted from Figma Loading Indicator (1028:1992) — 8 variants across Type
1237
1250
 
1238
1251
  ```html
1239
1252
  <span
1240
- class="loading-indicator loading-indicator-md"
1253
+ class="vd-loading-indicator vd-loading-indicator-md"
1241
1254
  role="status"
1242
1255
  aria-label="Loading"
1243
1256
  ></span>
1244
1257
 
1245
1258
  <span
1246
- class="loading-indicator loading-indicator-dots"
1259
+ class="vd-loading-indicator vd-loading-indicator-dots"
1247
1260
  role="status"
1248
1261
  aria-label="Loading"
1249
1262
  >
1250
- <span class="loading-indicator-dot"></span>
1251
- <span class="loading-indicator-dot"></span>
1252
- <span class="loading-indicator-dot"></span>
1263
+ <span class="vd-loading-indicator-dot"></span>
1264
+ <span class="vd-loading-indicator-dot"></span>
1265
+ <span class="vd-loading-indicator-dot"></span>
1253
1266
  </span>
1254
1267
  ```
1255
1268
 
@@ -1258,9 +1271,9 @@ Extracted from Figma Loading Indicator (1028:1992) — 8 variants across Type
1258
1271
  A loading indicator paired with a label. Extracted from Figma Loading Inline
1259
1272
  (1028:2013) — 4 variants on a single `Size` axis.
1260
1273
 
1261
- - **Base**: `.loading-inline` (XS)
1262
- - **Sizes**: `.loading-inline-sm`, `-md`, `-lg`
1263
- - **Slots (reused components)**: `.loading-indicator`
1274
+ - **Base**: `.vd-loading-inline` (XS)
1275
+ - **Sizes**: `.vd-loading-inline-sm`, `-md`, `-lg`
1276
+ - **Slots (reused components)**: `.vd-loading-indicator`
1264
1277
 
1265
1278
  | Size | gap | label / leading |
1266
1279
  | ---- | --- | --------------- |
@@ -1272,7 +1285,7 @@ A loading indicator paired with a label. Extracted from Figma Loading Inline
1272
1285
  > **The indicator is 12px at every size.** Figma embeds a `Size=XS` Loading
1273
1286
  > Indicator instance in all four variants while the gap and label scale around
1274
1287
  > it — visible in the rendered frames as a constant spinner beside growing text.
1275
- > Reproduced faithfully, which is why the nested `.loading-indicator` needs no
1288
+ > Reproduced faithfully, which is why the nested `.vd-loading-indicator` needs no
1276
1289
  > size class: its own default is already 12px. Flagged for the designer, since
1277
1290
  > at LG it reads small against 16px text.
1278
1291
 
@@ -1282,8 +1295,8 @@ A loading indicator paired with a label. Extracted from Figma Loading Inline
1282
1295
  > they read consistently. On the designer list.
1283
1296
 
1284
1297
  ```html
1285
- <span class="loading-inline loading-inline-md" role="status">
1286
- <span class="loading-indicator"></span>
1298
+ <span class="vd-loading-inline vd-loading-inline-md" role="status">
1299
+ <span class="vd-loading-indicator"></span>
1287
1300
  Loading...
1288
1301
  </span>
1289
1302
  ```
@@ -1293,21 +1306,21 @@ A loading indicator paired with a label. Extracted from Figma Loading Inline
1293
1306
  Content separator for visual breaks between sections. Extracted from Figma
1294
1307
  Divider (880:31270) — 3 variants on a single `Type` axis.
1295
1308
 
1296
- - **Simple**: `.divider` (a 1px rule; works on an `<hr>`)
1297
- - **Labeled**: `.divider-labeled` + `.divider-label`, flanked by two `.divider`s
1298
- - **Metadata**: `.divider-metadata`, `-item`, `-key`, `-value`, `-separator`
1309
+ - **Simple**: `.vd-divider` (a 1px rule; works on an `<hr>`)
1310
+ - **Labeled**: `.vd-divider-labeled` + `.vd-divider-label`, flanked by two `.vd-divider`s
1311
+ - **Metadata**: `.vd-divider-metadata`, `-item`, `-key`, `-value`, `-separator`
1299
1312
 
1300
1313
  > **The three types are structurally incompatible**, so they are not modifiers
1301
1314
  > of one base. `simple` is a single element; `labeled` and `metadata` are flex
1302
- > rows with children. `.divider-labeled` and `.divider-metadata` stand alone and
1303
- > do **not** take `.divider` — the same shape as `.link-inline`.
1315
+ > rows with children. `.vd-divider-labeled` and `.vd-divider-metadata` stand alone and
1316
+ > do **not** take `.vd-divider` — the same shape as `.vd-link-inline`.
1304
1317
 
1305
- > **`.divider` is the simple type**, which is a deliberate departure: Figma's
1306
- > default variant is `labeled`, but a bare `.divider` cannot render it — labeled
1318
+ > **`.vd-divider` is the simple type**, which is a deliberate departure: Figma's
1319
+ > default variant is `labeled`, but a bare `.vd-divider` cannot render it — labeled
1307
1320
  > needs three children. Naming the plainest form after the component is the only
1308
1321
  > reading that works, and it is what makes the reuse below possible.
1309
1322
 
1310
- > **Labeled is built from two `.divider`s**, exactly as Figma models it: the
1323
+ > **Labeled is built from two `.vd-divider`s**, exactly as Figma models it: the
1311
1324
  > variant contains two Line children flanking the text. They flex, so the label
1312
1325
  > stays centred at any container width.
1313
1326
 
@@ -1342,27 +1355,27 @@ Divider (880:31270) — 3 variants on a single `Type` axis.
1342
1355
 
1343
1356
  > **Mono is a call-site choice.** Figma's sample renders its _date_ value in
1344
1357
  > JetBrains Mono Medium while the other two are Inter Medium — an instance
1345
- > override for data, not a rule. `.divider-metadata-value` stays Inter; add
1358
+ > override for data, not a rule. `.vd-divider-metadata-value` stays Inter; add
1346
1359
  > `font-mono` where the value is data.
1347
1360
 
1348
1361
  ```html
1349
- <hr class="divider" />
1362
+ <hr class="vd-divider" />
1350
1363
 
1351
- <div class="divider-labeled">
1352
- <hr class="divider" />
1353
- <span class="divider-label">Beneficial owners</span>
1354
- <hr class="divider" />
1364
+ <div class="vd-divider-labeled">
1365
+ <hr class="vd-divider" />
1366
+ <span class="vd-divider-label">Beneficial owners</span>
1367
+ <hr class="vd-divider" />
1355
1368
  </div>
1356
1369
 
1357
- <div class="divider-metadata">
1358
- <span class="divider-metadata-item">
1359
- <span class="divider-metadata-key">Updated</span>
1360
- <span class="divider-metadata-value font-mono">Jul 17</span>
1370
+ <div class="vd-divider-metadata">
1371
+ <span class="vd-divider-metadata-item">
1372
+ <span class="vd-divider-metadata-key">Updated</span>
1373
+ <span class="vd-divider-metadata-value font-mono">Jul 17</span>
1361
1374
  </span>
1362
- <span class="divider-metadata-separator"></span>
1363
- <span class="divider-metadata-item">
1364
- <span class="divider-metadata-key">Reviewer</span>
1365
- <span class="divider-metadata-value">M. Carden</span>
1375
+ <span class="vd-divider-metadata-separator"></span>
1376
+ <span class="vd-divider-metadata-item">
1377
+ <span class="vd-divider-metadata-key">Reviewer</span>
1378
+ <span class="vd-divider-metadata-value">M. Carden</span>
1366
1379
  </span>
1367
1380
  </div>
1368
1381
  ```
@@ -1372,9 +1385,9 @@ Divider (880:31270) — 3 variants on a single `Type` axis.
1372
1385
  Hyperlink styles for navigation and inline references. Extracted from Figma Link
1373
1386
  (880:31368) — 15 variants across Style × State (default / hover / pressed).
1374
1387
 
1375
- - **Base**: `.link` (the `strong` style)
1376
- - **Styles**: `.link-strong`, `.link-quiet`, `.link-monospace`, `.link-critical`
1377
- - **Prose**: `.link-inline` — a paragraph class, **not** used with `.link`
1388
+ - **Base**: `.vd-link` (the `strong` style)
1389
+ - **Styles**: `.vd-link-strong`, `.vd-link-quiet`, `.vd-link-monospace`, `.vd-link-critical`
1390
+ - **Prose**: `.vd-link-inline` — a paragraph class, **not** used with `.vd-link`
1378
1391
  - **States**: `:hover`, `:active`, `:focus-visible`, `[aria-disabled="true"]`
1379
1392
 
1380
1393
  | Style | type | rest | hover | pressed |
@@ -1395,7 +1408,7 @@ Hyperlink styles for navigation and inline references. Extracted from Figma Link
1395
1408
 
1396
1409
  > **`inline` is a paragraph, not a link.** Figma draws body copy carrying
1397
1410
  > anchors, so the class goes on the block and its `<a>` children are styled as
1398
- > descendants. It deliberately does not take `.link`.
1411
+ > descendants. It deliberately does not take `.vd-link`.
1399
1412
 
1400
1413
  > **The type is raw.** Figma binds no text style to the four standalone styles —
1401
1414
  > only `inline` carries one (`Body Content/Caption` → `--text-caption`). The
@@ -1409,19 +1422,19 @@ Hyperlink styles for navigation and inline references. Extracted from Figma Link
1409
1422
  > section's note on `get_variable_defs`.
1410
1423
 
1411
1424
  ```html
1412
- <a class="link" href="/report">Open full report →</a>
1413
- <a class="link link-quiet" href="/log">View activity log</a>
1414
- <a class="link link-monospace" href="/case">#BA-204417</a>
1425
+ <a class="vd-link" href="/report">Open full report →</a>
1426
+ <a class="vd-link vd-link-quiet" href="/log">View activity log</a>
1427
+ <a class="vd-link vd-link-monospace" href="/case">#BA-204417</a>
1415
1428
 
1416
- <a class="link link-critical" href="/fix">
1417
- <svg class="icon icon-size-12" aria-hidden="true">
1429
+ <a class="vd-link vd-link-critical" href="/fix">
1430
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
1418
1431
  <use href="#alert-triangle" />
1419
1432
  </svg>
1420
1433
  Resolve mismatch
1421
1434
  </a>
1422
1435
 
1423
1436
  <!-- inline: a paragraph, styled on its anchors -->
1424
- <p class="link-inline">
1437
+ <p class="vd-link-inline">
1425
1438
  Valiify utilizes <a href="/middesk">Middesk</a> for instant background
1426
1439
  screenings.
1427
1440
  </p>
@@ -1433,13 +1446,13 @@ Individual segment within a segmented filter control. Extracted from Figma
1433
1446
  Filter Segment (678:21020) — 18 variants across Position × Hover × Selected ×
1434
1447
  Size, plus Text, Icon and Ring booleans.
1435
1448
 
1436
- - **Base**: `.filter-segment` (the `middle` position, sm)
1437
- - **Position**: `.filter-segment-first`, `.filter-segment-last`
1438
- - **Size**: `.filter-segment-md` (28px); sm (21px) is the default
1439
- - **Group**: `.filter-segments`
1449
+ - **Base**: `.vd-filter-segment` (the `middle` position, sm)
1450
+ - **Position**: `.vd-filter-segment-first`, `.vd-filter-segment-last`
1451
+ - **Size**: `.vd-filter-segment-md` (28px); sm (21px) is the default
1452
+ - **Group**: `.vd-filter-segments`
1440
1453
  - **States**: `:hover`, `[aria-pressed="true"]` / `[aria-selected="true"]`,
1441
- `:focus-visible`, `:disabled`, `.with-ring`
1442
- - **Slots (reused components)**: `.icon-button icon-button-md`
1454
+ `:focus-visible`, `:disabled`, `.vd-with-ring`
1455
+ - **Slots (reused components)**: `.vd-icon-button vd-icon-button-md`
1443
1456
 
1444
1457
  **Segments share their edges**, which is the whole point of the position axis:
1445
1458
 
@@ -1486,32 +1499,32 @@ own right border closes the group.
1486
1499
  > invalid HTML; the icon button is itself focusable.
1487
1500
 
1488
1501
  ```html
1489
- <div class="filter-segments">
1502
+ <div class="vd-filter-segments">
1490
1503
  <button
1491
- class="filter-segment filter-segment-first filter-segment-md text-content-primary"
1504
+ class="vd-filter-segment vd-filter-segment-first vd-filter-segment-md text-content-primary"
1492
1505
  >
1493
1506
  Product
1494
1507
  </button>
1495
- <button class="filter-segment filter-segment-md">Is any of</button>
1508
+ <button class="vd-filter-segment vd-filter-segment-md">Is any of</button>
1496
1509
  <button
1497
- class="filter-segment filter-segment-md text-micro-l-bold text-content-primary"
1510
+ class="vd-filter-segment vd-filter-segment-md text-micro-l-bold text-content-primary"
1498
1511
  >
1499
1512
  Deposit Account
1500
1513
  </button>
1501
- <span class="filter-segment filter-segment-last filter-segment-md">
1502
- <button class="icon-button icon-button-md" aria-label="Remove filter">
1503
- <svg class="icon icon-size-14" aria-hidden="true"><use href="#x" /></svg>
1514
+ <span class="vd-filter-segment vd-filter-segment-last vd-filter-segment-md">
1515
+ <button class="vd-icon-button vd-icon-button-md" aria-label="Remove filter">
1516
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#x" /></svg>
1504
1517
  </button>
1505
1518
  </span>
1506
1519
  </div>
1507
1520
 
1508
1521
  <!-- as a toggle group -->
1509
- <div class="filter-segments" role="group" aria-label="Match mode">
1510
- <button class="filter-segment filter-segment-first" aria-pressed="true">
1522
+ <div class="vd-filter-segments" role="group" aria-label="Match mode">
1523
+ <button class="vd-filter-segment vd-filter-segment-first" aria-pressed="true">
1511
1524
  All
1512
1525
  </button>
1513
- <button class="filter-segment" aria-pressed="false">Any</button>
1514
- <button class="filter-segment filter-segment-last" aria-pressed="false">
1526
+ <button class="vd-filter-segment" aria-pressed="false">Any</button>
1527
+ <button class="vd-filter-segment vd-filter-segment-last" aria-pressed="false">
1515
1528
  None
1516
1529
  </button>
1517
1530
  </div>
@@ -1522,11 +1535,11 @@ own right border closes the group.
1522
1535
  Page navigation controls for multi-page data sets. Extracted from Figma
1523
1536
  Pagination (880:31248) — 2 variants on a single `Type` axis.
1524
1537
 
1525
- - **Base**: `.pagination` (the bar — both types share it)
1526
- - **Numbered parts**: `.pagination-pages`, `.pagination-summary`
1527
- - **Simple parts**: `.pagination-status`, `.pagination-status-current`
1528
- - **Slots (reused components)**: `.pagination-item` cells (numbered),
1529
- `.btn btn-outline btn-sm` (simple's Prev / Next)
1538
+ - **Base**: `.vd-pagination` (the bar — both types share it)
1539
+ - **Numbered parts**: `.vd-pagination-pages`, `.vd-pagination-summary`
1540
+ - **Simple parts**: `.vd-pagination-status`, `.vd-pagination-status-current`
1541
+ - **Slots (reused components)**: `.vd-pagination-item` cells (numbered),
1542
+ `.vd-btn vd-btn-outline vd-btn-sm` (simple's Prev / Next)
1530
1543
 
1531
1544
  > **Both types share the same root, so there is no modifier class.** Figma draws
1532
1545
  > `flex items-center justify-between` at full width for each; only the children
@@ -1535,7 +1548,7 @@ Pagination (880:31248) — 2 variants on a single `Type` axis.
1535
1548
  > **Everything interactive is an existing component.** Simple's Prev and Next
1536
1549
  > are literal Button instances, and their Figma geometry — 24px tall, 8px/5px
1537
1550
  > padding, 5px gap, 6px radius, 0.5px `Stroke/Divider`, `Action S` 12/500 in
1538
- > `Content/Primary` — is `.btn btn-outline btn-sm` down to the pixel, with a
1551
+ > `Content/Primary` — is `.vd-btn vd-btn-outline vd-btn-sm` down to the pixel, with a
1539
1552
  > 13px icon.
1540
1553
 
1541
1554
  > **Two Figma oddities, reported rather than reproduced.** The numbered bar's
@@ -1549,51 +1562,51 @@ Pagination (880:31248) — 2 variants on a single `Type` axis.
1549
1562
  > a pagination bar spans its table.
1550
1563
 
1551
1564
  > The 4px cell gap is `Spacing/4` and belongs to the bar, not the cell:
1552
- > `.pagination-item` sets no margin, so cells used elsewhere space themselves.
1565
+ > `.vd-pagination-item` sets no margin, so cells used elsewhere space themselves.
1553
1566
 
1554
1567
  ```html
1555
1568
  <!-- numbered -->
1556
- <nav class="pagination" aria-label="Pagination">
1557
- <div class="pagination-pages">
1569
+ <nav class="vd-pagination" aria-label="Pagination">
1570
+ <div class="vd-pagination-pages">
1558
1571
  <button
1559
- class="pagination-item pagination-item-nav"
1572
+ class="vd-pagination-item vd-pagination-item-nav"
1560
1573
  aria-label="Previous page"
1561
1574
  >
1562
- <svg class="icon icon-size-14" aria-hidden="true">
1575
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
1563
1576
  <use href="#chevron-left" />
1564
1577
  </svg>
1565
1578
  </button>
1566
- <button class="pagination-item pagination-item-active" aria-current="page">
1579
+ <button class="vd-pagination-item vd-pagination-item-active" aria-current="page">
1567
1580
  1
1568
1581
  </button>
1569
- <button class="pagination-item">2</button>
1570
- <span class="pagination-item pagination-item-ellipsis" aria-hidden="true"
1582
+ <button class="vd-pagination-item">2</button>
1583
+ <span class="vd-pagination-item vd-pagination-item-ellipsis" aria-hidden="true"
1571
1584
  >...</span
1572
1585
  >
1573
- <button class="pagination-item">18</button>
1574
- <button class="pagination-item pagination-item-nav" aria-label="Next page">
1575
- <svg class="icon icon-size-14" aria-hidden="true">
1586
+ <button class="vd-pagination-item">18</button>
1587
+ <button class="vd-pagination-item vd-pagination-item-nav" aria-label="Next page">
1588
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
1576
1589
  <use href="#chevron-right" />
1577
1590
  </svg>
1578
1591
  </button>
1579
1592
  </div>
1580
- <p class="pagination-summary">1-20 of 352</p>
1593
+ <p class="vd-pagination-summary">1-20 of 352</p>
1581
1594
  </nav>
1582
1595
 
1583
1596
  <!-- simple -->
1584
- <nav class="pagination" aria-label="Pagination">
1585
- <button class="btn btn-outline btn-sm">
1586
- <svg class="icon icon-size-13" aria-hidden="true">
1597
+ <nav class="vd-pagination" aria-label="Pagination">
1598
+ <button class="vd-btn vd-btn-outline vd-btn-sm">
1599
+ <svg class="vd-icon vd-icon-size-13" aria-hidden="true">
1587
1600
  <use href="#arrow-left" />
1588
1601
  </svg>
1589
1602
  Prev
1590
1603
  </button>
1591
- <p class="pagination-status">
1592
- Page <span class="pagination-status-current">7</span> of 18
1604
+ <p class="vd-pagination-status">
1605
+ Page <span class="vd-pagination-status-current">7</span> of 18
1593
1606
  </p>
1594
- <button class="btn btn-outline btn-sm">
1607
+ <button class="vd-btn vd-btn-outline vd-btn-sm">
1595
1608
  Next
1596
- <svg class="icon icon-size-13" aria-hidden="true">
1609
+ <svg class="vd-icon vd-icon-size-13" aria-hidden="true">
1597
1610
  <use href="#arrow-right" />
1598
1611
  </svg>
1599
1612
  </button>
@@ -1606,9 +1619,9 @@ Individual pagination cell — page number, ellipsis, or navigation arrow.
1606
1619
  Extracted from Figma Pagination Item (894:1495) — 10 variants on a single
1607
1620
  `State` axis. Composes inside the Pagination bar.
1608
1621
 
1609
- - **Base**: `.pagination-item` (the `default` kind — a 32×32 cell)
1610
- - **Kinds**: `.pagination-item-active`, `.pagination-item-ellipsis`,
1611
- `.pagination-item-nav`
1622
+ - **Base**: `.vd-pagination-item` (the `default` kind — a 32×32 cell)
1623
+ - **Kinds**: `.vd-pagination-item-active`, `.vd-pagination-item-ellipsis`,
1624
+ `.vd-pagination-item-nav`
1612
1625
  - **States**: `:hover`, `:active`, `:focus-visible`, `:disabled`
1613
1626
 
1614
1627
  | Kind | box | content |
@@ -1660,24 +1673,24 @@ Extracted from Figma Pagination Item (894:1495) — 10 variants on a single
1660
1673
  ```html
1661
1674
  <div role="navigation" aria-label="Pagination" style="display: flex; gap: 6px;">
1662
1675
  <button
1663
- class="pagination-item pagination-item-nav"
1676
+ class="vd-pagination-item vd-pagination-item-nav"
1664
1677
  aria-label="Previous page"
1665
1678
  disabled
1666
1679
  >
1667
- <svg class="icon icon-size-14" aria-hidden="true">
1680
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
1668
1681
  <use href="#chevron-left" />
1669
1682
  </svg>
1670
1683
  </button>
1671
- <button class="pagination-item pagination-item-active" aria-current="page">
1684
+ <button class="vd-pagination-item vd-pagination-item-active" aria-current="page">
1672
1685
  1
1673
1686
  </button>
1674
- <button class="pagination-item">2</button>
1675
- <span class="pagination-item pagination-item-ellipsis" aria-hidden="true"
1687
+ <button class="vd-pagination-item">2</button>
1688
+ <span class="vd-pagination-item vd-pagination-item-ellipsis" aria-hidden="true"
1676
1689
  >...</span
1677
1690
  >
1678
- <button class="pagination-item">24</button>
1679
- <button class="pagination-item pagination-item-nav" aria-label="Next page">
1680
- <svg class="icon icon-size-14" aria-hidden="true">
1691
+ <button class="vd-pagination-item">24</button>
1692
+ <button class="vd-pagination-item vd-pagination-item-nav" aria-label="Next page">
1693
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
1681
1694
  <use href="#chevron-right" />
1682
1695
  </svg>
1683
1696
  </button>
@@ -1690,12 +1703,12 @@ Inline field-level verification indicator. Extracted from Figma Field
1690
1703
  Verification (142:350) — 5 variants on a single `State` axis, plus a Ring
1691
1704
  boolean.
1692
1705
 
1693
- - **Base**: `.field-verification`
1694
- - **States**: `.field-verification-verified`, `-pending`, `-none`, `-mismatch`
1695
- - **Parts**: `.field-verification-icon` (mismatch only), `-label`, `-details`,
1706
+ - **Base**: `.vd-field-verification`
1707
+ - **States**: `.vd-field-verification-verified`, `-pending`, `-none`, `-mismatch`
1708
+ - **Parts**: `.vd-field-verification-icon` (mismatch only), `-label`, `-details`,
1696
1709
  `-detail`, `-action`
1697
- - **Slots (reused components)**: `.section-marker` (verified, pending, none)
1698
- - **States**: `.with-ring`
1710
+ - **Slots (reused components)**: `.vd-section-marker` (verified, pending, none)
1711
+ - **States**: `.vd-with-ring`
1699
1712
 
1700
1713
  **Four states are one-line rows; the fifth is a stacked panel.** Every value
1701
1714
  below was measured from the Figma render, because Figma flattens the glyphs to
@@ -1726,7 +1739,7 @@ vectors:
1726
1739
  > so it was never none-specific.
1727
1740
 
1728
1741
  > **The expanded state tops-aligns while the rows centre.** Driven off the
1729
- > presence of `.field-verification-details` with `:has()`, so there is no extra
1742
+ > presence of `.vd-field-verification-details` with `:has()`, so there is no extra
1730
1743
  > modifier class to remember.
1731
1744
 
1732
1745
  > **The outer widths are not pinned** — Figma's 83 / 111 / 16 / 159px are its
@@ -1742,39 +1755,39 @@ vectors:
1742
1755
 
1743
1756
  ```html
1744
1757
  <!-- verified — the icon is a Section Marker -->
1745
- <span class="field-verification field-verification-verified">
1746
- <span class="section-marker section-marker-approve">
1747
- <svg class="icon icon-size-14" aria-hidden="true">
1758
+ <span class="vd-field-verification vd-field-verification-verified">
1759
+ <span class="vd-section-marker vd-section-marker-approve">
1760
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
1748
1761
  <use href="#check" />
1749
1762
  </svg>
1750
1763
  </span>
1751
- <span class="field-verification-label">Matches X</span>
1764
+ <span class="vd-field-verification-label">Matches X</span>
1752
1765
  </span>
1753
1766
 
1754
1767
  <!-- none — a #minus glyph in a Section Marker, not a character -->
1755
1768
  <span
1756
- class="field-verification field-verification-none"
1769
+ class="vd-field-verification vd-field-verification-none"
1757
1770
  role="img"
1758
1771
  aria-label="No status"
1759
1772
  >
1760
- <span class="section-marker">
1761
- <svg class="icon icon-size-14" aria-hidden="true">
1773
+ <span class="vd-section-marker">
1774
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
1762
1775
  <use href="#minus" />
1763
1776
  </svg>
1764
1777
  </span>
1765
1778
  </span>
1766
1779
 
1767
1780
  <!-- mismatch, expanded -->
1768
- <span class="field-verification field-verification-mismatch">
1769
- <svg class="field-verification-icon icon icon-size-15" aria-hidden="true">
1781
+ <span class="vd-field-verification vd-field-verification-mismatch">
1782
+ <svg class="vd-field-verification-icon vd-icon vd-icon-size-15" aria-hidden="true">
1770
1783
  <use href="#triangle-alert" />
1771
1784
  </svg>
1772
- <span class="field-verification-details">
1773
- <span class="field-verification-label">Does not match KYC</span>
1774
- <span class="field-verification-detail">Reported: 04/12/1988</span>
1775
- <span class="field-verification-action">
1785
+ <span class="vd-field-verification-details">
1786
+ <span class="vd-field-verification-label">Does not match KYC</span>
1787
+ <span class="vd-field-verification-detail">Reported: 04/12/1988</span>
1788
+ <span class="vd-field-verification-action">
1776
1789
  Review discrepancy
1777
- <svg class="icon icon-size-15" aria-hidden="true">
1790
+ <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
1778
1791
  <use href="#arrow-right" />
1779
1792
  </svg>
1780
1793
  </span>
@@ -1788,18 +1801,18 @@ Visual marker indicating the verification status of a document section.
1788
1801
  Extracted from Figma Section Marker (141:1071) — 4 variants on a single
1789
1802
  `Status` axis, plus a Ring boolean.
1790
1803
 
1791
- - **Base**: `.section-marker` (a fixed 16×16 box)
1792
- - **Statuses**: `.section-marker-approve`, `.section-marker-mismatch`,
1793
- `.section-marker-unverified` — and `na`, which takes **no class**
1794
- - **Parts**: `.section-marker-dot` (mismatch's 8px filled circle)
1795
- - **States**: `.with-ring`
1804
+ - **Base**: `.vd-section-marker` (a fixed 16×16 box)
1805
+ - **Statuses**: `.vd-section-marker-approve`, `.vd-section-marker-mismatch`,
1806
+ `.vd-section-marker-unverified` — and `na`, which takes **no class**
1807
+ - **Parts**: `.vd-section-marker-dot` (mismatch's 8px filled circle)
1808
+ - **States**: `.vd-with-ring`
1796
1809
 
1797
1810
  **What goes inside the box is not uniform** — two glyphs, one shape, one nothing:
1798
1811
 
1799
1812
  | Status | mark | colour |
1800
1813
  | ------------ | ------------------------- | ---------------- |
1801
1814
  | `approve` | 14px `#check` | `Approved/Main` |
1802
- | `mismatch` | 8px `.section-marker-dot` | `Critical/Main` |
1815
+ | `mismatch` | 8px `.vd-section-marker-dot` | `Critical/Main` |
1803
1816
  | `unverified` | 14px `#circle` | `Secondary/Main` |
1804
1817
  | `na` | nothing at all | — |
1805
1818
 
@@ -1817,7 +1830,7 @@ Extracted from Figma Section Marker (141:1071) — 4 variants on a single
1817
1830
  > **`unverified` binds `Secondary/Main`, not `Content/Secondary`.** They resolve
1818
1831
  > to the same `#5b5b68`, but the spec pins the token Figma actually uses.
1819
1832
 
1820
- > **The ring is square here.** Every other `.with-ring` sits on a rounded
1833
+ > **The ring is square here.** Every other `.vd-with-ring` sits on a rounded
1821
1834
  > element and inherits its radius; this box has none, which matches Figma's
1822
1835
  > `inset-0` with no corner rounding.
1823
1836
 
@@ -1827,31 +1840,31 @@ Extracted from Figma Section Marker (141:1071) — 4 variants on a single
1827
1840
 
1828
1841
  ```html
1829
1842
  <span
1830
- class="section-marker section-marker-approve"
1843
+ class="vd-section-marker vd-section-marker-approve"
1831
1844
  role="img"
1832
1845
  aria-label="Approved"
1833
1846
  >
1834
- <svg class="icon icon-size-14" aria-hidden="true"><use href="#check" /></svg>
1847
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#check" /></svg>
1835
1848
  </span>
1836
1849
 
1837
1850
  <span
1838
- class="section-marker section-marker-mismatch"
1851
+ class="vd-section-marker vd-section-marker-mismatch"
1839
1852
  role="img"
1840
1853
  aria-label="Mismatch"
1841
1854
  >
1842
- <span class="section-marker-dot"></span>
1855
+ <span class="vd-section-marker-dot"></span>
1843
1856
  </span>
1844
1857
 
1845
1858
  <span
1846
- class="section-marker section-marker-unverified"
1859
+ class="vd-section-marker vd-section-marker-unverified"
1847
1860
  role="img"
1848
1861
  aria-label="Unverified"
1849
1862
  >
1850
- <svg class="icon icon-size-14" aria-hidden="true"><use href="#circle" /></svg>
1863
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#circle" /></svg>
1851
1864
  </span>
1852
1865
 
1853
1866
  <!-- na: no status class, no child -->
1854
- <span class="section-marker" role="img" aria-label="Not applicable"></span>
1867
+ <span class="vd-section-marker" role="img" aria-label="Not applicable"></span>
1855
1868
  ```
1856
1869
 
1857
1870
  #### Alert
@@ -1860,27 +1873,27 @@ Contextual feedback banner for inline status messages. Extracted from Figma
1860
1873
  Alert (880:31080) — 5 variants on a single `Type` axis, plus three booleans
1861
1874
  (Icon, Action Button, Dismiss).
1862
1875
 
1863
- - **Base**: `.alert` — layout only, **a type class is required**
1864
- - **Types**: `.alert-critical`, `.alert-warning`, `.alert-success`,
1865
- `.alert-info`, `.alert-neutral`
1866
- - **Parts**: `.alert-body`, `.alert-icon`, `.alert-content`, `.alert-title`,
1867
- `.alert-message`
1868
- - **Slots (reused components)**: `.text-button text-button-primary` (action),
1869
- `.icon-button icon-button-md` (dismiss)
1876
+ - **Base**: `.vd-alert` — layout only, **a type class is required**
1877
+ - **Types**: `.vd-alert-critical`, `.vd-alert-warning`, `.vd-alert-success`,
1878
+ `.vd-alert-info`, `.vd-alert-neutral`
1879
+ - **Parts**: `.vd-alert-body`, `.vd-alert-icon`, `.vd-alert-content`, `.vd-alert-title`,
1880
+ `.vd-alert-message`
1881
+ - **Slots (reused components)**: `.vd-text-button vd-text-button-primary` (action),
1882
+ `.vd-icon-button vd-icon-button-md` (dismiss)
1870
1883
 
1871
1884
  > **A type class is required.** Figma's `Type` axis has no default, and baking
1872
- > one into the base class is the mistake Tabs already taught us. A bare `.alert`
1885
+ > one into the base class is the mistake Tabs already taught us. A bare `.vd-alert`
1873
1886
  > renders transparent, which reads as the authoring error it is.
1874
1887
 
1875
1888
  Type drives the fill, the 3px rail and the icon — one pattern, one exception:
1876
1889
 
1877
1890
  | Type | fill | rail | icon |
1878
1891
  | ----------------- | --------------- | --------------- | --------------------- |
1879
- | `.alert-critical` | `Critical/Soft` | `Critical/Main` | `Critical/Main` |
1880
- | `.alert-warning` | `Warning/Soft` | `Warning/Main` | `Warning/Main` |
1881
- | `.alert-success` | `Approved/Soft` | `Approved/Main` | `Approved/Main` |
1882
- | `.alert-info` | `Primary/Soft` | `Primary/Main` | `Primary/Main` |
1883
- | `.alert-neutral` | `Neutral/Soft` | `Neutral/Main` | **`Neutral/Content`** |
1892
+ | `.vd-alert-critical` | `Critical/Soft` | `Critical/Main` | `Critical/Main` |
1893
+ | `.vd-alert-warning` | `Warning/Soft` | `Warning/Main` | `Warning/Main` |
1894
+ | `.vd-alert-success` | `Approved/Soft` | `Approved/Main` | `Approved/Main` |
1895
+ | `.vd-alert-info` | `Primary/Soft` | `Primary/Main` | `Primary/Main` |
1896
+ | `.vd-alert-neutral` | `Neutral/Soft` | `Neutral/Main` | **`Neutral/Content`** |
1884
1897
 
1885
1898
  > **Neutral's icon is the odd one out**, and this was verified by sampling the
1886
1899
  > Figma render rather than assumed: its rail is `Neutral/Main` (#9999a6) while
@@ -1908,21 +1921,21 @@ Type drives the fill, the 3px rail and the icon — one pattern, one exception:
1908
1921
 
1909
1922
  > **The dismiss is not an instance in Figma** — it is a stray 10×16 raw vector,
1910
1923
  > where Toast and Modal both use a real Icon Button. Treated as an authoring
1911
- > slip and implemented as `.icon-button icon-button-md`. On the designer list.
1924
+ > slip and implemented as `.vd-icon-button vd-icon-button-md`. On the designer list.
1912
1925
 
1913
1926
  ```html
1914
- <div class="alert alert-critical" role="alert">
1915
- <div class="alert-body">
1916
- <svg class="alert-icon icon icon-size-18" aria-hidden="true">
1927
+ <div class="vd-alert vd-alert-critical" role="alert">
1928
+ <div class="vd-alert-body">
1929
+ <svg class="vd-alert-icon vd-icon vd-icon-size-18" aria-hidden="true">
1917
1930
  <use href="#triangle-alert" />
1918
1931
  </svg>
1919
- <div class="alert-content">
1920
- <p class="alert-title">Business address mismatch</p>
1921
- <p class="alert-message">Middesk returns a registered-agent address.</p>
1922
- <button class="text-button text-button-primary">Review Field</button>
1932
+ <div class="vd-alert-content">
1933
+ <p class="vd-alert-title">Business address mismatch</p>
1934
+ <p class="vd-alert-message">Middesk returns a registered-agent address.</p>
1935
+ <button class="vd-text-button vd-text-button-primary">Review Field</button>
1923
1936
  </div>
1924
- <button class="icon-button icon-button-md" aria-label="Dismiss">
1925
- <svg class="icon icon-size-14" aria-hidden="true"><use href="#x" /></svg>
1937
+ <button class="vd-icon-button vd-icon-button-md" aria-label="Dismiss">
1938
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#x" /></svg>
1926
1939
  </button>
1927
1940
  </div>
1928
1941
  </div>
@@ -1933,18 +1946,18 @@ Type drives the fill, the 3px rail and the icon — one pattern, one exception:
1933
1946
  Transient floating notification for brief status feedback. Extracted from Figma
1934
1947
  Toast (880:31121) — Type (success / error / info) × Style (Full / Simple).
1935
1948
 
1936
- - **Base**: `.toast` (Full — a 356px card)
1937
- - **Types**: `.toast-success`, `.toast-error`, `.toast-info` (icon colour only)
1938
- - **Style**: `.toast-simple` (a 280px dark pill)
1939
- - **Parts**: `.toast-header`, `.toast-main`, `.toast-icon`, `.toast-text`,
1940
- `.toast-title`, `.toast-message`, `.toast-footer`, `.toast-timestamp`
1941
- - **Slots (reused components)**: `.icon-button icon-button-md` (dismiss),
1942
- `.text-button text-button-primary` (footer action)
1949
+ - **Base**: `.vd-toast` (Full — a 356px card)
1950
+ - **Types**: `.vd-toast-success`, `.vd-toast-error`, `.vd-toast-info` (icon colour only)
1951
+ - **Style**: `.vd-toast-simple` (a 280px dark pill)
1952
+ - **Parts**: `.vd-toast-header`, `.vd-toast-main`, `.vd-toast-icon`, `.vd-toast-text`,
1953
+ `.vd-toast-title`, `.vd-toast-message`, `.vd-toast-footer`, `.vd-toast-timestamp`
1954
+ - **Slots (reused components)**: `.vd-icon-button vd-icon-button-md` (dismiss),
1955
+ `.vd-text-button vd-text-button-primary` (footer action)
1943
1956
 
1944
1957
  > **The two styles share almost nothing.** Figma models them as one component,
1945
1958
  > but Full is a white card and Simple is a dark pill — different background,
1946
- > radius, padding, direction, width, shadow and text colour. `.toast-simple`
1947
- > overrides essentially all of `.toast`.
1959
+ > radius, padding, direction, width, shadow and text colour. `.vd-toast-simple`
1960
+ > overrides essentially all of `.vd-toast`.
1948
1961
 
1949
1962
  > **The action and dismiss are existing components, not new parts.** Figma's
1950
1963
  > "Retry" is a literal Text Button instance (Type=Primary) and the close is an
@@ -1954,13 +1967,13 @@ Toast (880:31121) — Type (success / error / info) × Style (Full / Simple).
1954
1967
 
1955
1968
  | Type | glyph | colour |
1956
1969
  | ---------------- | --------------------------------- | --------------------------- |
1957
- | `.toast-success` | `#circle-check` | `Approved/Main` |
1958
- | `.toast-error` | `#triangle-alert` | `Critical/Main` |
1959
- | `.toast-info` | `#refresh-cw` (not an info glyph) | `Primary/Main` |
1960
- | `.toast-simple` | `#check` | inherits `Content/Contrast` |
1970
+ | `.vd-toast-success` | `#circle-check` | `Approved/Main` |
1971
+ | `.vd-toast-error` | `#triangle-alert` | `Critical/Main` |
1972
+ | `.vd-toast-info` | `#refresh-cw` (not an info glyph) | `Primary/Main` |
1973
+ | `.vd-toast-simple` | `#check` | inherits `Content/Contrast` |
1961
1974
 
1962
1975
  > **Three Figma gaps, reported rather than papered over.** Simple exists only
1963
- > for `Type=info` — there is no success or error Simple, so `.toast-simple`
1976
+ > for `Type=info` — there is no success or error Simple, so `.vd-toast-simple`
1964
1977
  > ignores the type classes rather than invent two. That one variant is typed
1965
1978
  > `info` but draws a success check. And its Figma description is Tooltip's,
1966
1979
  > copied verbatim. All three are on the designer list.
@@ -1975,32 +1988,32 @@ Toast (880:31121) — Type (success / error / info) × Style (Full / Simple).
1975
1988
 
1976
1989
  ```html
1977
1990
  <!-- Full -->
1978
- <div class="toast toast-success" role="status">
1979
- <div class="toast-header">
1980
- <div class="toast-main">
1981
- <svg class="toast-icon icon icon-size-18" aria-hidden="true">
1991
+ <div class="vd-toast vd-toast-success" role="status">
1992
+ <div class="vd-toast-header">
1993
+ <div class="vd-toast-main">
1994
+ <svg class="vd-toast-icon vd-icon vd-icon-size-18" aria-hidden="true">
1982
1995
  <use href="#circle-check" />
1983
1996
  </svg>
1984
- <div class="toast-text">
1985
- <p class="toast-title">Document request sent</p>
1986
- <p class="toast-message">
1997
+ <div class="vd-toast-text">
1998
+ <p class="vd-toast-title">Document request sent</p>
1999
+ <p class="vd-toast-message">
1987
2000
  Client has been notified to upload their W-9.
1988
2001
  </p>
1989
2002
  </div>
1990
2003
  </div>
1991
- <button class="icon-button icon-button-md" aria-label="Dismiss">
1992
- <svg class="icon icon-size-14" aria-hidden="true"><use href="#x" /></svg>
2004
+ <button class="vd-icon-button vd-icon-button-md" aria-label="Dismiss">
2005
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#x" /></svg>
1993
2006
  </button>
1994
2007
  </div>
1995
- <div class="toast-footer">
1996
- <span class="toast-timestamp">just now</span>
1997
- <button class="text-button text-button-primary">Retry</button>
2008
+ <div class="vd-toast-footer">
2009
+ <span class="vd-toast-timestamp">just now</span>
2010
+ <button class="vd-text-button vd-text-button-primary">Retry</button>
1998
2011
  </div>
1999
2012
  </div>
2000
2013
 
2001
2014
  <!-- Simple -->
2002
- <div class="toast toast-simple" role="status">
2003
- <svg class="icon icon-size-15" aria-hidden="true"><use href="#check" /></svg>
2015
+ <div class="vd-toast vd-toast-simple" role="status">
2016
+ <svg class="vd-icon vd-icon-size-15" aria-hidden="true"><use href="#check" /></svg>
2004
2017
  Template Saved
2005
2018
  </div>
2006
2019
  ```
@@ -2011,16 +2024,16 @@ Text-only button for inline or cell-level actions. Extracted from Figma Text
2011
2024
  Button (679:21601) — 11 variants across Type × Hover × Pressed × Active, plus
2012
2025
  Icon and Ring booleans.
2013
2026
 
2014
- - **Base**: `.text-button` (defaults to the `cell` type)
2015
- - **Types**: `.text-button-cell`, `.text-button-text`, `.text-button-primary`
2016
- - **Icon**: `.icon icon-size-12` (Figma's Icon boolean, 4px gap)
2027
+ - **Base**: `.vd-text-button` (defaults to the `cell` type)
2028
+ - **Types**: `.vd-text-button-cell`, `.vd-text-button-text`, `.vd-text-button-primary`
2029
+ - **Icon**: `.vd-icon vd-icon-size-12` (Figma's Icon boolean, 4px gap)
2017
2030
  - **States**: `:hover`, `:active`, `:focus-visible`, `[aria-pressed="true"]` /
2018
- `[aria-selected="true"]`, `:disabled`, `.with-ring`
2031
+ `[aria-selected="true"]`, `:disabled`, `.vd-with-ring`
2019
2032
 
2020
- > **This is not a `.btn` variant.** Different Figma component, different type
2021
- > scale, different geometry — `.btn` has fixed 24/28/32px heights, this hugs its
2022
- > text at 15px or 18px. Use `.btn-empty` for a real button that happens to look
2023
- > bare; use `.text-button` for an inline affordance inside a table cell or a
2033
+ > **This is not a `.vd-btn` variant.** Different Figma component, different type
2034
+ > scale, different geometry — `.vd-btn` has fixed 24/28/32px heights, this hugs its
2035
+ > text at 15px or 18px. Use `.vd-btn-empty` for a real button that happens to look
2036
+ > bare; use `.vd-text-button` for an inline affordance inside a table cell or a
2024
2037
  > line of copy.
2025
2038
 
2026
2039
  **The three types are not three skins of one control** — `cell` is a genuinely
@@ -2051,23 +2064,23 @@ differ only in colour ramp.
2051
2064
 
2052
2065
  ```html
2053
2066
  <!-- cell: inline action inside a table cell -->
2054
- <button class="text-button text-button-cell" aria-pressed="false">
2067
+ <button class="vd-text-button vd-text-button-cell" aria-pressed="false">
2055
2068
  Select all
2056
2069
  </button>
2057
2070
 
2058
2071
  <!-- text: standalone link-style action -->
2059
- <button class="text-button text-button-text" aria-pressed="false">
2072
+ <button class="vd-text-button vd-text-button-text" aria-pressed="false">
2060
2073
  View details
2061
2074
  </button>
2062
2075
 
2063
2076
  <!-- primary, with the Icon boolean -->
2064
- <button class="text-button text-button-primary">
2065
- <svg class="icon icon-size-12" aria-hidden="true"><use href="#plus" /></svg>
2077
+ <button class="vd-text-button vd-text-button-primary">
2078
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true"><use href="#plus" /></svg>
2066
2079
  Add row
2067
2080
  </button>
2068
2081
 
2069
2082
  <!-- selected -->
2070
- <button class="text-button text-button-cell" aria-pressed="true">
2083
+ <button class="vd-text-button vd-text-button-cell" aria-pressed="true">
2071
2084
  Select all
2072
2085
  </button>
2073
2086
  ```
@@ -2077,37 +2090,37 @@ differ only in colour ramp.
2077
2090
  Dialog for confirmations and focused workflows. Extracted from Figma Modal
2078
2091
  (908:1580) — three variants on one `Action` axis, plus two booleans.
2079
2092
 
2080
- - **Base**: `.modal` (480px wide, height follows content)
2081
- - **Actions**: `.modal-destructive`, `.modal-positive`, `.modal-neutral`
2082
- - **Parts**: `.modal-header`, `.modal-title-group`, `.modal-icon`,
2083
- `.modal-title`, `.modal-subtitles`, `.modal-subtitle`, `.modal-description`,
2084
- `.modal-context`, `.modal-context-text`, `.modal-footer`
2085
- - **Slots (reused components)**: `.icon-button icon-button-lg` (close),
2086
- `.btn … btn-lg` (footer)
2093
+ - **Base**: `.vd-modal` (480px wide, height follows content)
2094
+ - **Actions**: `.vd-modal-destructive`, `.vd-modal-positive`, `.vd-modal-neutral`
2095
+ - **Parts**: `.vd-modal-header`, `.vd-modal-title-group`, `.vd-modal-icon`,
2096
+ `.vd-modal-title`, `.vd-modal-subtitles`, `.vd-modal-subtitle`, `.vd-modal-description`,
2097
+ `.vd-modal-context`, `.vd-modal-context-text`, `.vd-modal-footer`
2098
+ - **Slots (reused components)**: `.vd-icon-button vd-icon-button-lg` (close),
2099
+ `.vd-btn … vd-btn-lg` (footer)
2087
2100
 
2088
2101
  **Action drives three things**, and the CSS only styles the first — the icon and
2089
2102
  the button are slots, exactly as in Figma:
2090
2103
 
2091
2104
  | Action | icon container | header icon | confirm button |
2092
2105
  | -------------------- | ------------------------------------ | ----------------- | --------------- |
2093
- | `.modal-destructive` | `Critical/Soft` + `Critical/Main` | `#triangle-alert` | `.btn-critical` |
2094
- | `.modal-positive` | `Approved/Soft` + `Approved/Content` | `#circle-check` | `.btn-primary` |
2095
- | `.modal-neutral` | `Surface/Neutral` + `Neutral/Main` | `#info` | `.btn-outline` |
2106
+ | `.vd-modal-destructive` | `Critical/Soft` + `Critical/Main` | `#triangle-alert` | `.vd-btn-critical` |
2107
+ | `.vd-modal-positive` | `Approved/Soft` + `Approved/Content` | `#circle-check` | `.vd-btn-primary` |
2108
+ | `.vd-modal-neutral` | `Surface/Neutral` + `Neutral/Main` | `#info` | `.vd-btn-outline` |
2096
2109
 
2097
2110
  > **Two of those three break the `{Action}/Soft` + `{Action}/Main` pattern** —
2098
2111
  > positive uses `Approved/Content`, and neutral fills with `Surface/Neutral`
2099
2112
  > rather than the `Neutral/Soft` that exists. Both are reproduced from Figma
2100
2113
  > rather than corrected, and both are on the designer list.
2101
2114
 
2102
- > **`.btn-critical` is new, and is not in Figma's Button set** (73:180, which is
2115
+ > **`.vd-btn-critical` is new, and is not in Figma's Button set** (73:180, which is
2103
2116
  > primary / outline / empty only). It comes from this modal's destructive
2104
2117
  > confirm button. It lives in [button.css](src/components/button.css) because a
2105
2118
  > destructive confirm is not modal-specific. Figma specifies its rest state
2106
2119
  > only; hover steps to `Critical/Strong` by our choice.
2107
2120
 
2108
- > **The two 12px subtitle styles are not interchangeable.** `.modal-subtitle` is
2121
+ > **The two 12px subtitle styles are not interchangeable.** `.vd-modal-subtitle` is
2109
2122
  > `Body Content/Caption` (18px leading, `Content/Secondary`);
2110
- > `.modal-description` is `Body & Supporting/Help & Caption` (14px leading,
2123
+ > `.vd-modal-description` is `Body & Supporting/Help & Caption` (14px leading,
2111
2124
  > `Content/Tertiary`). Same size, different everything else. This modal is also
2112
2125
  > the evidence that `Help & Caption` is still current — it was flagged as
2113
2126
  > unconfirmed under **Still open** below.
@@ -2123,38 +2136,38 @@ the button are slots, exactly as in Figma:
2123
2136
 
2124
2137
  > **Positioning and the backdrop are yours**, as with Tooltip — Figma draws the
2125
2138
  > dialog frame only. On a native `<dialog>` the browser supplies centring, the
2126
- > backdrop, focus trapping and Escape-to-close for free, and `.modal` ships a
2139
+ > backdrop, focus trapping and Escape-to-close for free, and `.vd-modal` ships a
2127
2140
  > `::backdrop` scrim for that case. That is the recommended way to use it.
2128
2141
 
2129
2142
  ```html
2130
- <dialog class="modal modal-destructive" aria-labelledby="decline-title">
2131
- <div class="modal-header">
2132
- <div class="modal-title-group">
2133
- <span class="modal-icon">
2134
- <svg class="icon icon-size-20" aria-hidden="true">
2143
+ <dialog class="vd-modal vd-modal-destructive" aria-labelledby="decline-title">
2144
+ <div class="vd-modal-header">
2145
+ <div class="vd-modal-title-group">
2146
+ <span class="vd-modal-icon">
2147
+ <svg class="vd-icon vd-icon-size-20" aria-hidden="true">
2135
2148
  <use href="#triangle-alert" />
2136
2149
  </svg>
2137
2150
  </span>
2138
- <h2 class="modal-title" id="decline-title">Decline this application?</h2>
2151
+ <h2 class="vd-modal-title" id="decline-title">Decline this application?</h2>
2139
2152
  </div>
2140
- <button class="icon-button icon-button-lg" aria-label="Close">
2141
- <svg class="icon icon-size-16" aria-hidden="true"><use href="#x" /></svg>
2153
+ <button class="vd-icon-button vd-icon-button-lg" aria-label="Close">
2154
+ <svg class="vd-icon vd-icon-size-16" aria-hidden="true"><use href="#x" /></svg>
2142
2155
  </button>
2143
2156
  </div>
2144
2157
 
2145
- <div class="modal-subtitles">
2146
- <p class="modal-subtitle">The applicant is notified through the portal.</p>
2147
- <p class="modal-description">Two blocking items remain unresolved.</p>
2158
+ <div class="vd-modal-subtitles">
2159
+ <p class="vd-modal-subtitle">The applicant is notified through the portal.</p>
2160
+ <p class="vd-modal-description">Two blocking items remain unresolved.</p>
2148
2161
  </div>
2149
2162
 
2150
2163
  <!-- Context Window boolean -->
2151
- <div class="modal-context">
2152
- <p class="modal-context-text">#BA-204417 &middot; Northwind Freight LLC</p>
2164
+ <div class="vd-modal-context">
2165
+ <p class="vd-modal-context-text">#BA-204417 &middot; Northwind Freight LLC</p>
2153
2166
  </div>
2154
2167
 
2155
- <div class="modal-footer">
2156
- <button class="btn btn-empty btn-lg">Cancel</button>
2157
- <button class="btn btn-critical btn-lg">Decline application</button>
2168
+ <div class="vd-modal-footer">
2169
+ <button class="vd-btn vd-btn-empty vd-btn-lg">Cancel</button>
2170
+ <button class="vd-btn vd-btn-critical vd-btn-lg">Decline application</button>
2158
2171
  </div>
2159
2172
  </dialog>
2160
2173
 
@@ -2169,14 +2182,14 @@ the button are slots, exactly as in Figma:
2169
2182
  Dark contextual popover for hover explanations and helper text. Extracted from
2170
2183
  Figma Tooltip (880:31125) — a single symbol, no variants.
2171
2184
 
2172
- - **Base**: `.tooltip` (280px wide, dark)
2173
- - **Parts**: `.tooltip-title`, `.tooltip-content`, `.tooltip-divider`, `.tooltip-subtext`
2185
+ - **Base**: `.vd-tooltip` (280px wide, dark)
2186
+ - **Parts**: `.vd-tooltip-title`, `.vd-tooltip-content`, `.vd-tooltip-divider`, `.vd-tooltip-subtext`
2174
2187
 
2175
2188
  | part | type | colour |
2176
2189
  | ------------------ | ----------------- | ------------------ |
2177
- | `.tooltip-title` | 11px / 400 | `Content/Faint` |
2178
- | `.tooltip-content` | 12px / 18px / 400 | `Content/Contrast` |
2179
- | `.tooltip-subtext` | 11px / 400 | `Content/Faint` |
2190
+ | `.vd-tooltip-title` | 11px / 400 | `Content/Faint` |
2191
+ | `.vd-tooltip-content` | 12px / 18px / 400 | `Content/Contrast` |
2192
+ | `.vd-tooltip-subtext` | 11px / 400 | `Content/Faint` |
2180
2193
 
2181
2194
  > **The only dark surface in the library.** The fill is `Content/Primary` and
2182
2195
  > the text tokens invert accordingly. Do not reach for the usual
@@ -2202,18 +2215,18 @@ Figma Tooltip (880:31125) — a single symbol, no variants.
2202
2215
 
2203
2216
  ```html
2204
2217
  <!-- Full, as drawn in Figma -->
2205
- <div class="tooltip" role="tooltip" id="tt-naics">
2206
- <p class="tooltip-title">INDUSTRY / NAICS</p>
2207
- <p class="tooltip-content">
2218
+ <div class="vd-tooltip" role="tooltip" id="tt-naics">
2219
+ <p class="vd-tooltip-title">INDUSTRY / NAICS</p>
2220
+ <p class="vd-tooltip-content">
2208
2221
  Six digits used to classify business establishments.
2209
2222
  </p>
2210
- <hr class="tooltip-divider" />
2211
- <p class="tooltip-subtext">Middesk · Secretary of State</p>
2223
+ <hr class="vd-tooltip-divider" />
2224
+ <p class="vd-tooltip-subtext">Middesk · Secretary of State</p>
2212
2225
  </div>
2213
2226
 
2214
2227
  <!-- Body only — the common case -->
2215
- <div class="tooltip" role="tooltip">
2216
- <p class="tooltip-content">
2228
+ <div class="vd-tooltip" role="tooltip">
2229
+ <p class="vd-tooltip-content">
2217
2230
  Six digits used to classify business establishments.
2218
2231
  </p>
2219
2232
  </div>
@@ -2221,11 +2234,11 @@ Figma Tooltip (880:31125) — a single symbol, no variants.
2221
2234
  <!-- Anchored to a trigger; positioning is yours -->
2222
2235
  <span style="position: relative; display: inline-block;">
2223
2236
  <button
2224
- class="icon-button icon-button-xs"
2237
+ class="vd-icon-button vd-icon-button-xs"
2225
2238
  aria-describedby="tt-naics"
2226
2239
  aria-label="What is NAICS?"
2227
2240
  >
2228
- <svg class="icon icon-size-12" aria-hidden="true">
2241
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
2229
2242
  <use href="#custom-help" />
2230
2243
  </svg>
2231
2244
  </button>
@@ -2243,18 +2256,18 @@ Compact label for categorization and filtering — a label that happens to be
2243
2256
  clickable. Extracted from Figma Tag (79:251): Hover × Active × Disabled × Size,
2244
2257
  plus four boolean slots.
2245
2258
 
2246
- - **Base**: `.tag` (defaults to sm)
2247
- - **Sizes**: `.tag-sm` (21px, default), `.tag-md` (24px)
2248
- - **Parts**: `.tag-count` (trailing count, md only)
2249
- - **Slots (reused components)**: `.avatar avatar-xs` (leading, md only),
2250
- `.dot dot-warning` (trailing, both sizes)
2259
+ - **Base**: `.vd-tag` (defaults to sm)
2260
+ - **Sizes**: `.vd-tag-sm` (21px, default), `.vd-tag-md` (24px)
2261
+ - **Parts**: `.vd-tag-count` (trailing count, md only)
2262
+ - **Slots (reused components)**: `.vd-avatar vd-avatar-xs` (leading, md only),
2263
+ `.vd-dot vd-dot-warning` (trailing, both sizes)
2251
2264
  - **States**: `:hover`, `:focus-visible`, `[aria-pressed="true"]` /
2252
- `[aria-selected="true"]`, `:disabled`, `.with-ring`
2265
+ `[aria-selected="true"]`, `:disabled`, `.vd-with-ring`
2253
2266
 
2254
2267
  > **The slots are existing components, not new parts.** Figma's avatar slot is
2255
2268
  > a literal instance of Avatar `Size=xs` — byte-identical class list — so it
2256
- > uses `.avatar avatar-xs`. The status dot is a 5px `Warning/Main` circle,
2257
- > which is exactly `.dot dot-warning`. Only the count needed a new class,
2269
+ > uses `.vd-avatar vd-avatar-xs`. The status dot is a 5px `Warning/Main` circle,
2270
+ > which is exactly `.vd-dot vd-dot-warning`. Only the count needed a new class,
2258
2271
  > because despite Figma calling it a "count badge" it is **not a badge**: bare
2259
2272
  > JetBrains Mono text, no circle, no fill, no border.
2260
2273
 
@@ -2288,21 +2301,21 @@ Both descriptions say "filtering". They are not the same control:
2288
2301
 
2289
2302
  ```html
2290
2303
  <!-- Simple label -->
2291
- <button class="tag" aria-pressed="false">Design</button>
2304
+ <button class="vd-tag" aria-pressed="false">Design</button>
2292
2305
 
2293
2306
  <!-- Selected -->
2294
- <button class="tag" aria-pressed="true">Approved</button>
2307
+ <button class="vd-tag" aria-pressed="true">Approved</button>
2295
2308
 
2296
2309
  <!-- md with every slot -->
2297
- <button class="tag tag-md" aria-pressed="false">
2298
- <span class="avatar avatar-xs">JS</span>
2310
+ <button class="vd-tag vd-tag-md" aria-pressed="false">
2311
+ <span class="vd-avatar vd-avatar-xs">JS</span>
2299
2312
  Design
2300
- <span class="tag-count">1</span>
2301
- <span class="dot dot-warning"></span>
2313
+ <span class="vd-tag-count">1</span>
2314
+ <span class="vd-dot vd-dot-warning"></span>
2302
2315
  </button>
2303
2316
 
2304
2317
  <!-- Disabled — label dims, nothing else -->
2305
- <button class="tag" aria-pressed="false" disabled>Archived</button>
2318
+ <button class="vd-tag" aria-pressed="false" disabled>Archived</button>
2306
2319
  ```
2307
2320
 
2308
2321
  #### Pill
@@ -2311,10 +2324,10 @@ Compact rounded control — a filter toggle, or a dropdown trigger when it carri
2311
2324
  a chevron. Extracted from Figma Pill (91:505) — 6 variants (State × Dropdown),
2312
2325
  plus a Ring boolean.
2313
2326
 
2314
- - **Base**: `.pill` (17px tall, hug width)
2315
- - **Parts**: `.pill-chevron` (13px trailing chevron)
2327
+ - **Base**: `.vd-pill` (17px tall, hug width)
2328
+ - **Parts**: `.vd-pill-chevron` (13px trailing chevron)
2316
2329
  - **States**: `:hover`, `:focus-visible`, `[aria-expanded="true"]` /
2317
- `[aria-pressed="true"]` / `[aria-selected="true"]`, `:disabled`, `.with-ring`
2330
+ `[aria-pressed="true"]` / `[aria-selected="true"]`, `:disabled`, `.vd-with-ring`
2318
2331
  - **Type**: `text-statecap` (9.5px / 600)
2319
2332
 
2320
2333
  > **Active means two things, and the chevron decides which.** Figma draws one
@@ -2344,22 +2357,22 @@ plus a Ring boolean.
2344
2357
 
2345
2358
  ```html
2346
2359
  <!-- Dropdown trigger -->
2347
- <button class="pill" aria-haspopup="listbox" aria-expanded="false">
2360
+ <button class="vd-pill" aria-haspopup="listbox" aria-expanded="false">
2348
2361
  John Smith
2349
- <svg class="pill-chevron icon icon-size-13" aria-hidden="true">
2362
+ <svg class="vd-pill-chevron vd-icon vd-icon-size-13" aria-hidden="true">
2350
2363
  <use href="#chevron-down" />
2351
2364
  </svg>
2352
2365
  </button>
2353
2366
 
2354
2367
  <!-- Filter toggle, no chevron -->
2355
- <button class="pill" aria-pressed="false">Overdue</button>
2356
- <button class="pill" aria-pressed="true">Approved</button>
2368
+ <button class="vd-pill" aria-pressed="false">Overdue</button>
2369
+ <button class="vd-pill" aria-pressed="true">Approved</button>
2357
2370
 
2358
2371
  <!-- Ring -->
2359
- <button class="pill with-ring" aria-pressed="false">Overdue</button>
2372
+ <button class="vd-pill vd-with-ring" aria-pressed="false">Overdue</button>
2360
2373
  ```
2361
2374
 
2362
- `.pill` the component is unrelated to `rounded-pill` the radius utility — the
2375
+ `.vd-pill` the component is unrelated to `rounded-pill` the radius utility — the
2363
2376
  latter is Figma's `Radius/Rounded` and is used by Avatar, Chip and Switch too.
2364
2377
 
2365
2378
  #### Avatar
@@ -2367,9 +2380,9 @@ latter is Figma's `Radius/Rounded` and is used by Avatar, Chip and Switch too.
2367
2380
  Circular user marker showing initials. Extracted from Figma Avatar (79:230) —
2368
2381
  8 variants (4 sizes × Disabled), plus a Ring boolean.
2369
2382
 
2370
- - **Base**: `.avatar` (defaults to md)
2371
- - **Sizes**: `.avatar-xs` (16px), `.avatar-sm` (18px), `.avatar-md` (20px, default), `.avatar-lg` (34px)
2372
- - **States**: `.avatar-disabled`, `.with-ring` (shared with Chip — 2px inset ring in `Primary/Main`)
2383
+ - **Base**: `.vd-avatar` (defaults to md)
2384
+ - **Sizes**: `.vd-avatar-xs` (16px), `.vd-avatar-sm` (18px), `.vd-avatar-md` (20px, default), `.vd-avatar-lg` (34px)
2385
+ - **States**: `.vd-avatar-disabled`, `.vd-with-ring` (shared with Chip — 2px inset ring in `Primary/Main`)
2373
2386
  - **Colors**: `Primary/Main` fill, `Content/Contrast` initials, 0.5px `Stroke/Divider` hairline
2374
2387
 
2375
2388
  | Size | Diameter | Type style | |
@@ -2397,18 +2410,18 @@ Circular user marker showing initials. Extracted from Figma Avatar (79:230) —
2397
2410
 
2398
2411
  ```html
2399
2412
  <!-- Default (md) -->
2400
- <span class="avatar avatar-md">NC</span>
2413
+ <span class="vd-avatar vd-avatar-md">NC</span>
2401
2414
 
2402
2415
  <!-- Every size -->
2403
- <span class="avatar avatar-xs">NC</span>
2404
- <span class="avatar avatar-sm">NC</span>
2405
- <span class="avatar avatar-lg">NC</span>
2416
+ <span class="vd-avatar vd-avatar-xs">NC</span>
2417
+ <span class="vd-avatar vd-avatar-sm">NC</span>
2418
+ <span class="vd-avatar vd-avatar-lg">NC</span>
2406
2419
 
2407
2420
  <!-- Disabled — fill dims, initials do not -->
2408
- <span class="avatar avatar-md avatar-disabled">NC</span>
2421
+ <span class="vd-avatar vd-avatar-md vd-avatar-disabled">NC</span>
2409
2422
 
2410
2423
  <!-- Ring -->
2411
- <span class="avatar avatar-lg with-ring">NC</span>
2424
+ <span class="vd-avatar vd-avatar-lg vd-with-ring">NC</span>
2412
2425
  ```
2413
2426
 
2414
2427
  Avatar is the shared primitive behind the initials bubbles in MenuItem and
@@ -2420,46 +2433,46 @@ pick `.icon-size-*`.
2420
2433
 
2421
2434
  Compact button displaying only an icon. Use for toolbar actions, close buttons, and secondary actions where space is limited. Extracted from Figma (78:210).
2422
2435
 
2423
- - **Base**: `.icon-button` (transparent background, defaults to LG size)
2424
- - **Sizes**: `.icon-button-xs` (12×12px), `.icon-button-md` (18×18px), `.icon-button-lg` (28×28px, default)
2436
+ - **Base**: `.vd-icon-button` (transparent background, defaults to LG size)
2437
+ - **Sizes**: `.vd-icon-button-xs` (12×12px), `.vd-icon-button-md` (18×18px), `.vd-icon-button-lg` (28×28px, default)
2425
2438
  - **Icon Sizes**: XS uses 12px icons, MD uses 14px icons, LG uses 16px icons
2426
2439
  - **Glyph colour**: `Secondary/Main` at rest, `Secondary/Strong` on hover/active,
2427
2440
  `Secondary/Disabled` when disabled — icons inherit it via `currentColor`
2428
2441
  - **States**: `:hover` (bg-action-hover), `:active` (bg-action-focused), `:disabled`
2429
- - **Optional**: `.icon-ring` (adds 2px ring in primary color for selected state)
2442
+ - **Optional**: `.vd-icon-ring` (adds 2px ring in primary color for selected state)
2430
2443
 
2431
2444
  ```html
2432
2445
  <!-- Extra small (12px - for labels) -->
2433
- <button class="icon-button icon-button-xs" aria-label="Help">
2434
- <svg class="icon icon-size-12" aria-hidden="true">
2446
+ <button class="vd-icon-button vd-icon-button-xs" aria-label="Help">
2447
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
2435
2448
  <use href="#custom-help" />
2436
2449
  </svg>
2437
2450
  </button>
2438
2451
 
2439
2452
  <!-- Medium (18px - compact actions) -->
2440
- <button class="icon-button icon-button-md" aria-label="Close">
2441
- <svg class="icon icon-size-14" aria-hidden="true">
2453
+ <button class="vd-icon-button vd-icon-button-md" aria-label="Close">
2454
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
2442
2455
  <use href="#x" />
2443
2456
  </svg>
2444
2457
  </button>
2445
2458
 
2446
2459
  <!-- Large (28px - default, primary actions) -->
2447
- <button class="icon-button icon-button-lg" aria-label="Settings">
2448
- <svg class="icon icon-size-16" aria-hidden="true">
2460
+ <button class="vd-icon-button vd-icon-button-lg" aria-label="Settings">
2461
+ <svg class="vd-icon vd-icon-size-16" aria-hidden="true">
2449
2462
  <use href="#settings" />
2450
2463
  </svg>
2451
2464
  </button>
2452
2465
 
2453
2466
  <!-- Disabled -->
2454
- <button class="icon-button icon-button-md" disabled aria-label="Disabled">
2455
- <svg class="icon icon-size-14" aria-hidden="true">
2467
+ <button class="vd-icon-button vd-icon-button-md" disabled aria-label="Disabled">
2468
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
2456
2469
  <use href="#x" />
2457
2470
  </svg>
2458
2471
  </button>
2459
2472
 
2460
2473
  <!-- With ring state (selected) -->
2461
- <button class="icon-button icon-button-md icon-ring" aria-label="Active filter">
2462
- <svg class="icon icon-size-14" aria-hidden="true">
2474
+ <button class="vd-icon-button vd-icon-button-md vd-icon-ring" aria-label="Active filter">
2475
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
2463
2476
  <use href="#filter" />
2464
2477
  </svg>
2465
2478
  </button>
@@ -2469,9 +2482,9 @@ Compact button displaying only an icon. Use for toolbar actions, close buttons,
2469
2482
 
2470
2483
  Wrapper container for icons at standardized sizes. Maintains consistent icon dimensions across the UI. Icons inherit the current text color by default.
2471
2484
 
2472
- - **Base**: `.icon` (inline-flex container, defaults to 16px size)
2473
- - **Sizes**: `.icon-size-10`, `.icon-size-11`, `.icon-size-12`, `.icon-size-13`, `.icon-size-14`, `.icon-size-15`, `.icon-size-16`, `.icon-size-18`, `.icon-size-20`, `.icon-size-22`, `.icon-size-24`
2474
- - **State**: `.icon-ring` (adds circular border with 2px width in primary color)
2485
+ - **Base**: `.vd-icon` (inline-flex container, defaults to 16px size)
2486
+ - **Sizes**: `.vd-icon-size-10`, `.vd-icon-size-11`, `.vd-icon-size-12`, `.vd-icon-size-13`, `.vd-icon-size-14`, `.vd-icon-size-15`, `.vd-icon-size-16`, `.vd-icon-size-18`, `.vd-icon-size-20`, `.vd-icon-size-22`, `.vd-icon-size-24`
2487
+ - **State**: `.vd-icon-ring` (adds circular border with 2px width in primary color)
2475
2488
  - **Layout**: Flex container with centered content, prevents squashing in flex layouts
2476
2489
  - **Color**: Inherits current text color via `currentColor`
2477
2490
  - **Stroke**: scales with size via `--icon-stroke` — see below
@@ -2513,7 +2526,7 @@ rendered pixel width:
2513
2526
  > it should be, since 14px is the smallest box that has to reach 1.25px.
2514
2527
 
2515
2528
  > **Sizing with a raw utility skips the ramp.** `.icon-size-*` carries the
2516
- > weight, so an icon sized with `w-5 h-5` instead of `.icon-size-20` keeps the
2529
+ > weight, so an icon sized with `w-5 h-5` instead of `.vd-icon-size-20` keeps the
2517
2530
  > base 1.25px-at-16px value. Set `--icon-stroke` yourself in that case.
2518
2531
 
2519
2532
  > **One symbol is exempt**: `custom-help` is the sprite's only non-24 viewBox
@@ -2523,35 +2536,35 @@ rendered pixel width:
2523
2536
 
2524
2537
  ```html
2525
2538
  <!-- Basic icon with sprite (14px - common for buttons) -->
2526
- <svg class="icon icon-size-14" aria-hidden="true">
2539
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
2527
2540
  <use href="#save" />
2528
2541
  </svg>
2529
2542
 
2530
2543
  <!-- Small icon (13px) -->
2531
- <svg class="icon icon-size-13" aria-hidden="true">
2544
+ <svg class="vd-icon vd-icon-size-13" aria-hidden="true">
2532
2545
  <use href="#search" />
2533
2546
  </svg>
2534
2547
 
2535
2548
  <!-- Icon with ring state (selected/active) -->
2536
- <svg class="icon icon-size-14 icon-ring" role="img" aria-label="Active">
2549
+ <svg class="vd-icon vd-icon-size-14 vd-icon-ring" role="img" aria-label="Active">
2537
2550
  <use href="#check" />
2538
2551
  </svg>
2539
2552
 
2540
2553
  <!-- Icon with status color -->
2541
- <svg class="icon icon-size-13 text-approved" aria-hidden="true">
2554
+ <svg class="vd-icon vd-icon-size-13 text-approved" aria-hidden="true">
2542
2555
  <use href="#check-circle" />
2543
2556
  </svg>
2544
2557
 
2545
2558
  <!-- Button with icon (see Button section above for full examples) -->
2546
- <button class="btn btn-primary">
2547
- <svg class="icon icon-size-14" aria-hidden="true">
2559
+ <button class="vd-btn vd-btn-primary">
2560
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
2548
2561
  <use href="#save" />
2549
2562
  </svg>
2550
2563
  Save Changes
2551
2564
  </button>
2552
2565
 
2553
2566
  <!-- Custom icon (prefixed with 'custom-') -->
2554
- <svg class="icon icon-size-24" aria-hidden="true">
2567
+ <svg class="vd-icon vd-icon-size-24" aria-hidden="true">
2555
2568
  <use href="#custom-valiify-logo" />
2556
2569
  </svg>
2557
2570
  ```
@@ -2569,13 +2582,13 @@ of birth. Extracted from Figma Sensitive Data (296:5303) — 2 variants on a
2569
2582
  `Checked` boolean, plus `obscuredData` / `unobscuredData` text properties and a
2570
2583
  Ring boolean.
2571
2584
 
2572
- - **Base**: `.sensitive-data` (the row, 4px gap)
2573
- - **Parts**: `.sensitive-data-value` (Caption, `Content/Primary`)
2574
- - **Slots (reused components)**: `.icon-button icon-button-md` + `.icon icon-size-14`
2575
- - **States**: `.with-ring`
2585
+ - **Base**: `.vd-sensitive-data` (the row, 4px gap)
2586
+ - **Parts**: `.vd-sensitive-data-value` (Caption, `Content/Primary`)
2587
+ - **Slots (reused components)**: `.vd-icon-button vd-icon-button-md` + `.vd-icon vd-icon-size-14`
2588
+ - **States**: `.vd-with-ring`
2576
2589
 
2577
2590
  > **The toggle is an Icon Button, not a new part.** Figma nests an 18×18 box
2578
- > around a 14px glyph, which is `.icon-button icon-button-md` down to the pixel —
2591
+ > around a 14px glyph, which is `.vd-icon-button vd-icon-button-md` down to the pixel —
2579
2592
  > including the 6px radius (`Radius/SM`) and the `Secondary/Main` glyph. Alert,
2580
2593
  > Modal and Toast reuse Icon Button the same way for their dismiss controls.
2581
2594
 
@@ -2602,34 +2615,34 @@ Ring boolean.
2602
2615
  > of error as Toast carrying Tooltip's). `Radius/XS` (4px) is bound in the
2603
2616
  > variant set but appears nowhere in the structure — the same phantom binding as
2604
2617
  > FilterSegment's. The toggle's `Spacing/6` padding cannot contain its own glyph
2605
- > (18 − 12 leaves 6px for a 14px icon), so `.icon-button-md`'s 2px is used
2618
+ > (18 − 12 leaves 6px for a 14px icon), so `.vd-icon-button-md`'s 2px is used
2606
2619
  > instead. And `Spacing/10` is set as a gap on a box with one child. All on the
2607
2620
  > designer list.
2608
2621
 
2609
2622
  ```html
2610
2623
  <!-- hidden — Figma's Checked=yes -->
2611
- <span class="sensitive-data">
2612
- <span class="sensitive-data-value">***-**-1234</span>
2624
+ <span class="vd-sensitive-data">
2625
+ <span class="vd-sensitive-data-value">***-**-1234</span>
2613
2626
  <button
2614
- class="icon-button icon-button-md"
2627
+ class="vd-icon-button vd-icon-button-md"
2615
2628
  aria-pressed="true"
2616
2629
  aria-label="Show full value"
2617
2630
  >
2618
- <svg class="icon icon-size-14" aria-hidden="true">
2631
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
2619
2632
  <use href="#eye-off" />
2620
2633
  </svg>
2621
2634
  </button>
2622
2635
  </span>
2623
2636
 
2624
2637
  <!-- revealed — Checked=no -->
2625
- <span class="sensitive-data">
2626
- <span class="sensitive-data-value">123-12-1234</span>
2638
+ <span class="vd-sensitive-data">
2639
+ <span class="vd-sensitive-data-value">123-12-1234</span>
2627
2640
  <button
2628
- class="icon-button icon-button-md"
2641
+ class="vd-icon-button vd-icon-button-md"
2629
2642
  aria-pressed="false"
2630
2643
  aria-label="Hide value"
2631
2644
  >
2632
- <svg class="icon icon-size-14" aria-hidden="true"><use href="#eye" /></svg>
2645
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#eye" /></svg>
2633
2646
  </button>
2634
2647
  </span>
2635
2648
  ```
@@ -2640,29 +2653,29 @@ One labelled field in a review panel: field name, value, verification status,
2640
2653
  and actions that appear on hover. Extracted from Figma Data Row (165:678) — 4
2641
2654
  variants across `Hover` × `Icon`, plus `comment`, `help` and `ring` booleans.
2642
2655
 
2643
- - **Base**: `.data-row` (38px, 16px column gap)
2644
- - **Columns**: `.data-row-field` (200px, truncating), `.data-row-value` (400px)
2645
- - **Slot modifier**: `.data-row-status` — additive, stretches the Field Verification slot
2646
- - **Actions**: `.data-row-action` — additive on an Icon Button, revealed on hover/focus
2647
- - **States**: `:hover`, `.with-ring`
2648
- - **Slots (reused components)**: `.field-verification`, `.sensitive-data`, `.icon-button icon-button-md`
2656
+ - **Base**: `.vd-data-row` (38px, 16px column gap)
2657
+ - **Columns**: `.vd-data-row-field` (200px, truncating), `.vd-data-row-value` (400px)
2658
+ - **Slot modifier**: `.vd-data-row-status` — additive, stretches the Field Verification slot
2659
+ - **Actions**: `.vd-data-row-action` — additive on an Icon Button, revealed on hover/focus
2660
+ - **States**: `:hover`, `.vd-with-ring`
2661
+ - **Slots (reused components)**: `.vd-field-verification`, `.vd-sensitive-data`, `.vd-icon-button vd-icon-button-md`
2649
2662
 
2650
2663
  > **This component is mostly composition.** Figma builds it from three components
2651
2664
  > we already ship, and so does the CSS — nothing is rebuilt. The status column is
2652
- > `.field-verification field-verification-verified` (an exact match: 7px gap, 16px
2665
+ > `.vd-field-verification vd-field-verification-verified` (an exact match: 7px gap, 16px
2653
2666
  > Section Marker, 14px `#check` in `Approved/Main`, Caption label); the `Icon=yes`
2654
- > value is a literal `.sensitive-data` instance; the trailing actions are
2655
- > `.icon-button icon-button-md`. Only four classes are new, three of which carry
2667
+ > value is a literal `.vd-sensitive-data` instance; the trailing actions are
2668
+ > `.vd-icon-button vd-icon-button-md`. Only four classes are new, three of which carry
2656
2669
  > nothing but column geometry.
2657
2670
 
2658
- > **`.data-row-status` is an additive class, not a wrapper.** Figma stretches its
2659
- > Field Verification instance to `flex-1`, which `.field-verification` does not do
2671
+ > **`.vd-data-row-status` is an additive class, not a wrapper.** Figma stretches its
2672
+ > Field Verification instance to `flex-1`, which `.vd-field-verification` does not do
2660
2673
  > on its own. Rather than a descendant selector reaching into another component —
2661
2674
  > the mistake DropdownField's avatar sizing made and had retired — it ships as a
2662
- > modifier you add alongside, the same shape as `.segment-selector-fill`.
2675
+ > modifier you add alongside, the same shape as `.vd-segment-selector-fill`.
2663
2676
 
2664
2677
  > **The Sensitive Data type override is Data Row's, not the caller's.**
2665
- > Standalone, `.sensitive-data-value` is `Body Content/Caption` (12/18). Inside a
2678
+ > Standalone, `.vd-sensitive-data-value` is `Body Content/Caption` (12/18). Inside a
2666
2679
  > Data Row, Figma overrides it to `Body 2` (12.5/12.5) so it lines up with the
2667
2680
  > field label. That is a fixed fact of the composition rather than a per-instance
2668
2681
  > choice, so it is scoped in `data-row.css` — and it has to be, because a utility
@@ -2693,28 +2706,28 @@ variants across `Hover` × `Icon`, plus `comment`, `help` and `ring` booleans.
2693
2706
  > 828 and Pagination's 1208. A data row spans its table.
2694
2707
 
2695
2708
  ```html
2696
- <div class="data-row">
2697
- <span class="data-row-field">First Name</span>
2698
- <span class="data-row-value">John</span>
2709
+ <div class="vd-data-row">
2710
+ <span class="vd-data-row-field">First Name</span>
2711
+ <span class="vd-data-row-value">John</span>
2699
2712
 
2700
- <span class="field-verification field-verification-verified data-row-status">
2713
+ <span class="vd-field-verification vd-field-verification-verified vd-data-row-status">
2701
2714
  <span
2702
- class="section-marker section-marker-approve"
2715
+ class="vd-section-marker vd-section-marker-approve"
2703
2716
  role="img"
2704
2717
  aria-label="Verified"
2705
2718
  >
2706
- <svg class="icon icon-size-14" aria-hidden="true">
2719
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
2707
2720
  <use href="#check" />
2708
2721
  </svg>
2709
2722
  </span>
2710
- <span class="field-verification-label">Matches Plaid KYC</span>
2723
+ <span class="vd-field-verification-label">Matches Plaid KYC</span>
2711
2724
  </span>
2712
2725
 
2713
2726
  <button
2714
- class="icon-button icon-button-md data-row-action"
2727
+ class="vd-icon-button vd-icon-button-md vd-data-row-action"
2715
2728
  aria-label="Field help"
2716
2729
  >
2717
- <svg class="icon icon-size-14" aria-hidden="true">
2730
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
2718
2731
  <use href="#circle-question-mark" />
2719
2732
  </svg>
2720
2733
  </button>
@@ -2727,11 +2740,11 @@ A native checkbox with a label, plus optional mono subtitle and trailing action.
2727
2740
  Extracted from Figma Checkbox (108:607) — 4 variants across `Active` × `Hover` ×
2728
2741
  `Disabled`, plus `label`, `subtitle`, `icon` and `ring` booleans.
2729
2742
 
2730
- - **Base**: `.checkbox` (a `<label>`, 9px gap)
2731
- - **Control**: `.checkbox-control` (15px positioning box), `.checkbox-input`, `.checkbox-check`
2732
- - **Parts**: `.checkbox-label`, `.checkbox-subtitle`
2733
- - **Slots (reused components)**: `.icon-button icon-button-md`
2734
- - **States**: `:hover`, `:checked`, `:focus-visible`, `:disabled`, `.with-ring`
2743
+ - **Base**: `.vd-checkbox` (a `<label>`, 9px gap)
2744
+ - **Control**: `.vd-checkbox-control` (15px positioning box), `.vd-checkbox-input`, `.vd-checkbox-check`
2745
+ - **Parts**: `.vd-checkbox-label`, `.vd-checkbox-subtitle`
2746
+ - **Slots (reused components)**: `.vd-icon-button vd-icon-button-md`
2747
+ - **States**: `:hover`, `:checked`, `:focus-visible`, `:disabled`, `.vd-with-ring`
2735
2748
 
2736
2749
  | State | box |
2737
2750
  | ------------------ | -------------------------------------------------------------- |
@@ -2756,7 +2769,7 @@ Extracted from Figma Checkbox (108:607) — 4 variants across `Active` × `Hover
2756
2769
  > **The checkmark is the sprite glyph, which is why there is a wrapper.** Figma
2757
2770
  > draws Lucide `check` at 10px. A pseudo-element cannot render
2758
2771
  > `<use href="#check">`, and a CSS-drawn tick would not be the same mark, so
2759
- > `.checkbox-control` exists purely to give the input and the glyph a shared 15px
2772
+ > `.vd-checkbox-control` exists purely to give the input and the glyph a shared 15px
2760
2773
  > positioning context. RadioSelect needs no wrapper because its inner mark is a
2761
2774
  > plain circle it can draw with `::before`.
2762
2775
 
@@ -2790,32 +2803,32 @@ Extracted from Figma Checkbox (108:607) — 4 variants across `Active` × `Hover
2790
2803
  > Sensitive Data's and Data Row's.
2791
2804
 
2792
2805
  ```html
2793
- <label class="checkbox">
2794
- <span class="checkbox-control">
2795
- <input type="checkbox" class="checkbox-input" />
2796
- <svg class="checkbox-check icon icon-size-10" aria-hidden="true">
2806
+ <label class="vd-checkbox">
2807
+ <span class="vd-checkbox-control">
2808
+ <input type="checkbox" class="vd-checkbox-input" />
2809
+ <svg class="vd-checkbox-check vd-icon vd-icon-size-10" aria-hidden="true">
2797
2810
  <use href="#check" />
2798
2811
  </svg>
2799
2812
  </span>
2800
- <span class="checkbox-label">Content</span>
2813
+ <span class="vd-checkbox-label">Content</span>
2801
2814
  </label>
2802
2815
 
2803
2816
  <!-- with the subtitle and trailing-action booleans -->
2804
- <label class="checkbox">
2805
- <span class="checkbox-control">
2806
- <input type="checkbox" class="checkbox-input" checked />
2807
- <svg class="checkbox-check icon icon-size-10" aria-hidden="true">
2817
+ <label class="vd-checkbox">
2818
+ <span class="vd-checkbox-control">
2819
+ <input type="checkbox" class="vd-checkbox-input" checked />
2820
+ <svg class="vd-checkbox-check vd-icon vd-icon-size-10" aria-hidden="true">
2808
2821
  <use href="#check" />
2809
2822
  </svg>
2810
2823
  </span>
2811
- <span class="checkbox-label">Beneficial owner</span>
2812
- <span class="checkbox-subtitle">TYPE</span>
2824
+ <span class="vd-checkbox-label">Beneficial owner</span>
2825
+ <span class="vd-checkbox-subtitle">TYPE</span>
2813
2826
  <button
2814
2827
  type="button"
2815
- class="icon-button icon-button-md"
2828
+ class="vd-icon-button vd-icon-button-md"
2816
2829
  aria-label="Open beneficial owner"
2817
2830
  >
2818
- <svg class="icon icon-size-14" aria-hidden="true">
2831
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
2819
2832
  <use href="#chevron-right" />
2820
2833
  </svg>
2821
2834
  </button>
@@ -2829,9 +2842,9 @@ previewing page structure and preventing layout shift. Extracted from Figma
2829
2842
  Skeleton (1063:24034) — 15 variants across `Shape` × `Size` — with a written
2830
2843
  usage spec at 1081:1986.
2831
2844
 
2832
- - **Base**: `.skeleton` (fill + motion only — no dimensions)
2833
- - **Shapes**: `.skeleton-line`, `.skeleton-heading`, `.skeleton-circle`, `.skeleton-rectangle`, `.skeleton-button`
2834
- - **Sizes**: `.skeleton-sm`, `.skeleton-md`, `.skeleton-lg`
2845
+ - **Base**: `.vd-skeleton` (fill + motion only — no dimensions)
2846
+ - **Shapes**: `.vd-skeleton-line`, `.vd-skeleton-heading`, `.vd-skeleton-circle`, `.vd-skeleton-rectangle`, `.vd-skeleton-button`
2847
+ - **Sizes**: `.vd-skeleton-sm`, `.vd-skeleton-md`, `.vd-skeleton-lg`
2835
2848
 
2836
2849
  **Both a shape and a size class are required.** Neither axis has a default in
2837
2850
  Figma, and the dimensions are a 5×3 matrix rather than one box with three
@@ -2854,7 +2867,7 @@ scales — a Line SM is 120×12 while a Circle SM is 32×32.
2854
2867
  > "stretch instances with fill in auto-layout to match real content widths",
2855
2868
  > while "heights should generally stay close to defaults to match the replaced
2856
2869
  > element". A consumer utility beats a component class under our layer order, so
2857
- > `class="skeleton skeleton-line skeleton-md w-full"` just works.
2870
+ > `class="vd-skeleton vd-skeleton-line vd-skeleton-md w-full"` just works.
2858
2871
 
2859
2872
  > **The animation is a pulse, and Figma specifies it precisely** — unusually,
2860
2873
  > since it draws no motion itself ("Animation is handled in code, not in Figma"):
@@ -2884,7 +2897,7 @@ scales — a Line SM is 120×12 while a Circle SM is 32×32.
2884
2897
 
2885
2898
  > **Accessibility: the skeleton is decorative, and this is a library decision** —
2886
2899
  > Figma specifies nothing. A screen reader announcing five grey boxes is worse
2887
- > than silence, so each `.skeleton` takes `aria-hidden="true"` and the
2900
+ > than silence, so each `.vd-skeleton` takes `aria-hidden="true"` and the
2888
2901
  > **container** carries `role="status"`, `aria-busy="true"` and a label: one clear
2889
2902
  > "Loading…" instead of N meaningless nodes. That differs from LoadingIndicator,
2890
2903
  > where the spinner _is_ the announcement and carries `role="status"` itself.
@@ -2901,14 +2914,14 @@ scales — a Line SM is 120×12 while a Circle SM is 32×32.
2901
2914
 
2902
2915
  ```html
2903
2916
  <div role="status" aria-busy="true" aria-label="Loading profile">
2904
- <span class="skeleton skeleton-circle skeleton-lg" aria-hidden="true"></span>
2905
- <span class="skeleton skeleton-heading skeleton-lg" aria-hidden="true"></span>
2906
- <span class="skeleton skeleton-line skeleton-md" aria-hidden="true"></span>
2917
+ <span class="vd-skeleton vd-skeleton-circle vd-skeleton-lg" aria-hidden="true"></span>
2918
+ <span class="vd-skeleton vd-skeleton-heading vd-skeleton-lg" aria-hidden="true"></span>
2919
+ <span class="vd-skeleton vd-skeleton-line vd-skeleton-md" aria-hidden="true"></span>
2907
2920
  </div>
2908
2921
 
2909
2922
  <!-- widths stretch; heights stay near the defaults -->
2910
2923
  <span
2911
- class="skeleton skeleton-line skeleton-md w-full"
2924
+ class="vd-skeleton vd-skeleton-line vd-skeleton-md w-full"
2912
2925
  aria-hidden="true"
2913
2926
  ></span>
2914
2927
  ```
@@ -2917,29 +2930,29 @@ scales — a Line SM is 120×12 while a Circle SM is 32×32.
2917
2930
 
2918
2931
  The sidebar family. Four sub-components in one file, composed together to build
2919
2932
  the rail. **The rail container's own Figma reference has not been extracted yet**
2920
- — `.nav-rail` is layout-only scaffolding (a flex column) and deliberately
2933
+ — `.vd-nav-rail` is layout-only scaffolding (a flex column) and deliberately
2921
2934
  declares no width, padding, surface or border until that spec arrives.
2922
2935
 
2923
- - **Container**: `.nav-rail` (provisional — see above)
2936
+ - **Container**: `.vd-nav-rail` (provisional — see above)
2924
2937
  - **Sub-components**:
2925
- - `.nav-title` — 46px header. Parts: `.nav-title-logo` (30px tile, put your own
2926
- `<img>`/`<svg>` inside), `.nav-title-details`, `.nav-title-name`,
2927
- `.nav-title-subtitle`, `.nav-title-action` (18px hit box)
2928
- - `.nav-group` — 26px group header. Parts: `.nav-group-label`,
2929
- `.nav-group-chevron`, `.nav-group-rule` (the collapsed-rail divider)
2930
- - `.nav-item` — 32px row. Parts: `.nav-item-icon` (16px),
2931
- `.nav-item-label`, `.nav-item-count` (mono), `.nav-item-status` (5px dot)
2932
- - `.nav-badge` — 14px "Beta" pill; slots inside a nav item
2933
- - **Collapsed rail**: `.nav-title-collapsed`, `.nav-group-collapsed`,
2934
- `.nav-item-collapsed` — per-part for now, so each is independently renderable
2938
+ - `.vd-nav-title` — 46px header. Parts: `.vd-nav-title-logo` (30px tile, put your own
2939
+ `<img>`/`<svg>` inside), `.vd-nav-title-details`, `.vd-nav-title-name`,
2940
+ `.vd-nav-title-subtitle`, `.vd-nav-title-action` (18px hit box)
2941
+ - `.vd-nav-group` — 26px group header. Parts: `.vd-nav-group-label`,
2942
+ `.vd-nav-group-chevron`, `.vd-nav-group-rule` (the collapsed-rail divider)
2943
+ - `.vd-nav-item` — 32px row. Parts: `.vd-nav-item-icon` (16px),
2944
+ `.vd-nav-item-label`, `.vd-nav-item-count` (mono), `.vd-nav-item-status` (5px dot)
2945
+ - `.vd-nav-badge` — 14px "Beta" pill; slots inside a nav item
2946
+ - **Collapsed rail**: `.vd-nav-title-collapsed`, `.vd-nav-group-collapsed`,
2947
+ `.vd-nav-item-collapsed` — per-part for now, so each is independently renderable
2935
2948
  and verifiable. A rail-level switch should drive them once the rail lands.
2936
2949
  - **Nav item states**: `:hover`, `:active`, `:focus-visible`,
2937
- `[aria-current="page"]` (current page, blue), `.nav-item-active` (ancestor
2950
+ `[aria-current="page"]` (current page, blue), `.vd-nav-item-active` (ancestor
2938
2951
  section, grey), `:disabled` / `[aria-disabled="true"]`
2939
- - **Group disclosure**: `aria-expanded` on the `.nav-group` button rotates the
2952
+ - **Group disclosure**: `aria-expanded` on the `.vd-nav-group` button rotates the
2940
2953
  chevron **and hides the rows it controls**. Two markup shapes work:
2941
- `.nav-group` + `.nav-rail-items` (recommended — the wrapper gives
2942
- `aria-controls` a target), or flat `.nav-group ~ .nav-item` siblings.
2954
+ `.vd-nav-group` + `.vd-nav-rail-items` (recommended — the wrapper gives
2955
+ `aria-controls` a target), or flat `.vd-nav-group ~ .vd-nav-item` siblings.
2943
2956
  Deliberately **inert in a collapsed rail**, where the header is a bare rule
2944
2957
  with no chevron: hiding rows there would strand them with no way back.
2945
2958
 
@@ -2960,14 +2973,14 @@ declares no width, padding, surface or border until that spec arrives.
2960
2973
  > Because the header is a real `<button>` with `aria-controls`, Enter/Space and
2961
2974
  > screen-reader state announcement come for free. Verified both keys work.
2962
2975
 
2963
- > **Give the rail a height.** `.nav-rail` is `h-full` (`height: 100%`), so in an
2976
+ > **Give the rail a height.** `.vd-nav-rail` is `h-full` (`height: 100%`), so in an
2964
2977
  > auto-height parent it resolves to content height (measured: 64px for a two-row
2965
2978
  > rail) and `justify-between` has no slack — the footer stops being
2966
2979
  > bottom-pinned. Put it in an `h-screen` wrapper, a grid row, or a sized flex
2967
2980
  > parent.
2968
2981
 
2969
2982
  > **Keep the label and details in the DOM when collapsed.** They are `sr-only`,
2970
- > not removed. `.nav-item-label`, `.nav-item-count` and `.nav-title-details` are
2983
+ > not removed. `.vd-nav-item-label`, `.vd-nav-item-count` and `.vd-nav-title-details` are
2971
2984
  > what give those links their accessible names — omit them and you ship
2972
2985
  > anonymous links in the tab order. Before this was fixed, axe found **16 of 21
2973
2986
  > focusable nodes in the collapsed rail with no accessible name**.
@@ -2976,9 +2989,9 @@ declares no width, padding, surface or border until that spec arrives.
2976
2989
  > **"Passive" is the blue current-page look** (`Primary/Soft` + `Primary/Main`)
2977
2990
  > and **"Active" is a neutral grey highlight** (`Action/Selected` +
2978
2991
  > `Content/Primary`). Mapped here to what they describe — `aria-current="page"`
2979
- > for the page you are on, `.nav-item-active` for the section containing it.
2992
+ > for the page you are on, `.vd-nav-item-active` for the section containing it.
2980
2993
  > That pairing is a **reading**, not a fact from the file; confirm
2981
- > `.nav-item-active` with the designer before relying on it.
2994
+ > `.vd-nav-item-active` with the designer before relying on it.
2982
2995
 
2983
2996
  > **The group chevron is hover-only in Figma.** In the standalone component that
2984
2997
  > makes the row grow 58 → 77px on pointer enter. **Inside the rail it does not
@@ -2992,10 +3005,10 @@ than silently corrected:
2992
3005
 
2993
3006
  | Finding | What we did |
2994
3007
  | --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2995
- | Nav Badge declares `micro` / `md` sizes that are **pixel-identical** | Ship one `.nav-badge`. No size modifiers — synonyms would encode a distinction the design does not make. |
3008
+ | Nav Badge declares `micro` / `md` sizes that are **pixel-identical** | Ship one `.vd-nav-badge`. No size modifiers — synonyms would encode a distinction the design does not make. |
2996
3009
  | Collapsed group is **38.5px** wide (8 + a raw 22.5px rule + 8), which does not line up with the 44px collapsed nav item beside it | Reproduced at 38.5px; flagged as a suspected authoring artefact. |
2997
3010
  | Collapsed Nav Title frame is **44px** but its contents measure 46 (8 + 30 + 8) | Width held at Figma's 44, padding tightened to 7px so the tile fits. |
2998
- | Status dot exists **only on the collapsed** nav item, though the description mentions a status indicator | Available in both, in **three colours** — Neutral/Main default, `.nav-item-status-warning`, `.nav-item-status-primary` — since the composed rail uses all three. |
3011
+ | Status dot exists **only on the collapsed** nav item, though the description mentions a status indicator | Available in both, in **three colours** — Neutral/Main default, `.vd-nav-item-status-warning`, `.vd-nav-item-status-primary` — since the composed rail uses all three. |
2999
3012
  | Collapsed Nav Group hugs to that **38.5px** half-pixel standalone | **Resolved by the rail spec**: inside the rail all three headers are set to fill, rendering 44px like everything else. 38.5 was only ever the hug width of a component nobody uses standalone. |
3000
3013
 
3001
3014
  **Audit findings (2026-08-27).** Reviewed with axe-core 4.13 over all 11 nav
@@ -3006,8 +3019,8 @@ for focus, and the 89-check visual spec.
3006
3019
  | --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
3007
3020
  | Group disclosure rotated the chevron but **did not hide the rows** — a disclosure control that disclosed nothing | **Fixed.** Rows now hide, in both markup shapes. |
3008
3021
  | Collapsed rail: **16 of 21 focusable nodes had no accessible name** (`display:none` on the only text of each link) | **Fixed.** Labels/counts/details are `sr-only`, not hidden. Re-measured: 0 unnamed. |
3009
- | Collapsed rail: `.nav-badge` stayed visible, rendering 30.4px in a 44px row — **7px overflow** (scrollWidth 51 vs 44) | **Fixed.** Dropped when collapsed, as Figma does. |
3010
- | `.nav-group-label` and `.nav-item-count` are **Content/Tertiary**, which fails WCAG AA on two of four surfaces | **Open — designer.** See below. |
3022
+ | Collapsed rail: `.vd-nav-badge` stayed visible, rendering 30.4px in a 44px row — **7px overflow** (scrollWidth 51 vs 44) | **Fixed.** Dropped when collapsed, as Figma does. |
3023
+ | `.vd-nav-group-label` and `.vd-nav-item-count` are **Content/Tertiary**, which fails WCAG AA on two of four surfaces | **Open — designer.** See below. |
3011
3024
  | Chevron is hover-only, so touch users get no disclosure affordance | **Open — designer.** Mitigated: rows hiding now signals state, and `:focus-visible` covers keyboard. |
3012
3025
 
3013
3026
  Everything else passed: focus rings are Primary/Main at 2px on all three
@@ -3038,58 +3051,58 @@ And two text styles are named "- Bold" while resolving to Medium/500
3038
3051
  (`Body 1 - Bold`, `Micro L - Bold`); 500 is what ships.
3039
3052
 
3040
3053
  ```html
3041
- <nav class="nav-rail">
3042
- <a href="#" class="nav-title">
3043
- <span class="nav-title-logo"><img src="/logo.svg" alt="" /></span>
3044
- <span class="nav-title-details">
3045
- <span class="nav-title-name">Central Williamette</span>
3046
- <span class="nav-title-subtitle">Main st branch</span>
3054
+ <nav class="vd-nav-rail">
3055
+ <a href="#" class="vd-nav-title">
3056
+ <span class="vd-nav-title-logo"><img src="/logo.svg" alt="" /></span>
3057
+ <span class="vd-nav-title-details">
3058
+ <span class="vd-nav-title-name">Central Williamette</span>
3059
+ <span class="vd-nav-title-subtitle">Main st branch</span>
3047
3060
  </span>
3048
- <span class="nav-title-action">
3049
- <svg class="icon icon-size-14" aria-hidden="true">
3061
+ <span class="vd-nav-title-action">
3062
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
3050
3063
  <use href="#chevron-down" />
3051
3064
  </svg>
3052
3065
  </span>
3053
3066
  </a>
3054
3067
 
3055
3068
  <!-- Current page — Figma calls this "Passive" -->
3056
- <a href="#" class="nav-item" aria-current="page">
3057
- <svg class="nav-item-icon icon icon-size-16" aria-hidden="true">
3069
+ <a href="#" class="vd-nav-item" aria-current="page">
3070
+ <svg class="vd-nav-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
3058
3071
  <use href="#inbox" />
3059
3072
  </svg>
3060
- <span class="nav-item-label">Inbox</span>
3061
- <span class="nav-item-count">41</span>
3073
+ <span class="vd-nav-item-label">Inbox</span>
3074
+ <span class="vd-nav-item-count">41</span>
3062
3075
  </a>
3063
3076
 
3064
3077
  <!-- Group header; chevron only appears on hover -->
3065
- <button class="nav-group" aria-expanded="true">
3066
- <span class="nav-group-label">Analyze</span>
3067
- <svg class="nav-group-chevron icon icon-size-16" aria-hidden="true">
3078
+ <button class="vd-nav-group" aria-expanded="true">
3079
+ <span class="vd-nav-group-label">Analyze</span>
3080
+ <svg class="vd-nav-group-chevron vd-icon vd-icon-size-16" aria-hidden="true">
3068
3081
  <use href="#chevron-down" />
3069
3082
  </svg>
3070
3083
  </button>
3071
3084
 
3072
3085
  <!-- Ancestor section — Figma calls this "Active" -->
3073
- <a href="#" class="nav-item nav-item-active">
3074
- <svg class="nav-item-icon icon icon-size-16" aria-hidden="true">
3086
+ <a href="#" class="vd-nav-item vd-nav-item-active">
3087
+ <svg class="vd-nav-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
3075
3088
  <use href="#users" />
3076
3089
  </svg>
3077
- <span class="nav-item-label">Businesses</span>
3078
- <span class="nav-badge">Beta</span>
3090
+ <span class="vd-nav-item-label">Businesses</span>
3091
+ <span class="vd-nav-badge">Beta</span>
3079
3092
  </a>
3080
3093
  </nav>
3081
3094
 
3082
3095
  <!-- Collapsed rail: same markup, plus the -collapsed classes -->
3083
- <nav class="nav-rail">
3084
- <div class="nav-group nav-group-collapsed">
3085
- <span class="nav-group-rule"></span>
3096
+ <nav class="vd-nav-rail">
3097
+ <div class="vd-nav-group vd-nav-group-collapsed">
3098
+ <span class="vd-nav-group-rule"></span>
3086
3099
  </div>
3087
- <a href="#" class="nav-item nav-item-collapsed">
3088
- <svg class="nav-item-icon icon icon-size-16" aria-hidden="true">
3100
+ <a href="#" class="vd-nav-item vd-nav-item-collapsed">
3101
+ <svg class="vd-nav-item-icon vd-icon vd-icon-size-16" aria-hidden="true">
3089
3102
  <use href="#bell" />
3090
3103
  </svg>
3091
- <span class="nav-item-label">Alerts</span>
3092
- <span class="nav-item-status"></span>
3104
+ <span class="vd-nav-item-label">Alerts</span>
3105
+ <span class="vd-nav-item-status"></span>
3093
3106
  </a>
3094
3107
  </nav>
3095
3108
  ```
@@ -3292,7 +3305,7 @@ every style with its spec. Recorded in `tokens/figma-tokens.json` under
3292
3305
  `Label S Sans`. If a token looks wrong, check for a name collision first.
3293
3306
  - ~~`Body & Supporting/Help & Caption` is applied to component layers but
3294
3307
  absent from the Text Preview section~~ — **resolved 2026-08-23**: Modal
3295
- (908:1580) applies it to `.modal-description`, so it is current.
3308
+ (908:1580) applies it to `.vd-modal-description`, so it is current.
3296
3309
  - `--radius-micro` and `--radius-tight` role names are provisional.
3297
3310
  - Component **horizontal** padding is still inferred; heights are now exact.
3298
3311
 
@@ -3307,13 +3320,17 @@ npm install @valiify/dashboard-ui tailwindcss
3307
3320
  CSS-only — there is no Tailwind plugin to register, and no `tailwind.config.js`.
3308
3321
  **Two supported entry points**, and the difference is load-bearing:
3309
3322
 
3310
- | Entry | You get | You do NOT get |
3311
- | ---------------------------------- | ------------------------------------------------------------------- | ----------------------- |
3312
- | `@valiify/dashboard-ui` (prebuilt) | component classes + tokens as CSS custom properties | token-derived utilities |
3313
- | `@valiify/dashboard-ui/source` | the above **plus** `bg-approved`, `rounded-pill`, `type-label-l`, … | — |
3323
+ | Entry | You get | You do NOT get |
3324
+ | --------------------------------------- | --------------------------------------------------------------------------------- | ---------------------------------- |
3325
+ | `@valiify/dashboard-ui` (prebuilt) | `.vd-*` classes + tokens as CSS custom properties, **plus Preflight and an `html` rule** | token-derived utilities |
3326
+ | `@valiify/dashboard-ui/styles.css` | `.vd-*` classes + tokens + a **closed** `vd:` utility set, **no Preflight, no `html` rule** | utilities outside the closed set |
3327
+ | `@valiify/dashboard-ui/source` | the classes **plus** every token utility — `bg-approved`, `rounded-pill`, `type-label-l`, … | — |
3314
3328
 
3315
3329
  ```css
3316
- /* prebuilt */
3330
+ /* into a host app that already has a reset (Tailwind 3 + daisyUI, etc.) */
3331
+ @import "@valiify/dashboard-ui/styles.css"; /* FIRST — CSS discards a later @import */
3332
+
3333
+ /* standalone page, our Preflight is welcome */
3317
3334
  @import "tailwindcss";
3318
3335
  @import "@valiify/dashboard-ui";
3319
3336
 
@@ -3322,6 +3339,25 @@ CSS-only — there is no Tailwind plugin to register, and no `tailwind.config.js
3322
3339
  @import "@valiify/dashboard-ui/source";
3323
3340
  ```
3324
3341
 
3342
+ > **`.` is not host-safe, and that is deliberate.** `dist/index.css` ships full
3343
+ > Tailwind Preflight plus `html { color; background-color }`. Dropped into an app
3344
+ > that has its own reset it zeroes every element's margin, padding and border and
3345
+ > repaints the page. `./styles.css` is the same components with neither, built by
3346
+ > `scripts/build-styles.mjs` as a separate artifact. `verify:bundle` asserts the
3347
+ > absence of both, and `verify:package` re-asserts it on the packed tarball.
3348
+
3349
+ > **The `vd:` utility set is CLOSED.** It is generated from
3350
+ > `design-methodology/dashboard.md` by `build-utility-surface.mjs` — whatever the
3351
+ > methodology does not cite is not emitted, so a page using it renders unstyled
3352
+ > with nothing failing. Add the utility to the methodology, rebuild, and it ships.
3353
+ > Consumers on `./source` are unaffected; they compile their own.
3354
+
3355
+ > **Custom utilities differ between the two.** `focus-ring` and the six
3356
+ > `type-label-*` are `@apply`-inlined, so they never appear as classes in a bundle.
3357
+ > On `./source` you can write all seven unprefixed. On `./styles.css` you get only
3358
+ > `vd:focus-ring`, `vd:type-label-l-bold` and `vd:type-label-s-bold` — the three the
3359
+ > methodology cites. `class-manifest.json` records both lists.
3360
+
3325
3361
  `./source` maps to [src/library.css](src/library.css), which deliberately omits
3326
3362
  `@import "tailwindcss"` so the consumer's config stays in charge. Verified against
3327
3363
  a real packed install that our internal `source(none)` does not disable a
@@ -3358,9 +3394,14 @@ Completed:
3358
3394
  - ✅ Component generator (`npm run new:component`)
3359
3395
  - ✅ Storybook 10 with interactive documentation
3360
3396
  - ✅ TypeScript definitions
3361
- - ✅ Four verification gates — `audit`, `verify:component`, `verify:layers`,
3362
- `verify:visual` — all wired into CI
3363
- ([.github/workflows/ci.yml](.github/workflows/ci.yml))
3397
+ - ✅ **Nine verification gates**, eight wired into CI
3398
+ ([.github/workflows/ci.yml](.github/workflows/ci.yml)): `build:theme:check`,
3399
+ `verify:layers`, `verify:vocabulary`, `verify:bundle`, `verify:markup`,
3400
+ `verify:package`, `audit`, `verify:component`, `verify:visual`.
3401
+ `verify:a11y` exists and is deliberately **not** wired — it reports 182
3402
+ pre-existing violation groups, identical to a pre-rename baseline, dominated by
3403
+ the designer-blocked `Content/Tertiary` contrast pair. Wiring a permanently red
3404
+ gate trains people to ignore it; wire it when the token decision lands.
3364
3405
 
3365
3406
  Pending:
3366
3407
 
@@ -3438,7 +3479,7 @@ size — which has now happened four times:
3438
3479
  | ----------------------------------------------------------------------------------------- | -------------------- |
3439
3480
  | Rendered 1–2px oversized (`min-height` + a hairline Chrome rounds to 1px) | Input, DropdownField |
3440
3481
  | `sm` and `md` shipped the wrong text style — the three sizes are three styles, not one | Button |
3441
- | `.with-ring` was outset in the variant's own colour; Figma has it inset in `Primary/Main` | Chip |
3482
+ | `.vd-with-ring` was outset in the variant's own colour; Figma has it inset in `Primary/Main` | Chip |
3442
3483
  | Disabled faded the whole button with `opacity-50` instead of using `Secondary/Disabled` | IconButton |
3443
3484
 
3444
3485
  - Expected values live in [scripts/visual-specs.mjs](scripts/visual-specs.mjs);