@valiify/dashboard-ui 0.5.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +456 -1
  2. package/COMPONENTS.md +2117 -704
  3. package/README.md +40 -7
  4. package/class-manifest.json +263 -2
  5. package/dist/dashboard-ui.css +4249 -1469
  6. package/dist/index.css +4056 -1453
  7. package/package.json +9 -8
  8. package/src/components/add-funds-form.css +69 -0
  9. package/src/components/alert.css +33 -56
  10. package/src/components/avatar.css +38 -2
  11. package/src/components/button.css +52 -29
  12. package/src/components/card.css +1 -1
  13. package/src/components/checklist-group.css +116 -0
  14. package/src/components/checklist-task.css +125 -0
  15. package/src/components/chip.css +145 -0
  16. package/src/components/comment-date.css +36 -0
  17. package/src/components/comment-item.css +59 -0
  18. package/src/components/content-row.css +133 -0
  19. package/src/components/data-list.css +91 -0
  20. package/src/components/data-row.css +84 -19
  21. package/src/components/dropdown-field.css +9 -0
  22. package/src/components/dropdown-menu.css +6 -2
  23. package/src/components/entity-header.css +61 -0
  24. package/src/components/field-verification.css +118 -38
  25. package/src/components/final-decision.css +51 -0
  26. package/src/components/finding-card.css +157 -0
  27. package/src/components/finding-option.css +45 -0
  28. package/src/components/finding-row.css +45 -0
  29. package/src/components/funding-status.css +61 -0
  30. package/src/components/funding-total.css +57 -0
  31. package/src/components/funding-transaction.css +108 -0
  32. package/src/components/index.css +36 -0
  33. package/src/components/inline-confirm.css +42 -0
  34. package/src/components/input.css +19 -0
  35. package/src/components/keycap.css +27 -0
  36. package/src/components/menu-item.css +38 -10
  37. package/src/components/modal.css +29 -2
  38. package/src/components/navigation-rail.css +322 -2
  39. package/src/components/overlay-scrim.css +26 -0
  40. package/src/components/owner-row.css +170 -0
  41. package/src/components/owner-table-header.css +57 -0
  42. package/src/components/ownership.css +73 -0
  43. package/src/components/panel-section-header.css +56 -0
  44. package/src/components/panel-status.css +23 -0
  45. package/src/components/panel-strip-button.css +31 -0
  46. package/src/components/progress-circle.css +89 -0
  47. package/src/components/radio-select.css +5 -2
  48. package/src/components/record.css +56 -0
  49. package/src/components/resize-handle.css +131 -0
  50. package/src/components/resolved-row.css +50 -0
  51. package/src/components/scoring-details.css +79 -0
  52. package/src/components/scrollbar.css +47 -0
  53. package/src/components/section-edit.css +109 -0
  54. package/src/components/severity-count.css +63 -0
  55. package/src/components/severity-marker.css +66 -0
  56. package/src/components/snapshot-metric.css +72 -0
  57. package/src/components/step.css +1 -1
  58. package/src/components/summary-panel.css +250 -0
  59. package/src/components/summary-preview.css +76 -0
  60. package/src/components/switch.css +10 -1
  61. package/src/components/tabs.css +3 -2
  62. package/src/components/tag.css +24 -2
  63. package/src/components/textarea.css +4 -0
  64. package/src/components/toast.css +10 -6
  65. package/src/components/tooltip.css +14 -8
  66. package/src/themes/valiify-tokens.css +241 -7
  67. package/src/themes/valiify.css +244 -7
  68. package/types/components.d.ts +386 -9
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Summary Preview
3
+ *
4
+ * The gutter label beside a section of a record: its name, an optional
5
+ * selector, and a count of the comments on it. Extracted from Figma Summary
6
+ * Preview (548:22173) — 2 variants on `Icon Label`, plus Pill Selector, Comment
7
+ * Preview, Subtitle and Ring booleans.
8
+ *
9
+ * <div class="vd-summary-preview">
10
+ * <p class="vd-summary-preview-label">Business</p>
11
+ * <button class="vd-summary-preview-count" aria-label="2 comments on Business">
12
+ * <svg class="vd-icon vd-icon-size-10" aria-hidden="true"><use href="#message-circle" /></svg>
13
+ * 2
14
+ * </button>
15
+ * </div>
16
+ *
17
+ * A 140px column with 28px of top padding — it sits in the gutter and lines its
18
+ * label up with the first row of the section beside it — a 16px right inset
19
+ * and a 6px gap.
20
+ *
21
+ * label Label/Compact (12/16/600, 0.08em), Content/Secondary; with
22
+ * `Icon Label` a 13px glyph leads it, 4px apart
23
+ * subtitle Supporting/Caption, Content/Secondary (Subtitle boolean)
24
+ * selector a Pill instance — `.vd-pill`, nothing new
25
+ * count a 10px glyph + Supporting/Caption count, 6px apart
26
+ *
27
+ * THE COUNT IS A CONTROL in the application (the gutter counts filter the
28
+ * comments), so `.vd-summary-preview-count` is written for a <button> — it
29
+ * resets the element and takes the focus ring. Figma draws no hover for it;
30
+ * the label stepping to Content/Primary on hover is a library decision
31
+ * (designer-list item 82). Casing is the caller's.
32
+ */
33
+
34
+ @layer components {
35
+ /* 140px is the set's frame. The Application page resizes every instance to
36
+ its 112px gutter, so treat the width as the host's: set `width` on it (or
37
+ `--vd-summary-preview-width`, 0.7.0) where the gutter is narrower. */
38
+ .vd-summary-preview {
39
+ @apply flex shrink-0 flex-col items-start gap-1.5; /* 6px */
40
+ width: var(--vd-summary-preview-width, 140px);
41
+ @apply pt-7 pr-4; /* 28px / 16px */
42
+ }
43
+
44
+ .vd-summary-preview-label {
45
+ @apply flex items-center gap-1; /* 4px, to the Icon Label glyph */
46
+ @apply text-label-compact text-content-secondary; /* 12 / 16 / 600 */
47
+ }
48
+
49
+ .vd-summary-preview-subtitle {
50
+ @apply text-supporting-caption text-content-secondary; /* 12 / 18 / 400 */
51
+ }
52
+
53
+ .vd-summary-preview-count {
54
+ @apply inline-flex items-center gap-1.5; /* 6px */
55
+ @apply appearance-none border-none bg-transparent p-0;
56
+ @apply text-supporting-caption text-content-secondary; /* 12 / 18 / 400 */
57
+ @apply rounded-tight;
58
+ }
59
+
60
+ button.vd-summary-preview-count {
61
+ @apply cursor-pointer transition-colors duration-150;
62
+ }
63
+
64
+ button.vd-summary-preview-count:hover {
65
+ @apply text-content-primary;
66
+ }
67
+
68
+ .vd-summary-preview-count:focus-visible {
69
+ @apply focus-ring;
70
+ }
71
+
72
+ .vd-summary-preview.vd-with-ring {
73
+ outline: var(--border-micro) solid var(--color-primary);
74
+ outline-offset: 0;
75
+ }
76
+ }
@@ -48,7 +48,10 @@
48
48
  @apply block;
