basalt-ui 2.19.0 → 2.20.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 (157) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/MIGRATING.md +174 -12
  3. package/agent/rules/basalt-charts.md +1 -1
  4. package/agent/rules/basalt-mantine.md +1 -1
  5. package/agent/skills/basalt-app/SKILL.md +1 -1
  6. package/agent/skills/basalt-design/SKILL.md +1 -1
  7. package/agent/templates/DESIGN.md.tpl +1 -1
  8. package/configs/oxlint-plugin.js +33 -19
  9. package/configs/oxlint-plugin.test.ts +32 -2
  10. package/dist/charts/ChartCard.d.ts +28 -3
  11. package/dist/charts/ChartCard.d.ts.map +1 -1
  12. package/dist/charts/ChartCard.js +33 -11
  13. package/dist/charts/Donut.d.ts.map +1 -1
  14. package/dist/charts/Donut.js +13 -1
  15. package/dist/charts/Heatmap.js +1 -1
  16. package/dist/charts/Sparkline.d.ts +7 -1
  17. package/dist/charts/Sparkline.d.ts.map +1 -1
  18. package/dist/charts/Sparkline.js +137 -18
  19. package/dist/charts/box.d.ts +2 -0
  20. package/dist/charts/box.d.ts.map +1 -1
  21. package/dist/charts/box.js +2 -0
  22. package/dist/charts/chart-box.module.css +30 -0
  23. package/dist/charts/chart-box.module.css.d.ts +1 -0
  24. package/dist/charts/chart-card.module.css +47 -0
  25. package/dist/charts/chart-card.module.css.d.ts +7 -0
  26. package/dist/charts/compile.d.ts.map +1 -1
  27. package/dist/charts/compile.js +35 -8
  28. package/dist/charts/host.d.ts.map +1 -1
  29. package/dist/charts/host.js +2 -1
  30. package/dist/charts/index.d.ts +1 -1
  31. package/dist/charts/index.d.ts.map +1 -1
  32. package/dist/charts/sparkline.module.css +59 -0
  33. package/dist/charts/sparkline.module.css.d.ts +13 -0
  34. package/dist/charts/state.d.ts.map +1 -1
  35. package/dist/charts/state.js +32 -4
  36. package/dist/charts/types.d.ts +6 -0
  37. package/dist/charts/types.d.ts.map +1 -1
  38. package/dist/controls/sync-button.d.ts +3 -0
  39. package/dist/controls/sync-button.d.ts.map +1 -1
  40. package/dist/dashboard/bar-list.d.ts +15 -4
  41. package/dist/dashboard/bar-list.d.ts.map +1 -1
  42. package/dist/dashboard/bar-list.js +39 -15
  43. package/dist/dashboard/bar-list.module.css +77 -2
  44. package/dist/dashboard/bar-list.module.css.d.ts +1 -0
  45. package/dist/dashboard/delta-badge.d.ts +8 -3
  46. package/dist/dashboard/delta-badge.d.ts.map +1 -1
  47. package/dist/dashboard/delta-badge.js +9 -2
  48. package/dist/dashboard/index.d.ts +2 -0
  49. package/dist/dashboard/index.d.ts.map +1 -1
  50. package/dist/dashboard/meter-model.d.ts +19 -0
  51. package/dist/dashboard/meter-model.d.ts.map +1 -1
  52. package/dist/dashboard/meter-model.js +18 -1
  53. package/dist/dashboard/meter-parts.d.ts +5 -1
  54. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  55. package/dist/dashboard/meter-parts.js +114 -74
  56. package/dist/dashboard/meter.d.ts +22 -1
  57. package/dist/dashboard/meter.d.ts.map +1 -1
  58. package/dist/dashboard/meter.js +4 -1
  59. package/dist/dashboard/meter.module.css +90 -12
  60. package/dist/dashboard/meter.module.css.d.ts +5 -0
  61. package/dist/dashboard/query-state.d.ts.map +1 -1
  62. package/dist/dashboard/query-state.js +14 -9
  63. package/dist/dashboard/settings-section.d.ts.map +1 -1
  64. package/dist/dashboard/settings-section.js +14 -25
  65. package/dist/dashboard/stat-card-parts.js +1 -1
  66. package/dist/dashboard/stat-card.d.ts +1 -1
  67. package/dist/dashboard/stat-card.d.ts.map +1 -1
  68. package/dist/dashboard/stat-card.js +3 -6
  69. package/dist/dashboard/stat-card.module.css +15 -7
  70. package/dist/dashboard/stat-group.d.ts +11 -2
  71. package/dist/dashboard/stat-group.d.ts.map +1 -1
  72. package/dist/dashboard/stat-group.js +9 -7
  73. package/dist/dashboard/stat-strip.d.ts +50 -0
  74. package/dist/dashboard/stat-strip.d.ts.map +1 -0
  75. package/dist/dashboard/stat-strip.js +85 -0
  76. package/dist/dashboard/stat-strip.module.css +208 -0
  77. package/dist/dashboard/stat-strip.module.css.d.ts +28 -0
  78. package/dist/dashboard/widget-header.d.ts +3 -3
  79. package/dist/dashboard/widget-header.module.css +10 -6
  80. package/dist/format/date.d.ts.map +1 -1
  81. package/dist/format/date.js +4 -3
  82. package/dist/format/shared.d.ts +6 -0
  83. package/dist/format/shared.d.ts.map +1 -1
  84. package/dist/format/shared.js +6 -2
  85. package/dist/guard/index.d.ts +1 -1
  86. package/dist/guard/index.js +1 -1
  87. package/dist/index.d.ts +3 -1
  88. package/dist/index.d.ts.map +1 -1
  89. package/dist/index.js +4 -0
  90. package/dist/styles.css +6 -0
  91. package/dist/theme/card-inset.module.css +76 -0
  92. package/dist/theme/card-inset.module.css.d.ts +9 -0
  93. package/dist/theme/controls.module.css +3 -0
  94. package/dist/theme/index.d.ts.map +1 -1
  95. package/dist/theme/index.js +23 -0
  96. package/dist/theme/nav-link.module.css +8 -10
  97. package/dist/theme/status-dot.d.ts +3 -2
  98. package/dist/theme/status-dot.d.ts.map +1 -1
  99. package/dist/theme/status-dot.js +12 -3
  100. package/dist/theme/status-verdict.d.ts +3 -2
  101. package/dist/theme/status-verdict.d.ts.map +1 -1
  102. package/dist/theme/status-verdict.js +3 -2
  103. package/dist/theme/status-verdict.module.css +4 -2
  104. package/llms.txt +30 -6
  105. package/package.json +1 -1
  106. package/src/charts/ChartCard.tsx +70 -4
  107. package/src/charts/Donut.tsx +9 -1
  108. package/src/charts/Heatmap.tsx +1 -1
  109. package/src/charts/Sparkline.tsx +180 -18
  110. package/src/charts/box.tsx +2 -0
  111. package/src/charts/chart-box.module.css +30 -0
  112. package/src/charts/chart-box.module.css.d.ts +1 -0
  113. package/src/charts/chart-card.module.css +47 -0
  114. package/src/charts/chart-card.module.css.d.ts +7 -0
  115. package/src/charts/compile.ts +42 -9
  116. package/src/charts/host.tsx +6 -3
  117. package/src/charts/index.ts +1 -1
  118. package/src/charts/sparkline.module.css +59 -0
  119. package/src/charts/sparkline.module.css.d.ts +13 -0
  120. package/src/charts/state.tsx +44 -4
  121. package/src/charts/types.ts +6 -0
  122. package/src/controls/sync-button.tsx +3 -0
  123. package/src/dashboard/bar-list.module.css +77 -2
  124. package/src/dashboard/bar-list.module.css.d.ts +1 -0
  125. package/src/dashboard/bar-list.tsx +86 -18
  126. package/src/dashboard/delta-badge.tsx +21 -5
  127. package/src/dashboard/index.ts +2 -0
  128. package/src/dashboard/meter-model.ts +35 -0
  129. package/src/dashboard/meter-parts.tsx +119 -23
  130. package/src/dashboard/meter.module.css +90 -12
  131. package/src/dashboard/meter.module.css.d.ts +5 -0
  132. package/src/dashboard/meter.tsx +26 -2
  133. package/src/dashboard/query-state.tsx +28 -19
  134. package/src/dashboard/settings-section.tsx +1 -8
  135. package/src/dashboard/stat-card-parts.tsx +1 -1
  136. package/src/dashboard/stat-card.module.css +15 -7
  137. package/src/dashboard/stat-card.tsx +5 -8
  138. package/src/dashboard/stat-group.tsx +19 -8
  139. package/src/dashboard/stat-strip.module.css +208 -0
  140. package/src/dashboard/stat-strip.module.css.d.ts +28 -0
  141. package/src/dashboard/stat-strip.tsx +183 -0
  142. package/src/dashboard/widget-header.module.css +10 -6
  143. package/src/dashboard/widget-header.tsx +3 -3
  144. package/src/format/date.ts +6 -3
  145. package/src/format/shared.ts +11 -2
  146. package/src/guard/index.ts +1 -1
  147. package/src/index.ts +7 -0
  148. package/src/styles.css +6 -0
  149. package/src/theme/__snapshots__/plain-theme.test.ts.snap +168 -24
  150. package/src/theme/card-inset.module.css +76 -0
  151. package/src/theme/card-inset.module.css.d.ts +9 -0
  152. package/src/theme/controls.module.css +3 -0
  153. package/src/theme/index.ts +30 -0
  154. package/src/theme/nav-link.module.css +8 -10
  155. package/src/theme/status-dot.tsx +17 -5
  156. package/src/theme/status-verdict.module.css +4 -2
  157. package/src/theme/status-verdict.tsx +9 -4
