@valiify/dashboard-ui 0.2.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1025 -12
- package/COMPONENTS.md +185 -79
- package/GETTING_STARTED.md +138 -38
- package/QUICK_REFERENCE.md +48 -30
- package/README.md +134 -83
- package/TROUBLESHOOTING.md +52 -34
- package/class-manifest.json +140 -71
- package/design-methodology/dashboard.md +92 -80
- package/dist/dashboard-ui.css +1525 -1078
- package/dist/index.css +1246 -732
- package/package.json +19 -10
- package/scripts/codemods/0.5.0-chip-sizes.mjs +437 -0
- package/src/build/utilities.css +7 -10
- package/src/components/_template.css +12 -8
- package/src/components/alert.css +35 -8
- package/src/components/avatar.css +42 -30
- package/src/components/breadcrumbs.css +39 -22
- package/src/components/button.css +84 -14
- package/src/components/card.css +2 -2
- package/src/components/checkbox.css +16 -11
- package/src/components/chip.css +155 -79
- package/src/components/composer.css +145 -0
- package/src/components/data-row.css +10 -6
- package/src/components/divider.css +17 -22
- package/src/components/dropdown-field.css +83 -43
- package/src/components/dropdown-menu.css +80 -14
- package/src/components/field-verification.css +21 -5
- package/src/components/filter-segment.css +27 -8
- package/src/components/icon-button.css +49 -10
- package/src/components/index.css +2 -0
- package/src/components/input.css +88 -32
- package/src/components/link.css +27 -16
- package/src/components/loading-inline.css +15 -21
- package/src/components/menu-item.css +149 -49
- package/src/components/modal.css +8 -5
- package/src/components/navigation-rail.css +67 -31
- package/src/components/pagination-item.css +29 -28
- package/src/components/pagination.css +9 -14
- package/src/components/pill.css +16 -10
- package/src/components/progress-bar.css +8 -10
- package/src/components/radio-select.css +9 -2
- package/src/components/recipient-input.css +119 -0
- package/src/components/section-marker.css +5 -5
- package/src/components/segment-selector.css +9 -3
- package/src/components/sensitive-data.css +7 -5
- package/src/components/skeleton.css +18 -6
- package/src/components/step.css +15 -4
- package/src/components/stepper.css +3 -2
- package/src/components/switch.css +7 -0
- package/src/components/tabs.css +108 -28
- package/src/components/tag.css +156 -51
- package/src/components/text-button.css +54 -59
- package/src/components/textarea.css +87 -22
- package/src/components/toast.css +41 -15
- package/src/components/tooltip.css +13 -2
- package/src/fonts.css +2 -1
- package/src/library.css +1 -1
- package/src/reset.css +213 -0
- package/src/themes/valiify-tokens.css +101 -126
- package/src/themes/valiify.css +258 -157
- package/src/utility-surface.css +51 -49
- package/types/components.d.ts +142 -24
- package/CLAUDE.md +0 -3694
- package/examples/README.md +0 -198
- package/examples/basic/index.html +0 -155
- package/examples/daisyui-starter/README.md +0 -58
- package/examples/daisyui-starter/check-no-bleed.mjs +0 -249
- package/examples/daisyui-starter/index.html +0 -72
- package/examples/daisyui-starter/linked.html +0 -74
- package/examples/daisyui-starter/package-lock.json +0 -2221
- package/examples/daisyui-starter/package.json +0 -22
- package/examples/daisyui-starter/postcss.config.js +0 -1
- package/examples/daisyui-starter/src/host.css +0 -14
- package/examples/daisyui-starter/src/only-import.css +0 -4
- package/examples/daisyui-starter/src/styles.css +0 -36
- package/examples/daisyui-starter/tailwind.config.js +0 -13
- package/examples/postcss-starter/README.md +0 -47
- package/examples/postcss-starter/index.html +0 -54
- package/examples/postcss-starter/package.json +0 -19
- package/examples/postcss-starter/postcss.config.js +0 -5
- package/examples/postcss-starter/src/styles.css +0 -17
- package/examples/sveltekit-starter/README.md +0 -32
- package/examples/sveltekit-starter/check-scoped-styles.mjs +0 -103
- package/examples/sveltekit-starter/package-lock.json +0 -1300
- package/examples/sveltekit-starter/package.json +0 -24
- package/examples/sveltekit-starter/src/app.css +0 -17
- package/examples/sveltekit-starter/src/app.html +0 -11
- package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +0 -20
- package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +0 -27
- package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +0 -22
- package/examples/sveltekit-starter/src/routes/+layout.svelte +0 -6
- package/examples/sveltekit-starter/src/routes/+page.svelte +0 -10
- package/examples/sveltekit-starter/svelte.config.js +0 -4
- package/examples/sveltekit-starter/vite.config.js +0 -6
- package/examples/vite-starter/README.md +0 -125
- package/examples/vite-starter/index.html +0 -12
- package/examples/vite-starter/package.json +0 -19
- package/examples/vite-starter/src/main.js +0 -188
- package/examples/vite-starter/src/styles.css +0 -22
- package/examples/vite-starter/vite.config.js +0 -6
- package/src/themes/valiify-type-prefixed.css +0 -37
package/src/themes/valiify.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Declared in Tailwind's `@theme` so every token generates utilities:
|
|
11
11
|
* --color-primary -> bg-primary, text-primary, border-primary
|
|
12
12
|
* --radius-control -> rounded-control
|
|
13
|
-
* --text-body-
|
|
13
|
+
* --text-body-dense -> text-body-dense (size + line-height + weight + tracking)
|
|
14
14
|
*
|
|
15
15
|
* Prefer those utilities over hand-written var().
|
|
16
16
|
*
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
/* Brand primary */
|
|
27
27
|
--color-primary: oklch(0.4234 0.1163 256.9); /* #1e4d8c */
|
|
28
28
|
--color-primary-dark: oklch(0.3509 0.0948 257.07); /* #163a6b */
|
|
29
|
-
--color-primary-pressed: oklch(0.
|
|
29
|
+
--color-primary-pressed: oklch(0.3509 0.0948 257.07); /* #163a6b */
|
|
30
30
|
--color-primary-soft: oklch(0.4234 0.1163 256.9 / 0.078); /* #1e4d8c14 */
|
|
31
31
|
--color-primary-disabled: oklch(0.4234 0.1163 256.9 / 0.4); /* #1e4d8c66 */
|
|
32
32
|
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
--color-secondary: oklch(0.4759 0.0208 285.58); /* #5b5b68 */
|
|
35
35
|
--color-secondary-strong: oklch(0.428 0.018 285.61); /* #4e4e59 */
|
|
36
36
|
--color-secondary-soft: oklch(0.637 0.0163 285.93 / 0.09); /* #8a8a9517 */
|
|
37
|
+
--color-secondary-content: oklch(0.5416 0.0154 285.87); /* #6e6e78 */
|
|
37
38
|
--color-secondary-disabled: oklch(0.637 0.0163 285.93 / 0.4); /* #8a8a9566 */
|
|
38
39
|
|
|
39
40
|
/* Content (text / ink) */
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
/* Stroke colors — widths are --border-* below */
|
|
53
54
|
--color-stroke-divider: oklch(0.2027 0.0395 282.3 / 0.078); /* #14142814 */
|
|
54
55
|
--color-stroke-border: oklch(0.2027 0.0395 282.3 / 0.129); /* #14142821 */
|
|
56
|
+
--color-stroke-highlight: oklch(1 0 0 / 0.922); /* #ffffffeb */
|
|
55
57
|
--color-stroke-disabled: oklch(0.2027 0.0395 282.3 / 0.039); /* #1414280a */
|
|
56
58
|
|
|
57
59
|
/* Action overlays (interaction states) */
|
|
@@ -63,18 +65,26 @@
|
|
|
63
65
|
/* Status — approved */
|
|
64
66
|
--color-approved: oklch(0.5269 0.0996 169.13); /* #157d61 */
|
|
65
67
|
--color-approved-soft: oklch(0.6154 0.1179 168.68 / 0.09); /* #1a9b7817 */
|
|
66
|
-
--color-approved-strong: oklch(0.
|
|
68
|
+
--color-approved-strong: oklch(0.4993 0.095 168.47); /* #137459 */
|
|
67
69
|
--color-approved-content: oklch(0.4993 0.095 168.47); /* #137459 */
|
|
68
70
|
|
|
69
71
|
/* Status — critical */
|
|
70
72
|
--color-critical: oklch(0.5458 0.1847 21.87); /* #c5303c */
|
|
71
73
|
--color-critical-soft: oklch(0.5994 0.1849 20.33 / 0.09); /* #d8434f17 */
|
|
72
74
|
--color-critical-strong: oklch(0.5379 0.1636 20.28); /* #ba3a44 */
|
|
73
|
-
--color-critical-content: oklch(0.
|
|
75
|
+
--color-critical-content: oklch(0.5208 0.1607 20.82); /* #b3363f */
|
|
74
76
|
|
|
75
77
|
/* Status — warning */
|
|
76
78
|
--color-warning: oklch(0.6765 0.1352 72.89); /* #c9881f */
|
|
77
79
|
--color-warning-soft: oklch(0.6765 0.1352 72.89 / 0.09); /* #c9881f17 */
|
|
80
|
+
--color-warning-strong: oklch(0.6062 0.1202 73.05); /* #ad751b */
|
|
81
|
+
--color-warning-content: oklch(0.5181 0.1018 73.58); /* #8b5e15 */
|
|
82
|
+
|
|
83
|
+
/* Status — info (real since Revision 3, 2026-09-28 — was deliberately absent before) */
|
|
84
|
+
--color-info: oklch(0.4931 0.0625 259.49); /* #4c6285 */
|
|
85
|
+
--color-info-strong: oklch(0.443 0.0551 259.35); /* #415472 */
|
|
86
|
+
--color-info-soft: oklch(0.4931 0.0625 259.49 / 0.09); /* #4c628517 */
|
|
87
|
+
--color-info-content: oklch(0.4931 0.0625 259.49); /* #4c6285 */
|
|
78
88
|
|
|
79
89
|
/* Status — neutral */
|
|
80
90
|
--color-neutral: oklch(0.6871 0.0189 285.89); /* #9999a6 */
|
|
@@ -101,6 +111,20 @@
|
|
|
101
111
|
--border-line: 1px; /* Stroke/Line */
|
|
102
112
|
--border-micro: 2px; /* Stroke/Micro */
|
|
103
113
|
|
|
114
|
+
/*
|
|
115
|
+
* Control heights — Tailwind's --height-* namespace, so `h-control-md`,
|
|
116
|
+
* `min-h-control-md`, `max-h-control-md`. Border-box heights: Figma frames
|
|
117
|
+
* carry strokesIncludedInLayout=false, so the hairline sits inside the box.
|
|
118
|
+
* Pin with `height`, never `min-height` (Chrome floors 0.5px to 1px and
|
|
119
|
+
* ADDS it). Keys are never numeric: --height-8 would redefine h-8.
|
|
120
|
+
* Which modifier lands on which step: tokens/control-heights.json.
|
|
121
|
+
*/
|
|
122
|
+
--height-control-xs: 20px; /* Height/Control/XS — 20 — btn-xs, input-xs, tag-sm, filter-segment-sm */
|
|
123
|
+
--height-control-sm: 24px; /* Height/Control/SM — 24 — btn-sm, input-sm, tab-sm/chip/segment, tag-md, breadcrumbs */
|
|
124
|
+
--height-control-md: 28px; /* Height/Control/MD — 28 — btn, input, icon-button, filter-segment-md (the base size) */
|
|
125
|
+
--height-control-lg: 32px; /* Height/Control/LG — 32 — btn-lg, input-lg, tab-underline, pagination-item, tag-lg */
|
|
126
|
+
--height-control-xl: 40px; /* Height/Control/XL — 40 — btn-xl, input-xl, composer shell */
|
|
127
|
+
|
|
104
128
|
/* Font families */
|
|
105
129
|
--font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
106
130
|
Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
@@ -122,135 +146,82 @@
|
|
|
122
146
|
* tracking but NOT font-family and NOT text-transform. Two consequences:
|
|
123
147
|
*
|
|
124
148
|
* JetBrains Mono styles must be paired with font-mono, or they render
|
|
125
|
-
* in Inter: @apply text-data-
|
|
149
|
+
* in Inter: @apply text-data-compact font-mono;
|
|
126
150
|
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
151
|
+
* No Revision 3 style carries a text-transform: casing is typed. The
|
|
152
|
+
* .vd-text-* classes below also carry the font family.
|
|
129
153
|
*/
|
|
130
|
-
|
|
131
|
-
--text-
|
|
132
|
-
--text-
|
|
133
|
-
--text-
|
|
134
|
-
--text-
|
|
135
|
-
--text-
|
|
136
|
-
--text-
|
|
137
|
-
--text-
|
|
138
|
-
--text-
|
|
139
|
-
--text-
|
|
140
|
-
--text-
|
|
141
|
-
--text-
|
|
142
|
-
--text-body-
|
|
143
|
-
--text-body-
|
|
144
|
-
--text-body-
|
|
145
|
-
--text-body-
|
|
146
|
-
--text-body-
|
|
147
|
-
--text-body-
|
|
148
|
-
--text-body-
|
|
149
|
-
--text-body-
|
|
150
|
-
--text-body-
|
|
151
|
-
--text-body-
|
|
152
|
-
--text-
|
|
153
|
-
--text-
|
|
154
|
-
--text-caption:
|
|
155
|
-
--text-caption
|
|
156
|
-
--text-caption--
|
|
157
|
-
--text-caption-
|
|
158
|
-
--text-
|
|
159
|
-
--text-
|
|
160
|
-
--text-
|
|
161
|
-
--text-
|
|
162
|
-
--text-
|
|
163
|
-
--text-
|
|
164
|
-
--text-
|
|
165
|
-
--text-
|
|
166
|
-
--text-
|
|
167
|
-
--text-
|
|
168
|
-
--text-
|
|
169
|
-
--text-
|
|
170
|
-
--text-label-
|
|
171
|
-
--text-label-
|
|
172
|
-
--text-label-
|
|
173
|
-
--text-label-
|
|
174
|
-
--text-
|
|
175
|
-
--text-
|
|
176
|
-
--text-
|
|
177
|
-
--text-
|
|
178
|
-
--text-
|
|
179
|
-
--text-
|
|
180
|
-
--text-
|
|
181
|
-
--text-
|
|
182
|
-
--text-
|
|
183
|
-
--text-
|
|
184
|
-
--text-data-
|
|
185
|
-
--text-data-
|
|
186
|
-
--text-
|
|
187
|
-
--text-
|
|
188
|
-
--text-
|
|
189
|
-
--text-
|
|
190
|
-
--text-
|
|
191
|
-
--text-
|
|
192
|
-
--text-
|
|
193
|
-
--text-
|
|
194
|
-
--text-
|
|
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;
|
|
154
|
+
/* Type scale — Revision 3 (2026-09-28). Each also ships as a .vd-text-* class. */
|
|
155
|
+
--text-heading-page: 19px; /* Heading/Page (Inter Semi Bold) */
|
|
156
|
+
--text-heading-page--line-height: 24px;
|
|
157
|
+
--text-heading-page--font-weight: 600;
|
|
158
|
+
--text-heading-section: 17px; /* Heading/Section (Inter Semi Bold) */
|
|
159
|
+
--text-heading-section--line-height: 22px;
|
|
160
|
+
--text-heading-section--font-weight: 600;
|
|
161
|
+
--text-heading-compact: 14px; /* Heading/Compact (Inter Semi Bold) */
|
|
162
|
+
--text-heading-compact--line-height: 20px;
|
|
163
|
+
--text-heading-compact--font-weight: 600;
|
|
164
|
+
--text-body-default: 14px; /* Body/Default (Inter Regular) */
|
|
165
|
+
--text-body-default--line-height: 20px;
|
|
166
|
+
--text-body-default--font-weight: 400;
|
|
167
|
+
--text-body-default-strong: 14px; /* Body/Default Strong (Inter Medium) */
|
|
168
|
+
--text-body-default-strong--line-height: 20px;
|
|
169
|
+
--text-body-default-strong--font-weight: 500;
|
|
170
|
+
--text-body-dense: 13px; /* Body/Dense (Inter Regular) */
|
|
171
|
+
--text-body-dense--line-height: 18px;
|
|
172
|
+
--text-body-dense--font-weight: 400;
|
|
173
|
+
--text-body-dense-strong: 13px; /* Body/Dense Strong (Inter Medium) */
|
|
174
|
+
--text-body-dense-strong--line-height: 18px;
|
|
175
|
+
--text-body-dense-strong--font-weight: 500;
|
|
176
|
+
--text-supporting-caption: 12px; /* Supporting/Caption (Inter Regular) */
|
|
177
|
+
--text-supporting-caption--line-height: 18px;
|
|
178
|
+
--text-supporting-caption--font-weight: 400;
|
|
179
|
+
--text-supporting-caption-strong: 12px; /* Supporting/Caption Strong (Inter Medium) */
|
|
180
|
+
--text-supporting-caption-strong--line-height: 18px;
|
|
181
|
+
--text-supporting-caption-strong--font-weight: 500;
|
|
182
|
+
--text-action-compact: 12px; /* Action/Compact (Inter Medium) */
|
|
183
|
+
--text-action-compact--line-height: 16px;
|
|
184
|
+
--text-action-compact--font-weight: 500;
|
|
185
|
+
--text-action-compact-active: 12px; /* Action/Compact Active (Inter Semi Bold) */
|
|
186
|
+
--text-action-compact-active--line-height: 16px;
|
|
187
|
+
--text-action-compact-active--font-weight: 600;
|
|
188
|
+
--text-action-default: 13px; /* Action/Default (Inter Medium) */
|
|
189
|
+
--text-action-default--line-height: 18px;
|
|
190
|
+
--text-action-default--font-weight: 500;
|
|
191
|
+
--text-action-default-active: 13px; /* Action/Default Active (Inter Semi Bold) */
|
|
192
|
+
--text-action-default-active--line-height: 18px;
|
|
193
|
+
--text-action-default-active--font-weight: 600;
|
|
194
|
+
--text-label-compact: 12px; /* Label/Compact (Inter Semi Bold) */
|
|
195
|
+
--text-label-compact--line-height: 16px;
|
|
196
|
+
--text-label-compact--font-weight: 600;
|
|
197
|
+
--text-label-compact--letter-spacing: 0.08em; /* 8% */
|
|
198
|
+
--text-data-compact: 12px; /* Data/Compact (JetBrains Mono Regular — needs font-mono) */
|
|
199
|
+
--text-data-compact--line-height: 16.5px;
|
|
200
|
+
--text-data-compact--font-weight: 400;
|
|
201
|
+
--text-data-dense: 13px; /* Data/Dense (JetBrains Mono Regular — needs font-mono) */
|
|
202
|
+
--text-data-dense--line-height: 19.5px;
|
|
203
|
+
--text-data-dense--font-weight: 400;
|
|
204
|
+
--text-data-emphasis: 14px; /* Data/Emphasis (JetBrains Mono Medium — needs font-mono) */
|
|
205
|
+
--text-data-emphasis--line-height: 21px;
|
|
206
|
+
--text-data-emphasis--font-weight: 500;
|
|
207
|
+
--text-data-large: 18px; /* Data/Large (JetBrains Mono Medium — needs font-mono) */
|
|
208
|
+
--text-data-large--line-height: 22px;
|
|
209
|
+
--text-data-large--font-weight: 500;
|
|
210
|
+
--text-utility-avatar-initials: 8px; /* Utility/Avatar Initials (Inter Semi Bold) */
|
|
211
|
+
--text-utility-avatar-initials--line-height: 8px;
|
|
212
|
+
--text-utility-avatar-initials--font-weight: 600;
|
|
213
|
+
--text-utility-badge-count: 10px; /* Utility/Badge Count (JetBrains Mono Medium — needs font-mono) */
|
|
214
|
+
--text-utility-badge-count--line-height: 12px;
|
|
215
|
+
--text-utility-badge-count--font-weight: 500;
|
|
216
|
+
--text-display-metric: 46px; /* Display/Metric (Inter Light) */
|
|
217
|
+
--text-display-metric--line-height: 52px;
|
|
218
|
+
--text-display-metric--font-weight: 300;
|
|
248
219
|
|
|
249
220
|
/* Effects */
|
|
250
221
|
--shadow-panel: 0 12px 34px -12px oklch(0 0 0 / 0.251); /* General Drop Shadow #00000040 */
|
|
251
222
|
--shadow-knob: 0 1px 2px 0px oklch(0.2027 0.0395 282.3 / 0.251); /* Switch Knob Shadow #14142840 */
|
|
252
223
|
--shadow-modal: 0 12px 16px 0px oklch(0.2027 0.0395 282.3 / 0.122); /* Modal Drop Shadow #1414281f */
|
|
253
|
-
--shadow-toast: 0 4px
|
|
224
|
+
--shadow-toast: 0 4px 12px 0px oklch(0.2027 0.0395 282.3 / 0.071); /* Toast Drop Shadow #14142812 */
|
|
254
225
|
|
|
255
226
|
/*
|
|
256
227
|
* Keyboard focus ring — Figma Menu Item > Ring.
|
|
@@ -280,40 +251,170 @@
|
|
|
280
251
|
*
|
|
281
252
|
* Defining --spacing-8: 8px would make p-8 mean 8px instead of 32px and
|
|
282
253
|
* break existing usage. See CLAUDE.md for the full mapping table.
|
|
254
|
+
*
|
|
255
|
+
* Heights are NOT part of this. They live in the --height-* namespace above,
|
|
256
|
+
* which Tailwind consults before the multiplier and which carries no default
|
|
257
|
+
* keys. --height-<number> is prohibited for the same reason --spacing-<number> is.
|
|
283
258
|
*/
|
|
284
259
|
}
|
|
285
260
|
|
|
286
261
|
/**
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
* cannot carry text-transform or font-family. These bundle the whole style so
|
|
291
|
-
* the casing — and the mono family, where it applies — cannot be forgotten:
|
|
292
|
-
*
|
|
293
|
-
* <span class="type-label-l">Section heading</span>
|
|
294
|
-
*
|
|
295
|
-
* Prefer these over the bare text-label-* tokens.
|
|
262
|
+
* Type style classes — Revision 3 scale, one class per Figma text style.
|
|
263
|
+
* Unlike the text-* utilities these carry font-family (and tabular numerals
|
|
264
|
+
* on data styles), and they ship in the prebuilt bundles.
|
|
296
265
|
*/
|
|
297
|
-
@
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
266
|
+
@layer components {
|
|
267
|
+
.vd-text-heading-page {
|
|
268
|
+
/* Heading/Page */
|
|
269
|
+
font-family: var(--font-sans);
|
|
270
|
+
font-size: var(--text-heading-page);
|
|
271
|
+
line-height: var(--text-heading-page--line-height);
|
|
272
|
+
font-weight: var(--text-heading-page--font-weight);
|
|
273
|
+
}
|
|
274
|
+
.vd-text-heading-section {
|
|
275
|
+
/* Heading/Section */
|
|
276
|
+
font-family: var(--font-sans);
|
|
277
|
+
font-size: var(--text-heading-section);
|
|
278
|
+
line-height: var(--text-heading-section--line-height);
|
|
279
|
+
font-weight: var(--text-heading-section--font-weight);
|
|
280
|
+
}
|
|
281
|
+
.vd-text-heading-compact {
|
|
282
|
+
/* Heading/Compact */
|
|
283
|
+
font-family: var(--font-sans);
|
|
284
|
+
font-size: var(--text-heading-compact);
|
|
285
|
+
line-height: var(--text-heading-compact--line-height);
|
|
286
|
+
font-weight: var(--text-heading-compact--font-weight);
|
|
287
|
+
}
|
|
288
|
+
.vd-text-body-default {
|
|
289
|
+
/* Body/Default */
|
|
290
|
+
font-family: var(--font-sans);
|
|
291
|
+
font-size: var(--text-body-default);
|
|
292
|
+
line-height: var(--text-body-default--line-height);
|
|
293
|
+
font-weight: var(--text-body-default--font-weight);
|
|
294
|
+
}
|
|
295
|
+
.vd-text-body-default-strong {
|
|
296
|
+
/* Body/Default Strong */
|
|
297
|
+
font-family: var(--font-sans);
|
|
298
|
+
font-size: var(--text-body-default-strong);
|
|
299
|
+
line-height: var(--text-body-default-strong--line-height);
|
|
300
|
+
font-weight: var(--text-body-default-strong--font-weight);
|
|
301
|
+
}
|
|
302
|
+
.vd-text-body-dense {
|
|
303
|
+
/* Body/Dense */
|
|
304
|
+
font-family: var(--font-sans);
|
|
305
|
+
font-size: var(--text-body-dense);
|
|
306
|
+
line-height: var(--text-body-dense--line-height);
|
|
307
|
+
font-weight: var(--text-body-dense--font-weight);
|
|
308
|
+
}
|
|
309
|
+
.vd-text-body-dense-strong {
|
|
310
|
+
/* Body/Dense Strong */
|
|
311
|
+
font-family: var(--font-sans);
|
|
312
|
+
font-size: var(--text-body-dense-strong);
|
|
313
|
+
line-height: var(--text-body-dense-strong--line-height);
|
|
314
|
+
font-weight: var(--text-body-dense-strong--font-weight);
|
|
315
|
+
}
|
|
316
|
+
.vd-text-supporting-caption {
|
|
317
|
+
/* Supporting/Caption */
|
|
318
|
+
font-family: var(--font-sans);
|
|
319
|
+
font-size: var(--text-supporting-caption);
|
|
320
|
+
line-height: var(--text-supporting-caption--line-height);
|
|
321
|
+
font-weight: var(--text-supporting-caption--font-weight);
|
|
322
|
+
}
|
|
323
|
+
.vd-text-supporting-caption-strong {
|
|
324
|
+
/* Supporting/Caption Strong */
|
|
325
|
+
font-family: var(--font-sans);
|
|
326
|
+
font-size: var(--text-supporting-caption-strong);
|
|
327
|
+
line-height: var(--text-supporting-caption-strong--line-height);
|
|
328
|
+
font-weight: var(--text-supporting-caption-strong--font-weight);
|
|
329
|
+
}
|
|
330
|
+
.vd-text-action-compact {
|
|
331
|
+
/* Action/Compact */
|
|
332
|
+
font-family: var(--font-sans);
|
|
333
|
+
font-size: var(--text-action-compact);
|
|
334
|
+
line-height: var(--text-action-compact--line-height);
|
|
335
|
+
font-weight: var(--text-action-compact--font-weight);
|
|
336
|
+
}
|
|
337
|
+
.vd-text-action-compact-active {
|
|
338
|
+
/* Action/Compact Active */
|
|
339
|
+
font-family: var(--font-sans);
|
|
340
|
+
font-size: var(--text-action-compact-active);
|
|
341
|
+
line-height: var(--text-action-compact-active--line-height);
|
|
342
|
+
font-weight: var(--text-action-compact-active--font-weight);
|
|
343
|
+
}
|
|
344
|
+
.vd-text-action-default {
|
|
345
|
+
/* Action/Default */
|
|
346
|
+
font-family: var(--font-sans);
|
|
347
|
+
font-size: var(--text-action-default);
|
|
348
|
+
line-height: var(--text-action-default--line-height);
|
|
349
|
+
font-weight: var(--text-action-default--font-weight);
|
|
350
|
+
}
|
|
351
|
+
.vd-text-action-default-active {
|
|
352
|
+
/* Action/Default Active */
|
|
353
|
+
font-family: var(--font-sans);
|
|
354
|
+
font-size: var(--text-action-default-active);
|
|
355
|
+
line-height: var(--text-action-default-active--line-height);
|
|
356
|
+
font-weight: var(--text-action-default-active--font-weight);
|
|
357
|
+
}
|
|
358
|
+
.vd-text-label-compact {
|
|
359
|
+
/* Label/Compact */
|
|
360
|
+
font-family: var(--font-sans);
|
|
361
|
+
font-size: var(--text-label-compact);
|
|
362
|
+
line-height: var(--text-label-compact--line-height);
|
|
363
|
+
font-weight: var(--text-label-compact--font-weight);
|
|
364
|
+
letter-spacing: var(--text-label-compact--letter-spacing);
|
|
365
|
+
}
|
|
366
|
+
.vd-text-data-compact {
|
|
367
|
+
/* Data/Compact */
|
|
368
|
+
font-family: var(--font-mono);
|
|
369
|
+
font-size: var(--text-data-compact);
|
|
370
|
+
line-height: var(--text-data-compact--line-height);
|
|
371
|
+
font-weight: var(--text-data-compact--font-weight);
|
|
372
|
+
font-variant-numeric: tabular-nums;
|
|
373
|
+
}
|
|
374
|
+
.vd-text-data-dense {
|
|
375
|
+
/* Data/Dense */
|
|
376
|
+
font-family: var(--font-mono);
|
|
377
|
+
font-size: var(--text-data-dense);
|
|
378
|
+
line-height: var(--text-data-dense--line-height);
|
|
379
|
+
font-weight: var(--text-data-dense--font-weight);
|
|
380
|
+
font-variant-numeric: tabular-nums;
|
|
381
|
+
}
|
|
382
|
+
.vd-text-data-emphasis {
|
|
383
|
+
/* Data/Emphasis */
|
|
384
|
+
font-family: var(--font-mono);
|
|
385
|
+
font-size: var(--text-data-emphasis);
|
|
386
|
+
line-height: var(--text-data-emphasis--line-height);
|
|
387
|
+
font-weight: var(--text-data-emphasis--font-weight);
|
|
388
|
+
font-variant-numeric: tabular-nums;
|
|
389
|
+
}
|
|
390
|
+
.vd-text-data-large {
|
|
391
|
+
/* Data/Large */
|
|
392
|
+
font-family: var(--font-mono);
|
|
393
|
+
font-size: var(--text-data-large);
|
|
394
|
+
line-height: var(--text-data-large--line-height);
|
|
395
|
+
font-weight: var(--text-data-large--font-weight);
|
|
396
|
+
font-variant-numeric: tabular-nums;
|
|
397
|
+
}
|
|
398
|
+
.vd-text-utility-avatar-initials {
|
|
399
|
+
/* Utility/Avatar Initials */
|
|
400
|
+
font-family: var(--font-sans);
|
|
401
|
+
font-size: var(--text-utility-avatar-initials);
|
|
402
|
+
line-height: var(--text-utility-avatar-initials--line-height);
|
|
403
|
+
font-weight: var(--text-utility-avatar-initials--font-weight);
|
|
404
|
+
}
|
|
405
|
+
.vd-text-utility-badge-count {
|
|
406
|
+
/* Utility/Badge Count */
|
|
407
|
+
font-family: var(--font-mono);
|
|
408
|
+
font-size: var(--text-utility-badge-count);
|
|
409
|
+
line-height: var(--text-utility-badge-count--line-height);
|
|
410
|
+
font-weight: var(--text-utility-badge-count--font-weight);
|
|
411
|
+
font-variant-numeric: tabular-nums;
|
|
412
|
+
}
|
|
413
|
+
.vd-text-display-metric {
|
|
414
|
+
/* Display/Metric */
|
|
415
|
+
font-family: var(--font-sans);
|
|
416
|
+
font-size: var(--text-display-metric);
|
|
417
|
+
line-height: var(--text-display-metric--line-height);
|
|
418
|
+
font-weight: var(--text-display-metric--font-weight);
|
|
419
|
+
}
|
|
319
420
|
}
|