49
49
  @apply w-[14px] h-[14px]; /* Exact 14px knob */
50
50
  @apply rounded-pill;
51
- @apply bg-surface-paper;
51
+ /* Control/Knob since 0.6.0 (was Surface/Paper). White in Light, as before;
52
+ #dadadf in Onyx, where Surface/Paper is #111113 and the knob vanished
53
+ against the off track (1.22:1). */
54
+ @apply bg-control-knob;
52
55
 
53
56
  /* Knob shadow from Figma */
54
57
  box-shadow: var(--shadow-knob);
@@ -90,6 +93,12 @@
90
93
  /* Knob position when checked - slide to end */
91
94
  .vd-switch:has(.vd-switch-input:checked)::before {
92
95
  transform: translateX(14px); /* Slide exactly one knob width */
96
+ /* ON, the knob binds Content/Contrast — the ink on an accent fill — in
97
+ every Active=yes variant, disabled included (re-read 2026-11-19); OFF it
98
+ stays Control/Knob. Both are white in Light. In Onyx Control/Knob
99
+ (#dadadf) was 2.42:1 on the Primary/Main track; Content/Contrast
100
+ (#111113) is 6.0:1. */
101
+ @apply bg-content-contrast;
93
102
  }
94
103
 
95
104
  /* Focus ring - keyboard navigation */
@@ -190,8 +190,9 @@
190
190
  pinned, so vertically it costs nothing. */
191
191
  @apply border border-[length:var(--border-thin)] border-transparent;
192
192
  @apply text-action-compact; /* 12 / 16 / 500 — active steps to 600 since Rev3 */
193
- /* Content/Secondary by decision — Figma's Tertiary is 4.26 on the segment
194
- selector's own Surface/Frame fill. See the header. */
193
+ /* Content/Secondary by decision — Figma's Tertiary was 4.26 on the segment
194
+ selector's own Surface/Frame fill. With the 0.7.0 token (#6a6a78) rest is
195
+ 4.78, but the hover fill on Frame is 4.49, so it stays. See the header. */
195
196
  @apply text-content-secondary;
196
197
  }
197
198
 
@@ -114,9 +114,11 @@
114
114
  /* --- Parts ------------------------------------------------------------ */
115
115
 
116
116
  /* Not a badge — bare text, no box. Inter Action/Compact since Rev3 (the
117
- mono form is gone). Figma binds Content/Tertiary, which fails AA on every
117
+ mono form is gone). Figma binds Content/Tertiary, which failed AA on every
118
118
  filled state (4.19–4.46 measured); Content/Secondary ships instead
119
- (5.5–6.7 on every state) — designer-list item 27. md/lg only. */
119
+ (5.5–6.7 on every state) — designer-list item 27. With the 0.7.0 token
120
+ Tertiary clears those states on Paper, but a hovered tag on Surface/Frame
121
+ is 4.25, so Secondary stays. md/lg only. */
120
122
  .vd-tag-count {
121
123
  @apply shrink-0;
122
124
  @apply text-action-compact text-content-secondary;
@@ -162,6 +164,20 @@
162
164
  @apply border-dashed border-stroke-border text-content-tertiary;
163
165
  }
164
166
 
167
+ /* Label (0.6.0) — a boxed tag with a coloured group dot before the text:
168
+ Surface/Paper fill, a 1px Stroke/Border (the heavier token, at Stroke/Line
169
+ — not the family's 0.5px Divider hairline), 6px corners, Content/Secondary
170
+ text. Figma draws it at sm only, and 22 tall, off the control ladder: no
171
+ height is pinned, the box is 1 + 2 + the 16px line + 2 + 1. The dot is a
172
+ Chip dot SM instance, so it is `.vd-dot vd-dot-sm` plus a colour — status
173
+ colours, `vd-dot-info`, or `vd-dot-misc` with a hue. */
174
+ .vd-tag-label {
175
+ @apply h-auto gap-1.5 py-0.5 pr-2.25 pl-2; /* 6px gap, 2px / 9px / 8px */
176
+ @apply rounded-control; /* 6px */
177
+ @apply border-[length:var(--border-line)] border-stroke-border;
178
+ @apply bg-surface-paper text-content-secondary;
179
+ }
180
+
165
181
  /* External — integrated state: Warning/Soft fill (the old Warning/Main
166
182
  hairline is gone from Figma; the border stays Divider). Pairs with the
167
183
  globe glyph (14 at xs–sm, 16 at lg) and the nested status chip below. */
