basalt-ui 2.8.1 → 2.9.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 (137) hide show
  1. package/AGENTS.md +2 -2
  2. package/CHANGELOG.md +24 -0
  3. package/MIGRATING.md +58 -27
  4. package/README.md +7 -8
  5. package/agent/rules/basalt-controls.md +1 -1
  6. package/agent/rules/basalt-state.md +1 -1
  7. package/agent/skills/basalt-design/SKILL.md +1 -1
  8. package/agent/templates/AGENTS-block.md.tpl +2 -2
  9. package/configs/oxlint-plugin.js +25 -68
  10. package/configs/oxlint-plugin.test.ts +19 -27
  11. package/dist/charts/BandStrip.d.ts +1 -1
  12. package/dist/charts/BandStrip.d.ts.map +1 -1
  13. package/dist/charts/BandStrip.js +1 -10
  14. package/dist/charts/MirroredBars.d.ts.map +1 -1
  15. package/dist/charts/MirroredBars.js +2 -9
  16. package/dist/charts/band-fold.d.ts +15 -0
  17. package/dist/charts/band-fold.d.ts.map +1 -0
  18. package/dist/charts/band-fold.js +19 -0
  19. package/dist/charts/index.d.ts +1 -0
  20. package/dist/charts/index.d.ts.map +1 -1
  21. package/dist/charts/index.js +3 -1
  22. package/dist/cli/audit-allows.d.ts.map +1 -1
  23. package/dist/cli/audit-allows.js +1 -1
  24. package/dist/cli/check-theme.d.ts.map +1 -1
  25. package/dist/cli/check-theme.js +4 -1
  26. package/dist/cli/config.d.ts +4 -4
  27. package/dist/cli/doctor.d.ts.map +1 -1
  28. package/dist/cli/doctor.js +6 -12
  29. package/dist/cli/help.d.ts.map +1 -1
  30. package/dist/cli/help.js +2 -3
  31. package/dist/cli/index.d.ts.map +1 -1
  32. package/dist/cli/install-root.d.ts +10 -0
  33. package/dist/cli/install-root.d.ts.map +1 -0
  34. package/dist/cli/install-root.js +32 -0
  35. package/dist/cli/sync.d.ts +0 -2
  36. package/dist/cli/sync.d.ts.map +1 -1
  37. package/dist/cli/sync.js +8 -11
  38. package/dist/cli/tokens-css.d.ts.map +1 -1
  39. package/dist/cli/tokens-css.js +1 -6
  40. package/dist/common/errors.d.ts +1 -6
  41. package/dist/common/errors.d.ts.map +1 -1
  42. package/dist/common/errors.js +0 -7
  43. package/dist/common/index.d.ts +1 -1
  44. package/dist/common/index.d.ts.map +1 -1
  45. package/dist/common/index.js +1 -9
  46. package/dist/common/props.d.ts +2 -2
  47. package/dist/common/vx-family.d.ts +1 -1
  48. package/dist/content/toc-click-pin.d.ts +45 -0
  49. package/dist/content/toc-click-pin.d.ts.map +1 -0
  50. package/dist/content/toc-click-pin.js +111 -0
  51. package/dist/content/toc-spy.d.ts +25 -0
  52. package/dist/content/toc-spy.d.ts.map +1 -0
  53. package/dist/content/toc-spy.js +43 -0
  54. package/dist/content/toc.d.ts +1 -4
  55. package/dist/content/toc.d.ts.map +1 -1
  56. package/dist/content/toc.js +38 -49
  57. package/dist/controls/number-filter.d.ts.map +1 -1
  58. package/dist/controls/number-filter.js +1 -1
  59. package/dist/dashboard/index.d.ts +1 -1
  60. package/dist/dashboard/index.d.ts.map +1 -1
  61. package/dist/dashboard/index.js +1 -3
  62. package/dist/dashboard/section.d.ts +10 -2
  63. package/dist/dashboard/section.d.ts.map +1 -1
  64. package/dist/dashboard/section.js +20 -3
  65. package/dist/dashboard/stat-card.d.ts +2 -8
  66. package/dist/dashboard/stat-card.d.ts.map +1 -1
  67. package/dist/dashboard/stat-card.js +1 -1
  68. package/dist/guard/index.d.ts +13 -9
  69. package/dist/guard/index.d.ts.map +1 -1
  70. package/dist/guard/index.js +74 -37
  71. package/dist/guard/types.d.ts +8 -7
  72. package/dist/guard/types.d.ts.map +1 -1
  73. package/dist/guard/vx-names.d.ts +1 -1
  74. package/dist/guard/vx-names.d.ts.map +1 -1
  75. package/dist/guard/vx-names.js +1 -33
  76. package/dist/index.d.ts +2 -2
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/router-tanstack/search-store.d.ts +1 -11
  79. package/dist/router-tanstack/search-store.d.ts.map +1 -1
  80. package/dist/router-tanstack/search-store.js +1 -2
  81. package/dist/shell/index.d.ts +1 -0
  82. package/dist/shell/index.d.ts.map +1 -1
  83. package/dist/shell/index.js +3 -0
  84. package/dist/shell/nav-types.d.ts +1 -1
  85. package/dist/shell/page-bar.d.ts +6 -0
  86. package/dist/shell/page-bar.d.ts.map +1 -1
  87. package/dist/shell/page-bar.js +12 -2
  88. package/dist/state/fields.d.ts +1 -1
  89. package/dist/state/fields.d.ts.map +1 -1
  90. package/dist/state/fields.js +3 -1
  91. package/dist/surfaces.d.ts +1 -1
  92. package/dist/surfaces.d.ts.map +1 -1
  93. package/dist/surfaces.js +5 -11
  94. package/dist/table/data-table.d.ts +2 -2
  95. package/dist/tokens/core.d.ts +0 -10
  96. package/dist/tokens/core.d.ts.map +1 -1
  97. package/dist/tokens/core.js +6 -44
  98. package/llms.txt +24 -8
  99. package/package.json +8 -5
  100. package/src/charts/BandStrip.tsx +4 -16
  101. package/src/charts/MirroredBars.tsx +2 -11
  102. package/src/charts/band-fold.ts +26 -0
  103. package/src/charts/index.ts +1 -0
  104. package/src/cli/audit-allows.ts +1 -3
  105. package/src/cli/check-theme.ts +7 -1
  106. package/src/cli/config.ts +4 -4
  107. package/src/cli/doctor.ts +6 -17
  108. package/src/cli/help.ts +1 -4
  109. package/src/cli/index.ts +1 -2
  110. package/src/cli/install-root.ts +40 -0
  111. package/src/cli/sync.ts +9 -12
  112. package/src/cli/tokens-css.ts +0 -5
  113. package/src/common/errors.ts +1 -18
  114. package/src/common/index.ts +1 -8
  115. package/src/common/props.ts +2 -2
  116. package/src/common/vx-family.ts +1 -1
  117. package/src/content/toc-click-pin.ts +156 -0
  118. package/src/content/toc-spy.ts +61 -0
  119. package/src/content/toc.tsx +47 -95
  120. package/src/controls/form-layout.tsx +1 -1
  121. package/src/controls/number-filter.tsx +6 -1
  122. package/src/dashboard/index.ts +1 -6
  123. package/src/dashboard/section.tsx +39 -8
  124. package/src/dashboard/stat-card.tsx +4 -11
  125. package/src/guard/index.ts +114 -89
  126. package/src/guard/types.ts +8 -7
  127. package/src/guard/vx-names.ts +1 -33
  128. package/src/index.ts +1 -2
  129. package/src/router-tanstack/search-store.ts +2 -14
  130. package/src/shell/index.tsx +2 -0
  131. package/src/shell/nav-types.ts +1 -1
  132. package/src/shell/page-bar.tsx +21 -2
  133. package/src/state/fields.ts +7 -2
  134. package/src/surfaces.ts +5 -11
  135. package/src/table/data-table.tsx +2 -2
  136. package/src/tokens/core.ts +6 -67
  137. package/dist/tokens.css +0 -331