@@ -3,7 +3,7 @@
3
3
  * seeded from argo consumers (`features/{walking-pad,reading,astro-window,garmin-health}/{formatters,format,
4
4
  * formulas}.ts` — read those files' own JSDoc for the exact call sites this generalizes).
5
5
  */
6
- import { dateFormat, NON_FINITE, numberFormat, toDate } from './shared'
6
+ import { dateFormat, NON_FINITE, numberFormat, resolveLocale, toDate } from './shared'
7
7
  import type { LocaleOption } from './shared'
8
8
 
9
9
  type DateInput = Date | number | string | null | undefined
@@ -92,10 +92,13 @@ function relativeTimeFormat(
92
92
  style: 'long' | 'short' | 'narrow',
93
93
  numeric: 'auto' | 'always',
94
94
  ): Intl.RelativeTimeFormat {
95
- const key = `${locale ?? ''}|${style}|${numeric}`
95
+ // Same resolution as `numberFormat`/`dateFormat`. The RESOLVED tag keys the cache (`\0` marks
96
+ // "runtime locale", which no real tag can equal), so a changed default never serves a stale one.
97
+ const resolved = resolveLocale(locale)
98
+ const key = `${resolved ?? '\0'}|${style}|${numeric}`
96
99
  const cached = relativeTimeFormatterCache.get(key)
97
100
  if (cached !== undefined) return cached
98
- const created = new Intl.RelativeTimeFormat(locale, { style, numeric })
101
+ const created = new Intl.RelativeTimeFormat(resolved, { style, numeric })
99
102
  relativeTimeFormatterCache.set(key, created)
100
103
  return created
101
104
  }
@@ -92,11 +92,20 @@ function memoize<T>(
92
92
  return created
93
93
  }
94
94
 
95
+ /**
96
+ * The ONE locale resolution every formatter shares: the call's own tag, else the
97
+ * {@link defineFormat} default, else `undefined` (the runtime's own locale). Internal — not
98
+ * re-exported from the public barrel.
99
+ */
100
+ export function resolveLocale(locale?: string): string | undefined {
101
+ return locale ?? defaults.locale
102
+ }
103
+
95
104
  export function numberFormat(
96
105
  locale: string | undefined,
97
106
  options: Intl.NumberFormatOptions,
98
107
  ): Intl.NumberFormat {
99
- const resolved = locale ?? defaults.locale
108
+ const resolved = resolveLocale(locale)
100
109
  return memoize(numberCaches, resolved, options, () => new Intl.NumberFormat(resolved, options))
101
110
  }
102
111
 
@@ -104,7 +113,7 @@ export function dateFormat(
104
113
  locale: string | undefined,
105
114
  options: Intl.DateTimeFormatOptions,
106
115
  ): Intl.DateTimeFormat {
107
- const resolved = locale ?? defaults.locale
116
+ const resolved = resolveLocale(locale)
108
117
  const withZone =
109
118
  options.timeZone === undefined && defaults.timeZone !== undefined
110
119
  ? { ...options, timeZone: defaults.timeZone }
@@ -2072,7 +2072,7 @@ export const GUARD_RULES = {
2072
2072
  // JSX-tag-shaped (`<Card withBorder>`) — never appears in CSS text.
2073
2073
  appliesTo: (relPath) => !relPath.endsWith('.css'),
2074
2074
  message:
2075
- 'withBorder on a Card/Paper double-draws the edge — card depth is --vx-shadow-card, which already bakes a 1px ring into the shadow. Drop the prop (docs/DESIGN-SPEC.md doctrine inversion #1) — and fix the inset in the same edit: an explicit p/padding or radius on that Card/Paper is the other half of the idiom, which only the oxlint lane sees (basalt/card-inset); leave both to the theme or use py="sm" px="md".',
2075
+ 'withBorder on a Card/Paper double-draws the edge — card depth is --vx-shadow-card, which already bakes a 1px ring into the shadow. Drop the prop (docs/DESIGN-SPEC.md doctrine inversion #1) — and fix the inset in the same edit: an explicit p/padding or radius on that Card/Paper is the other half of the idiom, which only the oxlint lane sees (basalt/card-inset); the theme owns both, so write neither.',
2076
2076
  },
2077
2077
  'off-system-surface-var': {
2078
2078
  kind: 'off-system-surface-var',
package/src/index.ts CHANGED
@@ -26,6 +26,8 @@ export {
26
26
  export { scrollParentOf, useCoarsePointer, type Tone } from './common'
27
27
  export { createBasaltTheme } from './theme'
28
28
  export { ThemeToggle } from './theme/theme-toggle'
29
+ export { StatusDot, type StatusDotProps } from './theme/status-dot'
30
+ export { StatusVerdict, type StatusVerdictProps } from './theme/status-verdict'
29
31
  export {
30
32
  BasaltShell,
31
33
  PageBar,
@@ -44,12 +46,17 @@ export {
44
46
  type StatCardBreakdownRow,
45
47
  type StatCardSparklineSize,
46
48
  StatGroup,
49
+ type StatStripCell,
50
+ type StatStripRow,
47
51
  EmptyState,
48
52
  SettingsSection,
49
53
  SettingsRow,
50
54
  DangerZone,
51
55
  Meter,
52
56
  type MeterProps,
57
+ type MeterSegment,
58
+ type MeterTick,
59
+ type MeterZone,
53
60
  BarList,
54
61
  type BarListProps,
55
62
  } from './dashboard'
package/src/styles.css CHANGED
@@ -46,6 +46,9 @@
46
46
  'Hubot Sans Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica,
47
47
  Arial, sans-serif;
48
48
  --basalt-font-mono: 'JetBrains Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;
49
+ /* Hero values, unit/count/delta text, bar-list and meter figures: proportional sans, lining
50
+ figures. Set to `var(--basalt-font-mono)` to restore the pre-Wave-35 mono numerals. */
51
+ --basalt-font-numeral: var(--basalt-font-sans);
49
52
  }
50
53
  }
51
54
 
@@ -153,6 +156,9 @@
153
156
  h6,
154
157
  .mantine-Title-root {
155
158
  font-stretch: var(--basalt-font-head-stretch, 88%);
159
+ /* Hubot Sans draws a slashed zero by default; a heading numeral is a figure, not code. */
160
+ font-feature-settings: 'zero' 0;
161
+ font-variant-numeric: lining-nums;
156
162
  }
157
163
 
158
164
  /* Scrollbars (docs/DESIGN-SPEC.md §5): 9px, ink-mix thumb (stronger on hover), radius 6,
@@ -293,6 +293,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
293
293
  return {
294
294
  root: {
295
295
  "--button-height": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
296
+ "--button-padding-x": buttonPaddingX(props.size),
296
297
  "--button-color": ink.color,
297
298
  "--button-hover": ink.hover,
298
299
  "--button-bg": ink.bg,
@@ -303,41 +304,109 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
303
304
  ,
304
305
  "outputs": [
305
306
  {
306
- "probes": 1892,
307
- "result": "{"root":{}}",
307
+ "probes": 542,
308
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))"}}",
308
309
  },
309
310
  {
310
- "probes": 42,
311
- "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
311
+ "probes": 12,
312
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
312
313
  },
313
314
  {
314
- "probes": 42,
315
- "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
315
+ "probes": 12,
316
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
316
317
  },
317
318
  {
318
- "probes": 42,
319
- "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
319
+ "probes": 12,
320
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
321
+ },
322
+ {
323
+ "probes": 270,
324
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))"}}",
325
+ },
326
+ {
327
+ "probes": 6,
328
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
329
+ },
330
+ {
331
+ "probes": 6,
332
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
333
+ },
334
+ {
335
+ "probes": 6,
336
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
320
337
  },
321
338
  {
322
339
  "probes": 272,
323
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))"}}",
340
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))"}}",
341
+ },
342
+ {
343
+ "probes": 6,
344
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
345
+ },
346
+ {
347
+ "probes": 6,
348
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
349
+ },
350
+ {
351
+ "probes": 6,
352
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
353
+ },
354
+ {
355
+ "probes": 270,
356
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))"}}",
324
357
  },
325
358
  {
326
359
  "probes": 6,
327
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
360
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
328
361
  },
329
362
  {
330
363
  "probes": 6,
331
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
364
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
332
365
  },
333
366
  {
334
367
  "probes": 6,
335
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
368
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
369
+ },
370
+ {
371
+ "probes": 270,
372
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))"}}",
373
+ },
374
+ {
375
+ "probes": 6,
376
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
377
+ },
378
+ {
379
+ "probes": 6,
380
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
381
+ },
382
+ {
383
+ "probes": 6,
384
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
385
+ },
386
+ {
387
+ "probes": 540,
388
+ "result": "{"root":{}}",
389
+ },
390
+ {
391
+ "probes": 12,
392
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
393
+ },
394
+ {
395
+ "probes": 12,
396
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
397
+ },
398
+ {
399
+ "probes": 12,
400
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
336
401
  },
337
402
  ],
338
403
  },
339
404
  },
340
405
  "Card": {
406
+ "classNames": {
407
+ "root": undefined,
408
+ "section": undefined,
409
+ },
341
410
  "styles": {
342
411
  "root": {
343
412
  "backgroundColor": "var(--vx-surface-panel)",
@@ -648,6 +717,9 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
648
717
  },
649
718
  },
650
719
  "Paper": {
720
+ "classNames": {
721
+ "root": undefined,
722
+ },
651
723
  "styles": {
652
724
  "root": {
653
725
  "backgroundColor": "var(--vx-surface-panel)",
@@ -1471,6 +1543,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1471
1543
  return {
1472
1544
  root: {
1473
1545
  "--button-height": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
1546
+ "--button-padding-x": buttonPaddingX(props.size),
1474
1547
  "--button-color": ink.color,
1475
1548
  "--button-hover": ink.hover,
1476
1549
  "--button-bg": ink.bg,
@@ -1481,41 +1554,109 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1481
1554
  ,
1482
1555
  "outputs": [
1483
1556
  {
1484
- "probes": 1892,
1485
- "result": "{"root":{}}",
1557
+ "probes": 542,
1558
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))"}}",
1486
1559
  },
1487
1560
  {
1488
- "probes": 42,
1489
- "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1561
+ "probes": 12,
1562
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1490
1563
  },
1491
1564
  {
1492
- "probes": 42,
1493
- "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1565
+ "probes": 12,
1566
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1494
1567
  },
1495
1568
  {
1496
- "probes": 42,
1497
- "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1569
+ "probes": 12,
1570
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1571
+ },
1572
+ {
1573
+ "probes": 270,
1574
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))"}}",
1575
+ },
1576
+ {
1577
+ "probes": 6,
1578
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1579
+ },
1580
+ {
1581
+ "probes": 6,
1582
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1583
+ },
1584
+ {
1585
+ "probes": 6,
1586
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1498
1587
  },
1499
1588
  {
1500
1589
  "probes": 272,
1501
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))"}}",
1590
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))"}}",
1591
+ },
1592
+ {
1593
+ "probes": 6,
1594
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1595
+ },
1596
+ {
1597
+ "probes": 6,
1598
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1599
+ },
1600
+ {
1601
+ "probes": 6,
1602
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1603
+ },
1604
+ {
1605
+ "probes": 270,
1606
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))"}}",
1502
1607
  },
1503
1608
  {
1504
1609
  "probes": 6,
1505
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1610
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1506
1611
  },
1507
1612
  {
1508
1613
  "probes": 6,
1509
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1614
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1510
1615
  },
1511
1616
  {
1512
1617
  "probes": 6,
1513
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1618
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1619
+ },
1620
+ {
1621
+ "probes": 270,
1622
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))"}}",
1623
+ },
1624
+ {
1625
+ "probes": 6,
1626
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1627
+ },
1628
+ {
1629
+ "probes": 6,
1630
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1631
+ },
1632
+ {
1633
+ "probes": 6,
1634
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1635
+ },
1636
+ {
1637
+ "probes": 540,
1638
+ "result": "{"root":{}}",
1639
+ },
1640
+ {
1641
+ "probes": 12,
1642
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1643
+ },
1644
+ {
1645
+ "probes": 12,
1646
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1647
+ },
1648
+ {
1649
+ "probes": 12,
1650
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1514
1651
  },
1515
1652
  ],
1516
1653
  },
1517
1654
  },
1518
1655
  "Card": {
1656
+ "classNames": {
1657
+ "root": undefined,
1658
+ "section": undefined,
1659
+ },
1519
1660
  "styles": {
1520
1661
  "root": {
1521
1662
  "backgroundColor": "var(--vx-surface-panel)",
@@ -1826,6 +1967,9 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1826
1967
  },
1827
1968
  },
1828
1969
  "Paper": {
1970
+ "classNames": {
1971
+ "root": undefined,
1972
+ },
1829
1973
  "styles": {
1830
1974
  "root": {
1831
1975
  "backgroundColor": "var(--vx-surface-panel)",
@@ -0,0 +1,76 @@
1
+ /*
2
+ * The theme owns the card inset (Wave 35, ledger rows 163/165). Mantine's own defaults miss the law:
3
+ * a bare `Card` is 16 px all round and a bare `Paper` is 0. Both resolve here to the density-scaled
4
+ * 12/16 tokens, so a consumer writes nothing.
5
+ *
6
+ * `--card-inset-y/x` are the one pair every part reads: the root's padding, a `Card.Section`'s
7
+ * negative margins (Mantine derives them from ONE `--card-padding`, which cannot express 12/16),
8
+ * and `variant="flush"`, which zeroes the pair — a flush card's sections then cancel nothing.
9
+ *
10
+ * Components that render a `Paper` of their own (Modal / Drawer content, Dialog, ActionBar,
11
+ * FloatingWindow) carry their padding on other parts; the `:not()` list keeps this off them. It sits in
12
+ * `:where()` so the rule stays (0,1,0) and a consumer's own class-based padding wins on source order.
13
+ */
14
+ /* `--card-padding` is Mantine's: the class default is neutralised to the guaranteed-invalid value so
15
+ `var()` falls through to the token, while an inline `--card-padding` (what a Card `padding` prop
16
+ writes) is still seen and wins. Doubled class: it must out-rank Mantine's own `--card-padding`. */
17
+ .inset.inset {
18
+ --card-padding: initial;
19
+ }
20
+
21
+ .inset {
22
+ --card-inset-y: var(--card-padding, var(--vx-space-card-inset-y, 12px));
23
+ --card-inset-x: var(--card-padding, var(--vx-space-card-inset-x, 16px));
24
+ }
25
+
26
+ .inset[data-variant='flush'] {
27
+ --card-inset-y: 0px;
28
+ --card-inset-x: 0px;
29
+ padding: 0;
30
+ }
31
+
32
+ .inset:where(
33
+ :not(
34
+ [data-variant='flush'],
35
+ [class*='mantine-Modal-'],
36
+ [class*='mantine-Drawer-'],
37
+ [class*='mantine-Dialog-'],
38
+ [class*='mantine-ActionBar-'],
39
+ [class*='mantine-FloatingWindow-']
40
+ )
41
+ ) {
42
+ padding: var(--card-inset-y) var(--card-inset-x);
43
+ }
44
+
45
+ .section[data-orientation='vertical'] {
46
+ margin-inline: calc(var(--card-inset-x, 16px) * -1);
47
+ }
48
+
49
+ .section[data-orientation='vertical']:first-child {
50
+ margin-top: calc(var(--card-inset-y, 12px) * -1);
51
+ }
52
+
53
+ .section[data-orientation='vertical']:last-child {
54
+ margin-bottom: calc(var(--card-inset-y, 12px) * -1);
55
+ }
56
+
57
+ .section[data-orientation='vertical'][data-inherit-padding] {
58
+ padding-inline: var(--card-inset-x, 16px);
59
+ }
60
+
61
+ .section[data-orientation='horizontal'] {
62
+ margin-block: calc(var(--card-inset-y, 12px) * -1);
63
+ margin-inline: 0;
64
+ }
65
+
66
+ .section[data-orientation='horizontal']:first-child {
67
+ margin-inline-start: calc(var(--card-inset-x, 16px) * -1);
68
+ }
69
+
70
+ .section[data-orientation='horizontal']:last-child {
71
+ margin-inline-end: calc(var(--card-inset-x, 16px) * -1);
72
+ }
73
+
74
+ .section[data-orientation='horizontal'][data-inherit-padding] {
75
+ padding-block: var(--card-inset-y, 12px);
76
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Typed CSS-module declaration (the S4 CSS-modules path). Named string props — not an index
3
+ * signature — so dot access stays verbatim under the package's strict flags.
4
+ */
5
+ declare const classes: {
6
+ readonly inset: string
7
+ readonly section: string
8
+ }
9
+ export default classes
@@ -280,6 +280,9 @@ html .accordionItem {
280
280
  */
281
281
  html[data-mantine-color-scheme] .tabsRoot {
282
282
  --tab-border-color: var(--vx-divider);
283
+ /* Mantine's dark hover (dark-6) is the page itself, so a hovered tab read identical to rest. The
284
+ * ink-5% step is NavLink's inactive hover, and resolves per scheme. */
285
+ --tab-hover-color: color-mix(in srgb, var(--vx-ink) 5%, transparent);
283
286
  }
284
287
 
285
288
  /*
@@ -87,6 +87,7 @@ import type { CtlHeightVar } from '../tokens/ctl-vars'
87
87
  import { SIZE_CLASS_BREAKPOINTS } from '../tokens/size-classes'
88
88
  import type { BasaltFontsConfig } from '../tokens/core'
89
89
  import { onColor, onColorFor, inkVars, tabsVars } from './chrome-vars'
90
+ import cardInsetClasses from './card-inset.module.css'
90
91
  import controlsClasses from './controls.module.css'
91
92
  import floatingClasses from './floating.module.css'
92
93
  import navLinkClasses from './nav-link.module.css'
@@ -480,7 +481,11 @@ function buildTheme(data: PaletteData, options: BuildThemeOptions = {}): Mantine
480
481
  // • radius → `--vx-radius-card` (10px).
481
482
  // This is the single source the user's "strict surface across components" demands; the
482
483
  // `raw-surface` guard then stops consumers re-overriding any of it inline.
484
+ // • inset → `card-inset.module.css`: the density-scaled 12/16 tokens, on Paper too (Mantine
485
+ // gives a bare Paper 0 and a bare Card 16); `variant="flush"` zeroes it and `Card.Section`
486
+ // cancels exactly it. A Card `padding` prop still wins (see the CSS).
483
487
  Card: ext<typeof Card>({
488
+ classNames: { root: cardInsetClasses.inset, section: cardInsetClasses.section },
484
489
  styles: {
485
490
  root: {
486
491
  backgroundColor: 'var(--vx-surface-panel)',
@@ -490,6 +495,7 @@ function buildTheme(data: PaletteData, options: BuildThemeOptions = {}): Mantine
490
495
  },
491
496
  }),
492
497
  Paper: ext<typeof Paper>({
498
+ classNames: { root: cardInsetClasses.inset },
493
499
  styles: {
494
500
  root: {
495
501
  backgroundColor: 'var(--vx-surface-panel)',
@@ -683,6 +689,7 @@ function buildTheme(data: PaletteData, options: BuildThemeOptions = {}): Mantine
683
689
  props.size === 'md'
684
690
  ? 'calc(var(--vx-space-control-height) * var(--mantine-scale))'
685
691
  : undefined,
692
+ '--button-padding-x': buttonPaddingX(props.size),
686
693
  '--button-color': ink.color,
687
694
  '--button-hover': ink.hover,
688
695
  '--button-bg': ink.bg,
@@ -1225,6 +1232,29 @@ function familyBridge(data: PaletteData): Record<string, string> {
1225
1232
  return vars
1226
1233
  }
1227
1234
 
1235
+ /**
1236
+ * Button inline padding per Mantine size, on the density-scaled `--vx-space-stack-*` steps (4/8/12/16/24
1237
+ * at level 0) instead of Mantine's 14/18/22/26/32 and 7/8/10/12/14 — the off-scale values argo's
1238
+ * decision cards showed (SPEC § 6.12). Heights are untouched. `ctl` (and any custom size) stays
1239
+ * undefined so its own `--button-padding-x-ctl` applies; an unsized Button is Mantine's `sm`.
1240
+ */
1241
+ const BUTTON_PADDING_X: Record<string, string> = {
1242
+ xs: 'var(--vx-space-stack-md)',
1243
+ sm: 'var(--vx-space-stack-lg)',
1244
+ md: 'var(--vx-space-stack-lg) + var(--vx-space-stack-xs)',
1245
+ lg: 'var(--vx-space-stack-xl)',
1246
+ xl: 'var(--vx-space-stack-xl) + var(--vx-space-stack-sm)',
1247
+ 'compact-xs': 'var(--vx-space-stack-sm)',
1248
+ 'compact-sm': 'var(--vx-space-stack-sm)',
1249
+ 'compact-md': 'var(--vx-space-stack-md)',
1250
+ 'compact-lg': 'var(--vx-space-stack-md)',
1251
+ 'compact-xl': 'var(--vx-space-stack-lg)',
1252
+ }
1253
+ function buttonPaddingX(size: unknown): string | undefined {
1254
+ const steps = BUTTON_PADDING_X[typeof size === 'string' ? size : 'sm']
1255
+ return steps === undefined ? undefined : `calc((${steps}) * var(--mantine-scale))`
1256
+ }
1257
+
1228
1258
  /**
1229
1259
  * The `ctl` tier's horizontal inset — one number for a Button, a `FilterPill`, a SegmentedControl
1230
1260
  * segment and a `kind: 'custom'` Badge, so a home's row reads as one control family
@@ -1,9 +1,8 @@
1
1
  /*
2
- * Active nav row = an ACCENT-tinted fill plus heavier weight, so the row reads unambiguously as
3
- * SELECTED rather than merely hovered (docs/DESIGN-SPEC.md §5). The fill was previously the ink
4
- * tint `--nl-bg` carries (theme/index.ts) at 9% — visually indistinguishable from the 6% ink hover
5
- * tint on a dark surface, which is what let a hovered row read as a second active item. NO depth:
6
- * an active row is a SELECTED ROW, not a raised control.
2
+ * Active nav row = a NEUTRAL ink fill (10%, twice the 5% inactive hover) plus heavier weight, so the
3
+ * row reads as SELECTED rather than merely hovered (docs/DESIGN-SPEC.md §5). Never the accent
4
+ * (DESIGN-CORE § Accent discipline, SPEC § 6.12): the accent stays on the focus ring, the filled
5
+ * primary and the active ICON below. NO depth: an active row is a SELECTED ROW, not a raised control.
7
6
  *
8
7
  * `[data-active]` is the ONLY style hook here — `use-nav.ts` already resolves exactly one winner
9
8
  * per route and stamps `data-active` on it, so keying these selectors on `aria-current="page"` too
@@ -17,7 +16,7 @@
17
16
  * there throws a React warning), so the state selectors live here.
18
17
  */
19
18
  .root[data-active] {
20
- background-color: color-mix(in srgb, var(--vx-accent) 12%, transparent);
19
+ background-color: color-mix(in srgb, var(--vx-ink) 10%, transparent);
21
20
  font-weight: 600;
22
21
  }
23
22
 
@@ -32,7 +31,7 @@
32
31
  * still reads as feedback rather than as a flat, unresponsive selection. */
33
32
  @media (hover: hover) {
34
33
  .root[data-active]:hover {
35
- background-color: color-mix(in srgb, var(--vx-accent) 16%, transparent);
34
+ background-color: color-mix(in srgb, var(--vx-ink) 14%, transparent);
36
35
  }
37
36
  }
38
37
 
@@ -61,10 +60,9 @@
61
60
 
62
61
  /*
63
62
  * Inactive hover — the ink-5% ghost tint + ink text/icon (docs/DESIGN-SPEC.md §5; dropped from 6%
64
- * so it reads clearly below the active row's 12% accent fill instead of nearly matching its old 9%
65
- * ink fill). Lives here (not only in the shell module) so a consumer's `SidebarItem.Anchor` path
63
+ * so it reads clearly below the active row's 10% ink fill). Lives here (not only in the shell module) so a consumer's `SidebarItem.Anchor` path
66
64
  * gets the same hover; Mantine's own hover fill uses `:where(scheme) .m_*:hover` (gray-0/dark-6),
67
- * which this outranks on specificity. Active rows keep their accent fill above, untouched here.
65
+ * which this outranks on specificity. Active rows keep their ink fill above, untouched here.
68
66
  */
69
67
  @media (hover: hover) {
70
68
  .root:not([data-active]):hover {