@valiify/dashboard-ui 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +933 -10
- package/COMPONENTS.md +185 -79
- package/GETTING_STARTED.md +116 -54
- package/QUICK_REFERENCE.md +48 -30
- package/README.md +107 -85
- package/TROUBLESHOOTING.md +52 -34
- package/class-manifest.json +140 -71
- package/design-methodology/dashboard.md +92 -80
- package/dist/dashboard-ui.css +1525 -1078
- package/dist/index.css +1246 -732
- package/package.json +17 -10
- package/scripts/codemods/0.5.0-chip-sizes.mjs +437 -0
- package/src/build/utilities.css +7 -10
- package/src/components/_template.css +12 -8
- package/src/components/alert.css +35 -8
- package/src/components/avatar.css +42 -30
- package/src/components/breadcrumbs.css +39 -22
- package/src/components/button.css +84 -14
- package/src/components/card.css +2 -2
- package/src/components/checkbox.css +16 -11
- package/src/components/chip.css +155 -79
- package/src/components/composer.css +145 -0
- package/src/components/data-row.css +10 -6
- package/src/components/divider.css +17 -22
- package/src/components/dropdown-field.css +83 -43
- package/src/components/dropdown-menu.css +80 -14
- package/src/components/field-verification.css +21 -5
- package/src/components/filter-segment.css +27 -8
- package/src/components/icon-button.css +49 -10
- package/src/components/index.css +2 -0
- package/src/components/input.css +88 -32
- package/src/components/link.css +27 -16
- package/src/components/loading-inline.css +15 -21
- package/src/components/menu-item.css +149 -49
- package/src/components/modal.css +8 -5
- package/src/components/navigation-rail.css +67 -31
- package/src/components/pagination-item.css +29 -28
- package/src/components/pagination.css +9 -14
- package/src/components/pill.css +16 -10
- package/src/components/progress-bar.css +8 -10
- package/src/components/radio-select.css +9 -2
- package/src/components/recipient-input.css +119 -0
- package/src/components/section-marker.css +5 -5
- package/src/components/segment-selector.css +9 -3
- package/src/components/sensitive-data.css +7 -5
- package/src/components/skeleton.css +18 -6
- package/src/components/step.css +15 -4
- package/src/components/stepper.css +3 -2
- package/src/components/switch.css +7 -0
- package/src/components/tabs.css +108 -28
- package/src/components/tag.css +156 -51
- package/src/components/text-button.css +54 -59
- package/src/components/textarea.css +87 -22
- package/src/components/toast.css +41 -15
- package/src/components/tooltip.css +13 -2
- package/src/fonts.css +2 -1
- package/src/library.css +1 -1
- package/src/reset.css +1 -1
- package/src/themes/valiify-tokens.css +101 -126
- package/src/themes/valiify.css +258 -157
- package/src/utility-surface.css +51 -49
- package/types/components.d.ts +142 -24
- package/CLAUDE.md +0 -3740
- package/examples/README.md +0 -198
- package/examples/basic/index.html +0 -155
- package/examples/daisyui-starter/README.md +0 -58
- package/examples/daisyui-starter/check-no-bleed.mjs +0 -249
- package/examples/daisyui-starter/index.html +0 -72
- package/examples/daisyui-starter/linked.html +0 -74
- package/examples/daisyui-starter/package-lock.json +0 -2221
- package/examples/daisyui-starter/package.json +0 -22
- package/examples/daisyui-starter/postcss.config.js +0 -1
- package/examples/daisyui-starter/src/host.css +0 -14
- package/examples/daisyui-starter/src/only-import.css +0 -4
- package/examples/daisyui-starter/src/styles.css +0 -36
- package/examples/daisyui-starter/tailwind.config.js +0 -13
- package/examples/postcss-starter/README.md +0 -47
- package/examples/postcss-starter/index.html +0 -54
- package/examples/postcss-starter/package.json +0 -19
- package/examples/postcss-starter/postcss.config.js +0 -5
- package/examples/postcss-starter/src/styles.css +0 -17
- package/examples/sveltekit-starter/README.md +0 -32
- package/examples/sveltekit-starter/check-scoped-styles.mjs +0 -103
- package/examples/sveltekit-starter/package-lock.json +0 -1300
- package/examples/sveltekit-starter/package.json +0 -24
- package/examples/sveltekit-starter/src/app.css +0 -17
- package/examples/sveltekit-starter/src/app.html +0 -11
- package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +0 -20
- package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +0 -27
- package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +0 -22
- package/examples/sveltekit-starter/src/routes/+layout.svelte +0 -6
- package/examples/sveltekit-starter/src/routes/+page.svelte +0 -10
- package/examples/sveltekit-starter/svelte.config.js +0 -4
- package/examples/sveltekit-starter/vite.config.js +0 -6
- package/examples/vite-starter/README.md +0 -125
- package/examples/vite-starter/index.html +0 -12
- package/examples/vite-starter/package.json +0 -19
- package/examples/vite-starter/src/main.js +0 -188
- package/examples/vite-starter/src/styles.css +0 -22
- package/examples/vite-starter/vite.config.js +0 -6
- package/src/themes/valiify-type-prefixed.css +0 -37
package/src/components/toast.css
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* <p class="vd-toast-message">Client has been notified to upload their W-9.</p>
|
|
18
18
|
* </div>
|
|
19
19
|
* </div>
|
|
20
|
-
* <button class="vd-icon-button vd-icon-button-
|
|
20
|
+
* <button class="vd-icon-button vd-icon-button-inline" aria-label="Dismiss">
|
|
21
21
|
* <svg class="vd-icon vd-icon-size-14" aria-hidden="true"><use href="#x" /></svg>
|
|
22
22
|
* </button>
|
|
23
23
|
* </div>
|
|
@@ -63,11 +63,35 @@
|
|
|
63
63
|
* `--shadow-toast`; Simple uses the named General Drop Shadow, which is already
|
|
64
64
|
* `--shadow-panel`. They are not interchangeable.
|
|
65
65
|
*
|
|
66
|
-
* SIMPLE'S
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
66
|
+
* SIMPLE'S HEIGHT IS PINNED AT 38 (Rev3 — was 35), and must be pinned. The
|
|
67
|
+
* label moved from the 12.5px line to Body/Dense's 18, so Figma's frame is
|
|
68
|
+
* 10 + 18 + 10 = 38 with the stroke drawn inside; under border-box the same
|
|
69
|
+
* values derive 40. The pin restores Figma's rendered size and flex centring
|
|
70
|
+
* keeps the 15px icon centred. Same trap button.css and pill.css document —
|
|
71
|
+
* a bordered box must be sized, never derived.
|
|
72
|
+
*
|
|
73
|
+
* REV3 TYPE (2026-09-30). Title binds Body/Dense Strong (13/18/500), message
|
|
74
|
+
* Body/Default (14/20 — grew from the 12px Caption), Simple's label
|
|
75
|
+
* Body/Dense (13/18), and the timestamp Data/Compact — the same 12/16.5
|
|
76
|
+
* mono metrics the old Data xs carried, a pure rename. With the 20px Rev3
|
|
77
|
+
* Text Button in the footer, Full reconciles to Figma's 106 exactly
|
|
78
|
+
* (16 + 42 + 12 + 20 + 16).
|
|
79
|
+
*
|
|
80
|
+
* THE TIMESTAMP SHIPS Content/Tertiary, NOT FIGMA'S Content/Faint — a pinned
|
|
81
|
+
* divergence (approved 2026-09-30): Faint measures 1.73:1 on the Paper card,
|
|
82
|
+
* real 12px text. Tertiary is 4.74 on Paper. Same decision shape as the
|
|
83
|
+
* field family's placeholders (designer-list item 30).
|
|
84
|
+
*
|
|
85
|
+
* SCREEN READERS AND TIMING (the library ships no JavaScript, so both are
|
|
86
|
+
* the consumer's): role="status" is right for every toast — implicit polite
|
|
87
|
+
* aria-live, atomic — and the region must exist in the DOM BEFORE the
|
|
88
|
+
* message is injected or screen readers can miss it. A toast carrying an
|
|
89
|
+
* action (Retry) must persist until dismissed, or the action must exist
|
|
90
|
+
* elsewhere — interactive content in a self-expiring region is unreachable
|
|
91
|
+
* for keyboard and screen-reader users. Auto-dismiss only supplementary
|
|
92
|
+
* status, generously (>= 5s, longer for longer messages), pause it on hover
|
|
93
|
+
* and focus, and honour WCAG 2.2.1 Timing Adjustable. Simple has NO dismiss
|
|
94
|
+
* control in Figma — reserve it for transient, non-essential confirmations.
|
|
71
95
|
*
|
|
72
96
|
* DIVERGENCE: Figma pins Full's text group to 280px inside the 356px card,
|
|
73
97
|
* leaving a fixed 26px gutter before the close button. It flexes here instead,
|
|
@@ -113,15 +137,15 @@
|
|
|
113
137
|
min-width: 0;
|
|
114
138
|
}
|
|
115
139
|
|
|
116
|
-
/*
|
|
117
|
-
which is intentional in Figma and keeps the two lines tight. */
|
|
140
|
+
/* Rev3: Body/Dense Strong — 13/18, Medium/500 despite the "Strong". */
|
|
118
141
|
.vd-toast-title {
|
|
119
|
-
@apply text-body-
|
|
142
|
+
@apply text-body-dense-strong; /* 13px / 18px / 500 */
|
|
120
143
|
@apply text-content-primary;
|
|
121
144
|
}
|
|
122
145
|
|
|
146
|
+
/* Rev3: Body/Default — the message grew from the old 12px Caption. */
|
|
123
147
|
.vd-toast-message {
|
|
124
|
-
@apply text-
|
|
148
|
+
@apply text-body-default; /* 14px / 20px / 400 */
|
|
125
149
|
@apply text-content-secondary;
|
|
126
150
|
}
|
|
127
151
|
|
|
@@ -129,10 +153,12 @@
|
|
|
129
153
|
@apply flex w-full items-center justify-between;
|
|
130
154
|
}
|
|
131
155
|
|
|
132
|
-
/* Data/
|
|
156
|
+
/* Rev3: Data/Compact (same 12/16.5 mono metrics the old Data xs carried);
|
|
157
|
+
needs font-mono — --text-* carries no family. Content/Tertiary is a
|
|
158
|
+
DIVERGENCE: Figma binds Content/Faint, 1.73:1 on the card. See header. */
|
|
133
159
|
.vd-toast-timestamp {
|
|
134
|
-
@apply text-data-
|
|
135
|
-
@apply text-content-
|
|
160
|
+
@apply text-data-compact font-mono; /* 12px / 16.5px / 400, JetBrains Mono */
|
|
161
|
+
@apply text-content-tertiary;
|
|
136
162
|
}
|
|
137
163
|
|
|
138
164
|
/* --- Types -------------------------------------------------------------- */
|
|
@@ -159,7 +185,7 @@
|
|
|
159
185
|
.vd-toast-simple {
|
|
160
186
|
@apply inline-flex w-70 flex-row items-center justify-center gap-2.25; /* 280px, 9px */
|
|
161
187
|
@apply px-4 py-2.5; /* 16px / 10px */
|
|
162
|
-
@apply h-[
|
|
188
|
+
@apply h-[38px]; /* pinned — Rev3, was 35; see the header */
|
|
163
189
|
|
|
164
190
|
@apply rounded-pill;
|
|
165
191
|
@apply border border-[length:var(--border-line)] border-stroke-divider;
|
|
@@ -167,7 +193,7 @@
|
|
|
167
193
|
/* The dark surface, as with Tooltip. */
|
|
168
194
|
@apply bg-content-primary text-content-contrast;
|
|
169
195
|
|
|
170
|
-
@apply text-body-
|
|
196
|
+
@apply text-body-dense; /* Rev3: 13px / 18px / 400 — Regular, not the Strong above */
|
|
171
197
|
|
|
172
198
|
/* The NAMED General Drop Shadow, where Full uses its own local effect. */
|
|
173
199
|
@apply shadow-panel;
|
|
@@ -47,15 +47,26 @@
|
|
|
47
47
|
|
|
48
48
|
/* Title and subtext are styled identically in Figma — same size, same
|
|
49
49
|
token. Kept as one rule so they cannot drift apart. */
|
|
50
|
+
/* Rev3 binds the three parts to three DIFFERENT styles — title and subtext
|
|
51
|
+
no longer share one: title Supporting/Caption (12/18), subtext Body/Default
|
|
52
|
+
(14/20). Both keep Content/Faint (10.4:1 on the dark fill). */
|
|
50
53
|
.vd-tooltip-title,
|
|
51
54
|
.vd-tooltip-subtext {
|
|
52
55
|
@apply w-full;
|
|
53
|
-
@apply text-
|
|
56
|
+
@apply text-content-faint;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.vd-tooltip-title {
|
|
60
|
+
@apply text-supporting-caption; /* 12 / 18 / 400 — was 11px Micro L */
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.vd-tooltip-subtext {
|
|
64
|
+
@apply text-body-default; /* 14 / 20 / 400 — was 11px Micro L */
|
|
54
65
|
}
|
|
55
66
|
|
|
56
67
|
.vd-tooltip-content {
|
|
57
68
|
@apply w-full;
|
|
58
|
-
@apply text-
|
|
69
|
+
@apply text-action-compact text-content-contrast; /* Rev3 Action/Compact: 12 / 16 / 500 (was 12/18/400) */
|
|
59
70
|
}
|
|
60
71
|
|
|
61
72
|
/* A 0.5px rule in Content/Secondary — NOT Stroke/Divider, which would be
|
package/src/fonts.css
CHANGED
|
@@ -20,4 +20,5 @@
|
|
|
20
20
|
* `--font-mono` to resolve to something real.
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
/* Inter 300 is Display/Metric (Revision 3); without it the browser fakes Light from 400. */
|
|
24
|
+
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");
|
package/src/library.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Consumers import this into their own stylesheet so that THEIR Tailwind build
|
|
9
9
|
* processes our `@theme` block and generates token-derived utilities
|
|
10
|
-
* (`bg-approved`, `rounded-pill`, `
|
|
10
|
+
* (`bg-approved`, `rounded-pill`, `text-label-compact`, …):
|
|
11
11
|
*
|
|
12
12
|
* @import "tailwindcss";
|
|
13
13
|
* @import "@valiify/dashboard-ui/source";
|
package/src/reset.css
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* .vd-input-field.vd-input-sm 25px designed -> 38px (+11 padding, +2 hairline)
|
|
20
20
|
* .vd-toast-simple (height) 35px -> 57px
|
|
21
21
|
* .vd-data-row 38px -> 63px
|
|
22
|
-
* .vd-chip 20px -> 30px
|
|
22
|
+
* .vd-chip 20px -> 30px (pre-0.5.0 label; the Rev3 12px label inflates less but the trap is the same)
|
|
23
23
|
* .vd-avatar-md 20px -> 22px
|
|
24
24
|
* .vd-switch 32x18 -> 36x22
|
|
25
25
|
* .vd-modal 480px wide -> 546px
|
|
@@ -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,6 +251,10 @@
|
|
|
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
|
|