@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
@@ -51,7 +51,7 @@ CSS classes that enforce consistent sizing:
51
51
  **Every icon in the system uses this exact pattern:**
52
52
 
53
53
  ```html
54
- <svg class="icon icon-size-20" aria-hidden="true">
54
+ <svg class="vd-icon vd-icon-size-20" aria-hidden="true">
55
55
  <use href="#icon-name" />
56
56
  </svg>
57
57
  ```
@@ -86,7 +86,7 @@ CSS classes that enforce consistent sizing:
86
86
  ### Basic Icon
87
87
  ```html
88
88
  <!-- Standalone icon -->
89
- <svg class="icon icon-size-20" aria-hidden="true">
89
+ <svg class="vd-icon vd-icon-size-20" aria-hidden="true">
90
90
  <use href="#search" />
91
91
  </svg>
92
92
  ```
@@ -94,16 +94,16 @@ CSS classes that enforce consistent sizing:
94
94
  ### Icon in Button
95
95
  ```html
96
96
  <!-- Icon with text label -->
97
- <button class="btn btn-primary">
98
- <svg class="icon icon-size-14" aria-hidden="true">
97
+ <button class="vd-btn vd-btn-primary">
98
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
99
99
  <use href="#save" />
100
100
  </svg>
101
101
  Save Changes
102
102
  </button>
103
103
 
104
104
  <!-- Icon-only button (requires aria-label) -->
105
- <button class="btn btn-outline" aria-label="Close">
106
- <svg class="icon icon-size-13" aria-hidden="true">
105
+ <button class="vd-btn vd-btn-outline" aria-label="Close">
106
+ <svg class="vd-icon vd-icon-size-13" aria-hidden="true">
107
107
  <use href="#x" />
108
108
  </svg>
109
109
  </button>
@@ -112,7 +112,7 @@ CSS classes that enforce consistent sizing:
112
112
  ### Icon with Ring State (Selected)
113
113
  ```html
114
114
  <!-- Active/selected icon with circular border -->
115
- <svg class="icon icon-size-20 icon-ring" role="img" aria-label="Selected">
115
+ <svg class="vd-icon vd-icon-size-20 vd-icon-ring" role="img" aria-label="Selected">
116
116
  <use href="#check" />
117
117
  </svg>
118
118
  ```
@@ -120,17 +120,17 @@ CSS classes that enforce consistent sizing:
120
120
  ### Icon with Status Color
121
121
  ```html
122
122
  <!-- Success icon -->
123
- <svg class="icon icon-size-16 text-approved" aria-hidden="true">
123
+ <svg class="vd-icon vd-icon-size-16 text-approved" aria-hidden="true">
124
124
  <use href="#check-circle" />
125
125
  </svg>
126
126
 
127
127
  <!-- Error icon -->
128
- <svg class="icon icon-size-16 text-critical" aria-hidden="true">
128
+ <svg class="vd-icon vd-icon-size-16 text-critical" aria-hidden="true">
129
129
  <use href="#x-circle" />
130
130
  </svg>
131
131
 
132
132
  <!-- Warning icon -->
133
- <svg class="icon icon-size-16 text-warning" aria-hidden="true">
133
+ <svg class="vd-icon vd-icon-size-16 text-warning" aria-hidden="true">
134
134
  <use href="#alert-circle" />
135
135
  </svg>
136
136
  ```
@@ -138,7 +138,7 @@ CSS classes that enforce consistent sizing:
138
138
  ### Custom Icon
139
139
  ```html
140
140
  <!-- Custom icons are prefixed with 'custom-' -->
141
- <svg class="icon icon-size-24" aria-hidden="true">
141
+ <svg class="vd-icon vd-icon-size-24" aria-hidden="true">
142
142
  <use href="#custom-valiify-logo" />
143
143
  </svg>
144
144
  ```
@@ -151,24 +151,24 @@ CSS classes that enforce consistent sizing:
151
151
 
152
152
  ```html
153
153
  <!-- Small button (13px icons) -->