@@ -195,6 +211,12 @@
195
211
  @apply bg-action-hover;
196
212
  }
197
213
 
214
+ /* label replaces its Paper fill with Action/Hover on hover (as drawn) — a
215
+ level deeper than the base, like recipient. Same guards, later in source. */
216
+ .vd-tag.vd-tag-label:hover:not(:disabled):not([aria-disabled="true"]):not([aria-pressed="true"]):not([aria-selected="true"]) {
217
+ @apply bg-action-hover;
218
+ }
219
+
198
220
  .vd-tag:focus-visible {
199
221
  @apply focus-ring;
200
222
  }
@@ -181,6 +181,10 @@
181
181
  /* Focus */
182
182
  .vd-textarea-field:focus-within {
183
183
  @apply focus-ring;
184
+ /* The active halo (0.6.0) — 3px Primary/Soft, a 0-blur spread shadow on
185
+ Figma's State=active. Text Area keeps it Primary/Soft in error too,
186
+ where Input Field's turns Neutral/Soft; see input.css. */
187
+ box-shadow: 0 0 0 3px var(--color-primary-soft);
184
188
  }
185
189
 
186
190
  /* Error */
@@ -49,7 +49,7 @@
49
49
  * success #circle-check Approved/Main
50
50
  * error #triangle-alert Critical/Main
51
51
  * info #refresh-cw Primary/Main
52
- * simple #check Content/Contrast (inherits)
52
+ * simple #check Inverse/Content (inherits — see .vd-toast-simple)
53
53
  *
54
54
  * THREE FIGMA GAPS, reported rather than papered over:
55
55
  * - Simple exists ONLY for Type=info. There is no success or error Simple, so
@@ -79,7 +79,7 @@
79
79
  *
80
80
  * THE TIMESTAMP SHIPS Content/Tertiary, NOT FIGMA'S Content/Faint — a pinned
81
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
82
+ * real 12px text. Tertiary is 5.32 on Paper. Same decision shape as the
83
83
  * field family's placeholders (designer-list item 30).
84
84
  *
85
85
  * SCREEN READERS AND TIMING (the library ships no JavaScript, so both are
@@ -190,8 +190,10 @@
190
190
  @apply rounded-pill;
191
191
  @apply border border-[length:var(--border-line)] border-stroke-divider;
192
192
 
193
- /* The dark surface, as with Tooltip. */
194
- @apply bg-content-primary text-content-contrast;
193
+ /* The inverse surface, as with Tooltip — Inverse/Surface + Inverse/Content
194
+ since 0.6.0 (were Content/Primary + Content/Contrast: identical in Light,
195
+ 1.1:1 in Onyx). */
196
+ @apply bg-inverse-surface text-inverse-content;
195
197
 
196
198
  @apply text-body-dense; /* Rev3: 13px / 18px / 400 — Regular, not the Strong above */
197
199
 
@@ -200,9 +202,11 @@
200
202
  }
201
203
 
202
204
  /* Simple has no type variants in Figma, so a stray type class must not tint
203
- its icon — it is Content/Contrast like the rest of the pill. */
205
+ its icon — it takes the pill's own ink, Inverse/Content, as Figma binds
206
+ it (the file first left the glyph on Content/Contrast; it was rebound
207
+ 2026-11-19 to match). */
204
208
  .vd-toast-simple .vd-toast-icon,
205
209
  .vd-toast-simple .vd-icon {
206
- @apply shrink-0 text-content-contrast;
210
+ @apply shrink-0 text-inverse-content;
207
211
  }
208
212
  }
@@ -17,9 +17,14 @@
17
17
  * always — but a tooltip with only `.vd-tooltip-content` is the common case and
18
18
  * nothing here depends on the siblings being present.
19
19
  *
20
- * This is the only DARK surface in the library: the background is
21
- * `Content/Primary`, and the text tokens invert accordingly — `Content/Faint`
22
- * for the title and subtext, `Content/Contrast` for the body.
20
+ * This is an INVERSE surface — the bubble contrasts with the page in both
21
+ * themes: near-black in Light, near-white in Onyx. Every ink on it is an
22
+ * Inverse token since 0.6.0: the fill is `Inverse/Surface`, the body
23
+ * `Inverse/Content`, and the title and subtext `Inverse/Muted` (the Content
24
+ * ink at 72% / 68%). Through 0.5.x the fill and body were `Content/Primary` and
25
+ * `Content/Contrast`, and the muted lines `Content/Faint` — page-surface
26
+ * tokens that happen to read on a dark bubble in Light and collapse in Onyx.
27
+ * Only the divider still binds a page token, `Content/Secondary`.
23
28
  *
24
29
  * POSITIONING IS THE CONSUMER'S JOB. Figma models the bubble only — no arrow,
25
30
  * no placement, no collision handling. There is no pointer/caret layer in the
@@ -36,8 +41,8 @@
36
41
  @apply rounded-control; /* 6px */
37
42
  @apply border border-[length:var(--border-line)] border-stroke-divider;
38
43
 
39
- /* Colors — dark surface */
40
- @apply bg-content-primary;
44
+ /* Colors — the inverse surface (dark in Light, light in Onyx) */
45
+ @apply bg-inverse-surface;
41
46
 