package/src/surfaces.ts CHANGED
@@ -391,10 +391,8 @@ export const SURFACES = {
391
391
  rule: 'batteries',
392
392
  skill: ['basalt-design'],
393
393
  guardKinds: [],
394
- // The one change in the 1.28.0 forms minor a compiler cannot see: `inputProps` stopped
395
- // returning `key`, and the pre-1.28.0 spread still type-checks, renders and validates — it
396
- // only stops resetting. `warn` through the 1.30.0 grace because it fires on what every
397
- // consumer ships today (`PLUGIN_RULE_GRACE`).
394
+ // The one forms change a compiler cannot see: `inputProps` does not return `key`, and the old
395
+ // spread still type-checks, renders and validates — it only stops resetting.
398
396
  pluginRules: ['forms-field-key'],
399
397
  description:
400
398
  'Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls — a spread `key` is a React 19 warning), on @mantine/form',
@@ -421,7 +419,7 @@ export const SURFACES = {
421
419
  guardKinds: [],
422
420
  pluginRules: [],
423
421
  description:
424
- 'BasaltDataTable and createColumnHelper: a data table over TanStack Table v9, rendered with Mantine (renamed from ./data/table)',
422
+ 'BasaltDataTable and createColumnHelper: a data table over TanStack Table v9, rendered with Mantine',
425
423
  optionalPeers: ['@tanstack/react-table'],
426
424
  forbiddenImports: [],
427
425
  },
@@ -480,12 +478,8 @@ export const SURFACES = {
480
478
  // The text lane of law C1 — the plugin's `control-outside-home` seen through a host-tag nesting
481
479
  // count, since a regex scan has no AST. Same law, same wave, same promotion.
482
480
  guardKinds: ['raw-selection-control'],
483
- // The control tier itself (laws C1/C3/C5/C9). `hand-rolled-filter`, `control-size-literal` and
484
- // `responsive-twin` all ship `error`; the two C1 placement rules are the grace entries in
485
- // `PLUGIN_RULE_GRACE`, both promoting at 1.30.0 — `control-outside-home` re-dated against the
486
- // wave-7 measurement, `bound-control-outside-home` new since 1.28.0 (ASIDE-SPEC G5: the basalt
487
- // half of C1, where a bound control in a section body rendered as a stray pill). The action
488
- // budgets are types now (`PageBarActions` / `SectionActions`, `controls/actions.tsx`).
481
+ // The control tier itself (laws C1/C3/C5/C9), every rule at `error`. The action budgets are
482
+ // types (`PageBarActions` / `SectionActions`, `controls/actions.tsx`).
489
483
  pluginRules: [
490
484
  'hand-rolled-filter',
491
485
  'control-outside-home',
@@ -672,8 +672,8 @@ export type BasaltDataTableProps<T extends RowData> = BasaltProps &
672
672
  manualFiltering?: boolean
673
673
  /**
674
674
  * Right-aligned toolbar slot (e.g. an "Export" button). Renders the toolbar row even when no
675
- * search input or facets are configured. Renamed from `toolbarActions` — the toolbar (search +
676
- * facets + this slot) is wrapped in `CtlSlot` (C1/C5), so its controls resolve to the `ctl` tier.
675
+ * search input or facets are configured. The toolbar (search + facets + this slot) is wrapped
676
+ * in `CtlSlot` (C1/C5), so its controls resolve to the `ctl` tier.
677
677
  *
678
678
  * Two accepted forms (law C15): a typed `BarAction[]`, projected through the same row `PageBar`
679
679
  * and `ActionGroup` use — ≤3 inline, the rest folded into `More`, one kebab below `sm` — or an
@@ -192,9 +192,6 @@ export const VX = {
192
192
  sheetRowHeight: 'var(--vx-space-sheet-row-height)',
193
193
  },
194
194
 
195
- // Secondary-line color (back-compat alias; now theme-aware via --vx-line2)
196
- line2Dark: 'var(--vx-line2)',
197
-
198
195
  // Semantic fills — consistent opacity across all charts
199
196
  good: 'var(--vx-good)',
200
197
  goodSoft: 'var(--vx-good-soft)',
@@ -356,41 +353,12 @@ const groupSide = (prefix: string, map: SeriesMap, side: Side): string =>
356
353
  .map(([key, pair]) => decl(`${prefix}${key}`, pair[side]))
357
354
  .join('\n')
358
355
 
359
- /**
360
- * The 16 deprecated camelCase aliases for `frameworkPrimitives`' per-scheme canonicals, each
361
- * defined as `var(--vx-<canonical-kebab-name>)` so it can never drift from the value above it.
362
- * Emitted as its own commented, trailing group (never interleaved with the canonicals) — gated by
363
- * {@link BuildPaletteOpts.legacyAliases}, default on. See that option's doc for the migration
364
- * rationale (1.4.0 kebab-case normalization).
365
- */
366
- function frameworkPrimitivesAliases(): string {
367
- return [
368
- ' /* Deprecated camelCase aliases — removed in a future minor; migrate to the kebab names above. */',
369
- decl('goodSolid', 'var(--vx-good-solid)'),
370
- decl('badSolid', 'var(--vx-bad-solid)'),
371
- decl('warnSolid', 'var(--vx-warn-solid)'),
372
- decl('axisStroke', 'var(--vx-axis-stroke)'),
373
- decl('dotStroke', 'var(--vx-dot-stroke)'),
374
- decl('tooltipBg', 'var(--vx-tooltip-bg)'),
375
- decl('tooltipText', 'var(--vx-tooltip-text)'),
376
- decl('tooltipMuted', 'var(--vx-tooltip-muted)'),
377
- decl('tooltipBorder', 'var(--vx-tooltip-border)'),
378
- decl('tooltipShadow', 'var(--vx-tooltip-shadow)'),
379
- decl('legendText', 'var(--vx-legend-text)'),
380
- decl('accentHover', 'var(--vx-accent-hover)'),
381
- decl('accentFill', 'var(--vx-accent-fill)'),
382
- decl('accentFillHover', 'var(--vx-accent-fill-hover)'),
383
- decl('onAccent', 'var(--vx-on-accent)'),
384
- decl('surface-panelHover', 'var(--vx-surface-panel-hover)'),
385
- ].join('\n')
386
- }
387
-
388
356
  /**
389
357
  * Built-in framework primitives for a given scheme side — STATUS group, semantic solids,
390
358
  * neutral line/axis/grid/tooltip chrome, legend text, and the surface ramp. Domain series
391
359
  * (SERIES/ACTIVITY/USAGE) are NOT shipped — apps append them via `opts.groups`.
392
360
  */
393
- function frameworkPrimitives(side: Side, data: PaletteData, legacyAliases: boolean): string {
361
+ function frameworkPrimitives(side: Side, data: PaletteData): string {
394
362
  const n = data.NEUTRAL
395
363
  const s = data.SEMANTIC
396
364
  const su = data.SURFACE
@@ -439,7 +407,7 @@ function frameworkPrimitives(side: Side, data: PaletteData, legacyAliases: boole
439
407
  decl('surface-border', su.border[side]),
440
408
  decl('surface-hairline', su.hairline[side]),
441
409
  ].join('\n')
442
- return legacyAliases ? `${canonical}\n${frameworkPrimitivesAliases()}` : canonical
410
+ return canonical
443
411
  }
444
412
 
445
413
  /**
@@ -698,32 +666,13 @@ const DEFAULT_SPACE_VALUES: SpaceValues = {
698
666
  rowLineHeight: ROW_LINE_HEIGHT,
699
667
  }
700
668
 
701
- /**
702
- * The 16 deprecated camelCase aliases for `frameworkDerived`'s theme-independent (`:root`)
703
- * canonicals — the 12 `fill-hover-<family>` fills plus `good-soft`/`good-ref`/`bad-ref`/`warn-ref`.
704
- * Each is a `var(--vx-<canonical-kebab-name>)` ref so it can never drift. Emitted as its own
705
- * commented, trailing group — gated by {@link BuildPaletteOpts.legacyAliases}, default on.
706
- */
707
- function frameworkDerivedAliases(data: PaletteData): string {
708
- return [
709
- ' /* Deprecated camelCase aliases — removed in a future minor; migrate to the kebab names above. */',
710
- ...Object.keys(data.FILL).map((name) =>
711
- decl(`fillHover-${name}`, `var(--vx-fill-hover-${name})`),
712
- ),
713
- decl('goodSoft', 'var(--vx-good-soft)'),
714
- decl('goodRef', 'var(--vx-good-ref)'),
715
- decl('badRef', 'var(--vx-bad-ref)'),
716
- decl('warnRef', 'var(--vx-warn-ref)'),
717
- ].join('\n')
718
- }
719
-
720
669
  /**
721
670
  * Theme-independent scalars + semantic fills, defined once on `:root`.
722
671
  *
723
672
  * Area-gradient strength is a global knob (the theme lab overrides these two on `:root`
724
673
  * to retune every line-area fill live). 0%/0% disables gradients app-wide.
725
674
  */
726
- function frameworkDerived(data: PaletteData, only: 'core' | 'all', legacyAliases: boolean): string {
675
+ function frameworkDerived(data: PaletteData, only: 'core' | 'all'): string {
727
676
  const space = spaceDecls(DEFAULT_SPACE_VALUES)
728
677
  const canonical = [
729
678
  decl('radius-card', `${RADIUS.card}px`),
@@ -768,7 +717,7 @@ function frameworkDerived(data: PaletteData, only: 'core' | 'all', legacyAliases
768
717
  decl('bad-ref', 'color-mix(in srgb, var(--vx-bad-solid) 30%, transparent)'),
769
718
  decl('warn-ref', 'color-mix(in srgb, var(--vx-warn-solid) 20%, transparent)'),
770
719
  ].join('\n')
771
- return legacyAliases ? `${canonical}\n${frameworkDerivedAliases(data)}` : canonical
720
+ return canonical
772
721
  }
773
722
 
774
723
  /**
@@ -925,15 +874,6 @@ export type BuildPaletteOpts = {
925
874
  * — see {@link CORE_SPACE_VARS}.
926
875
  */
927
876
  only?: 'core' | 'all'
928
- /**
929
- * Whether to also emit the 32 deprecated camelCase aliases (`--vx-accentFill`, `--vx-tooltipBg`,
930
- * `--vx-fillHover-gray`, …) alongside the canonical kebab-case names the 1.4.0 normalization
931
- * introduced. Default: `true`, so an existing consumer's hand-written CSS referencing a
932
- * camelCase name keeps resolving. Each alias is defined as `var(--vx-<canonical>)` — it can
933
- * never drift from the value it aliases. Pass `false` once every reference in your own code has
934
- * migrated to the kebab names to drop the extra 32 lines.
935
- */
936
- legacyAliases?: boolean
937
877
  }
938
878
 
939
879
  /** Mantine's own color-scheme attribute — the default {@link ColorSchemeSelector.attribute}. */
@@ -1025,10 +965,9 @@ export function buildPaletteCss(
1025
965
  data: PaletteData = buildPaletteData(),
1026
966
  ): string {
1027
967
  const groups = opts.groups ?? []
1028
- const legacyAliases = opts.legacyAliases ?? true
1029
968
  const only = opts.only ?? 'all'
1030
969
  const extraDerived = (opts.derived ?? []).map((d) => ` ${d}`).join('\n')
1031
- const derivedBlock = frameworkDerived(data, only, legacyAliases)
970
+ const derivedBlock = frameworkDerived(data, only)
1032
971
  const derived = extraDerived ? `${derivedBlock}\n${extraDerived}` : derivedBlock
1033
972
  const side = (s: Side): string => {
1034
973
  const extra = groups
@@ -1042,7 +981,7 @@ export function buildPaletteCss(
1042
981
  return groupSide(payload.prefix, payload.map, s)
1043
982
  })
1044
983
  .join('\n')
1045
- const framework = frameworkPrimitives(s, data, legacyAliases)
984
+ const framework = frameworkPrimitives(s, data)
1046
985
  return extra ? `${framework}\n${extra}` : framework
1047
986
  }
1048
987
  // The scalars, then the ONE `@media` block that re-points two of them below `sm` (see
package/dist/tokens.css DELETED
@@ -1,331 +0,0 @@
1
- :root {
2
- --vx-radius-card: 7px;
3
- --vx-radius-ctrl: 6px;
4
- --vx-radius-tight: 5px;
5
- --vx-radius-fine: 4px;
6
- --vx-radius-floating: 8px;
7
- --vx-radius-pill: 9999px;
8
- --vx-hit: 24px;
9
- --vx-space-row-inset-x: 10px;
10
- --vx-space-row-inset-y: 6px;
11
- --vx-space-row-line-height: 1.35;
12
- --vx-space-input-height: 2.625rem;
13
- --vx-space-control-height: 2.625rem;
14
- --vx-space-control-height-tag: 1.25rem;
15
- --vx-space-control-height-widget: 1.5rem;
16
- --vx-space-control-height-ctl: 2rem;
17
- --vx-space-stack-xs: 4px;
18
- --vx-space-stack-sm: 8px;
19
- --vx-space-stack-md: 12px;
20
- --vx-space-stack-lg: 16px;
21
- --vx-space-stack-xl: 24px;
22
- --vx-space-sticky-header-clearance: 12px;
23
- --vx-space-nav-icon-gap: 10px;
24
- --vx-space-sidebar-region-gap: 12px;
25
- --vx-space-prose-quote-inset-y: 2px;
26
- --vx-space-prose-quote-indent: 12px;
27
- --vx-space-prose-inline-code-inset-y: 1.5px;
28
- --vx-space-prose-inline-code-inset-x: 5px;
29
- --vx-space-prose-code-block-inset-y: 10px;
30
- --vx-space-prose-code-block-inset-x: 12px;
31
- --vx-space-prose-heading-anchor-gap: 6px;
32
- --vx-space-prose-table-cell-inset-y: 5px;
33
- --vx-space-prose-table-cell-inset-x: 8px;
34
- --vx-space-prose-chat-list-gap-bottom: 10px;
35
- --vx-space-prose-chat-list-indent: 20px;
36
- --vx-space-prose-chat-list-item-gap: 3px;
37
- --vx-space-prose-chat-nested-list-gap: 2px;
38
- --vx-space-prose-chat-heading-gap-top: 14px;
39
- --vx-space-prose-chat-heading-gap-bottom: 6px;
40
- --vx-space-prose-article-paragraph-gap: 14px;
41
- --vx-space-prose-article-list-gap-top: 6px;
42
- --vx-space-prose-article-list-gap-bottom: 14px;
43
- --vx-space-prose-article-list-indent: 22px;
44
- --vx-space-prose-article-h1-gap-top: 6px;
45
- --vx-space-prose-article-h1-gap-bottom: 14px;
46
- --vx-space-prose-article-heading-gap-top: 30px;
47
- --vx-space-prose-article-heading-gap-bottom: 10px;
48
- --vx-space-prose-article-h2-rule-gap: 6px;
49
- --vx-space-prose-article-block-gap: 18px;
50
- --vx-space-article-column-gap: 56px;
51
- --vx-space-article-toc-rail-width: 220px;
52
- --vx-space-article-header-gap: 10px;
53
- --vx-space-article-header-padding-bottom: 20px;
54
- --vx-space-article-header-margin-bottom: 28px;
55
- --vx-space-article-meta-row-gap: 6px;
56
- --vx-space-article-footer-gap: 12px;
57
- --vx-space-article-footer-margin-top: 40px;
58
- --vx-space-article-footer-padding-top: 20px;
59
- --vx-space-article-nav-target-gap: 6px;
60
- --vx-space-code-block-header-gap: 8px;
61
- --vx-space-code-block-header-inset-y: 6px;
62
- --vx-space-code-block-header-inset-right: 10px;
63
- --vx-space-code-block-content-inset-x: 14px;
64
- --vx-space-code-block-header-right-gap: 6px;
65
- --vx-space-code-block-body-inset-y: 10px;
66
- --vx-space-code-block-floating-copy-offset: 6px;
67
- --vx-space-callout-inset-y: 10px;
68
- --vx-space-callout-inset-x: 14px;
69
- --vx-space-callout-title-row-gap: 8px;
70
- --vx-space-toc-root-gap: 6px;
71
- --vx-space-toc-link-inset-y: 4px;
72
- --vx-space-toc-link-indent: 12px;
73
- --vx-space-toc-sub-indent: 24px;
74
- --vx-space-article-card-tags-gap: 4px;
75
- --vx-space-article-card-tag-inset-y: 1px;
76
- --vx-space-article-card-tag-inset-x: 6px;
77
- --vx-space-article-card-meta-gap-top: 2px;
78
- --vx-space-guide-body-gap-bottom: 8px;
79
- --vx-space-guide-footer-gap-top: 20px;
80
- --vx-space-guide-footer-inset-top: 16px;
81
- --vx-space-sidebar-search-gap: 7px;
82
- --vx-space-sidebar-search-trigger-height: 32px;
83
- --vx-space-settings-row-inset-y: 10px;
84
- --vx-space-settings-row-gap: 16px;
85
- --vx-space-mermaid-container-inset: 16px;
86
- --vx-space-sidebar-brand-inset-x: 7px;
87
- --vx-space-sidebar-section-gap: 16px;
88
- --vx-space-sidebar-account-inset-top: 9px;
89
- --vx-space-sidebar-account-inset-x: 7px;
90
- --vx-space-sidebar-account-inset-bottom: 2px;
91
- --vx-space-sidebar-avatar-size: 28px;
92
- --vx-space-sidebar-section-label-gap: 6px;
93
- --vx-space-sidebar-child-list-gap-top: 2px;
94
- --vx-space-sidebar-child-list-gap-bottom: 3px;
95
- --vx-space-sidebar-child-list-indent: 15px;
96
- --vx-space-sidebar-child-row-inset-y: 4px;
97
- --vx-space-sidebar-child-row-indent: 12px;
98
- --vx-space-app-shell-inset: 16px;
99
- --vx-space-app-shell-inset-mobile: 8px;
100
- --vx-space-app-shell-header-lead-min: 96px;
101
- --vx-space-mobile-nav-tab-gap: 3px;
102
- --vx-space-mobile-nav-icon-size: 24px;
103
- --vx-space-mobile-nav-tab-inset-y: 2px;
104
- --vx-space-mobile-nav-tab-inset-x: 12px;
105
- --vx-space-mobile-nav-row-height: 44px;
106
- --vx-space-agent-rail-inset-x: 10px;
107
- --vx-space-agent-part-gap-top: 6px;
108
- --vx-space-agent-code-inset: 8px;
109
- --vx-space-agent-error-inset-y: 8px;
110
- --vx-space-agent-error-inset-x: 10px;
111
- --vx-space-agent-scroll-button-gap-top: 8px;
112
- --vx-space-agent-message-inset-y: 10px;
113
- --vx-space-agent-message-inset-x: 12px;
114
- --vx-space-agent-transcript-inset: 16px;
115
- --vx-space-badge-inset-y: 2px;
116
- --vx-space-badge-inset-x: 7px;
117
- --vx-space-stat-card-gap: 8px;
118
- --vx-space-card-inset-y: 11px;
119
- --vx-space-card-inset-x: 13px;
120
- --vx-space-section-gap: 12px;
121
- --vx-space-virtual-row-inset-y: 8px;
122
- --vx-space-virtual-row-inset-x: 12px;
123
- --vx-space-page-bar-row-height: 2.25rem;
124
- --vx-space-section-header-height: 2.25rem;
125
- --vx-space-widget-header-height: 1.75rem;
126
- --vx-space-sidebar-block-row-height: 2rem;
127
- --vx-space-control-gap: 6px;
128
- --vx-space-sheet-row-height: 2.75rem;
129
- --vx-prose-measure: 72ch;
130
- --vx-fill-gray: #717176;
131
- --vx-fill-red: #b7514e;
132
- --vx-fill-pink: #ba4b6c;
133
- --vx-fill-grape: #9e579c;
134
- --vx-fill-violet: #9e579c;
135
- --vx-fill-indigo: #7863bc;
136
- --vx-fill-cyan: #43769a;
137
- --vx-fill-teal: #3a7c74;
138
- --vx-fill-green: #427e3f;
139
- --vx-fill-lime: #687737;
140
- --vx-fill-yellow: #8d6c2e;
141
- --vx-fill-orange: #9a6632;
142
- --vx-fill-hover-gray: color-mix(in srgb, var(--vx-fill-gray) 88%, #000);
143
- --vx-fill-hover-red: color-mix(in srgb, var(--vx-fill-red) 88%, #000);
144
- --vx-fill-hover-pink: color-mix(in srgb, var(--vx-fill-pink) 88%, #000);
145
- --vx-fill-hover-grape: color-mix(in srgb, var(--vx-fill-grape) 88%, #000);
146
- --vx-fill-hover-violet: color-mix(in srgb, var(--vx-fill-violet) 88%, #000);
147
- --vx-fill-hover-indigo: color-mix(in srgb, var(--vx-fill-indigo) 88%, #000);
148
- --vx-fill-hover-cyan: color-mix(in srgb, var(--vx-fill-cyan) 88%, #000);
149
- --vx-fill-hover-teal: color-mix(in srgb, var(--vx-fill-teal) 88%, #000);
150
- --vx-fill-hover-green: color-mix(in srgb, var(--vx-fill-green) 88%, #000);
151
- --vx-fill-hover-lime: color-mix(in srgb, var(--vx-fill-lime) 88%, #000);
152
- --vx-fill-hover-yellow: color-mix(in srgb, var(--vx-fill-yellow) 88%, #000);
153
- --vx-fill-hover-orange: color-mix(in srgb, var(--vx-fill-orange) 88%, #000);
154
- --vx-text-nano: 10px;
155
- --vx-text-micro: 11px;
156
- --vx-text-xs: 12.5px;
157
- --vx-text-sm: 13.5px;
158
- --vx-text-md: 15px;
159
- --vx-text-lg: 16px;
160
- --vx-text-xl: 18px;
161
- --vx-text-h2: 21px;
162
- --vx-text-kpi: 24px;
163
- --vx-text-h1: 26px;
164
- --vx-text-display: 30px;
165
- --vx-area-top: 22%;
166
- --vx-area-bottom: 1%;
167
- --vx-good: color-mix(in srgb, var(--vx-good-solid) 18%, transparent);
168
- --vx-good-soft: color-mix(in srgb, var(--vx-good-solid) 8%, transparent);
169
- --vx-bad: color-mix(in srgb, var(--vx-bad-solid) 18%, transparent);
170
- --vx-warn: color-mix(in srgb, var(--vx-warn-solid) 8%, transparent);
171
- --vx-good-ref: color-mix(in srgb, var(--vx-good-solid) 30%, transparent);
172
- --vx-bad-ref: color-mix(in srgb, var(--vx-bad-solid) 30%, transparent);
173
- --vx-warn-ref: color-mix(in srgb, var(--vx-warn-solid) 20%, transparent);
174
- /* Deprecated camelCase aliases — removed in a future minor; migrate to the kebab names above. */
175
- --vx-fillHover-gray: var(--vx-fill-hover-gray);
176
- --vx-fillHover-red: var(--vx-fill-hover-red);
177
- --vx-fillHover-pink: var(--vx-fill-hover-pink);
178
- --vx-fillHover-grape: var(--vx-fill-hover-grape);
179
- --vx-fillHover-violet: var(--vx-fill-hover-violet);
180
- --vx-fillHover-indigo: var(--vx-fill-hover-indigo);
181
- --vx-fillHover-cyan: var(--vx-fill-hover-cyan);
182
- --vx-fillHover-teal: var(--vx-fill-hover-teal);
183
- --vx-fillHover-green: var(--vx-fill-hover-green);
184
- --vx-fillHover-lime: var(--vx-fill-hover-lime);
185
- --vx-fillHover-yellow: var(--vx-fill-hover-yellow);
186
- --vx-fillHover-orange: var(--vx-fill-hover-orange);
187
- --vx-goodSoft: var(--vx-good-soft);
188
- --vx-goodRef: var(--vx-good-ref);
189
- --vx-badRef: var(--vx-bad-ref);
190
- --vx-warnRef: var(--vx-warn-ref);
191
- }
192
- @media (max-width: 52.49375em) {
193
- :root {
194
- --vx-space-card-inset-x: 11px;
195
- --vx-space-section-gap: 8px;
196
- }
197
- }
198
- @media (pointer: coarse) {
199
- :root {
200
- --vx-hit: 44px;
201
- }
202
- }
203
- :root,
204
- html[data-mantine-color-scheme='dark'] {
205
- --vx-status-excellent: #43bf4d;
206
- --vx-status-good: #52c07c;
207
- --vx-status-warn: #e6a53d;
208
- --vx-status-bad: #e06761;
209
- --vx-status-neutral: #a1a1aa;
210
- --vx-good-solid: #52c07c;
211
- --vx-bad-solid: #e06761;
212
- --vx-warn-solid: #e6a53d;
213
- --vx-neutral: #d4d4d8;
214
- --vx-line: #e4e4e7;
215
- --vx-line2: #a1a1aa;
216
- --vx-axis: rgba(255, 255, 255, 0.6);
217
- --vx-axis-stroke: rgba(255, 255, 255, 0.12);
218
- --vx-grid: rgba(255, 255, 255, 0.06);
219
- --vx-crosshair: rgba(255, 255, 255, 0.42);
220
- --vx-dot-stroke: #27272a;
221
- --vx-tooltip-bg: rgba(39, 39, 42, 0.96);
222
- --vx-tooltip-text: rgba(255, 255, 255, 0.88);
223
- --vx-tooltip-muted: rgba(255, 255, 255, 0.5);
224
- --vx-tooltip-border: none;
225
- --vx-tooltip-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
226
- --vx-legend-text: rgba(255, 255, 255, 0.92);
227
- --vx-ink: #e5e5e9;
228
- --vx-ink2: #dddde1;
229
- --vx-muted: #d4d4d8;
230
- --vx-faint: #a1a1a4;
231
- --vx-accent: #a2c3f0;
232
- --vx-accent-hover: #65a2e3;
233
- --vx-accent-fill: #4374a6;
234
- --vx-accent-fill-hover: #3c6895;
235
- --vx-on-accent: #ffffff;
236
- --vx-divider: rgba(255, 255, 255, 0.08);
237
- --vx-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 0 0 1px color-mix(in srgb, #ffffff 4%, transparent);
238
- --vx-shadow-ctrl: 0 1px 2px rgba(0, 0, 0, 0.35);
239
- --vx-shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent);
240
- --vx-shadow-overlay: 0 8px 24px rgba(0, 0, 0, 0.5);
241
- --vx-surface-bg: #27272a;
242
- --vx-surface-panel: #2b2b2e;
243
- --vx-surface-panel-hover: #38383b;
244
- --vx-surface-elevated: #38383b;
245
- --vx-surface-subtle: #323235;
246
- --vx-surface-overlay: color-mix(in srgb, #3f3f46 50%, #27272a);
247
- --vx-surface-field: #27272a;
248
- --vx-surface-border: #444447;
249
- --vx-surface-hairline: #4e4e51;
250
- /* Deprecated camelCase aliases — removed in a future minor; migrate to the kebab names above. */
251
- --vx-goodSolid: var(--vx-good-solid);
252
- --vx-badSolid: var(--vx-bad-solid);
253
- --vx-warnSolid: var(--vx-warn-solid);
254
- --vx-axisStroke: var(--vx-axis-stroke);
255
- --vx-dotStroke: var(--vx-dot-stroke);
256
- --vx-tooltipBg: var(--vx-tooltip-bg);
257
- --vx-tooltipText: var(--vx-tooltip-text);
258
- --vx-tooltipMuted: var(--vx-tooltip-muted);
259
- --vx-tooltipBorder: var(--vx-tooltip-border);
260
- --vx-tooltipShadow: var(--vx-tooltip-shadow);
261
- --vx-legendText: var(--vx-legend-text);
262
- --vx-accentHover: var(--vx-accent-hover);
263
- --vx-accentFill: var(--vx-accent-fill);
264
- --vx-accentFillHover: var(--vx-accent-fill-hover);
265
- --vx-onAccent: var(--vx-on-accent);
266
- --vx-surface-panelHover: var(--vx-surface-panel-hover);
267
- }
268
- html[data-mantine-color-scheme='light'] {
269
- --vx-status-excellent: #29a634;
270
- --vx-status-good: #327a4d;
271
- --vx-status-warn: #b07808;
272
- --vx-status-bad: #b5403d;
273
- --vx-status-neutral: #71717a;
274
- --vx-good-solid: #327a4d;
275
- --vx-bad-solid: #b5403d;
276
- --vx-warn-solid: #b07808;
277
- --vx-neutral: #525255;
278
- --vx-line: #52525c;
279
- --vx-line2: #71717a;
280
- --vx-axis: rgba(38, 38, 41, 0.6);
281
- --vx-axis-stroke: rgba(38, 38, 41, 0.12);
282
- --vx-grid: rgba(38, 38, 41, 0.07);
283
- --vx-crosshair: rgba(38, 38, 41, 0.32);
284
- --vx-dot-stroke: #ffffff;
285
- --vx-tooltip-bg: #ffffff;
286
- --vx-tooltip-text: rgba(38, 38, 41, 0.88);
287
- --vx-tooltip-muted: rgba(38, 38, 41, 0.5);
288
- --vx-tooltip-border: 1px solid #e4e4e7;
289
- --vx-tooltip-shadow: 0 2px 8px rgba(38, 38, 41, 0.1);
290
- --vx-legend-text: rgba(38, 38, 41, 0.82);
291
- --vx-ink: #262629;
292
- --vx-ink2: #404043;
293
- --vx-muted: #525255;
294
- --vx-faint: #69696c;
295
- --vx-accent: #4374a6;
296
- --vx-accent-hover: #3c6895;
297
- --vx-accent-fill: #4374a6;
298
- --vx-accent-fill-hover: #3c6895;
299
- --vx-on-accent: #ffffff;
300
- --vx-divider: rgba(38, 38, 41, 0.09);
301
- --vx-shadow-card: 0 1px 2px rgba(28, 25, 23, 0.05), 0 0 0 1px var(--vx-surface-hairline);
302
- --vx-shadow-ctrl: 0 1px 2px rgba(28, 25, 23, 0.12);
303
- --vx-shadow-raised: 0 1px 2px rgba(28, 25, 23, 0.1);
304
- --vx-shadow-overlay: 0 8px 24px rgba(28, 25, 23, 0.1);
305
- --vx-surface-bg: #f2f2f5;
306
- --vx-surface-panel: #fafafd;
307
- --vx-surface-panel-hover: #ffffff;
308
- --vx-surface-elevated: #ffffff;
309
- --vx-surface-subtle: #f4f4f8;
310
- --vx-surface-overlay: #ffffff;
311
- --vx-surface-field: #ffffff;
312
- --vx-surface-border: #e2e2e5;
313
- --vx-surface-hairline: #eaeaee;
314
- /* Deprecated camelCase aliases — removed in a future minor; migrate to the kebab names above. */
315
- --vx-goodSolid: var(--vx-good-solid);
316
- --vx-badSolid: var(--vx-bad-solid);
317
- --vx-warnSolid: var(--vx-warn-solid);
318
- --vx-axisStroke: var(--vx-axis-stroke);
319
- --vx-dotStroke: var(--vx-dot-stroke);
320
- --vx-tooltipBg: var(--vx-tooltip-bg);
321
- --vx-tooltipText: var(--vx-tooltip-text);
322
- --vx-tooltipMuted: var(--vx-tooltip-muted);
323
- --vx-tooltipBorder: var(--vx-tooltip-border);
324
- --vx-tooltipShadow: var(--vx-tooltip-shadow);
325
- --vx-legendText: var(--vx-legend-text);
326
- --vx-accentHover: var(--vx-accent-hover);
327
- --vx-accentFill: var(--vx-accent-fill);
328
- --vx-accentFillHover: var(--vx-accent-fill-hover);
329
- --vx-onAccent: var(--vx-on-accent);
330
- --vx-surface-panelHover: var(--vx-surface-panel-hover);
331
- }