154
- <button class="btn btn-outline btn-sm">
155
- <svg class="icon icon-size-13" aria-hidden="true">
154
+ <button class="vd-btn vd-btn-outline vd-btn-sm">
155
+ <svg class="vd-icon vd-icon-size-13" aria-hidden="true">
156
156
  <use href="#filter" />
157
157
  </svg>
158
158
  Filter
159
159
  </button>
160
160
 
161
161
  <!-- Medium button (14px icons) - DEFAULT -->
162
- <button class="btn btn-primary">
163
- <svg class="icon icon-size-14" aria-hidden="true">
162
+ <button class="vd-btn vd-btn-primary">
163
+ <svg class="vd-icon vd-icon-size-14" aria-hidden="true">
164
164
  <use href="#save" />
165
165
  </svg>
166
166
  Save
167
167
  </button>
168
168
 
169
169
  <!-- Large button (15px icons) -->
170
- <button class="btn btn-primary btn-lg">
171
- <svg class="icon icon-size-15" aria-hidden="true">
170
+ <button class="vd-btn vd-btn-primary vd-btn-lg">
171
+ <svg class="vd-icon vd-icon-size-15" aria-hidden="true">
172
172
  <use href="#download" />
173
173
  </svg>
174
174
  Download
@@ -179,11 +179,11 @@ CSS classes that enforce consistent sizing:
179
179
 
180
180
  ```html
181
181
  <!-- Input with leading icon -->
182
- <div class="input-wrapper">
183
- <svg class="icon icon-size-16" aria-hidden="true">
182
+ <div class="vd-input-field">
183
+ <svg class="vd-icon vd-icon-size-16" aria-hidden="true">
184
184
  <use href="#search" />
185
185
  </svg>
186
- <input type="text" class="input" placeholder="Search..." />
186
+ <input type="text" class="vd-input" placeholder="Search..." />
187
187
  </div>
188
188
  ```
189
189
 
@@ -191,11 +191,11 @@ CSS classes that enforce consistent sizing:
191
191
 
192
192
  ```html
193
193
  <!-- Chip with status icon -->
194
- <span class="chip chip-success">
195
- <svg class="icon icon-size-12" aria-hidden="true">
194
+ <span class="vd-chip vd-chip-success">
195
+ <svg class="vd-icon vd-icon-size-12" aria-hidden="true">
196
196
  <use href="#check" />
197
197
  </svg>
198
- <span class="chip-text">Approved</span>
198
+ <span>Approved</span>
199
199
  </span>
200
200
  ```
201
201
 
@@ -206,7 +206,7 @@ Icons that accompany text labels:
206
206
 
207
207
  ```html
208
208
  <button>
209
- <svg class="icon icon-size-20" aria-hidden="true">
209
+ <svg class="vd-icon vd-icon-size-20" aria-hidden="true">
210
210
  <use href="#save" />
211
211
  </svg>
212
212
  Save
@@ -220,7 +220,7 @@ Icon-only buttons or links:
220
220
 
221
221
  ```html
222
222
  <button aria-label="Close dialog">
223
- <svg class="icon icon-size-20" aria-hidden="true">
223
+ <svg class="vd-icon vd-icon-size-20" aria-hidden="true">
224
224
  <use href="#x" />
225
225
  </svg>
226
226
  </button>
@@ -232,8 +232,8 @@ Icon-only buttons or links:
232
232
  Icons that convey information:
233
233
 
234
234
  ```html
235
- <div class="status">
236
- <svg class="icon icon-size-16 text-approved" role="img" aria-label="Verified">
235
+ <div>
236
+ <svg class="vd-icon vd-icon-size-16 text-approved" role="img" aria-label="Verified">
237
237
  <use href="#check-circle" />
238
238
  </svg>
239
239
  <span>Account verified</span>
@@ -289,14 +289,14 @@ Prefix with `custom-`:
289
289
  ### ❌ Wrong: Mixing size approaches
290
290
  ```html
