@valiify/dashboard-ui 0.1.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/CHANGELOG.md +493 -4
  2. package/CLAUDE.md +884 -768
  3. package/COMPONENTS.md +520 -520
  4. package/GETTING_STARTED.md +63 -14
  5. package/QUICK_REFERENCE.md +22 -22
  6. package/README.md +45 -6
  7. package/TROUBLESHOOTING.md +46 -6
  8. package/class-manifest.json +664 -0
  9. package/design-methodology/dashboard.md +496 -0
  10. package/dist/dashboard-ui.css +4891 -0
  11. package/dist/index.css +502 -502
  12. package/examples/README.md +42 -0
  13. package/examples/basic/index.html +8 -8
  14. package/examples/daisyui-starter/README.md +58 -0
  15. package/examples/daisyui-starter/check-no-bleed.mjs +249 -0
  16. package/examples/daisyui-starter/index.html +72 -0
  17. package/examples/daisyui-starter/linked.html +74 -0
  18. package/examples/daisyui-starter/package-lock.json +2221 -0
  19. package/examples/daisyui-starter/package.json +22 -0
  20. package/examples/daisyui-starter/postcss.config.js +1 -0
  21. package/examples/daisyui-starter/src/host.css +14 -0
  22. package/examples/daisyui-starter/src/only-import.css +4 -0
  23. package/examples/daisyui-starter/src/styles.css +36 -0
  24. package/examples/daisyui-starter/tailwind.config.js +13 -0
  25. package/examples/postcss-starter/index.html +8 -8
  26. package/examples/postcss-starter/package.json +1 -1
  27. package/examples/sveltekit-starter/README.md +32 -0
  28. package/examples/sveltekit-starter/check-scoped-styles.mjs +103 -0
  29. package/examples/sveltekit-starter/package-lock.json +1300 -0
  30. package/examples/sveltekit-starter/package.json +24 -0
  31. package/examples/sveltekit-starter/src/app.css +17 -0
  32. package/examples/sveltekit-starter/src/app.html +11 -0
  33. package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +20 -0
  34. package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +27 -0
  35. package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +22 -0
  36. package/examples/sveltekit-starter/src/routes/+layout.svelte +6 -0
  37. package/examples/sveltekit-starter/src/routes/+page.svelte +10 -0
  38. package/examples/sveltekit-starter/svelte.config.js +4 -0
  39. package/examples/sveltekit-starter/vite.config.js +6 -0
  40. package/examples/vite-starter/README.md +4 -4
  41. package/examples/vite-starter/package.json +1 -1
  42. package/examples/vite-starter/src/main.js +41 -41
  43. package/package.json +21 -4
  44. package/src/build/components.css +35 -0
  45. package/src/build/utilities.css +46 -0
  46. package/src/components/ICON-SYSTEM.md +39 -39
  47. package/src/components/alert.css +26 -26
  48. package/src/components/avatar.css +9 -9
  49. package/src/components/breadcrumbs.css +15 -15
  50. package/src/components/button.css +21 -21
  51. package/src/components/card.css +10 -10
  52. package/src/components/checkbox.css +21 -21
  53. package/src/components/chip.css +43 -43
  54. package/src/components/data-row.css +19 -19
  55. package/src/components/divider.css +23 -23
  56. package/src/components/dropdown-field.css +34 -34
  57. package/src/components/dropdown-menu.css +12 -12
  58. package/src/components/field-verification.css +25 -25
  59. package/src/components/filter-segment.css +20 -20
  60. package/src/components/icon-button.css +11 -11
  61. package/src/components/icon.css +18 -18
  62. package/src/components/input.css +29 -29
  63. package/src/components/link.css +28 -28
  64. package/src/components/loading-indicator.css +20 -20
  65. package/src/components/loading-inline.css +8 -8
  66. package/src/components/menu-item.css +28 -28
  67. package/src/components/modal.css +36 -36
  68. package/src/components/navigation-rail.css +95 -95
  69. package/src/components/pagination-item.css +22 -22
  70. package/src/components/pagination.css +24 -24
  71. package/src/components/pill.css +14 -14
  72. package/src/components/progress-bar.css +28 -28
  73. package/src/components/radio-select.css +13 -13
  74. package/src/components/section-marker.css +12 -12
  75. package/src/components/segment-selector.css +9 -9
  76. package/src/components/sensitive-data.css +8 -8
  77. package/src/components/skeleton.css +29 -29
  78. package/src/components/step.css +14 -14
  79. package/src/components/stepper.css +15 -15
  80. package/src/components/switch.css +12 -12
  81. package/src/components/tabs.css +40 -40
  82. package/src/components/tag.css +20 -20
  83. package/src/components/text-button.css +24 -24
  84. package/src/components/textarea.css +23 -23
  85. package/src/components/toast.css +29 -29
  86. package/src/components/tooltip.css +11 -11
  87. package/src/icons/README.md +16 -10
  88. package/src/icons/sprite.svg +1 -1
  89. package/src/themes/valiify-tokens.css +285 -0
  90. package/src/themes/valiify-type-prefixed.css +37 -0
  91. package/src/utilities/index.css +1 -1
  92. package/src/utility-surface.css +321 -0
  93. package/types/components.d.ts +235 -236
