@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.
Files changed (101) hide show
  1. package/CHANGELOG.md +1025 -12
  2. package/COMPONENTS.md +185 -79
  3. package/GETTING_STARTED.md +138 -38
  4. package/QUICK_REFERENCE.md +48 -30
  5. package/README.md +134 -83
  6. package/TROUBLESHOOTING.md +52 -34
  7. package/class-manifest.json +140 -71
  8. package/design-methodology/dashboard.md +92 -80
  9. package/dist/dashboard-ui.css +1525 -1078
  10. package/dist/index.css +1246 -732
  11. package/package.json +19 -10
  12. package/scripts/codemods/0.5.0-chip-sizes.mjs +437 -0
  13. package/src/build/utilities.css +7 -10
  14. package/src/components/_template.css +12 -8
  15. package/src/components/alert.css +35 -8
  16. package/src/components/avatar.css +42 -30
  17. package/src/components/breadcrumbs.css +39 -22
  18. package/src/components/button.css +84 -14
  19. package/src/components/card.css +2 -2
  20. package/src/components/checkbox.css +16 -11
  21. package/src/components/chip.css +155 -79
  22. package/src/components/composer.css +145 -0
  23. package/src/components/data-row.css +10 -6
  24. package/src/components/divider.css +17 -22
  25. package/src/components/dropdown-field.css +83 -43
  26. package/src/components/dropdown-menu.css +80 -14
  27. package/src/components/field-verification.css +21 -5
  28. package/src/components/filter-segment.css +27 -8
  29. package/src/components/icon-button.css +49 -10
  30. package/src/components/index.css +2 -0
  31. package/src/components/input.css +88 -32
  32. package/src/components/link.css +27 -16
  33. package/src/components/loading-inline.css +15 -21
  34. package/src/components/menu-item.css +149 -49
  35. package/src/components/modal.css +8 -5
  36. package/src/components/navigation-rail.css +67 -31
  37. package/src/components/pagination-item.css +29 -28
  38. package/src/components/pagination.css +9 -14
  39. package/src/components/pill.css +16 -10
  40. package/src/components/progress-bar.css +8 -10
  41. package/src/components/radio-select.css +9 -2
  42. package/src/components/recipient-input.css +119 -0
  43. package/src/components/section-marker.css +5 -5
  44. package/src/components/segment-selector.css +9 -3
  45. package/src/components/sensitive-data.css +7 -5
  46. package/src/components/skeleton.css +18 -6
  47. package/src/components/step.css +15 -4
  48. package/src/components/stepper.css +3 -2
  49. package/src/components/switch.css +7 -0
  50. package/src/components/tabs.css +108 -28
  51. package/src/components/tag.css +156 -51
  52. package/src/components/text-button.css +54 -59
  53. package/src/components/textarea.css +87 -22
  54. package/src/components/toast.css +41 -15
  55. package/src/components/tooltip.css +13 -2
  56. package/src/fonts.css +2 -1
  57. package/src/library.css +1 -1
  58. package/src/reset.css +213 -0
  59. package/src/themes/valiify-tokens.css +101 -126
  60. package/src/themes/valiify.css +258 -157
  61. package/src/utility-surface.css +51 -49
  62. package/types/components.d.ts +142 -24
  63. package/CLAUDE.md +0 -3694
  64. package/examples/README.md +0 -198
  65. package/examples/basic/index.html +0 -155
  66. package/examples/daisyui-starter/README.md +0 -58
  67. package/examples/daisyui-starter/check-no-bleed.mjs +0 -249
  68. package/examples/daisyui-starter/index.html +0 -72
  69. package/examples/daisyui-starter/linked.html +0 -74
  70. package/examples/daisyui-starter/package-lock.json +0 -2221
  71. package/examples/daisyui-starter/package.json +0 -22
  72. package/examples/daisyui-starter/postcss.config.js +0 -1
  73. package/examples/daisyui-starter/src/host.css +0 -14
  74. package/examples/daisyui-starter/src/only-import.css +0 -4
  75. package/examples/daisyui-starter/src/styles.css +0 -36
  76. package/examples/daisyui-starter/tailwind.config.js +0 -13
  77. package/examples/postcss-starter/README.md +0 -47
  78. package/examples/postcss-starter/index.html +0 -54
  79. package/examples/postcss-starter/package.json +0 -19
  80. package/examples/postcss-starter/postcss.config.js +0 -5
  81. package/examples/postcss-starter/src/styles.css +0 -17
  82. package/examples/sveltekit-starter/README.md +0 -32
  83. package/examples/sveltekit-starter/check-scoped-styles.mjs +0 -103
  84. package/examples/sveltekit-starter/package-lock.json +0 -1300
  85. package/examples/sveltekit-starter/package.json +0 -24
  86. package/examples/sveltekit-starter/src/app.css +0 -17
  87. package/examples/sveltekit-starter/src/app.html +0 -11
  88. package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +0 -20
  89. package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +0 -27
  90. package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +0 -22
  91. package/examples/sveltekit-starter/src/routes/+layout.svelte +0 -6
  92. package/examples/sveltekit-starter/src/routes/+page.svelte +0 -10
  93. package/examples/sveltekit-starter/svelte.config.js +0 -4
  94. package/examples/sveltekit-starter/vite.config.js +0 -6
  95. package/examples/vite-starter/README.md +0 -125
  96. package/examples/vite-starter/index.html +0 -12
  97. package/examples/vite-starter/package.json +0 -19
  98. package/examples/vite-starter/src/main.js +0 -188
  99. package/examples/vite-starter/src/styles.css +0 -22
  100. package/examples/vite-starter/vite.config.js +0 -6
  101. package/src/themes/valiify-type-prefixed.css +0 -37