291
291
  <!-- Don't set width/height directly on icon class -->
292
- <svg class="icon" width="20" height="20">
292
+ <svg class="vd-icon" width="20" height="20">
293
293
  <use href="#search" />
294
294
  </svg>
295
295
  ```
296
296
 
297
297
  ### ✅ Right: Use size classes
298
298
  ```html
299
- <svg class="icon icon-size-20" aria-hidden="true">
299
+ <svg class="vd-icon vd-icon-size-20" aria-hidden="true">
300
300
  <use href="#search" />
301
301
  </svg>
302
302
  ```
@@ -310,8 +310,8 @@ Prefix with `custom-`:
310
310
 
311
311
  ### ✅ Right: Standard icon component
312
312
  ```html
313
- <button class="btn">
314
- <svg class="icon icon-size-20" aria-hidden="true">
313
+ <button class="vd-btn">
314
+ <svg class="vd-icon vd-icon-size-20" aria-hidden="true">
315
315
  <use href="#save" />
316
316
  </svg>
317
317
  </button>
@@ -320,8 +320,8 @@ Prefix with `custom-`:
320
320
  ### ❌ Wrong: Missing accessibility
321
321
  ```html
322
322
  <!-- Icon-only button without label -->
323
- <button class="btn">
324
- <svg class="icon icon-size-20">
323
+ <button class="vd-btn">
324
+ <svg class="vd-icon vd-icon-size-20">
325
325
  <use href="#x" />
326
326
  </svg>
327
327
  </button>
@@ -329,8 +329,8 @@ Prefix with `custom-`:
329
329
 
330
330
  ### ✅ Right: Proper accessibility
331
331
  ```html
332
- <button class="btn" aria-label="Close">
333
- <svg class="icon icon-size-20" aria-hidden="true">
332
+ <button class="vd-btn" aria-label="Close">
333
+ <svg class="vd-icon vd-icon-size-20" aria-hidden="true">
334
334
  <use href="#x" />
335
335
  </svg>
336
336
  </button>
@@ -350,7 +350,7 @@ npm run build:icons
350
350
  ### 2. Use in Components
351
351
  ```html
352
352
  <!-- Custom icons are automatically prefixed with 'custom-' -->
353
- <svg class="icon icon-size-20" aria-hidden="true">
353
+ <svg class="vd-icon vd-icon-size-20" aria-hidden="true">
354
354
  <use href="#custom-my-icon" />
355
355
  </svg>
356
356
  ```
@@ -374,21 +374,21 @@ Add to component documentation if it's a commonly-used custom icon.
374
374
 
375
375
  ### Standard Pattern
376
376
  ```html
377
- <svg class="icon icon-size-{SIZE}" aria-hidden="true">
377
+ <svg class="vd-icon icon-size-{SIZE}" aria-hidden="true">
378
378
  <use href="#{ICON-NAME}" />
379
379
  </svg>
380
380
  ```
381
381
 
382
382
  ### With Status Color
383
383
  ```html
384
- <svg class="icon icon-size-16 text-{STATUS}">
384
+ <svg class="vd-icon vd-icon-size-16 text-{STATUS}">
385
385
  <use href="#icon-name" />
386
386
  </svg>
387
387
  ```
388
388
 
389
389
  ### With Ring State
390
390
  ```html
391
- <svg class="icon icon-size-20 icon-ring">
391
+ <svg class="vd-icon vd-icon-size-20 vd-icon-ring">
392
392
  <use href="#icon-name" />
393
393
  </svg>
394
394
  ```
@@ -6,18 +6,18 @@
6
6
  * (Icon, Action Button, Dismiss).
7
7
  *
8
8
  * Usage:
9
- * <div class="alert alert-critical" role="alert">
10
- * <div class="alert-body">
11
- * <svg class="alert-icon icon icon-size-18" aria-hidden="true">
9
+ * <div class="vd-alert vd-alert-critical" role="alert">
10
+ * <div class="vd-alert-body">
11
+ * <svg class="vd-alert-icon vd-icon vd-icon-size-18" aria-hidden="true">
12
12
  * <use href="#triangle-alert" />
