basalt-ui 1.4.1 → 1.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 (46) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +27 -2
  3. package/agent/rules/basalt-mantine.md +1 -1
  4. package/agent/rules/basalt-tokens.md +2 -2
  5. package/agent/skills/basalt-design/SKILL.md +1 -1
  6. package/dist/charts/kinds/Donut.js +1 -0
  7. package/dist/charts/theme.js +6 -6
  8. package/dist/cli/index.d.ts.map +1 -1
  9. package/dist/cli/index.js +8 -3
  10. package/dist/content/article-card.module.css +1 -1
  11. package/dist/content/callout.module.css +3 -3
  12. package/dist/content/prose.module.css +1 -1
  13. package/dist/content/reading-progress.module.css +2 -2
  14. package/dist/guard/guard-hook.js +1 -1
  15. package/dist/guard/index.d.ts.map +1 -1
  16. package/dist/guard/index.js +22 -4
  17. package/dist/guard/types.d.ts +6 -0
  18. package/dist/guard/types.d.ts.map +1 -1
  19. package/dist/theme/index.js +4 -4
  20. package/dist/theme/timeline.module.css +3 -3
  21. package/dist/theme-lab/index.js +1 -1
  22. package/dist/tokens/index.d.ts +25 -16
  23. package/dist/tokens/index.d.ts.map +1 -1
  24. package/dist/tokens/index.js +84 -46
  25. package/dist/tokens.css +102 -51
  26. package/llms.txt +2 -2
  27. package/package.json +71 -17
  28. package/src/agent-chat/composer.tsx +1 -1
  29. package/src/charts/kinds/Donut.tsx +1 -1
  30. package/src/charts/theme.tsx +6 -6
  31. package/src/cli/index.ts +10 -2
  32. package/src/cli/tokens-css.test.ts +17 -0
  33. package/src/content/article-card.module.css +1 -1
  34. package/src/content/callout.module.css +3 -3
  35. package/src/content/prose.module.css +1 -1
  36. package/src/content/reading-progress.module.css +2 -2
  37. package/src/guard/check-source.test.ts +77 -0
  38. package/src/guard/guard-hook.ts +1 -1
  39. package/src/guard/index.ts +45 -7
  40. package/src/guard/types.ts +6 -0
  41. package/src/theme/contrast.test.ts +23 -5
  42. package/src/theme/index.ts +5 -5
  43. package/src/theme/timeline.module.css +3 -3
  44. package/src/theme-lab/index.tsx +2 -2
  45. package/src/tokens/index.ts +106 -46
  46. package/src/tokens/palette.ts +2 -2