@@ -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-md" aria-label="Dismiss">
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 35px HEIGHT IS PINNED, and must be. Figma draws strokes without
67
- * adding to the frame, so its 10 + 15 + 10 = 35 ignores the 1px border; under
68
- * border-box the same values derive 37. The pin restores Figma's rendered size
69
- * and flex centring keeps the 15px icon centred. Same trap button.css and
70
- * pill.css document — a bordered box must be sized, never derived.
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
- /* 12.5px with a 12.5px line-height — the line box is exactly the cap height,
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-2-bold; /* 12.5px / 12.5px / 500 */
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-caption; /* 12px / 18px / 400 */
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/Data xs needs font-mono — --text-* carries no family. See CLAUDE.md. */
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-xs font-mono; /* 12px / 16.5px / 400, JetBrains Mono */
135
- @apply text-content-faint;
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-[35px]; /* pinned — see the header */
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-2; /* 12.5px / 12.5px / 400 — Regular, not the Bold above */
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-micro-l text-content-faint; /* 11px / 400 */
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-caption text-content-contrast; /* 12px / 18px / 400 */
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
- @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");
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`, `type-label-l`, …):
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 ADDED
@@ -0,0 +1,213 @@
1
+ /**
2
+ * Minimal reset for the prebuilt bundle — OPTIONAL and opt-in.
3
+ *
4
+ * @import "@valiify/dashboard-ui/reset.css"; <- FIRST
5
+ * @import "@valiify/dashboard-ui/styles.css";
6
+ *
7
+ * dist/dashboard-ui.css deliberately ships no preflight and no `html` rule, so it
8
+ * cannot fight the reset of a host that already has one (Tailwind 3 + daisyUI 4, a
9
+ * Svelte :global() reset, a house stylesheet). verify:bundle asserts that absence on
10
+ * every build and nothing here changes it — this is a SEPARATE file the bundle never
11
+ * imports and no entry pulls in for you.
12
+ *
13
+ * The cost of shipping no reset is that a page with no other stylesheet gets the
14
+ * browser defaults, and those break this library's geometry and typography. Measured
15
+ * on a bare page loading only the bundle, over every ```html example in CLAUDE.md
16
+ * plus tests/fixtures/generated-page.html — 479 of 582 elements rendered content-box,
17
+ * and 53 of 146 Figma-pinned dimensions were wrong:
18
+ *
19
+ * .vd-input-field.vd-input-sm 25px designed -> 38px (+11 padding, +2 hairline)
20
+ * .vd-toast-simple (height) 35px -> 57px
21
+ * .vd-data-row 38px -> 63px
22
+ * .vd-chip 20px -> 30px (pre-0.5.0 label; the Rev3 12px label inflates less but the trap is the same)
23
+ * .vd-avatar-md 20px -> 22px
24
+ * .vd-switch 32x18 -> 36x22
25
+ * .vd-modal 480px wide -> 546px
26
+ * .vd-alert (height) 88.5px -> 137.5px (UA <p> margins)
27
+ * .vd-tooltip (height) 106.5px -> 190.5px
28
+ * .vd-tab-underline (width) 96.1px -> 100.1px (UA <button> border)
29
+ * html font-family Inter -> Times
30
+ * .vd-btn font-family Inter -> Arial
31
+ * a.vd-nav-title colour Content/Primary-> link blue
32
+ *
33
+ * This file is that floor and nothing more. It is NOT preflight. Every rule exists
34
+ * because a measured value was wrong without it, and the set was derived by rendering
35
+ * the documented markup against this bundle and against dist/index.css — the entry
36
+ * that DOES carry preflight — and keeping only the rules that closed a real gap.
37
+ * scripts/verify-reset.mjs re-measures the whole thing.
38
+ *
39
+ * What it deliberately does NOT touch, because nothing measured wrong: lists and
40
+ * their markers, tables, images, fieldsets, form-control appearance and placeholder
41
+ * colour (.vd-input and .vd-textarea zero their own), blockquote/figure/dl margins,
42
+ * b/strong weight, code family, sub/sup, [hidden] (.vd-dropdown-panel ships its own
43
+ * guard). A host is entitled to own all of it.
44
+ *
45
+ * Use it when the bundle is the ONLY stylesheet on the page. Inside an app that
46
+ * already resets, skip it — rules 1-7 would be redundant, and rule 8 would repaint a
47
+ * page the host owns.
48
+ *
49
+ * THIS FILE IS SUBJECT TO THE CASCADE LIKE ANY HOST RESET, and that is the whole
50
+ * risk. Every rule here is an unlayered element selector (0,0,1). Our sibling
51
+ * @valiify/shortapp-ui shipped the same file in 1.0.0 while its bundle's component
52
+ * rules still sat inside `@layer components` — and unlayered beats layered before
53
+ * specificity is consulted, so rule 4's `button { color: inherit }` beat
54
+ * `.va-btn-primary`'s white ink and every button-based component lost its font-size,
55
+ * line-height, letter-spacing and colour. 50 defeats; the fix for one problem was a
56
+ * live instance of the problem, and nothing they had could see it. This bundle has
57
+ * been unlayered since 0.2.1 (scripts/build-styles.mjs), so its classes (0,1,0)
58
+ * outrank these element rules (0,0,1) on specificity — but that is an invariant to be
59
+ * asserted, not assumed. scripts/verify-reset.mjs measures computed styles in a
60
+ * browser and fails if any rule here overrides a property the bundle declares on the
61
+ * same element. Do not add a rule to this file without running it.
62
+ */
63
+
64
+ /*
65
+ * 1. border-box. The single load-bearing rule.
66
+ *
67
+ * Every fixed dimension in this library is authored border-box. Component heights
68
+ * include their own hairline — CLAUDE.md's rule is "size bordered components with
69
+ * `height`, not `min-height`", because Chrome rounds the 0.5px `--border-thin` up to
70
+ * a full 1px and a hairline therefore adds 2px. Under content-box each of those
71
+ * renders larger than designed by its own padding plus border: the sm input lands at
72
+ * 38px against a designed 25. Form controls already default to border-box in the UA
73
+ * stylesheet, which is why .vd-btn measured right and .vd-input-field did not.
74
+ */
75
+ *,
76
+ ::before,
77
+ ::after {
78
+ box-sizing: border-box;
79
+ }
80
+
81
+ /*
82
+ * 2. The body's 8px UA margin. dist/index.css zeroes it through Preflight, so without
83
+ * this the two prebuilt entries lay out differently at the page edge. NavigationRail
84
+ * is the component that notices: it is `h-full` and expects a sized parent, not one
85
+ * inset from the viewport.
86
+ */
87
+ body {
88
+ margin: 0;
89
+ }
90
+
91
+ /*
92
+ * 3. Document font and line box.
93
+ *
94
+ * The bundle defines --font-sans as a token but binds it to nothing — Preflight's
95
+ * `--default-font-family` is what normally applies it, and the bundle has no
96
+ * preflight — so text falls back to the UA serif. Measured: the document rendered in
97
+ * Times. Bound to the token rather than a literal, so a consumer overriding
98
+ * --font-sans still wins.
99
+ *
100
+ * The 1.5 line-height is Tailwind's document default, not a Figma value, and is here
101
+ * for parity with dist/index.css: every text style in the library carries its own
102
+ * line-height, so this governs only text the consumer writes. Without it bare copy
103
+ * sets at `normal` and lands ~6px shorter per line than on the preflight entry.
104
+ */
105
+ html {
106
+ font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
107
+ line-height: 1.5;
108
+ }
109
+
110
+ /*
111
+ * 4. Form controls do not inherit font or colour from their ancestors; the UA gives
112
+ * them its own. Our component classes set size and weight but never family, because
113
+ * preflight normally supplies the inheritance. Measured: .vd-btn rendered in Arial
114
+ * while the document was in Times — neither of them Inter.
115
+ *
116
+ * This is the rule that cost the sibling library 50 defeats. It is safe here only
117
+ * because the bundle is unlayered; verify:reset is what keeps it safe.
118
+ */
119
+ button,
120
+ input,
121
+ optgroup,
122
+ select,
123
+ textarea {
124
+ font-family: inherit;
125
+ font-size: 100%;
126
+ line-height: inherit;
127
+ letter-spacing: inherit;
128
+ color: inherit;
129
+ }
130
+
131
+ /*
132
+ * 5. The UA's 2px outset border on <button>.
133
+ *
134
+ * CLAUDE.md already records this dependency from the other side: ".vd-tab must not set
135
+ * `border-none` … Preflight already gives buttons a 0-width border." Without preflight
136
+ * that is false, and the components which rely on it leak the UA frame — measured, an
137
+ * underline tab rendered 100.14px against a designed 96.14, and every segment and
138
+ * filter segment gained 2px per unstyled side.
139
+ *
140
+ * Scoped to <button> alone: input, select and textarea have the same UA border, but
141
+ * .vd-input and .vd-textarea zero their own, so a rule for them would be a defeat
142
+ * surface with nothing to fix.
143
+ */
144
+ button {
145
+ border: 0 solid;
146
+ }
147
+
148
+ /*
149
+ * 6. Block margins on the elements the documented markup puts INSIDE components.
150
+ *
151
+ * Alert, Toast, Modal, Tooltip, Pagination, Stepper and Card all use <p> for their
152
+ * text parts and <h2> for their titles, and the UA gives each a 1em block margin that
153
+ * the component has no padding to absorb. Measured: .vd-alert 88.5px -> 137.5px,
154
+ * .vd-modal 288.5 -> 377.8, .vd-tooltip 106.5 -> 190.5.
155
+ *
156
+ * Headings are zeroed as a family rather than just h2: the slot takes whichever level
157
+ * the consumer's document outline needs, and a modal titled with an <h3> is correct
158
+ * markup.
159
+ */
160
+ p,
161
+ h1,
162
+ h2,
163
+ h3,
164
+ h4,
165
+ h5,
166
+ h6,
167
+ hr {
168
+ margin: 0;
169
+ }
170
+
171
+ /*
172
+ * 7. <hr>'s own UA chrome. .vd-divider zeroes its border and margin; .vd-tooltip-divider
173
+ * zeroes only its border, and the UA's `color: gray` reaches both. Rules in this
174
+ * library are drawn as a 1px box with a background, never a border, so an inherited
175
+ * grey does nothing visible today — it is zeroed because an <hr> that carries UA ink
176
+ * into a component is a trap waiting for the first rule that uses currentColor.
177
+ */
178
+ hr {
179
+ border: 0;
180
+ color: inherit;
181
+ }
182
+
183
+ /*
184
+ * 8. Anchor colour. Components built on <a> — .vd-nav-title, .vd-nav-item,
185
+ * .vd-breadcrumb — inherit the document ink; the UA gives them link blue instead.
186
+ * Measured: a.vd-nav-title rendered rgb(0, 0, 238). text-decoration needs no rule,
187
+ * measured: every link-shaped component already sets its own.
188
+ */
189
+ a {
190
+ color: inherit;
191
+ }
192
+
193
+ /*
194
+ * 9. Document ink and ground — Content/Primary on Surface/Frame.
195
+ *
196
+ * This is the one rule the bundle could never carry. src/base/index.css sets exactly
197
+ * these two declarations, dist/index.css ships them, and dist/dashboard-ui.css is
198
+ * built without ../base precisely so it never repaints a host's page — verify:bundle
199
+ * fails the build on a single bare `html` rule in the bundle. None of that argues
200
+ * against the default existing SOMEWHERE for a page with no host, which is what this
201
+ * file is for. Measured without it: ink rgb(0, 0, 0) against Content/Primary #16161a,
202
+ * and a transparent ground where the surface stack's back layer is #f0f3f7 — so every
203
+ * Surface/Paper panel (.vd-dropdown-menu, .vd-modal, .vd-pagination-item) rendered
204
+ * white-on-white and lost its figure against the page.
205
+ *
206
+ * It is also why this file is not merely redundant inside a host: a host that paints
207
+ * its own page must either skip reset.css or load its own `html` rule after it, since
208
+ * the two have equal specificity and source order decides.
209
+ */
210
+ html {
211
+ color: var(--color-content-primary);
212
+ background-color: var(--color-surface-frame);
213
+ }