13
13
  * </svg>
14
- * <div class="alert-content">
15
- * <p class="alert-title">Business address mismatch</p>
16
- * <p class="alert-message">Middesk returns a registered-agent address.</p>
17
- * <button class="text-button text-button-primary">Review Field</button>
14
+ * <div class="vd-alert-content">
15
+ * <p class="vd-alert-title">Business address mismatch</p>
16
+ * <p class="vd-alert-message">Middesk returns a registered-agent address.</p>
17
+ * <button class="vd-text-button vd-text-button-primary">Review Field</button>
18
18
  * </div>
19
- * <button class="icon-button icon-button-md" aria-label="Dismiss">
20
- * <svg class="icon icon-size-14" aria-hidden="true"><use href="#x" /></svg>
19
+ * <button class="vd-icon-button vd-icon-button-md" aria-label="Dismiss">
20
+ * <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#x" /></svg>
21
21
  * </button>
22
22
  * </div>
23
23
  * </div>
@@ -61,7 +61,7 @@
61
61
  * THE ACTION AND DISMISS ARE EXISTING COMPONENTS. Figma's "Review Field" is a
62
62
  * literal Text Button instance (Type=Primary). The dismiss is NOT an instance —
63
63
  * it is a stray 10x16 raw vector, where Toast and Modal both use a real Icon