@@ -68,16 +68,16 @@ const VX = {
68
68
  line2Dark: "var(--vx-line2)",
69
69
  // Semantic fills — consistent opacity across all charts
70
70
  good: "var(--vx-good)",
71
- goodSoft: "var(--vx-goodSoft)",
71
+ goodSoft: "var(--vx-good-soft)",
72
72
  bad: "var(--vx-bad)",
73
73
  warn: "var(--vx-warn)",
74
- goodSolid: "var(--vx-goodSolid)",
75
- badSolid: "var(--vx-badSolid)",
76
- warnSolid: "var(--vx-warnSolid)",
74
+ goodSolid: "var(--vx-good-solid)",
75
+ badSolid: "var(--vx-bad-solid)",
76
+ warnSolid: "var(--vx-warn-solid)",
77
77
  // Reference/dashed lines for thresholds
78
- goodRef: "var(--vx-goodRef)",
79
- badRef: "var(--vx-badRef)",
80
- warnRef: "var(--vx-warnRef)",
78
+ goodRef: "var(--vx-good-ref)",
79
+ badRef: "var(--vx-bad-ref)",
80
+ warnRef: "var(--vx-warn-ref)",
81
81
  // Neutral primary line/text color — the default for single-series, no-signal marks
82
82
  // ("white/gray per theme"). Same value as the NEUTRAL.line pair.
83
83
  line: "var(--vx-line)",
@@ -85,17 +85,17 @@ const VX = {
85
85
  // Axis label + axis stroke colors (theme-aware). Exposed as flat refs so a bespoke chart that
86
86
  // renders raw <text> labels or axis lines (without the Axis* primitives) needs no hook.
87
87
  axis: "var(--vx-axis)",
88
- axisStroke: "var(--vx-axisStroke)",
88
+ axisStroke: "var(--vx-axis-stroke)",
89
89
  // Grid, hover, legend
90
90
  grid: "var(--vx-grid)",
91
91
  crosshair: "var(--vx-crosshair)",
92
- dotStroke: "var(--vx-dotStroke)",
93
- legendText: "var(--vx-legendText)",
92
+ dotStroke: "var(--vx-dot-stroke)",
93
+ legendText: "var(--vx-legend-text)",
94
94
  // Tooltip chrome — muted (secondary) text inside a bespoke tooltip. The other tooltip vars
95
95
  // (bg/text/border/shadow) are only exposed via `useVxTheme()` (see `charts/theme.tsx`); this
96
96
  // one is flattened onto `VX` too because bespoke-tooltip authors reached for `VX.muted` (the
97
97
  // general ink-ramp muted) instead and got the wrong token — same pattern as `VX.muted` below.
98
- tooltipMuted: "var(--vx-tooltipMuted)",
98
+ tooltipMuted: "var(--vx-tooltip-muted)",
99
99
  // Base neutral for hairlines / muted text / overlays — apply opacity via alpha()
100
100
  neutral: "var(--vx-neutral)",
101
101
  // Ink text ramp (docs/DESIGN-SPEC.md §2) — primary/emphasis/secondary/tertiary body text.
@@ -106,14 +106,14 @@ const VX = {
106
106
  // The accent as INK — primary series, active-nav icon, links, focus rings. Read against the PAGE,
107
107
  // so it inverts across schemes (light on dark, deep on light).
108
108
  accent: "var(--vx-accent)",
109
- accentHover: "var(--vx-accentHover)",
109
+ accentHover: "var(--vx-accent-hover)",
110
110
  // The accent as SURFACE — a filled control that carries a label. Squeezed between white-text
111
111
  // contrast and page contrast, so it is the same hex in both schemes (see ACCENT in palette.ts).
112
112
  // Mantine's `--mantine-color-<primary>-filled` is bridged onto this, so it drives ALL filled
113
113
  // chrome; a raw `--vx-accent` fill would be unreadable on dark. Fills use THIS, never `accent`.
114
- accentFill: "var(--vx-accentFill)",
115
- accentFillHover: "var(--vx-accentFillHover)",
116
- onAccent: "var(--vx-onAccent)",
114
+ accentFill: "var(--vx-accent-fill)",
115
+ accentFillHover: "var(--vx-accent-fill-hover)",
116
+ onAccent: "var(--vx-on-accent)",
117
117
  // Layout separators (header bottom rule, sidebar child indent) — distinct from `surface.border`.
118
118
  divider: "var(--vx-divider)",
119
119
  // Depth shadows — a whisper shadow + a 1px ring baked into the value (never a `border` prop).
@@ -125,7 +125,7 @@ const VX = {
125
125
  surface: {
126
126
  bg: "var(--vx-surface-bg)",
127
127
  panel: "var(--vx-surface-panel)",
128
- panelHover: "var(--vx-surface-panelHover)",
128
+ panelHover: "var(--vx-surface-panel-hover)",
129
129
  elevated: "var(--vx-surface-elevated)",
130
130
  subtle: "var(--vx-surface-subtle)",
131
131
  overlay: "var(--vx-surface-overlay)",
@@ -160,47 +160,68 @@ function pxRem(px) {
160
160
  return `${px / 16}rem`;
161
161
  }
162
162
  const groupSide = (prefix, map, side) => Object.entries(map).map(([key, pair]) => decl(`${prefix}${key}`, pair[side])).join("\n");
163
- function frameworkPrimitives(side, data) {
163
+ function frameworkPrimitivesAliases() {
164
+ return [
165
+ " /* Deprecated camelCase aliases \u2014 removed in a future minor; migrate to the kebab names above. */",
166
+ decl("goodSolid", "var(--vx-good-solid)"),
167
+ decl("badSolid", "var(--vx-bad-solid)"),
168
+ decl("warnSolid", "var(--vx-warn-solid)"),
169
+ decl("axisStroke", "var(--vx-axis-stroke)"),
170
+ decl("dotStroke", "var(--vx-dot-stroke)"),
171
+ decl("tooltipBg", "var(--vx-tooltip-bg)"),
172
+ decl("tooltipText", "var(--vx-tooltip-text)"),
173
+ decl("tooltipMuted", "var(--vx-tooltip-muted)"),
174
+ decl("tooltipBorder", "var(--vx-tooltip-border)"),
175
+ decl("tooltipShadow", "var(--vx-tooltip-shadow)"),
176
+ decl("legendText", "var(--vx-legend-text)"),
177
+ decl("accentHover", "var(--vx-accent-hover)"),
178
+ decl("accentFill", "var(--vx-accent-fill)"),
179
+ decl("accentFillHover", "var(--vx-accent-fill-hover)"),
180
+ decl("onAccent", "var(--vx-on-accent)"),
181
+ decl("surface-panelHover", "var(--vx-surface-panel-hover)")
182
+ ].join("\n");
183
+ }
184
+ function frameworkPrimitives(side, data, legacyAliases) {
164
185
  const n = data.NEUTRAL;
165
186
  const s = data.SEMANTIC;
166
187
  const su = data.SURFACE;
167
188
  const ink = data.INK;
168
189
  const ac = data.ACCENT;
169
- return [
190
+ const canonical = [
170
191
  groupSide("status-", data.STATUS, side),
171
- decl("goodSolid", s.good[side]),
172
- decl("badSolid", s.bad[side]),
173
- decl("warnSolid", s.warn[side]),
192
+ decl("good-solid", s.good[side]),
193
+ decl("bad-solid", s.bad[side]),
194
+ decl("warn-solid", s.warn[side]),
174
195
  decl("neutral", n.neutral[side]),
175
196
  decl("line", n.line[side]),
176
197
  decl("line2", n.line2[side]),
177
198
  decl("axis", n.axis[side]),
178
- decl("axisStroke", n.axisStroke[side]),
199
+ decl("axis-stroke", n.axisStroke[side]),
179
200
  decl("grid", n.grid[side]),
180
201
  decl("crosshair", n.crosshair[side]),
181
- decl("dotStroke", n.dotStroke[side]),
182
- decl("tooltipBg", n.tooltipBg[side]),
183
- decl("tooltipText", n.tooltipText[side]),
184
- decl("tooltipMuted", n.tooltipMuted[side]),
185
- decl("tooltipBorder", n.tooltipBorder[side]),
186
- decl("tooltipShadow", n.tooltipShadow[side]),
187
- decl("legendText", n.legendText[side]),
202
+ decl("dot-stroke", n.dotStroke[side]),
203
+ decl("tooltip-bg", n.tooltipBg[side]),
204
+ decl("tooltip-text", n.tooltipText[side]),
205
+ decl("tooltip-muted", n.tooltipMuted[side]),
206
+ decl("tooltip-border", n.tooltipBorder[side]),
207
+ decl("tooltip-shadow", n.tooltipShadow[side]),
208
+ decl("legend-text", n.legendText[side]),
188
209
  decl("ink", ink.ink[side]),
189
210
  decl("ink2", ink.ink2[side]),
190
211
  decl("muted", ink.muted[side]),
191
212
  decl("faint", ink.faint[side]),
192
213
  decl("accent", ac.accent[side]),
193
- decl("accentHover", ac.accentHover[side]),
194
- decl("accentFill", ac.accentFill[side]),
195
- decl("accentFillHover", ac.accentFillHover[side]),
196
- decl("onAccent", ac.onAccent[side]),
214
+ decl("accent-hover", ac.accentHover[side]),
215
+ decl("accent-fill", ac.accentFill[side]),
216
+ decl("accent-fill-hover", ac.accentFillHover[side]),
217
+ decl("on-accent", ac.onAccent[side]),
197
218
  decl("divider", su.divider[side]),
198
219
  decl("shadow-card", SHADOW.card[side]),
199
220
  decl("shadow-ctrl", SHADOW.ctrl[side]),
200
221
  decl("shadow-overlay", SHADOW.overlay[side]),
201
222
  decl("surface-bg", su.bg[side]),
202
223
  decl("surface-panel", su.panel[side]),
203
- decl("surface-panelHover", su.panelHover[side]),
224
+ decl("surface-panel-hover", su.panelHover[side]),
204
225
  decl("surface-elevated", su.elevated[side]),
205
226
  decl("surface-subtle", su.subtle[side]),
206
227
  decl("surface-overlay", su.overlay[side]),
@@ -208,6 +229,8 @@ function frameworkPrimitives(side, data) {
208
229
  decl("surface-border", su.border[side]),
209
230
  decl("surface-hairline", su.hairline[side])
210
231
  ].join("\n");
232
+ return legacyAliases ? `${canonical}
233
+ ${frameworkPrimitivesAliases()}` : canonical;
211
234
  }
212
235
  function spaceDecls(space) {
213
236
  return [
@@ -360,9 +383,21 @@ const DEFAULT_SPACE_VALUES = {
360
383
  step: SPACE_STEP,
361
384
  rowLineHeight: ROW_LINE_HEIGHT
362
385
  };
363
- function frameworkDerived(data, only) {
364
- const space = spaceDecls(DEFAULT_SPACE_VALUES);
386
+ function frameworkDerivedAliases(data) {
365
387
  return [
388
+ " /* Deprecated camelCase aliases \u2014 removed in a future minor; migrate to the kebab names above. */",
389
+ ...Object.keys(data.FILL).map(
390
+ (name) => decl(`fillHover-${name}`, `var(--vx-fill-hover-${name})`)
391
+ ),
392
+ decl("goodSoft", "var(--vx-good-soft)"),
393
+ decl("goodRef", "var(--vx-good-ref)"),
394
+ decl("badRef", "var(--vx-bad-ref)"),
395
+ decl("warnRef", "var(--vx-warn-ref)")
396
+ ].join("\n");
397
+ }
398
+ function frameworkDerived(data, only, legacyAliases) {
399
+ const space = spaceDecls(DEFAULT_SPACE_VALUES);
400
+ const canonical = [
366
401
  decl("radius-card", `${RADIUS.card}px`),
367
402
  decl("radius-ctrl", `${RADIUS.ctrl}px`),
368
403
  // The two offset tiers (SegmentedControl indicator/Kbd/Code, Progress/scale-sm) — added so a
@@ -387,21 +422,23 @@ function frameworkDerived(data, only) {
387
422
  // hover along instead of leaving a stale pair. 88% of the fill over black lands ~0.128 luminance:
388
423
  // a visible press-darkening that still clears AA for the white label (~5.9:1).
389
424
  ...Object.keys(data.FILL).map(
390
- (name) => decl(`fillHover-${name}`, `color-mix(in srgb, var(--vx-fill-${name}) 88%, #000)`)
425
+ (name) => decl(`fill-hover-${name}`, `color-mix(in srgb, var(--vx-fill-${name}) 88%, #000)`)
391
426
  ),
392
427
  // The type scale, emitted from the SAME `TEXT` object `VX.text` reads — CSS modules and the
393
428
  // Mantine theme consume these; inline styles / visx read the numbers. One ladder, two forms.
394
429
  ...Object.entries(TEXT).map(([step, px]) => decl(`text-${step}`, `${px}px`)),
395
430
  decl("area-top", "22%"),
396
431
  decl("area-bottom", "1%"),
397
- decl("good", "color-mix(in srgb, var(--vx-goodSolid) 18%, transparent)"),
398
- decl("goodSoft", "color-mix(in srgb, var(--vx-goodSolid) 8%, transparent)"),
399
- decl("bad", "color-mix(in srgb, var(--vx-badSolid) 18%, transparent)"),
400
- decl("warn", "color-mix(in srgb, var(--vx-warnSolid) 8%, transparent)"),
401
- decl("goodRef", "color-mix(in srgb, var(--vx-goodSolid) 30%, transparent)"),
402
- decl("badRef", "color-mix(in srgb, var(--vx-badSolid) 30%, transparent)"),
403
- decl("warnRef", "color-mix(in srgb, var(--vx-warnSolid) 20%, transparent)")
432
+ decl("good", "color-mix(in srgb, var(--vx-good-solid) 18%, transparent)"),
433
+ decl("good-soft", "color-mix(in srgb, var(--vx-good-solid) 8%, transparent)"),
434
+ decl("bad", "color-mix(in srgb, var(--vx-bad-solid) 18%, transparent)"),
435
+ decl("warn", "color-mix(in srgb, var(--vx-warn-solid) 8%, transparent)"),
436
+ decl("good-ref", "color-mix(in srgb, var(--vx-good-solid) 30%, transparent)"),
437
+ decl("bad-ref", "color-mix(in srgb, var(--vx-bad-solid) 30%, transparent)"),
438
+ decl("warn-ref", "color-mix(in srgb, var(--vx-warn-solid) 20%, transparent)")
404
439
  ].join("\n");
440
+ return legacyAliases ? `${canonical}
441
+ ${frameworkDerivedAliases(data)}` : canonical;
405
442
  }
406
443
  function seriesTokens(map, prefix = "") {
407
444
  const out = {};
@@ -418,13 +455,14 @@ const MANTINE_SCHEME_ATTRIBUTE = "data-mantine-color-scheme";
418
455
  const indent = (block) => block.split("\n").map((line) => line === "" ? line : ` ${line}`).join("\n");
419
456
  function buildPaletteCss(opts = {}, data = buildPaletteData()) {
420
457
  const groups = opts.groups ?? {};
458
+ const legacyAliases = opts.legacyAliases ?? true;
421
459
  const extraDerived = (opts.derived ?? []).map((d) => ` ${d}`).join("\n");
422
- const derivedBlock = frameworkDerived(data, opts.only ?? "all");
460
+ const derivedBlock = frameworkDerived(data, opts.only ?? "all", legacyAliases);
423
461
  const derived = extraDerived ? `${derivedBlock}
424
462
  ${extraDerived}` : derivedBlock;
425
463
  const side = (s) => {
426
464
  const extra = Object.entries(groups).map(([prefix, map]) => groupSide(prefix, map, s)).join("\n");
427
- const framework = frameworkPrimitives(s, data);
465
+ const framework = frameworkPrimitives(s, data, legacyAliases);
428
466
  return extra ? `${framework}
429
467
  ${extra}` : framework;
430
468
  };
package/dist/tokens.css CHANGED
@@ -122,18 +122,18 @@
122
122
  --vx-fill-lime: #687737;
123
123
  --vx-fill-yellow: #8d6c2e;
124
124
  --vx-fill-orange: #9a6632;
125
- --vx-fillHover-gray: color-mix(in srgb, var(--vx-fill-gray) 88%, #000);
126
- --vx-fillHover-red: color-mix(in srgb, var(--vx-fill-red) 88%, #000);
127
- --vx-fillHover-pink: color-mix(in srgb, var(--vx-fill-pink) 88%, #000);
128
- --vx-fillHover-grape: color-mix(in srgb, var(--vx-fill-grape) 88%, #000);
129
- --vx-fillHover-violet: color-mix(in srgb, var(--vx-fill-violet) 88%, #000);
130
- --vx-fillHover-indigo: color-mix(in srgb, var(--vx-fill-indigo) 88%, #000);
131
- --vx-fillHover-cyan: color-mix(in srgb, var(--vx-fill-cyan) 88%, #000);
132
- --vx-fillHover-teal: color-mix(in srgb, var(--vx-fill-teal) 88%, #000);
133
- --vx-fillHover-green: color-mix(in srgb, var(--vx-fill-green) 88%, #000);
134
- --vx-fillHover-lime: color-mix(in srgb, var(--vx-fill-lime) 88%, #000);
135
- --vx-fillHover-yellow: color-mix(in srgb, var(--vx-fill-yellow) 88%, #000);
136
- --vx-fillHover-orange: color-mix(in srgb, var(--vx-fill-orange) 88%, #000);
125
+ --vx-fill-hover-gray: color-mix(in srgb, var(--vx-fill-gray) 88%, #000);
126
+ --vx-fill-hover-red: color-mix(in srgb, var(--vx-fill-red) 88%, #000);
127
+ --vx-fill-hover-pink: color-mix(in srgb, var(--vx-fill-pink) 88%, #000);
128
+ --vx-fill-hover-grape: color-mix(in srgb, var(--vx-fill-grape) 88%, #000);
129
+ --vx-fill-hover-violet: color-mix(in srgb, var(--vx-fill-violet) 88%, #000);
130
+ --vx-fill-hover-indigo: color-mix(in srgb, var(--vx-fill-indigo) 88%, #000);
131
+ --vx-fill-hover-cyan: color-mix(in srgb, var(--vx-fill-cyan) 88%, #000);
132
+ --vx-fill-hover-teal: color-mix(in srgb, var(--vx-fill-teal) 88%, #000);
133
+ --vx-fill-hover-green: color-mix(in srgb, var(--vx-fill-green) 88%, #000);
134
+ --vx-fill-hover-lime: color-mix(in srgb, var(--vx-fill-lime) 88%, #000);
135
+ --vx-fill-hover-yellow: color-mix(in srgb, var(--vx-fill-yellow) 88%, #000);
136
+ --vx-fill-hover-orange: color-mix(in srgb, var(--vx-fill-orange) 88%, #000);
137
137
  --vx-text-micro: 11px;
138
138
  --vx-text-xs: 12.5px;
139
139
  --vx-text-sm: 13.5px;
@@ -145,13 +145,30 @@
145
145
  --vx-text-h1: 26px;
146
146
  --vx-area-top: 22%;
147
147
  --vx-area-bottom: 1%;
148
- --vx-good: color-mix(in srgb, var(--vx-goodSolid) 18%, transparent);
149
- --vx-goodSoft: color-mix(in srgb, var(--vx-goodSolid) 8%, transparent);
150
- --vx-bad: color-mix(in srgb, var(--vx-badSolid) 18%, transparent);
151
- --vx-warn: color-mix(in srgb, var(--vx-warnSolid) 8%, transparent);
152
- --vx-goodRef: color-mix(in srgb, var(--vx-goodSolid) 30%, transparent);
153
- --vx-badRef: color-mix(in srgb, var(--vx-badSolid) 30%, transparent);
154
- --vx-warnRef: color-mix(in srgb, var(--vx-warnSolid) 20%, transparent);
148
+ --vx-good: color-mix(in srgb, var(--vx-good-solid) 18%, transparent);
149
+ --vx-good-soft: color-mix(in srgb, var(--vx-good-solid) 8%, transparent);
150
+ --vx-bad: color-mix(in srgb, var(--vx-bad-solid) 18%, transparent);
151
+ --vx-warn: color-mix(in srgb, var(--vx-warn-solid) 8%, transparent);
152
+ --vx-good-ref: color-mix(in srgb, var(--vx-good-solid) 30%, transparent);
153
+ --vx-bad-ref: color-mix(in srgb, var(--vx-bad-solid) 30%, transparent);
154
+ --vx-warn-ref: color-mix(in srgb, var(--vx-warn-solid) 20%, transparent);
155
+ /* Deprecated camelCase aliases — removed in a future minor; migrate to the kebab names above. */
156
+ --vx-fillHover-gray: var(--vx-fill-hover-gray);
157
+ --vx-fillHover-red: var(--vx-fill-hover-red);
158
+ --vx-fillHover-pink: var(--vx-fill-hover-pink);
159
+ --vx-fillHover-grape: var(--vx-fill-hover-grape);
160
+ --vx-fillHover-violet: var(--vx-fill-hover-violet);
161
+ --vx-fillHover-indigo: var(--vx-fill-hover-indigo);
162
+ --vx-fillHover-cyan: var(--vx-fill-hover-cyan);
163
+ --vx-fillHover-teal: var(--vx-fill-hover-teal);
164
+ --vx-fillHover-green: var(--vx-fill-hover-green);
165
+ --vx-fillHover-lime: var(--vx-fill-hover-lime);
166
+ --vx-fillHover-yellow: var(--vx-fill-hover-yellow);
167
+ --vx-fillHover-orange: var(--vx-fill-hover-orange);
168
+ --vx-goodSoft: var(--vx-good-soft);
169
+ --vx-goodRef: var(--vx-good-ref);
170
+ --vx-badRef: var(--vx-bad-ref);
171
+ --vx-warnRef: var(--vx-warn-ref);
155
172
  }
156
173
  :root,
157
174
  html[data-mantine-color-scheme='dark'] {
@@ -160,45 +177,62 @@ html[data-mantine-color-scheme='dark'] {
160
177
  --vx-status-warn: #e6a53d;
161
178
  --vx-status-bad: #e06761;
162
179
  --vx-status-neutral: #a1a1aa;
163
- --vx-goodSolid: #52c07c;
164
- --vx-badSolid: #e06761;
165
- --vx-warnSolid: #e6a53d;
180
+ --vx-good-solid: #52c07c;
181
+ --vx-bad-solid: #e06761;
182
+ --vx-warn-solid: #e6a53d;
166
183
  --vx-neutral: #d4d4d8;
167
184
  --vx-line: #e4e4e7;
168
185
  --vx-line2: #a1a1aa;
169
186
  --vx-axis: rgba(255,255,255,0.6);
170
- --vx-axisStroke: rgba(255,255,255,0.12);
187
+ --vx-axis-stroke: rgba(255,255,255,0.12);
171
188
  --vx-grid: rgba(255,255,255,0.06);
172
189
  --vx-crosshair: rgba(255,255,255,0.42);
173
- --vx-dotStroke: #27272a;
174
- --vx-tooltipBg: rgba(39,39,42,0.96);
175
- --vx-tooltipText: rgba(255,255,255,0.88);
176
- --vx-tooltipMuted: rgba(255,255,255,0.5);
177
- --vx-tooltipBorder: none;
178
- --vx-tooltipShadow: 0 2px 8px rgba(0,0,0,0.35);
179
- --vx-legendText: rgba(255,255,255,0.92);
190
+ --vx-dot-stroke: #27272a;
191
+ --vx-tooltip-bg: rgba(39,39,42,0.96);
192
+ --vx-tooltip-text: rgba(255,255,255,0.88);
193
+ --vx-tooltip-muted: rgba(255,255,255,0.5);
194
+ --vx-tooltip-border: none;
195
+ --vx-tooltip-shadow: 0 2px 8px rgba(0,0,0,0.35);
196
+ --vx-legend-text: rgba(255,255,255,0.92);
180
197
  --vx-ink: #e5e5e9;
181
198
  --vx-ink2: #dddde1;
182
199
  --vx-muted: #d4d4d8;
183
200
  --vx-faint: #a1a1a4;
184
201
  --vx-accent: #a2c3f0;
185
- --vx-accentHover: #65a2e3;
186
- --vx-accentFill: #4374a6;
187
- --vx-accentFillHover: #3c6895;
188
- --vx-onAccent: #ffffff;
202
+ --vx-accent-hover: #65a2e3;
203
+ --vx-accent-fill: #4374a6;
204
+ --vx-accent-fill-hover: #3c6895;
205
+ --vx-on-accent: #ffffff;
189
206
  --vx-divider: color-mix(in srgb, #ffffff 6%, transparent);
190
207
  --vx-shadow-card: 0 1px 3px rgba(0,0,0,0.4), inset 0 0 0 1px color-mix(in srgb, #ffffff 4%, transparent);
191
208
  --vx-shadow-ctrl: 0 1px 2px rgba(0,0,0,0.35);
192
209
  --vx-shadow-overlay: 0 8px 24px rgba(0,0,0,0.5);
193
210
  --vx-surface-bg: #27272a;
194
211
  --vx-surface-panel: #2b2b2e;
195
- --vx-surface-panelHover: #38383b;
212
+ --vx-surface-panel-hover: #38383b;
196
213
  --vx-surface-elevated: #38383b;
197
214
  --vx-surface-subtle: #323235;
198
215
  --vx-surface-overlay: color-mix(in srgb, #3f3f46 50%, #27272a);
199
216
  --vx-surface-field: #27272a;
200
217
  --vx-surface-border: #444447;
201
218
  --vx-surface-hairline: #4e4e51;
219
+ /* Deprecated camelCase aliases — removed in a future minor; migrate to the kebab names above. */
220
+ --vx-goodSolid: var(--vx-good-solid);
221
+ --vx-badSolid: var(--vx-bad-solid);
222
+ --vx-warnSolid: var(--vx-warn-solid);
223
+ --vx-axisStroke: var(--vx-axis-stroke);
224
+ --vx-dotStroke: var(--vx-dot-stroke);
225
+ --vx-tooltipBg: var(--vx-tooltip-bg);
226
+ --vx-tooltipText: var(--vx-tooltip-text);
227
+ --vx-tooltipMuted: var(--vx-tooltip-muted);
228
+ --vx-tooltipBorder: var(--vx-tooltip-border);
229
+ --vx-tooltipShadow: var(--vx-tooltip-shadow);
230
+ --vx-legendText: var(--vx-legend-text);
231
+ --vx-accentHover: var(--vx-accent-hover);
232
+ --vx-accentFill: var(--vx-accent-fill);
233
+ --vx-accentFillHover: var(--vx-accent-fill-hover);
234
+ --vx-onAccent: var(--vx-on-accent);
235
+ --vx-surface-panelHover: var(--vx-surface-panel-hover);
202
236
  }
203
237
  html[data-mantine-color-scheme='light'] {
204
238
  --vx-status-excellent: #29a634;
@@ -206,43 +240,60 @@ html[data-mantine-color-scheme='light'] {
206
240
  --vx-status-warn: #b07808;
207
241
  --vx-status-bad: #b5403d;
208
242
  --vx-status-neutral: #71717a;
209
- --vx-goodSolid: #327a4d;
210
- --vx-badSolid: #b5403d;
211
- --vx-warnSolid: #b07808;
243
+ --vx-good-solid: #327a4d;
244
+ --vx-bad-solid: #b5403d;
245
+ --vx-warn-solid: #b07808;
212
246
  --vx-neutral: #525255;
213
247
  --vx-line: #52525c;
214
248
  --vx-line2: #71717a;
215
249
  --vx-axis: rgba(38, 38, 41, 0.6);
216
- --vx-axisStroke: rgba(38, 38, 41, 0.12);
250
+ --vx-axis-stroke: rgba(38, 38, 41, 0.12);
217
251
  --vx-grid: rgba(38, 38, 41, 0.07);
218
252
  --vx-crosshair: rgba(38, 38, 41, 0.32);
219
- --vx-dotStroke: #ffffff;
220
- --vx-tooltipBg: #ffffff;
221
- --vx-tooltipText: rgba(38, 38, 41, 0.88);
222
- --vx-tooltipMuted: rgba(38, 38, 41, 0.5);
223
- --vx-tooltipBorder: 1px solid #e4e4e7;
224
- --vx-tooltipShadow: 0 2px 8px rgba(38, 38, 41, 0.1);
225
- --vx-legendText: rgba(38, 38, 41, 0.82);
253
+ --vx-dot-stroke: #ffffff;
254
+ --vx-tooltip-bg: #ffffff;
255
+ --vx-tooltip-text: rgba(38, 38, 41, 0.88);
256
+ --vx-tooltip-muted: rgba(38, 38, 41, 0.5);
257
+ --vx-tooltip-border: 1px solid #e4e4e7;
258
+ --vx-tooltip-shadow: 0 2px 8px rgba(38, 38, 41, 0.1);
259
+ --vx-legend-text: rgba(38, 38, 41, 0.82);
226
260
  --vx-ink: #262629;
227
261
  --vx-ink2: #404043;
228
262
  --vx-muted: #525255;
229
263
  --vx-faint: #737376;
230
264
  --vx-accent: #4374a6;
231
- --vx-accentHover: #3c6895;
232
- --vx-accentFill: #4374a6;
233
- --vx-accentFillHover: #3c6895;
234
- --vx-onAccent: #ffffff;
265
+ --vx-accent-hover: #3c6895;
266
+ --vx-accent-fill: #4374a6;
267
+ --vx-accent-fill-hover: #3c6895;
268
+ --vx-on-accent: #ffffff;
235
269
  --vx-divider: color-mix(in srgb, #e5e5e5 65%, transparent);
236
270
  --vx-shadow-card: 0 1px 2px rgba(28,25,23,0.05), 0 0 0 1px var(--vx-surface-hairline);
237
271
  --vx-shadow-ctrl: 0 1px 2px rgba(28,25,23,0.12);
238
272
  --vx-shadow-overlay: 0 8px 24px rgba(28,25,23,0.10);
239
273
  --vx-surface-bg: #f2f2f5;
240
274
  --vx-surface-panel: #fafafd;
241
- --vx-surface-panelHover: #ffffff;
275
+ --vx-surface-panel-hover: #ffffff;
242
276
  --vx-surface-elevated: #ffffff;
243
277
  --vx-surface-subtle: #f4f4f8;
244
278
  --vx-surface-overlay: #ffffff;
245
279
  --vx-surface-field: #ffffff;
246
280
  --vx-surface-border: #e2e2e5;
247
281
  --vx-surface-hairline: #eaeaee;
282
+ /* Deprecated camelCase aliases — removed in a future minor; migrate to the kebab names above. */
283
+ --vx-goodSolid: var(--vx-good-solid);
284
+ --vx-badSolid: var(--vx-bad-solid);
285
+ --vx-warnSolid: var(--vx-warn-solid);
286
+ --vx-axisStroke: var(--vx-axis-stroke);
287
+ --vx-dotStroke: var(--vx-dot-stroke);
288
+ --vx-tooltipBg: var(--vx-tooltip-bg);
289
+ --vx-tooltipText: var(--vx-tooltip-text);
290
+ --vx-tooltipMuted: var(--vx-tooltip-muted);
291
+ --vx-tooltipBorder: var(--vx-tooltip-border);
292
+ --vx-tooltipShadow: var(--vx-tooltip-shadow);
293
+ --vx-legendText: var(--vx-legend-text);
294
+ --vx-accentHover: var(--vx-accent-hover);
295
+ --vx-accentFill: var(--vx-accent-fill);
296
+ --vx-accentFillHover: var(--vx-accent-fill-hover);
297
+ --vx-onAccent: var(--vx-on-accent);
298
+ --vx-surface-panelHover: var(--vx-surface-panel-hover);
248
299
  }
package/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # basalt-ui v1.4.1
1
+ # basalt-ui v1.5.0
2
2
  # Opinionated framework for Mantine-based React apps — theme, app shell, visx charts, toolchain presets
3
3
  #
4
4
  # basalt-ui is an opinionated framework for Mantine-based React apps.
@@ -19,7 +19,7 @@
19
19
  # ./tokens.css subpath. Guide: docs/FRAMEWORK-FREE.md in the repo.
20
20
 
21
21
  Package: basalt-ui
22
- Version: 1.4.1
22
+ Version: 1.5.0
23
23
 
24
24
  ## basalt-ui
25
25
  Import: import { ... } from 'basalt-ui'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basalt-ui",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "Opinionated framework for Mantine-based React apps — theme, app shell, visx charts, toolchain presets",
5
5
  "keywords": [
6
6
  "charts",
@@ -132,10 +132,18 @@
132
132
  "prepack": "bun run build",
133
133
  "clean": "rm -rf dist"
134
134
  },
135
- "dependencies": {
135
+ "devDependencies": {
136
+ "@arethetypeswrong/cli": "0.18.3",
136
137
  "@fontsource-variable/hubot-sans": "5.2.8",
137
138
  "@fontsource-variable/jetbrains-mono": "5.2.8",
138
139
  "@fontsource-variable/nunito-sans": "5.2.7",
140
+ "@shikijs/langs": "^4.3.1",
141
+ "@shikijs/themes": "^4.3.1",
142
+ "@tanstack/react-hotkeys": "0.10.0",
143
+ "@types/bun": "^1.3.14",
144
+ "@types/hast": "^3.0.4",
145
+ "@types/react": "^19.2.17",
146
+ "@types/react-dom": "^19.2.3",
139
147
  "@visx/axis": "4.0.0",
140
148
  "@visx/curve": "4.0.0",
141
149
  "@visx/event": "4.0.0",
@@ -145,23 +153,13 @@
145
153
  "@visx/scale": "4.0.0",
146
154
  "@visx/shape": "4.0.0",
147
155
  "@visx/threshold": "4.0.0",
148
- "motion": "12.42.0",
149
- "remend": "1.3.0"
150
- },
151
- "devDependencies": {
152
- "@arethetypeswrong/cli": "0.18.3",
153
- "@shikijs/langs": "^4.3.1",
154
- "@shikijs/themes": "^4.3.1",
155
- "@tanstack/react-hotkeys": "0.10.0",
156
- "@types/bun": "^1.3.14",
157
- "@types/hast": "^3.0.4",
158
- "@types/react": "^19.2.17",
159
- "@types/react-dom": "^19.2.3",
160
156
  "ai": "^7.0.15",
161
157
  "beautiful-mermaid": "^1.1.3",
158
+ "motion": "12.42.0",
162
159
  "publint": "0.3.21",
163
160
  "react-markdown": "^10.1.0",
164
161
  "remark-gfm": "^4.0.1",
162
+ "remend": "1.3.0",
165
163
  "shiki": "^4.3.1",
166
164
  "tsup": "^8.5.1",
167
165
  "typescript": "^6.0.3",
@@ -170,6 +168,9 @@
170
168
  "vite-plugin-pwa": "^1.3.0"
171
169
  },
172
170
  "peerDependencies": {
171
+ "@fontsource-variable/hubot-sans": "5.2.8",
172
+ "@fontsource-variable/jetbrains-mono": "5.2.8",
173
+ "@fontsource-variable/nunito-sans": "5.2.7",
173
174
  "@mantine/core": "^9.3.0",
174
175
  "@mantine/form": "^9.3.0",
175
176
  "@mantine/hooks": "^9.3.0",
@@ -184,18 +185,38 @@
184
185
  "@tanstack/react-router": "^1.170.0",
185
186
  "@tanstack/react-table": ">=8 <9",
186
187
  "@tanstack/react-virtual": ">=3 <4",
188
+ "@visx/axis": "4.0.0",
189
+ "@visx/curve": "4.0.0",
190
+ "@visx/event": "4.0.0",
191
+ "@visx/grid": "4.0.0",
192
+ "@visx/group": "4.0.0",
193
+ "@visx/responsive": "4.0.0",
194
+ "@visx/scale": "4.0.0",
195
+ "@visx/shape": "4.0.0",
196
+ "@visx/threshold": "4.0.0",
187
197
  "ai": "^7.0.15",
188
198
  "beautiful-mermaid": "^1.1.0",
199
+ "motion": "12.42.0",
189
200
  "react": "^19.2.7",
190
201
  "react-dom": "^19.2.7",
191
202
  "react-markdown": "^10.1.0",
192
203
  "remark-gfm": "^4.0.1",
204
+ "remend": "1.3.0",
193
205
  "shiki": "^4.3.0",
194
206
  "use-stick-to-bottom": "^1.1.6",
195
207
  "vite": "^7 || ^8",
196
208
  "vite-plugin-pwa": "^1.3.0"
197
209
  },
198
210
  "peerDependenciesMeta": {
211
+ "@fontsource-variable/hubot-sans": {
212
+ "optional": true
213
+ },
214
+ "@fontsource-variable/jetbrains-mono": {
215
+ "optional": true
216
+ },
217
+ "@fontsource-variable/nunito-sans": {
218
+ "optional": true
219
+ },
199
220
  "@mantine/core": {
200
221
  "optional": true
201
222
  },
@@ -238,12 +259,42 @@
238
259
  "@tanstack/react-virtual": {
239
260
  "optional": true
240
261
  },
262
+ "@visx/axis": {
263
+ "optional": true
264
+ },
265
+ "@visx/curve": {
266
+ "optional": true
267
+ },
268
+ "@visx/event": {
269
+ "optional": true
270
+ },
271
+ "@visx/grid": {
272
+ "optional": true
273
+ },
274
+ "@visx/group": {
275
+ "optional": true
276
+ },
277
+ "@visx/responsive": {
278
+ "optional": true
279
+ },
280
+ "@visx/scale": {
281
+ "optional": true
282
+ },
283
+ "@visx/shape": {
284
+ "optional": true
285
+ },
286
+ "@visx/threshold": {
287
+ "optional": true
288
+ },
241
289
  "ai": {
242
290
  "optional": true
243
291
  },
244
292
  "beautiful-mermaid": {
245
293
  "optional": true
246
294
  },
295
+ "motion": {
296
+ "optional": true
297
+ },
247
298
  "react": {
248
299
  "optional": true
249
300
  },
@@ -256,6 +307,9 @@
256
307
  "remark-gfm": {
257
308
  "optional": true
258
309
  },
310
+ "remend": {
311
+ "optional": true
312
+ },
259
313
  "shiki": {
260
314
  "optional": true
261
315
  },
@@ -285,15 +339,15 @@
285
339
  "rawRadius": true,
286
340
  "exemptRules": {
287
341
  "inline-spacing": [
288
- "charts"
342
+ "primitives"
289
343
  ],
290
344
  "inline-display": [
291
345
  "agent",
292
- "charts"
346
+ "primitives"
293
347
  ],
294
348
  "raw-html-layout": [
295
349
  "agent",
296
- "charts"
350
+ "primitives"
297
351
  ]
298
352
  }
299
353
  }
@@ -103,7 +103,7 @@ export function Composer({
103
103
  disabled={disabled || value.trim().length === 0}
104
104
  aria-label="Send message"
105
105
  // Send action (docs/DESIGN-SPEC.md §5): the one accent-filled control. It needs no color
106
- // override — `filled` resolves through the theme to `--vx-accentFill` / `--vx-onAccent`.
106
+ // override — `filled` resolves through the theme to `--vx-accent-fill` / `--vx-on-accent`.
107
107
  // (It used to hand-wire those two vars inline, which is why this was the ONLY filled
108
108
  // control that stayed legible while the rest of the chrome went through Mantine's
109
109
  // scheme-blind autoContrast. The theme owns it now, and hover works again — an inline