@@ -0,0 +1,285 @@
1
+ /**
2
+ * Valiify Dashboard Theme — REAL design tokens from Figma.
3
+ *
4
+ * GENERATED FILE — do not edit by hand.
5
+ * Source: tokens/figma-tokens.json
6
+ * Generator: scripts/build-theme.mjs (npm run build:theme)
7
+ *
8
+ * Figma: Valiify-Dashboard-Component-Library (FdcEV83HPv44bzLPAQU1hR)
9
+ *
10
+ * Declared in Tailwind's `@theme` so every token generates utilities:
11
+ * --color-primary -> bg-primary, text-primary, border-primary
12
+ * --radius-control -> rounded-control
13
+ * --text-body-1 -> text-body-1 (size + line-height + weight + tracking)
14
+ *
15
+ * Prefer those utilities over hand-written var().
16
+ *
17
+ * Colors are OKLCh; the source hex follows each line so values stay
18
+ * diffable against Figma. See scripts/build-theme.mjs for the round-trip
19
+ * assertion that guards the conversion.
20
+ *
21
+ * V1 is a single light theme, so tokens live at the root with no
22
+ * [data-theme] wrapper.
23
+ */
24
+
25
+ @theme static {
26
+ /* Brand primary */
27
+ --color-primary: oklch(0.4234 0.1163 256.9); /* #1e4d8c */
28
+ --color-primary-dark: oklch(0.3509 0.0948 257.07); /* #163a6b */
29
+ --color-primary-pressed: oklch(0.3126 0.0825 247.19); /* #003358 */
30
+ --color-primary-soft: oklch(0.4234 0.1163 256.9 / 0.078); /* #1e4d8c14 */
31
+ --color-primary-disabled: oklch(0.4234 0.1163 256.9 / 0.4); /* #1e4d8c66 */
32
+
33
+ /* Brand secondary */
34
+ --color-secondary: oklch(0.4759 0.0208 285.58); /* #5b5b68 */
35
+ --color-secondary-strong: oklch(0.428 0.018 285.61); /* #4e4e59 */
36
+ --color-secondary-soft: oklch(0.637 0.0163 285.93 / 0.09); /* #8a8a9517 */
37
+ --color-secondary-disabled: oklch(0.637 0.0163 285.93 / 0.4); /* #8a8a9566 */
38
+
39
+ /* Content (text / ink) */
40
+ --color-content-primary: oklch(0.202 0.0079 285.67); /* #16161a */
41
+ --color-content-secondary: oklch(0.4759 0.0208 285.58); /* #5b5b68 */
42
+ --color-content-tertiary: oklch(0.5569 0.0215 285.68); /* #727280 */
43
+ --color-content-faint: oklch(0.8233 0.0139 286.09); /* #c4c4ce */
44
+ --color-content-contrast: oklch(1 0 0); /* #ffffff */
45
+
46
+ /* Surface stack (back to front) */
47
+ --color-surface-frame: oklch(0.963 0.0062 255.48); /* #f0f3f7 */
48
+ --color-surface-neutral: oklch(0.959 0.004 286.32); /* #f1f1f4 */
49
+ --color-surface-card: oklch(0.9854 0.0013 286.38); /* #fafafb */
50
+ --color-surface-paper: oklch(1 0 0); /* #ffffff */
51
+
52
+ /* Stroke colors — widths are --border-* below */
53
+ --color-stroke-divider: oklch(0.2027 0.0395 282.3 / 0.078); /* #14142814 */
54
+ --color-stroke-border: oklch(0.2027 0.0395 282.3 / 0.129); /* #14142821 */
55
+ --color-stroke-disabled: oklch(0.2027 0.0395 282.3 / 0.039); /* #1414280a */
56
+
57
+ /* Action overlays (interaction states) */
58
+ --color-action-subtle: oklch(0.2027 0.0395 282.3 / 0.031); /* #14142808 */
59
+ --color-action-hover: oklch(0.2027 0.0395 282.3 / 0.059); /* #1414280f */
60
+ --color-action-selected: oklch(0.2027 0.0395 282.3 / 0.078); /* #14142814 */
61
+ --color-action-focused: oklch(0.2027 0.0395 282.3 / 0.129); /* #14142821 */
62
+
63
+ /* Status — approved */
64
+ --color-approved: oklch(0.5269 0.0996 169.13); /* #157d61 */
65
+ --color-approved-soft: oklch(0.6154 0.1179 168.68 / 0.09); /* #1a9b7817 */
66
+ --color-approved-strong: oklch(0.5508 0.1048 168.92); /* #168567 */
67
+ --color-approved-content: oklch(0.4993 0.095 168.47); /* #137459 */
68
+
69
+ /* Status — critical */
70
+ --color-critical: oklch(0.5458 0.1847 21.87); /* #c5303c */
71
+ --color-critical-soft: oklch(0.5994 0.1849 20.33 / 0.09); /* #d8434f17 */
72
+ --color-critical-strong: oklch(0.5379 0.1636 20.28); /* #ba3a44 */
73
+ --color-critical-content: oklch(0.5316 0.1616 20.19); /* #b73943 */
74
+
75
+ /* Status — warning */
76
+ --color-warning: oklch(0.6765 0.1352 72.89); /* #c9881f */
77
+ --color-warning-soft: oklch(0.6765 0.1352 72.89 / 0.09); /* #c9881f17 */
78
+
79
+ /* Status — neutral */
80
+ --color-neutral: oklch(0.6871 0.0189 285.89); /* #9999a6 */
81
+ --color-neutral-strong: oklch(0.428 0.018 285.61); /* #4e4e59 */
82
+ --color-neutral-soft: oklch(0.6871 0.0189 285.89 / 0.09); /* #9999a617 */
83
+ --color-neutral-content: oklch(0.5099 0.0141 285.89); /* #65656e */
84
+
85
+ /* UnGrouped one-offs */
86
+ --color-misc-purple: oklch(0.5425 0.1143 300.99); /* #7b5ea7 */
87
+
88
+ /*
89
+ * Radii — named by ROLE, not by Figma's t-shirt size. Tailwind v4 ships
90
+ * --radius-xs/-sm/-md itself; redefining those would silently change
91
+ * rounded-xs/-sm/-md for consumers.
92
+ */
93
+ --radius-micro: 2px; /* Radius/Micro — indicators, bars */
94
+ --radius-tight: 4px; /* Radius/XS — tags, badges */
95
+ --radius-control: 6px; /* Radius/SM — buttons, inputs */
96
+ --radius-surface: 8px; /* Radius/MD — cards, panels */
97
+ --radius-pill: 9999px; /* Radius/Rounded — avatars, pills */
98
+
99
+ /* Border widths — no Tailwind namespace, so used via border-[length:var(...)] */
100
+ --border-thin: 0.5px; /* Stroke/Thin */
101
+ --border-line: 1px; /* Stroke/Line */
102
+ --border-micro: 2px; /* Stroke/Micro */
103
+
104
+ /* Font families */
105
+ --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
106
+ Roboto, 'Helvetica Neue', Arial, sans-serif;
107
+ --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code',
108
+ 'Roboto Mono', Consolas, 'Courier New', monospace;
109
+
110
+ /*
111
+ * Text styles — composite tokens, so one utility carries size,
112
+ * line-height, weight and tracking.
113
+ *
114
+ * `line-height: normal` is Figma's "Auto": the font's own metrics
115
+ * (~1.21x for Inter). The API reports Auto as the sentinel 100, which does
116
+ * NOT mean 100% — emitting `1` for it makes the style too tight.
117
+ *
118
+ * letter-spacing is in em because every letterSpacing value the API
119
+ * returns is a percentage of font size, not px.
120
+ *
121
+ * IMPORTANT: the --text-* composite carries size, line-height, weight and
122
+ * tracking but NOT font-family and NOT text-transform. Two consequences:
123
+ *
124
+ * JetBrains Mono styles must be paired with font-mono, or they render
125
+ * in Inter: @apply text-data-m font-mono;
126
+ *
127
+ * Label styles are uppercase in Figma, so use the generated
128
+ * type-label-* utilities below, which bundle the casing.
129
+ */
130
+ --text-display: 46px; /* Body Content/Display (Inter Light) */
131
+ --text-display--line-height: 39px;
132
+ --text-display--font-weight: 300;
133
+ --text-h1: 19px; /* Body Content/H1 (Inter Semi Bold) */
134
+ --text-h1--line-height: 21.8px;
135
+ --text-h1--font-weight: 600;
136
+ --text-h2: 17px; /* Body Content/H2 (Inter Semi Bold) */
137
+ --text-h2--line-height: 19.5px;
138
+ --text-h2--font-weight: 600;
139
+ --text-subtitle: 14px; /* Body Content/Subtitle (Inter Medium) */
140
+ --text-subtitle--line-height: 19.6px;
141
+ --text-subtitle--font-weight: 500;
142
+ --text-body-1: 13px; /* Body Content/Body 1 (Inter Regular) */
143
+ --text-body-1--line-height: 19.5px;
144
+ --text-body-1--font-weight: 400;
145
+ --text-body-1-bold: 13px; /* Body Content/Body 1 - Bold (Inter Medium) */
146
+ --text-body-1-bold--line-height: 19.5px;
147
+ --text-body-1-bold--font-weight: 500;
148
+ --text-body-2: 12.5px; /* Body Content/Body 2 (Inter Regular) */
149
+ --text-body-2--line-height: 12.5px;
150
+ --text-body-2--font-weight: 400;
151
+ --text-body-2-bold: 12.5px; /* Body Content/Body 2 - Bold (Inter Medium) */
152
+ --text-body-2-bold--line-height: 12.5px;
153
+ --text-body-2-bold--font-weight: 500;
154
+ --text-caption: 12px; /* Body Content/Caption (Inter Regular) */
155
+ --text-caption--line-height: 18px;
156
+ --text-caption--font-weight: 400;
157
+ --text-caption-bold: 12px; /* Body Content/Caption - Bold (Inter Medium) */
158
+ --text-caption-bold--line-height: 18px;
159
+ --text-caption-bold--font-weight: 500;
160
+ --text-label-l: 10.5px; /* Label/Label L Sans (Inter Regular) */
161
+ --text-label-l--line-height: 19.6px;
162
+ --text-label-l--font-weight: 400;
163
+ --text-label-l--letter-spacing: 0.1em; /* 10% */
164
+ --text-label-l-bold: 10.5px; /* Label/Label L Sans - Bold (Inter Semi Bold) */
165
+ --text-label-l-bold--line-height: 19.6px;
166
+ --text-label-l-bold--font-weight: 600;
167
+ --text-label-l-bold--letter-spacing: 0.1em; /* 10% */
168
+ --text-label-l-mono: 10.5px; /* Label/Label L Mono (JetBrains Mono Medium — needs font-mono) */
169
+ --text-label-l-mono--line-height: 12.6px;
170
+ --text-label-l-mono--font-weight: 500;
171
+ --text-label-l-mono--letter-spacing: 0.1em; /* 10% */
172
+ --text-label-s: 10px; /* Label/Label S Sans (Inter Regular) */
173
+ --text-label-s--line-height: 12px;
174
+ --text-label-s--font-weight: 400;
175
+ --text-label-s--letter-spacing: 0.1em; /* 10% */
176
+ --text-label-s-bold: 10px; /* Label/Label S Sans - Bold (Inter Semi Bold) */
177
+ --text-label-s-bold--line-height: 12px;
178
+ --text-label-s-bold--font-weight: 600;
179
+ --text-label-s-bold--letter-spacing: 0.1em; /* 10% */
180
+ --text-label-s-mono: 10px; /* Label/Label S Mono (JetBrains Mono Bold — needs font-mono) */
181
+ --text-label-s-mono--line-height: 12px;
182
+ --text-label-s-mono--font-weight: 700;
183
+ --text-label-s-mono--letter-spacing: 0.1em; /* 10% */
184
+ --text-data-l: 18px; /* Data/Data L (JetBrains Mono Medium — needs font-mono) */
185
+ --text-data-l--line-height: 21.6px;
186
+ --text-data-l--font-weight: 500;
187
+ --text-data-m: 14px; /* Data/Data M (JetBrains Mono Medium — needs font-mono) */
188
+ --text-data-m--line-height: 21px;
189
+ --text-data-m--font-weight: 500;
190
+ --text-data-s: 13px; /* Data/Data S (JetBrains Mono Regular — needs font-mono) */
191
+ --text-data-s--line-height: 19.5px;
192
+ --text-data-s--font-weight: 400;
193
+ --text-data-xs: 12px; /* Data/Data xs (JetBrains Mono Regular — needs font-mono) */
194
+ --text-data-xs--line-height: 16.5px;
195
+ --text-data-xs--font-weight: 400;
196
+ --text-action-l: 13px; /* Button & Actions/Action L (Inter Medium) */
197
+ --text-action-l--line-height: normal;
198
+ --text-action-l--font-weight: 500;
199
+ --text-action-l-bold: 13px; /* Button & Actions/Action L - bold (Inter Semi Bold) */
200
+ --text-action-l-bold--line-height: normal;
201
+ --text-action-l-bold--font-weight: 600;
202
+ --text-action-m: 12.5px; /* Button & Actions/Action M (Inter Medium) */
203
+ --text-action-m--line-height: 14px;
204
+ --text-action-m--font-weight: 500;
205
+ --text-action-m-bold: 12.5px; /* Button & Actions/Action M - Bold (Inter Semi Bold) */
206
+ --text-action-m-bold--line-height: 14px;
207
+ --text-action-m-bold--font-weight: 600;
208
+ --text-action-s: 12px; /* Button & Actions/Action S (Inter Medium) */
209
+ --text-action-s--line-height: 14px;
210
+ --text-action-s--font-weight: 500;
211
+ --text-action-s-bold: 12px; /* Button & Actions/Action S - Bold (Inter Semi Bold) */
212
+ --text-action-s-bold--line-height: 14px;
213
+ --text-action-s-bold--font-weight: 600;
214
+ --text-micro-l: 11px; /* Micro Text/Micro L (Inter Regular) */
215
+ --text-micro-l--line-height: normal;
216
+ --text-micro-l--font-weight: 400;
217
+ --text-micro-l-bold: 11px; /* Micro Text/Micro L - Bold (Inter Medium) */
218
+ --text-micro-l-bold--line-height: normal;
219
+ --text-micro-l-bold--font-weight: 500;
220
+ --text-micro-m: 8.5px; /* Micro Text/Micro M (Inter Regular) */
221
+ --text-micro-m--line-height: normal;
222
+ --text-micro-m--font-weight: 400;
223
+ --text-micro-m-bold: 8.5px; /* Micro Text/Micro M - Bold (Inter Medium) */
224
+ --text-micro-m-bold--line-height: normal;
225
+ --text-micro-m-bold--font-weight: 500;
226
+ --text-micro-s: 8px; /* Micro Text/Micro S (Inter Regular) */
227
+ --text-micro-s--line-height: normal;
228
+ --text-micro-s--font-weight: 400;
229
+ --text-micro-s-bold: 8px; /* Micro Text/Micro S - Bold (Inter Semi Bold) */
230
+ --text-micro-s-bold--line-height: normal;
231
+ --text-micro-s-bold--font-weight: 600;
232
+ --text-micro-s-bold--letter-spacing: 0.004em; /* 0.4% */
233
+ --text-data-micro-l: 11px; /* Micro Text/Micro Data L (JetBrains Mono Medium — needs font-mono) */
234
+ --text-data-micro-l--line-height: normal;
235
+ --text-data-micro-l--font-weight: 500;
236
+ --text-data-micro-m: 8.5px; /* Micro Text/Micro Data M (JetBrains Mono Medium — needs font-mono) */
237
+ --text-data-micro-m--line-height: normal;
238
+ --text-data-micro-m--font-weight: 500;
239
+ --text-data-micro-s: 8px; /* Micro Text/Micro Data S (JetBrains Mono Medium — needs font-mono) */
240
+ --text-data-micro-s--line-height: normal;
241
+ --text-data-micro-s--font-weight: 500;
242
+ --text-statecap: 9.5px; /* Micro Text/Statecap (Inter Semi Bold) */
243
+ --text-statecap--line-height: normal;
244
+ --text-statecap--font-weight: 600;
245
+ --text-help-caption: 12px; /* Body & Supporting/Help & Caption (Inter Regular) */
246
+ --text-help-caption--line-height: 14px;
247
+ --text-help-caption--font-weight: 400;
248
+
249
+ /* Effects */
250
+ --shadow-panel: 0 12px 34px -12px oklch(0 0 0 / 0.251); /* General Drop Shadow #00000040 */
251
+ --shadow-knob: 0 1px 2px 0px oklch(0.2027 0.0395 282.3 / 0.251); /* Switch Knob Shadow #14142840 */
252
+ --shadow-modal: 0 12px 16px 0px oklch(0.2027 0.0395 282.3 / 0.122); /* Modal Drop Shadow #1414281f */
253
+ --shadow-toast: 0 4px 6px 0px oklch(0.2027 0.0395 282.3 / 0.071); /* Toast Drop Shadow #14142812 */
254
+
255
+ /*
256
+ * Keyboard focus ring — Figma Menu Item > Ring.
257
+ *
258
+ * In Figma this is a full-size overlay frame, so the ring's OUTER edge
259
+ * aligns with the component's own outer edge instead of sitting outside
260
+ * it. Apply with the .focus-ring utility, which reproduces that with a
261
+ * negative outline-offset. The radius is inherited from the component.
262
+ *
263
+ * The width is a raw value in Figma, not a variable, so it gets its own
264
+ * token rather than borrowing --border-micro, which shares the value but
265
+ * carries no stated relationship to it.
266
+ */
267
+ --ring-focus-width: 2px;
268
+ --ring-focus-color: oklch(0.4234 0.1163 256.9); /* Primary/Main #1e4d8c */
269
+
270
+ /*
271
+ * NOTE: no --spacing-* tokens on purpose. Tailwind v4's spacing scale is a
272
+ * multiplier of --spacing (0.25rem), so Figma's whole-pixel values all map
273
+ * to standard steps: Spacing/8 -> p-2, Spacing/7 -> p-1.75.
274
+ *
275
+ * The multiplier must be a multiple of 0.25 (= 1px steps), so Tailwind can
276
+ * express any whole pixel but no half-pixel. Figma's two fractional tokens
277
+ * need arbitrary values instead: Spacing/7-5 -> p-[7.5px] and
278
+ * Spacing/12-5 -> p-[12.5px]. The multiplier forms p-1.875 / p-3.125 do
279
+ * not compile.
280
+ *
281
+ * Defining --spacing-8: 8px would make p-8 mean 8px instead of 32px and
282
+ * break existing usage. See CLAUDE.md for the full mapping table.
283
+ */
284
+ }
285
+
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Label type utilities, PREFIXED payloads. GENERATED — do not edit by hand.
3
+ *
4
+ * Source: tokens/figma-tokens.json
5
+ * Generator: scripts/build-theme.mjs (npm run build:theme)
6
+ *
7
+ * Byte-for-byte the twin of the @utility blocks in valiify.css, except that each
8
+ * @apply payload is spelled `vd:`. Only the prebuilt bundle's prefixed pass imports
9
+ * this file, and it imports it WITHOUT a prefix — the payloads already carry one.
10
+ *
11
+ * The utility NAMES stay unprefixed here. Tailwind prefixes them at use site, so
12
+ * `@utility type-label-l` is written `vd:type-label-l` in markup.
13
+ */
14
+
15
+ @utility type-label-l {
16
+ @apply vd:text-label-l vd:uppercase; /* Label/Label L Sans */
17
+ }
18
+
19
+ @utility type-label-l-bold {
20
+ @apply vd:text-label-l-bold vd:uppercase; /* Label/Label L Sans - Bold */
21
+ }
22
+
23
+ @utility type-label-l-mono {
24
+ @apply vd:text-label-l-mono vd:font-mono vd:uppercase; /* Label/Label L Mono */
25
+ }
26
+
27
+ @utility type-label-s {
28
+ @apply vd:text-label-s vd:uppercase; /* Label/Label S Sans */
29
+ }
30
+
31
+ @utility type-label-s-bold {
32
+ @apply vd:text-label-s-bold vd:uppercase; /* Label/Label S Sans - Bold */
33
+ }
34
+
35
+ @utility type-label-s-mono {
36
+ @apply vd:text-label-s-mono vd:font-mono vd:uppercase; /* Label/Label S Mono */
37
+ }
@@ -14,7 +14,7 @@
14
14
  * :focus-visible (not :focus) so it appears for keyboard navigation but not on