64
- * Button. Treated as an authoring slip and implemented as `.icon-button
64
+ * Button. Treated as an authoring slip and implemented as `.vd-icon-button
65
65
  * icon-button-md`, matching the rest of the library. On the designer list.
66
66
  *
67
67
  * The 8px radius is raw in Figma rather than bound to `Radius/MD`, the same
@@ -70,7 +70,7 @@
70
70
  */
71
71
 
72
72
  @layer components {
73
- .alert {
73
+ .vd-alert {
74
74
  /* Layout — a banner, so it fills its container */
75
75
  @apply flex w-full items-start;
76
76
 
@@ -86,71 +86,71 @@
86
86
 
87
87
  /* --- Parts -------------------------------------------------------------- */
88
88
 
89
- .alert-body {
89
+ .vd-alert-body {
90
90
  @apply flex flex-1 items-start gap-3; /* 12px */
91
91
  min-width: 0;
92
92
  @apply p-4; /* 16px */
93
93
  }
94
94
 
95
95
  /* 18px. Colour comes from the type class; the glyph is the consumer's. */
96
- .alert-icon {
96
+ .vd-alert-icon {
97
97
  @apply shrink-0;
98
98
  }
99
99
 
100
- .alert-content {
100
+ .vd-alert-content {
101
101
  @apply flex flex-1 flex-col items-start gap-1; /* 4px */
102
102
  min-width: 0;
103
103
  }
104
104
 
105
105
  /* 12.5px with a 12.5px line-height — the line box is exactly the cap height,
106
106
  as in Toast. Body 2 - Bold reports Medium/500 despite the name. */
107
- .alert-title {
107
+ .vd-alert-title {
108
108
  @apply text-body-2-bold; /* 12.5px / 12.5px / 500 */
109
109
  @apply text-content-primary;
110
110
  }
111
111
 
112
- .alert-message {
112
+ .vd-alert-message {
113
113
  @apply text-caption; /* 12px / 18px / 400 */
114
114
  @apply text-content-secondary;
115
115
  }
116
116
 
117
117
  /* --- Types -------------------------------------------------------------- */
118
118
 
119
- .alert-critical {
119
+ .vd-alert-critical {
120
120
  @apply border-l-critical bg-critical-soft;
121
121
  }
122
- .alert-critical .alert-icon {
122
+ .vd-alert-critical .vd-alert-icon {
123
123
  @apply text-critical;
124
124
  }
125
125
 
126
- .alert-warning {
126
+ .vd-alert-warning {
127
127
  @apply border-l-warning bg-warning-soft;
128
128
  }
129
- .alert-warning .alert-icon {
129
+ .vd-alert-warning .vd-alert-icon {
130
130
  @apply text-warning;
131
131
  }
132
132
 
133
- .alert-success {
133
+ .vd-alert-success {
134
134
  @apply border-l-approved bg-approved-soft;
135
135
  }
136
- .alert-success .alert-icon {
136
+ .vd-alert-success .vd-alert-icon {
137
137
  @apply text-approved;
138
138
  }
139
139
 
140
- .alert-info {
140
+ .vd-alert-info {
141
141
  @apply border-l-primary bg-primary-soft;
142
142
  }
143
- .alert-info .alert-icon {
143
+ .vd-alert-info .vd-alert-icon {
144
144
  @apply text-primary;
145
145
  }
146
146
 
147
- .alert-neutral {
147
+ .vd-alert-neutral {
148
148
  @apply border-l-neutral bg-neutral-soft;
149
149
  }
150
150
 
151
151
  /* Neutral/Content, not Neutral/Main — the one type whose rail and glyph
152
152
  differ. Verified against the Figma render. See the header. */
153
- .alert-neutral .alert-icon {
153
+ .vd-alert-neutral .vd-alert-icon {
154
154
  @apply text-neutral-content;
155
155
  }
156
156
  }
@@ -5,7 +5,7 @@
5
5
  * — 8 variants (4 sizes × Disabled), plus a Ring boolean.
6
6
  *
7
7
  * Usage:
8
- * <span class="avatar avatar-md">NC</span>
8
+ * <span class="vd-avatar vd-avatar-md">NC</span>
9
9
  *
10
10
  * FOUR SIZES, THREE TYPE STYLES. xs and sm share Micro S - Bold; only md and
11
11
  * lg step up. Do not assume one style per size.
@@ -29,7 +29,7 @@
29
29
  */
30
30
 
31
31
  @layer components {
32
- .avatar {
32
+ .vd-avatar {
33
33
  /* Layout */
34
34
  @apply inline-flex shrink-0 items-center justify-center;
35
35
 
@@ -49,22 +49,22 @@
49
49
 
50
50
  /* --- Sizes ------------------------------------------------------------ */
51
51
 
52
- .avatar-xs {
52
+ .vd-avatar-xs {
53
53
  @apply size-4; /* 16px */
54
54
  @apply text-micro-s-bold; /* 8px / 600 / 0.4% */
55
55
  }
56
56
 
57
- .avatar-sm {
57
+ .vd-avatar-sm {
58
58
  @apply size-4.5; /* 18px */
59
59
  @apply text-micro-s-bold; /* 8px / 600 / 0.4% */
60
60
  }
61
61
 
62
- .avatar-md {
62
+ .vd-avatar-md {
63
63
  @apply size-5; /* 20px — same as default */
64
64
  @apply text-micro-m-bold; /* 8.5px / 500 */
65
65
  }
66
66
 
67
- .avatar-lg {
67
+ .vd-avatar-lg {
68
68
  @apply size-8.5; /* 34px */
69
69
  @apply text-micro-l-bold; /* 11px / 500 */
70
70
  }
@@ -72,8 +72,8 @@
72
72
  /* --- States ----------------------------------------------------------- */
73
73
 
74
74
  /* Not an interactive element, so there is no :disabled to hook — a modifier
75
- class, matching .input-disabled. Only the fill changes. */
76
- .avatar-disabled {
75
+ class, matching .vd-input-disabled. Only the fill changes. */
76
+ .vd-avatar-disabled {
77
77
  @apply bg-primary-disabled;
78
78
  }
79
79
 
@@ -81,7 +81,7 @@
81
81
  Primary/Main treatment used by Chip. Figma insets it -0.5px so its outer
82
82
  edge clears the hairline; normalised to a plain inset ring here, which is
83
83
  within half a pixel and cannot overflow the layout. */
84
- .avatar.with-ring {
84
+ .vd-avatar.vd-with-ring {
85
85
  @apply ring-[length:var(--border-micro)] ring-inset ring-primary;
86
86
  }
87
87
  }
@@ -10,14 +10,14 @@
10
10
  * Breadcrumbs 880:31218 the row that composes them
11
11
  *
12
12
  * Usage:
13
- * <nav class="breadcrumbs" aria-label="Breadcrumb">
14
- * <svg class="breadcrumb-home icon icon-size-14" aria-hidden="true">
13
+ * <nav class="vd-breadcrumbs" aria-label="Breadcrumb">
14
+ * <svg class="vd-breadcrumb-home vd-icon vd-icon-size-14" aria-hidden="true">
15
15
  * <use href="#home" />
16
16
  * </svg>
17
- * <span class="breadcrumb-separator" aria-hidden="true">&gt;</span>
18
- * <a class="breadcrumb" href="/applications">Applications</a>
19
- * <span class="breadcrumb-separator" aria-hidden="true">&gt;</span>
20
- * <span class="breadcrumb breadcrumb-current" aria-current="page">#BA-204417</span>
17
+ * <span class="vd-breadcrumb-separator" aria-hidden="true">&gt;</span>
18
+ * <a class="vd-breadcrumb" href="/applications">Applications</a>
19
+ * <span class="vd-breadcrumb-separator" aria-hidden="true">&gt;</span>
20
+ * <span class="vd-breadcrumb vd-breadcrumb-current" aria-current="page">#BA-204417</span>
21
21
  * </nav>
22
22
  *
23
23
  * THE CRUMB IS NOW A BOX, NOT A BARE TEXT NODE. Figma gives it 2px/4px padding
@@ -85,7 +85,7 @@
85
85
  */
86
86
 
87
87
  @layer components {
88
- .breadcrumbs {
88
+ .vd-breadcrumbs {
89
89
  @apply flex w-full items-center gap-2; /* 8px */
90
90
  }
91
91
 
@@ -95,7 +95,7 @@
95
95
  content-driven (2 + 19.5 + 2 = 23.5 against Figma's 24px frame, which is
96
96
  its own rounding); there is no border, so the hairline trap that forces
97
97
  explicit heights elsewhere does not apply here. */
98
- .breadcrumb {
98
+ .vd-breadcrumb {
99
99
  @apply shrink-0;
100
100
  @apply px-1 py-0.5; /* 4px / 2px */
101
101
  @apply rounded-tight; /* 4px — Radius/XS */
@@ -106,7 +106,7 @@
106
106
  /* Figma State=Hover: a 0.5px rule under the label, in the label's own colour.
107
107
  A gradient band, not text-decoration — Chrome floors the latter to 1px.
108
108
  `content-box` origin makes it span the label rather than the padding. */
109
- .breadcrumb:hover {
109
+ .vd-breadcrumb:hover {
110
110
  background-image: linear-gradient(currentColor, currentColor);
111
111
  background-repeat: no-repeat;
112
112
  background-origin: content-box;
@@ -116,20 +116,20 @@
116
116
 
117
117
  /* Figma State=Focus: 2px Primary/Main. See the header for why this is the
118
118
  outline utility rather than the border Figma draws. */
119
- .breadcrumb:focus-visible {
119
+ .vd-breadcrumb:focus-visible {
120
120
  @apply focus-ring;
121
121
  }
122
122
 
123
123
  /* The current location. In the slash variant this covers TWO adjacent items,
124
124
  so it is a depth marker rather than "the last one". Now steps the weight
125
125
  to 500 as well as the colour. */
126
- .breadcrumb-current {
126
+ .vd-breadcrumb-current {
127
127
  @apply text-body-1-bold; /* 13 / 19.5 / 500 */
128
128
  @apply text-content-primary;
129
129
  }
130
130
 
131
131
  /* Drawn a step lighter than the crumbs, matching the separators. */
132
- .breadcrumb-home {
132
+ .vd-breadcrumb-home {
133
133
  @apply shrink-0;
134
134
  @apply text-content-tertiary;
135
135
  }
@@ -137,7 +137,7 @@
137
137
  /* --- Separators ---------------------------------------------------------- */
138
138
 
139
139
  /* Both types are identical now. Always pair with aria-hidden="true". */
140
- .breadcrumb-separator {
140
+ .vd-breadcrumb-separator {
141
141
  @apply shrink-0 select-none;
142
142
  @apply text-[12px] font-normal leading-[normal];
143
143
  @apply text-content-tertiary;
@@ -146,13 +146,13 @@
146
146
  /* Retained for compatibility only. The chevron and slash separators were 12px
147
147
  and 13px in the previous design; they are both 12px now, so this modifier
148
148
  restates the base rather than changing it. Safe to drop from markup. */
149
- .breadcrumb-separator-chevron {
149
+ .vd-breadcrumb-separator-chevron {
150
150
  @apply text-[12px];
151
151
  }
152
152
 
153
153
  /* The loose middot from the slash variant — 13px where the separators are 12,
154
154
  and Regular where this used to be Bold. Not a Separator instance in Figma. */
155
- .breadcrumb-separator-dot {
155
+ .vd-breadcrumb-separator-dot {
156
156
  @apply text-[13px] font-normal;
157
157
  }
158
158
  }
@@ -7,26 +7,26 @@
7
7
  * variants where the other two are 15.
8
8
  *
9
9
  * Usage:
10
- * <button class="btn btn-primary">Primary Button</button>
11
- * <button class="btn btn-outline btn-sm">Small Outline</button>
12
- * <button class="btn btn-lg" disabled>Disabled Large</button>
10
+ * <button class="vd-btn vd-btn-primary">Primary Button</button>
11
+ * <button class="vd-btn vd-btn-outline vd-btn-sm">Small Outline</button>
12
+ * <button class="vd-btn vd-btn-lg" disabled>Disabled Large</button>
13
13
  *
14
14
  * THERE IS NO "DEFAULT" DISPLAY VALUE. Figma's axis is primary / outline /
15
- * empty, full stop. A bare `.btn` is Display=outline — the set's rest default —
15
+ * empty, full stop. A bare `.vd-btn` is Display=outline — the set's rest default —
16
16
  * and that is all "default" ever meant here.
17
17
  *
18
18
  * Until 2026-08-24 the base class took outline's REST APPEARANCE but none of
19
- * its states, because the interaction rules lived inside `.btn-outline`. A bare
20
- * `.btn` therefore looked like an outline button and responded to nothing:
19
+ * its states, because the interaction rules lived inside `.vd-btn-outline`. A bare
20
+ * `.vd-btn` therefore looked like an outline button and responded to nothing:
21
21
  * identical at rest, inert on hover and on `aria-selected`. The ramp now lives
22
- * on the base, so `.btn` behaves, and `.btn-outline` is an explicit alias for
22
+ * on the base, so `.vd-btn` behaves, and `.vd-btn-outline` is an explicit alias for
23
23
  * the same thing.
24
24
  *
25
25
  * OUTLINE AND EMPTY SHARE ONE INTERACTION RAMP in Figma — hover `Action/Subtle`,
26
26
  * selected `Action/Hover`, active `Primary/Soft` + `Primary/Main` — differing
27
27
  * only in the rest border and in whether active draws one. Putting the ramp on
28
28
  * the base serves outline, empty and the bare class at once, and closes the two
29
- * states `.btn-empty` was missing.
29
+ * states `.vd-btn-empty` was missing.
30
30
  *
31
31
  * The two FILLED displays run their own ramps and override all of it. The base
32
32
  * ramp's `:active` sets both a border colour and `Primary/Main` text, so each
@@ -35,7 +35,7 @@
35
35
  */
36
36
 
37
37
  @layer components {
38
- .btn {
38
+ .vd-btn {
39
39
  /* Layout */
40
40
  @apply inline-flex items-center justify-center gap-1.25;
41
41
  @apply h-7 px-3; /* Medium (28px) - default size, 5px gap */
@@ -61,21 +61,21 @@
61
61
  /* Declared before the variants so the filled displays, whose nested rules
62
62
  compile to the same specificity, win on source order as they always have. */
63
63
 
64
- .btn:hover:not(:disabled) {
64
+ .vd-btn:hover:not(:disabled) {
65
65
  @apply bg-action-subtle;
66
66
  }
67
67
 
68
- .btn:active:not(:disabled) {
68
+ .vd-btn:active:not(:disabled) {
69
69
  @apply bg-primary-soft text-primary border-primary;
70
70
  }
71
71
 
72
- .btn[aria-selected="true"] {
72
+ .vd-btn[aria-selected="true"] {
73
73
  @apply bg-action-hover;
74
74
  }
75
75
 
76
76
  /* --- Variants ------------------------------------------------------- */
77
77
 
78
- .btn-primary {
78
+ .vd-btn-primary {
79
79
  @apply border-transparent bg-primary text-content-contrast;
80
80
 
81
81
  &:hover:not(:disabled) {
@@ -98,7 +98,7 @@
98
98
  /* Identical to the bare base by design — Figma's outline IS the default
99
99
  Display, so this class exists to say so at the call site rather than to
100
100
  add anything. Its states come from the base ramp above. */
101
- .btn-outline {
101
+ .vd-btn-outline {
102
102
  @apply border-[length:var(--border-thin)] border-stroke-divider;
103
103
  @apply bg-transparent text-content-primary;
104
104
  }
@@ -114,7 +114,7 @@
114
114
  Critical/Strong, which is the only darker critical token; there is no
115
115
  critical-pressed, so :active is left to match hover rather than invent a
116
116
  third colour. Revisit if the designer adds a real destructive Button. */
117
- .btn-critical {
117
+ .vd-btn-critical {
118
118
  @apply border-transparent bg-critical text-content-contrast;
119
119
 
120
120
  &:hover:not(:disabled) {
@@ -139,7 +139,7 @@
139
139
  /* Hover (Action/Subtle) and selected (Action/Hover) come from the base ramp,
140
140
  which is exactly what Figma draws for empty — they were missing entirely
141
141
  before 2026-08-24. Only the active border differs: empty never draws one. */
142
- .btn-empty {
142
+ .vd-btn-empty {
143
143
  @apply border-transparent bg-transparent text-content-primary;
144
144
 
145
145
  &:active:not(:disabled) {
@@ -149,29 +149,29 @@
149
149
 
150
150
  /* --- Sizes ---------------------------------------------------------- */
151
151
 
152
- .btn-sm {
152
+ .vd-btn-sm {
153
153
  @apply h-6 px-2 gap-1.25; /* 24px, 8px padding, 5px gap */
154
154
  @apply text-action-s; /* 12px / 14px / 500 */
155
155
  }
156
156
 
157
- .btn-lg {
157
+ .vd-btn-lg {
158
158
  @apply h-8 px-4 gap-1.5; /* 32px, 16px padding, 6px gap */
159
159
  @apply text-action-l; /* 13px / normal / 500 */
160
160
  }
161
161
 
162
162
  /* --- States --------------------------------------------------------- */
163
163
 
164
- .btn:focus-visible {
164
+ .vd-btn:focus-visible {
165
165
  @apply focus-ring;
166
166
  }
167
167
 
168
- .btn:disabled {
168
+ .vd-btn:disabled {
169
169
  @apply cursor-not-allowed;
170
170
  }
171
171
 
172
172
  /* Figma dims the label on the non-filled variants. Primary keeps its
173
173
  contrast text, since its fill already drops to Primary/Disabled. */
174
- .btn:disabled:not(.btn-primary) {
174
+ .vd-btn:disabled:not(.vd-btn-primary) {
175
175
  @apply text-content-tertiary;
176
176
  }
177
177
  }