42
47
  /* Elevation — Figma General Drop Shadow */
43
48
  @apply shadow-panel;
@@ -49,11 +54,12 @@
49
54
  token. Kept as one rule so they cannot drift apart. */
50
55
  /* Rev3 binds the three parts to three DIFFERENT styles — title and subtext
51
56
  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). */
57
+ (14/20). Both are Inverse/Muted since 0.6.0 (9.73:1 on the bubble in Light,
58
+ 5.87 in Onyx) — they were Content/Faint. */
53
59
  .vd-tooltip-title,
54
60
  .vd-tooltip-subtext {
55
61
  @apply w-full;
56
- @apply text-content-faint;
62
+ @apply text-inverse-muted;
57
63
  }
58
64
 
59
65
  .vd-tooltip-title {
@@ -66,7 +72,7 @@
66
72
 
67
73
  .vd-tooltip-content {
68
74
  @apply w-full;
69
- @apply text-action-compact text-content-contrast; /* Rev3 Action/Compact: 12 / 16 / 500 (was 12/18/400) */
75
+ @apply text-action-compact text-inverse-content; /* Rev3 Action/Compact: 12 / 16 / 500 (was 12/18/400) */
70
76
  }
71
77
 
72
78
  /* A 0.5px rule in Content/Secondary — NOT Stroke/Divider, which would be
@@ -18,8 +18,11 @@
18
18
  * diffable against Figma. See scripts/build-theme.mjs for the round-trip
19
19
  * assertion that guards the conversion.
20
20
  *
21
- * V1 is a single light theme, so tokens live at the root with no
22
- * [data-theme] wrapper.
21
+ * Two themes since 0.6.0, from the two modes of Figma's Valiify collection.
22
+ * Light is the default and lives at the root with no wrapper; Onyx is the
23
+ * [data-theme="onyx"] block below the @theme block, which overrides every
24
+ * --color-* token and nothing else (radii, widths, heights, type and
25
+ * shadows are mode-independent in Figma).
23
26
  */
24
27
 
25
28
  @theme static {
@@ -40,7 +43,7 @@
40
43
  /* Content (text / ink) */
41
44
  --color-content-primary: oklch(0.202 0.0079 285.67); /* #16161a */
42
45
  --color-content-secondary: oklch(0.4759 0.0208 285.58); /* #5b5b68 */
43
- --color-content-tertiary: oklch(0.5569 0.0215 285.68); /* #727280 */
46
+ --color-content-tertiary: oklch(0.5292 0.0218 285.63); /* #6a6a78 */
44
47
  --color-content-faint: oklch(0.8233 0.0139 286.09); /* #c4c4ce */
45
48
  --color-content-contrast: oklch(1 0 0); /* #ffffff */
46
49
 
@@ -92,8 +95,76 @@
92
95
  --color-neutral-soft: oklch(0.6871 0.0189 285.89 / 0.09); /* #9999a617 */
93
96
  --color-neutral-content: oklch(0.5099 0.0141 285.89); /* #65656e */
94
97
 
95
- /* UnGrouped one-offs */
96
- --color-misc-purple: oklch(0.5425 0.1143 300.99); /* #7b5ea7 */
98
+ /* Inverse — the bubble that contrasts with the page (Tooltip, Toast Simple) */
99
+ --color-inverse-surface: oklch(0.202 0.0079 285.67); /* #16161a */
100
+ --color-inverse-content: oklch(1 0 0); /* #ffffff */
101
+ --color-inverse-muted: oklch(1 0 0 / 0.722); /* #ffffffb8 */
102
+
103
+ /* Overlays — modal scrim, scrollbar thumb */
104
+ --color-overlay-scrim: oklch(0.1743 0.0227 283.8 / 0.278); /* #0f0f1a47 */
105
+ --color-overlay-scrollbar: oklch(0.2027 0.0395 282.3 / 0.161); /* #14142829 */
106
+
107
+ /* Control parts that keep their own colour across modes (the Switch knob) */
108
+ --color-control-knob: oklch(1 0 0); /* #ffffff */
109
+
110
+ /* UnGrouped one-offs (misc/Purple is deprecated in Figma: use Misc/Purple/Dot) */
111
+ --color-misc-purple: oklch(0.5425 0.1143 300.99); /* #7b5ea7 — DEPRECATED, see tokens/figma-tokens.json colorDeprecated */
112
+
113
+ /* Misc palette — 18 hues × dot / soft / text, for categorical colour (0.6.0) */
114
+ --color-misc-blue-dot: oklch(0.5819 0.1278 261.61); /* #4f79c6 */
115
+ --color-misc-blue-soft: oklch(0.5819 0.1278 261.61 / 0.102); /* #4f79c61a */
116
+ --color-misc-blue-text: oklch(0.4559 0.1149 260.42); /* #2f5596 */
117
+ --color-misc-indigo-dot: oklch(0.5674 0.1585 275.21); /* #5e6ad2 */
118
+ --color-misc-indigo-soft: oklch(0.5674 0.1585 275.21 / 0.102); /* #5e6ad21a */
119
+ --color-misc-indigo-text: oklch(0.4525 0.1512 274.14); /* #3f49a8 */
120
+ --color-misc-violet-dot: oklch(0.5679 0.1554 292.25); /* #7b61c9 */
121
+ --color-misc-violet-soft: oklch(0.5679 0.1554 292.25 / 0.102); /* #7b61c91a */
122
+ --color-misc-violet-text: oklch(0.4561 0.1513 290.93); /* #5a41a3 */
123
+ --color-misc-purple-dot: oklch(0.5675 0.1531 310.8); /* #9358b8 */
124
+ --color-misc-purple-soft: oklch(0.5675 0.1531 310.8 / 0.102); /* #9358b81a */
125
+ --color-misc-purple-text: oklch(0.4537 0.1417 309.81); /* #6e3a90 */
126
+ --color-misc-pink-dot: oklch(0.6134 0.1491 347.24); /* #c25a95 */
127
+ --color-misc-pink-soft: oklch(0.6134 0.1491 347.24 / 0.102); /* #c25a951a */
128
+ --color-misc-pink-text: oklch(0.488 0.1413 347.81); /* #96376e */
129
+ --color-misc-rose-dot: oklch(0.6044 0.147 11.89); /* #c9566a */
130
+ --color-misc-rose-soft: oklch(0.6044 0.147 11.89 / 0.102); /* #c9566a1a */
131
+ --color-misc-rose-text: oklch(0.481 0.1381 13.77); /* #9c3446 */
132
+ --color-misc-red-dot: oklch(0.5809 0.1632 26.56); /* #c94a43 */
133
+ --color-misc-red-soft: oklch(0.5809 0.1632 26.56 / 0.102); /* #c94a431a */
134
+ --color-misc-red-text: oklch(0.4744 0.1466 27.31); /* #9e302a */
135
+ --color-misc-orange-dot: oklch(0.6178 0.1346 50.39); /* #c46a30 */
136
+ --color-misc-orange-soft: oklch(0.6178 0.1346 50.39 / 0.102); /* #c46a301a */
137
+ --color-misc-orange-text: oklch(0.4979 0.1188 48.49); /* #974a1a */
138
+ --color-misc-amber-dot: oklch(0.6069 0.1214 78.75); /* #a97812 */
139
+ --color-misc-amber-soft: oklch(0.6069 0.1214 78.75 / 0.102); /* #a978121a */
140
+ --color-misc-amber-text: oklch(0.5181 0.1018 73.58); /* #8b5e15 */
141
+ --color-misc-yellow-dot: oklch(0.6176 0.1236 97.54); /* #9a8510 */
142
+ --color-misc-yellow-soft: oklch(0.6176 0.1236 97.54 / 0.102); /* #9a85101a */
143
+ --color-misc-yellow-text: oklch(0.4779 0.0942 98.35); /* #6b5d0c */
144
+ --color-misc-lime-dot: oklch(0.5945 0.1291 126.81); /* #6a8c2c */
145
+ --color-misc-lime-soft: oklch(0.5945 0.1291 126.81 / 0.102); /* #6a8c2c1a */
146
+ --color-misc-lime-text: oklch(0.4881 0.1118 127.43); /* #4e6b1a */
147
+ --color-misc-green-dot: oklch(0.6153 0.1276 151.29); /* #3f9a5c */
148
+ --color-misc-green-soft: oklch(0.6153 0.1276 151.29 / 0.102); /* #3f9a5c1a */
149
+ --color-misc-green-text: oklch(0.4857 0.1083 151.08); /* #25703e */
150
+ --color-misc-emerald-dot: oklch(0.6178 0.107 170.36); /* #2e9a7c */
151
+ --color-misc-emerald-soft: oklch(0.6178 0.107 170.36 / 0.102); /* #2e9a7c1a */
152
+ --color-misc-emerald-text: oklch(0.4837 0.0856 169.84); /* #1c6e57 */
153
+ --color-misc-teal-dot: oklch(0.6159 0.0833 190.03); /* #3e9590 */
154
+ --color-misc-teal-soft: oklch(0.6159 0.0833 190.03 / 0.102); /* #3e95901a */
155
+ --color-misc-teal-text: oklch(0.498 0.0733 188.85); /* #24706b */
156
+ --color-misc-cyan-dot: oklch(0.6197 0.094 224.08); /* #3a92b0 */
157
+ --color-misc-cyan-soft: oklch(0.6197 0.094 224.08 / 0.102); /* #3a92b01a */
158
+ --color-misc-cyan-text: oklch(0.4982 0.0816 225.72); /* #226c86 */
159
+ --color-misc-sky-dot: oklch(0.6371 0.1281 251.09); /* #4a8fd6 */
160
+ --color-misc-sky-soft: oklch(0.6371 0.1281 251.09 / 0.102); /* #4a8fd61a */
161
+ --color-misc-sky-text: oklch(0.5006 0.1212 252.68); /* #2865a6 */
162
+ --color-misc-slate-dot: oklch(0.5752 0.0384 257.87); /* #6b7a90 */
163
+ --color-misc-slate-soft: oklch(0.5752 0.0384 257.87 / 0.102); /* #6b7a901a */
164
+ --color-misc-slate-text: oklch(0.4539 0.0347 259.53); /* #4b576a */
165
+ --color-misc-stone-dot: oklch(0.6085 0.0173 67.49); /* #8a8178 */
166
+ --color-misc-stone-soft: oklch(0.6085 0.0173 67.49 / 0.102); /* #8a81781a */
167
+ --color-misc-stone-text: oklch(0.4727 0.0163 67.42); /* #625a52 */
97
168
 
98
169
  /*
99
170
  * Radii — named by ROLE, not by Figma's t-shirt size. Tailwind v4 ships
@@ -125,6 +196,17 @@
125
196
  --height-control-lg: 32px; /* Height/Control/LG — 32 — btn-lg, input-lg, tab-underline, pagination-item, tag-lg */
126
197
  --height-control-xl: 40px; /* Height/Control/XL — 40 — btn-xl, input-xl, composer shell */
127
198
 
199
+ /*
200
+ * Text Area frame heights — Figma's Height/Textarea/*, the drawn height of
201
+ * each Text Area size (h-textarea-md, min-h-textarea-md). Tokens only: the
202
+ * .vd-textarea-* classes still floor on --height-control-*.
203
+ */
204
+ --height-textarea-xs: 64px; /* Height/Textarea/XS */
205
+ --height-textarea-sm: 80px; /* Height/Textarea/SM */
206
+ --height-textarea-md: 96px; /* Height/Textarea/MD */
207
+ --height-textarea-lg: 120px; /* Height/Textarea/LG */
208
+ --height-textarea-xl: 160px; /* Height/Textarea/XL */
209
+
128
210
  /* Font families */
129
211
  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
130
212
  Roboto, 'Helvetica Neue', Arial, sans-serif;
@@ -155,8 +237,8 @@
155
237
  --text-heading-page: 19px; /* Heading/Page (Inter Semi Bold) */
156
238
  --text-heading-page--line-height: 24px;
157
239
  --text-heading-page--font-weight: 600;
158
- --text-heading-section: 17px; /* Heading/Section (Inter Semi Bold) */
159
- --text-heading-section--line-height: 22px;
240
+ --text-heading-section: 18px; /* Heading/Section (Inter Semi Bold) */
241
+ --text-heading-section--line-height: 24px;
160
242
  --text-heading-section--font-weight: 600;
161
243
  --text-heading-compact: 14px; /* Heading/Compact (Inter Semi Bold) */
162
244
  --text-heading-compact--line-height: 20px;
@@ -222,6 +304,7 @@
222
304
  --shadow-knob: 0 1px 2px 0px oklch(0.2027 0.0395 282.3 / 0.251); /* Switch Knob Shadow #14142840 */
223
305
  --shadow-modal: 0 12px 16px 0px oklch(0.2027 0.0395 282.3 / 0.122); /* Modal Drop Shadow #1414281f */
224
306
  --shadow-toast: 0 4px 12px 0px oklch(0.2027 0.0395 282.3 / 0.071); /* Toast Drop Shadow #14142812 */
307
+ --shadow-peek: 8px 0px 32px 0px oklch(0.1777 0.0327 282.56 / 0.18); /* Nav Peek Shadow #0f0f1f2e */
225
308
 
226
309
  /*
227
310
  * Keyboard focus ring — Figma Menu Item > Ring.
@@ -258,3 +341,154 @@
258
341
  */
259
342
  }
260
343
 
344
+ /**
345
+ * Onyx — the dark theme (Figma: Valiify collection, mode "Onyx"), --vd-color-*.
346
+ *
347
+ * Put data-theme="onyx" on <html> (or on any subtree) to switch. Overrides
348
+ * every colour token; everything else is shared with Light. Unlayered and
349
+ * after the root tokens on purpose — see scripts/build-theme.mjs.
350
+ */
351
+ [data-theme="onyx"] {
352
+ /* Brand primary */
353
+ --vd-color-primary: oklch(0.6574 0.0917 263.34); /* #7491ca */
354
+ --vd-color-primary-dark: oklch(0.7192 0.0766 261.74); /* #8aa5d5 */
355
+ --vd-color-primary-pressed: oklch(0.7192 0.0766 261.74); /* #8aa5d5 */
356
+ --vd-color-primary-soft: oklch(0.6574 0.0917 263.34 / 0.141); /* #7491ca24 */
357
+ --vd-color-primary-disabled: oklch(0.6574 0.0917 263.34 / 0.349); /* #7491ca59 */
358
+
359
+ /* Brand secondary */
360
+ --vd-color-secondary: oklch(0.7014 0.0101 286.14); /* #9e9ea5 */
361
+ --vd-color-secondary-strong: oklch(0.8002 0.0084 286.21); /* #bdbdc3 */
362
+ --vd-color-secondary-soft: oklch(1 0 0 / 0.071); /* #ffffff12 */
363
+ --vd-color-secondary-content: oklch(0.7112 0.0101 286.14); /* #a1a1a8 */
364
+ --vd-color-secondary-disabled: oklch(1 0 0 / 0.251); /* #ffffff40 */
365
+
366
+ /* Content (text / ink) */
367
+ --vd-color-content-primary: oklch(0.8898 0.0068 286.26); /* #dadadf */
368
+ --vd-color-content-secondary: oklch(0.7014 0.0101 286.14); /* #9e9ea5 */
369
+ --vd-color-content-tertiary: oklch(0.6223 0.0104 286.09); /* #86868d */
370
+ --vd-color-content-faint: oklch(0.4407 0.0097 285.99); /* #525258 */
371
+ --vd-color-content-contrast: oklch(0.1785 0.0041 285.98); /* #111113 */
372
+
373
+ /* Surface stack (back to front) */
374
+ --vd-color-surface-frame: oklch(0.1228 0.0029 285.97); /* #060607 */
375
+ --vd-color-surface-neutral: oklch(0.2103 0.0059 285.89); /* #18181b */
376
+ --vd-color-surface-card: oklch(0.2103 0.0059 285.89); /* #18181b */
377
+ --vd-color-surface-paper: oklch(0.1785 0.0041 285.98); /* #111113 */
378
+
379
+ /* Stroke colors — widths are --border-* below */
380
+ --vd-color-stroke-divider: oklch(1 0 0 / 0.071); /* #ffffff12 */
381
+ --vd-color-stroke-border: oklch(1 0 0 / 0.102); /* #ffffff1a */
382
+ --vd-color-stroke-highlight: oklch(1 0 0 / 0.059); /* #ffffff0f */
383
+ --vd-color-stroke-disabled: oklch(1 0 0 / 0.039); /* #ffffff0a */
384
+
385
+ /* Action overlays (interaction states) */
386
+ --vd-color-action-subtle: oklch(1 0 0 / 0.031); /* #ffffff08 */
387
+ --vd-color-action-hover: oklch(1 0 0 / 0.043); /* #ffffff0b */
388
+ --vd-color-action-selected: oklch(1 0 0 / 0.09); /* #ffffff17 */
389
+ --vd-color-action-focused: oklch(1 0 0 / 0.122); /* #ffffff1f */
390
+
391
+ /* Status — approved */
392
+ --vd-color-approved: oklch(0.7549 0.0939 159.1); /* #79c29a */
393
+ --vd-color-approved-soft: oklch(0.7549 0.0939 159.1 / 0.141); /* #79c29a24 */
394
+ --vd-color-approved-strong: oklch(0.8035 0.0847 158.82); /* #8fd0ab */
395
+ --vd-color-approved-content: oklch(0.8035 0.0847 158.82); /* #8fd0ab */
396
+
397
+ /* Status — critical */
398
+ --vd-color-critical: oklch(0.6734 0.1495 17.36); /* #e36b74 */
399
+ --vd-color-critical-soft: oklch(0.6734 0.1495 17.36 / 0.141); /* #e36b7424 */
400
+ --vd-color-critical-strong: oklch(0.7187 0.1304 16.11); /* #ea8088 */
401
+ --vd-color-critical-content: oklch(0.7511 0.1154 15.47); /* #ee8f96 */
402
+
403
+ /* Status — warning */
404
+ --vd-color-warning: oklch(0.7533 0.117 77.52); /* #d8a552 */
405
+ --vd-color-warning-soft: oklch(0.7533 0.117 77.52 / 0.141); /* #d8a55224 */
406
+ --vd-color-warning-strong: oklch(0.7998 0.1073 79.95); /* #e2b66a */
407
+ --vd-color-warning-content: oklch(0.8189 0.1028 80.96); /* #e6bd74 */
408
+
409
+ /* Status — info (real since Revision 3, 2026-09-28 — was deliberately absent before) */
410
+ --vd-color-info: oklch(0.7135 0.0601 263.14); /* #8fa3c9 */
411
+ --vd-color-info-strong: oklch(0.7774 0.0478 263.65); /* #a7b7d6 */
412
+ --vd-color-info-soft: oklch(0.7135 0.0601 263.14 / 0.141); /* #8fa3c924 */
413
+ --vd-color-info-content: oklch(0.7135 0.0601 263.14); /* #8fa3c9 */
414
+
415
+ /* Status — neutral */
416
+ --vd-color-neutral: oklch(0.5409 0.0123 285.98); /* #6e6e76 */
417
+ --vd-color-neutral-strong: oklch(0.7366 0.0085 286.19); /* #a9a9af */
418
+ --vd-color-neutral-soft: oklch(1 0 0 / 0.071); /* #ffffff12 */
419
+ --vd-color-neutral-content: oklch(0.7112 0.0101 286.14); /* #a1a1a8 */
420
+
421
+ /* Inverse — the bubble that contrasts with the page (Tooltip, Toast Simple) */
422
+ --vd-color-inverse-surface: oklch(0.9197 0.004 286.32); /* #e4e4e7 */
423
+ --vd-color-inverse-content: oklch(0.1785 0.0041 285.98); /* #111113 */
424
+ --vd-color-inverse-muted: oklch(0.1785 0.0041 285.98 / 0.678); /* #111113ad */
425
+
426
+ /* Overlays — modal scrim, scrollbar thumb */
427
+ --vd-color-overlay-scrim: oklch(0 0 0 / 0.549); /* #0000008c */
428
+ --vd-color-overlay-scrollbar: oklch(1 0 0 / 0.141); /* #ffffff24 */
429
+
430
+ /* Control parts that keep their own colour across modes (the Switch knob) */
431
+ --vd-color-control-knob: oklch(0.8898 0.0068 286.26); /* #dadadf */
432
+
433
+ /* UnGrouped one-offs (misc/Purple is deprecated in Figma: use Misc/Purple/Dot) */
434
+ --vd-color-misc-purple: oklch(0.6965 0.102 299.06); /* #a68fd4 */
435
+
436
+ /* Misc palette — 18 hues × dot / soft / text, for categorical colour (0.6.0) */
437
+ --vd-color-misc-blue-dot: oklch(0.6913 0.0997 263.86); /* #7c9bda */
438
+ --vd-color-misc-blue-soft: oklch(0.6913 0.0997 263.86 / 0.161); /* #7c9bda29 */
439
+ --vd-color-misc-blue-text: oklch(0.7945 0.0669 264.91); /* #a7bce8 */
440
+ --vd-color-misc-indigo-dot: oklch(0.6949 0.1146 278.49); /* #8d95e3 */
441
+ --vd-color-misc-indigo-soft: oklch(0.6949 0.1146 278.49 / 0.161); /* #8d95e329 */
442
+ --vd-color-misc-indigo-text: oklch(0.7975 0.0766 280.38); /* #b3b8ee */
443
+ --vd-color-misc-violet-dot: oklch(0.6994 0.1179 294.5); /* #a38fe0 */
444
+ --vd-color-misc-violet-soft: oklch(0.6994 0.1179 294.5 / 0.161); /* #a38fe029 */
445
+ --vd-color-misc-violet-text: oklch(0.8062 0.0766 296.53); /* #c4b6ec */
446
+ --vd-color-misc-purple-dot: oklch(0.7036 0.1123 311.02); /* #b68bd3 */
447
+ --vd-color-misc-purple-soft: oklch(0.7036 0.1123 311.02 / 0.161); /* #b68bd329 */
448
+ --vd-color-misc-purple-text: oklch(0.8103 0.0779 311.97); /* #d2b3e6 */
449
+ --vd-color-misc-pink-dot: oklch(0.731 0.1146 344.57); /* #db8ab9 */
450
+ --vd-color-misc-pink-soft: oklch(0.731 0.1146 344.57 / 0.161); /* #db8ab929 */
451
+ --vd-color-misc-pink-text: oklch(0.8253 0.0785 343.33); /* #ebb2d3 */
452
+ --vd-color-misc-rose-dot: oklch(0.7279 0.1101 7.82); /* #e2899a */
453
+ --vd-color-misc-rose-soft: oklch(0.7279 0.1101 7.82 / 0.161); /* #e2899a29 */
454
+ --vd-color-misc-rose-text: oklch(0.8189 0.075 6.22); /* #efb0bc */
455
+ --vd-color-misc-red-dot: oklch(0.6932 0.1332 26.65); /* #e3796f */
456
+ --vd-color-misc-red-soft: oklch(0.6932 0.1332 26.65 / 0.161); /* #e3796f29 */
457
+ --vd-color-misc-red-text: oklch(0.7873 0.0917 25.99); /* #efa39b */
458
+ --vd-color-misc-orange-dot: oklch(0.7491 0.1154 56.63); /* #e59a62 */
459
+ --vd-color-misc-orange-soft: oklch(0.7491 0.1154 56.63 / 0.161); /* #e59a6229 */
460
+ --vd-color-misc-orange-text: oklch(0.8322 0.081 59.61); /* #f0bc93 */
461
+ --vd-color-misc-amber-dot: oklch(0.7533 0.117 77.52); /* #d8a552 */
462
+ --vd-color-misc-amber-soft: oklch(0.7533 0.117 77.52 / 0.161); /* #d8a55229 */
463
+ --vd-color-misc-amber-text: oklch(0.8189 0.1028 80.96); /* #e6bd74 */
464
+ --vd-color-misc-yellow-dot: oklch(0.8103 0.128 98.72); /* #d6c258 */
465
+ --vd-color-misc-yellow-soft: oklch(0.8103 0.128 98.72 / 0.161); /* #d6c25829 */
466
+ --vd-color-misc-yellow-text: oklch(0.8746 0.0963 98.28); /* #e6d78c */
467
+ --vd-color-misc-lime-dot: oklch(0.7846 0.1258 125.24); /* #a6c76a */
468
+ --vd-color-misc-lime-soft: oklch(0.7846 0.1258 125.24 / 0.161); /* #a6c76a29 */
469
+ --vd-color-misc-lime-text: oklch(0.8646 0.0892 124.07); /* #c6dd9c */
470
+ --vd-color-misc-green-dot: oklch(0.738 0.1146 151.97); /* #6fbf86 */
471
+ --vd-color-misc-green-soft: oklch(0.738 0.1146 151.97 / 0.161); /* #6fbf8629 */
472
+ --vd-color-misc-green-text: oklch(0.8274 0.0788 153.56); /* #9fd6af */
473
+ --vd-color-misc-emerald-dot: oklch(0.7403 0.1027 170.82); /* #5fc0a2 */
474
+ --vd-color-misc-emerald-soft: oklch(0.7403 0.1027 170.82 / 0.161); /* #5fc0a229 */
475
+ --vd-color-misc-emerald-text: oklch(0.832 0.0732 172.61); /* #96d8c3 */
476
+ --vd-color-misc-teal-dot: oklch(0.7273 0.0835 188.55); /* #63b8b1 */
477
+ --vd-color-misc-teal-soft: oklch(0.7273 0.0835 188.55 / 0.161); /* #63b8b129 */
478
+ --vd-color-misc-teal-text: oklch(0.8227 0.0599 189.38); /* #98d2cd */
479
+ --vd-color-misc-cyan-dot: oklch(0.729 0.0903 223.31); /* #62b4d1 */
480
+ --vd-color-misc-cyan-soft: oklch(0.729 0.0903 223.31 / 0.161); /* #62b4d129 */
481
+ --vd-color-misc-cyan-text: oklch(0.8266 0.0617 221.64); /* #9ad0e3 */
482
+ --vd-color-misc-sky-dot: oklch(0.7394 0.0982 248.4); /* #78b0e6 */
483
+ --vd-color-misc-sky-soft: oklch(0.7394 0.0982 248.4 / 0.161); /* #78b0e629 */
484
+ --vd-color-misc-sky-text: oklch(0.8341 0.0625 247.85); /* #a9cdf0 */
485
+ --vd-color-misc-slate-dot: oklch(0.7114 0.0346 258.37); /* #95a3b8 */
486
+ --vd-color-misc-slate-soft: oklch(0.7114 0.0346 258.37 / 0.161); /* #95a3b829 */
487
+ --vd-color-misc-slate-text: oklch(0.8231 0.0225 256.74); /* #bcc6d4 */
488
+ --vd-color-misc-stone-dot: oklch(0.7234 0.0177 70.46); /* #ada49a */
489
+ --vd-color-misc-stone-soft: oklch(0.7234 0.0177 70.46 / 0.161); /* #ada49a29 */
490
+ --vd-color-misc-stone-text: oklch(0.8237 0.0136 71.3); /* #cbc4bc */
491
+
492
+ /* Focus ring — Primary/Main, so it follows the mode */
493
+ --vd-ring-focus-color: oklch(0.6574 0.0917 263.34); /* #7491ca */
494
+ }