15
15
  * mouse clicks:
16
16
  *
17
- * .btn:focus-visible { @apply focus-ring; }
17
+ * .vd-btn:focus-visible { @apply focus-ring; }
18
18
  *
19
19
  * Two details worth knowing:
20
20
  *
@@ -0,0 +1,321 @@
1
+ /**
2
+ * The utility surface of the prebuilt bundle. GENERATED — do not edit by hand.
3
+ *
4
+ * Source: design-methodology/*.md
5
+ * Generator: scripts/build-utility-surface.mjs (npm run build:utility-surface)
6
+ *
7
+ * dist/dashboard-ui.css ships a CLOSED set of utilities: a consuming app never
8
+ * compiles our classes, so a utility missing here does not exist for a consumer and
9
+ * a page using it renders unstyled with nothing failing. This file is committed so
10
+ * that set is reviewable in a diff.
11
+ *
12
+ * 306 utilities — each base plus its `md:` form (the one sanctioned
13
+ * breakpoint). Candidates that do not compile are dropped by the generator.
14
+ */
15
+
16
+ @source inline("vd:bg-action-selected");
17
+ @source inline("vd:bg-action-subtle");
18
+ @source inline("vd:bg-approved");
19
+ @source inline("vd:bg-approved-soft");
20
+ @source inline("vd:bg-critical");
21
+ @source inline("vd:bg-critical-soft");
22
+ @source inline("vd:bg-misc-purple");
23
+ @source inline("vd:bg-neutral-strong");
24
+ @source inline("vd:bg-primary");
25
+ @source inline("vd:bg-primary-disabled");
26
+ @source inline("vd:bg-primary-soft");
27
+ @source inline("vd:bg-stroke-divider");
28
+ @source inline("vd:bg-surface-card");
29
+ @source inline("vd:bg-surface-frame");
30
+ @source inline("vd:bg-surface-paper");
31
+ @source inline("vd:bg-warning");
32
+ @source inline("vd:bg-warning-soft");
33
+ @source inline("vd:border");
34
+ @source inline("vd:border-[1.5px]");
35
+ @source inline("vd:border-[length:var(--border-thin)]");
36
+ @source inline("vd:border-b");
37
+ @source inline("vd:border-b-[length:var(--border-thin)]");
38
+ @source inline("vd:border-content-faint");
39
+ @source inline("vd:border-l");
40
+ @source inline("vd:border-l-[length:var(--border-thin)]");
41
+ @source inline("vd:border-primary");
42
+ @source inline("vd:border-stroke-border");
43
+ @source inline("vd:border-stroke-divider");
44
+ @source inline("vd:border-t");
45
+ @source inline("vd:border-warning");
46
+ @source inline("vd:flex");
47
+ @source inline("vd:flex-1");
48
+ @source inline("vd:focus-ring");
49
+ @source inline("vd:font-mono");
50
+ @source inline("vd:gap-0.25");
51
+ @source inline("vd:gap-1");
52
+ @source inline("vd:gap-1.5");
53
+ @source inline("vd:gap-10");
54
+ @source inline("vd:gap-2");
55
+ @source inline("vd:gap-3");
56
+ @source inline("vd:gap-4");
57
+ @source inline("vd:gap-5");
58
+ @source inline("vd:grid");
59
+ @source inline("vd:h-10");
60
+ @source inline("vd:h-11");
61
+ @source inline("vd:h-11.5");
62
+ @source inline("vd:h-12");
63
+ @source inline("vd:h-13");
64
+ @source inline("vd:h-20");
65
+ @source inline("vd:h-5");
66
+ @source inline("vd:h-6");
67
+ @source inline("vd:h-6.5");
68
+ @source inline("vd:h-7");
69
+ @source inline("vd:h-8");
70
+ @source inline("vd:h-9");
71
+ @source inline("vd:h-[103px]");
72
+ @source inline("vd:h-[18px]");
73
+ @source inline("vd:h-[26px]");
74
+ @source inline("vd:h-[30px]");
75
+ @source inline("vd:h-[38px]");
76
+ @source inline("vd:h-[55px]");
77
+ @source inline("vd:h-[71px]");
78
+ @source inline("vd:hover:border-critical");
79
+ @source inline("vd:hover:text-critical");
80
+ @source inline("vd:hover:text-warning");
81
+ @source inline("vd:items-center");
82
+ @source inline("vd:justify-between");
83
+ @source inline("vd:md:bg-action-selected");
84
+ @source inline("vd:md:bg-action-subtle");
85
+ @source inline("vd:md:bg-approved");
86
+ @source inline("vd:md:bg-approved-soft");
87
+ @source inline("vd:md:bg-critical");
88
+ @source inline("vd:md:bg-critical-soft");
89
+ @source inline("vd:md:bg-misc-purple");
90
+ @source inline("vd:md:bg-neutral-strong");
91
+ @source inline("vd:md:bg-primary");
92
+ @source inline("vd:md:bg-primary-disabled");
93
+ @source inline("vd:md:bg-primary-soft");
94
+ @source inline("vd:md:bg-stroke-divider");
95
+ @source inline("vd:md:bg-surface-card");
96
+ @source inline("vd:md:bg-surface-frame");
97
+ @source inline("vd:md:bg-surface-paper");
98
+ @source inline("vd:md:bg-warning");
99
+ @source inline("vd:md:bg-warning-soft");
100
+ @source inline("vd:md:border");
101
+ @source inline("vd:md:border-[1.5px]");
102
+ @source inline("vd:md:border-[length:var(--border-thin)]");
103
+ @source inline("vd:md:border-b");
104
+ @source inline("vd:md:border-b-[length:var(--border-thin)]");
105
+ @source inline("vd:md:border-content-faint");
106
+ @source inline("vd:md:border-l");
107
+ @source inline("vd:md:border-l-[length:var(--border-thin)]");
108
+ @source inline("vd:md:border-primary");
109
+ @source inline("vd:md:border-stroke-border");
110
+ @source inline("vd:md:border-stroke-divider");
111
+ @source inline("vd:md:border-t");
112
+ @source inline("vd:md:border-warning");
113
+ @source inline("vd:md:flex");
114
+ @source inline("vd:md:flex-1");
115
+ @source inline("vd:md:focus-ring");
116
+ @source inline("vd:md:font-mono");
117
+ @source inline("vd:md:gap-0.25");
118
+ @source inline("vd:md:gap-1");
119
+ @source inline("vd:md:gap-1.5");
120
+ @source inline("vd:md:gap-10");
121
+ @source inline("vd:md:gap-2");
122
+ @source inline("vd:md:gap-3");
123
+ @source inline("vd:md:gap-4");
124
+ @source inline("vd:md:gap-5");
125
+ @source inline("vd:md:grid");
126
+ @source inline("vd:md:h-10");
127
+ @source inline("vd:md:h-11");
128
+ @source inline("vd:md:h-11.5");
129
+ @source inline("vd:md:h-12");
130
+ @source inline("vd:md:h-13");
131
+ @source inline("vd:md:h-20");
132
+ @source inline("vd:md:h-5");
133
+ @source inline("vd:md:h-6");
134
+ @source inline("vd:md:h-6.5");
135
+ @source inline("vd:md:h-7");
136
+ @source inline("vd:md:h-8");
137
+ @source inline("vd:md:h-9");
138
+ @source inline("vd:md:h-[103px]");
139
+ @source inline("vd:md:h-[18px]");
140
+ @source inline("vd:md:h-[26px]");
141
+ @source inline("vd:md:h-[30px]");
142
+ @source inline("vd:md:h-[38px]");
143
+ @source inline("vd:md:h-[55px]");
144
+ @source inline("vd:md:h-[71px]");
145
+ @source inline("vd:md:hover:border-critical");
146
+ @source inline("vd:md:hover:text-critical");
147
+ @source inline("vd:md:hover:text-warning");
148
+ @source inline("vd:md:items-center");
149
+ @source inline("vd:md:justify-between");
150
+ @source inline("vd:md:mx-auto");
151
+ @source inline("vd:md:p-0.5");
152
+ @source inline("vd:md:p-1");
153
+ @source inline("vd:md:p-1.5");
154
+ @source inline("vd:md:p-5");
155
+ @source inline("vd:md:pb-7");
156
+ @source inline("vd:md:pl-7");
157
+ @source inline("vd:md:pr-0");
158
+ @source inline("vd:md:pr-6");
159
+ @source inline("vd:md:pt-7");
160
+ @source inline("vd:md:px-1");
161
+ @source inline("vd:md:px-1.5");
162
+ @source inline("vd:md:px-10");
163
+ @source inline("vd:md:px-2");
164
+ @source inline("vd:md:px-2.25");
165
+ @source inline("vd:md:px-3");
166
+ @source inline("vd:md:px-4");
167
+ @source inline("vd:md:px-5");
168
+ @source inline("vd:md:py-1.25");
169
+ @source inline("vd:md:py-1.5");
170
+ @source inline("vd:md:py-1.75");
171
+ @source inline("vd:md:py-2");
172
+ @source inline("vd:md:py-2.5");
173
+ @source inline("vd:md:py-3");
174
+ @source inline("vd:md:py-4");
175
+ @source inline("vd:md:py-5");
176
+ @source inline("vd:md:py-6");
177
+ @source inline("vd:md:py-[12.5px]");
178
+ @source inline("vd:md:rounded-control");
179
+ @source inline("vd:md:rounded-micro");
180
+ @source inline("vd:md:rounded-pill");
181
+ @source inline("vd:md:rounded-surface");
182
+ @source inline("vd:md:rounded-tight");
183
+ @source inline("vd:md:shadow-[0_4px_4px_rgb(0_0_0/0.08)]");
184
+ @source inline("vd:md:shadow-panel");
185
+ @source inline("vd:md:size-7");
186
+ @source inline("vd:md:size-[18px]");
187
+ @source inline("vd:md:text-[#415472]");
188
+ @source inline("vd:md:text-[#ad751b]");
189
+ @source inline("vd:md:text-action-m");
190
+ @source inline("vd:md:text-action-s");
191
+ @source inline("vd:md:text-approved");
192
+ @source inline("vd:md:text-approved-strong");
193
+ @source inline("vd:md:text-body-1");
194
+ @source inline("vd:md:text-body-1-bold");
195
+ @source inline("vd:md:text-body-2");
196
+ @source inline("vd:md:text-body-2-bold");
197
+ @source inline("vd:md:text-caption");
198
+ @source inline("vd:md:text-content-contrast");
199
+ @source inline("vd:md:text-content-faint");
200
+ @source inline("vd:md:text-content-primary");
201
+ @source inline("vd:md:text-content-secondary");
202
+ @source inline("vd:md:text-content-tertiary");
203
+ @source inline("vd:md:text-critical");
204
+ @source inline("vd:md:text-data-s");
205
+ @source inline("vd:md:text-data-xs");
206
+ @source inline("vd:md:text-display");
207
+ @source inline("vd:md:text-h1");
208
+ @source inline("vd:md:text-h2");
209
+ @source inline("vd:md:text-help-caption");
210
+ @source inline("vd:md:text-micro-l");
211
+ @source inline("vd:md:text-micro-s-bold");
212
+ @source inline("vd:md:text-primary");
213
+ @source inline("vd:md:text-primary-dark");
214
+ @source inline("vd:md:text-right");
215
+ @source inline("vd:md:text-statecap");
216
+ @source inline("vd:md:text-warning");
217
+ @source inline("vd:md:type-label-l-bold");
218
+ @source inline("vd:md:type-label-s-bold");
219
+ @source inline("vd:md:uppercase");
220
+ @source inline("vd:md:w-100");
221
+ @source inline("vd:md:w-11");
222
+ @source inline("vd:md:w-30");
223
+ @source inline("vd:md:w-35");
224
+ @source inline("vd:md:w-50");
225
+ @source inline("vd:md:w-60");
226
+ @source inline("vd:md:w-80");
227
+ @source inline("vd:md:w-[1050px]");
228
+ @source inline("vd:md:w-[1100px]");
229
+ @source inline("vd:md:w-[1532px]");
230
+ @source inline("vd:md:w-[1868px]");
231
+ @source inline("vd:md:w-[356px]");
232
+ @source inline("vd:md:w-[500px]");
233
+ @source inline("vd:md:w-[600px]");
234
+ @source inline("vd:md:w-[622px]");
235
+ @source inline("vd:md:w-full");
236
+ @source inline("vd:mx-auto");
237
+ @source inline("vd:p-0.5");
238
+ @source inline("vd:p-1");
239
+ @source inline("vd:p-1.5");
240
+ @source inline("vd:p-5");
241
+ @source inline("vd:pb-7");
242
+ @source inline("vd:pl-7");
243
+ @source inline("vd:pr-0");
244
+ @source inline("vd:pr-6");
245
+ @source inline("vd:pt-7");
246
+ @source inline("vd:px-1");
247
+ @source inline("vd:px-1.5");
248
+ @source inline("vd:px-10");
249
+ @source inline("vd:px-2");
250
+ @source inline("vd:px-2.25");
251
+ @source inline("vd:px-3");
252
+ @source inline("vd:px-4");
253
+ @source inline("vd:px-5");
254
+ @source inline("vd:py-1.25");
255
+ @source inline("vd:py-1.5");
256
+ @source inline("vd:py-1.75");
257
+ @source inline("vd:py-2");
258
+ @source inline("vd:py-2.5");
259
+ @source inline("vd:py-3");
260
+ @source inline("vd:py-4");
261
+ @source inline("vd:py-5");
262
+ @source inline("vd:py-6");
263
+ @source inline("vd:py-[12.5px]");
264
+ @source inline("vd:rounded-control");
265
+ @source inline("vd:rounded-micro");
266
+ @source inline("vd:rounded-pill");
267
+ @source inline("vd:rounded-surface");
268
+ @source inline("vd:rounded-tight");
269
+ @source inline("vd:shadow-[0_4px_4px_rgb(0_0_0/0.08)]");
270
+ @source inline("vd:shadow-panel");
271
+ @source inline("vd:size-7");
272
+ @source inline("vd:size-[18px]");
273
+ @source inline("vd:text-[#415472]");
274
+ @source inline("vd:text-[#ad751b]");
275
+ @source inline("vd:text-action-m");
276
+ @source inline("vd:text-action-s");
277
+ @source inline("vd:text-approved");
278
+ @source inline("vd:text-approved-strong");
279
+ @source inline("vd:text-body-1");
280
+ @source inline("vd:text-body-1-bold");
281
+ @source inline("vd:text-body-2");
282
+ @source inline("vd:text-body-2-bold");
283
+ @source inline("vd:text-caption");
284
+ @source inline("vd:text-content-contrast");
285
+ @source inline("vd:text-content-faint");
286
+ @source inline("vd:text-content-primary");
287
+ @source inline("vd:text-content-secondary");
288
+ @source inline("vd:text-content-tertiary");
289
+ @source inline("vd:text-critical");
290
+ @source inline("vd:text-data-s");
291
+ @source inline("vd:text-data-xs");
292
+ @source inline("vd:text-display");
293
+ @source inline("vd:text-h1");
294
+ @source inline("vd:text-h2");
295
+ @source inline("vd:text-help-caption");
296
+ @source inline("vd:text-micro-l");
297
+ @source inline("vd:text-micro-s-bold");
298
+ @source inline("vd:text-primary");
299
+ @source inline("vd:text-primary-dark");
300
+ @source inline("vd:text-right");
301
+ @source inline("vd:text-statecap");
302
+ @source inline("vd:text-warning");
303
+ @source inline("vd:type-label-l-bold");
304
+ @source inline("vd:type-label-s-bold");
305
+ @source inline("vd:uppercase");
306
+ @source inline("vd:w-100");
307
+ @source inline("vd:w-11");
308
+ @source inline("vd:w-30");
309
+ @source inline("vd:w-35");
310
+ @source inline("vd:w-50");
311
+ @source inline("vd:w-60");
312
+ @source inline("vd:w-80");
313
+ @source inline("vd:w-[1050px]");
314
+ @source inline("vd:w-[1100px]");
315
+ @source inline("vd:w-[1532px]");
316
+ @source inline("vd:w-[1868px]");
317
+ @source inline("vd:w-[356px]");
318
+ @source inline("vd:w-[500px]");
319
+ @source inline("vd:w-[600px]");
320
+ @source inline("vd:w-[622px]");
321
+ @source inline("vd:w-full");