basalt-ui 1.4.1 → 1.6.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.
- package/CHANGELOG.md +22 -0
- package/README.md +27 -2
- package/agent/rules/basalt-mantine.md +1 -1
- package/agent/rules/basalt-tokens.md +2 -2
- package/agent/skills/basalt-design/SKILL.md +1 -1
- package/dist/agent/stick-to-bottom.d.ts.map +1 -1
- package/dist/agent/stick-to-bottom.js +2 -1
- package/dist/agent-chat/composer.d.ts.map +1 -1
- package/dist/agent-chat/composer.js +5 -4
- package/dist/charts/kinds/Donut.js +1 -0
- package/dist/charts/theme.js +6 -6
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +8 -3
- package/dist/content/article-card.module.css +1 -1
- package/dist/content/callout.module.css +3 -3
- package/dist/content/prose.module.css +1 -1
- package/dist/content/reading-progress.module.css +2 -2
- package/dist/guard/guard-hook.js +1 -1
- package/dist/guard/index.d.ts.map +1 -1
- package/dist/guard/index.js +22 -4
- package/dist/guard/types.d.ts +6 -0
- package/dist/guard/types.d.ts.map +1 -1
- package/dist/shell/app-sidebar.module.css +4 -6
- package/dist/shell/sidebar-search.module.css +4 -2
- package/dist/theme/controls.module.css +162 -23
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +40 -23
- package/dist/theme/nav-link.module.css +10 -10
- package/dist/theme/timeline.module.css +3 -3
- package/dist/theme-lab/index.js +1 -1
- package/dist/tokens/index.d.ts +26 -16
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +88 -46
- package/dist/tokens/palette.d.ts +31 -0
- package/dist/tokens/palette.d.ts.map +1 -1
- package/dist/tokens/palette.js +31 -0
- package/dist/tokens.css +104 -51
- package/llms.txt +2 -2
- package/package.json +71 -17
- package/src/agent/stick-to-bottom.tsx +2 -1
- package/src/agent-chat/composer.tsx +6 -5
- package/src/charts/kinds/Donut.tsx +1 -1
- package/src/charts/theme.tsx +6 -6
- package/src/cli/index.ts +10 -2
- package/src/cli/tokens-css.test.ts +17 -0
- package/src/content/article-card.module.css +1 -1
- package/src/content/callout.module.css +3 -3
- package/src/content/prose.module.css +1 -1
- package/src/content/reading-progress.module.css +2 -2
- package/src/guard/check-source.test.ts +77 -0
- package/src/guard/guard-hook.ts +1 -1
- package/src/guard/index.ts +45 -7
- package/src/guard/types.ts +6 -0
- package/src/shell/app-sidebar.module.css +4 -6
- package/src/shell/sidebar-search.module.css +4 -2
- package/src/theme/contrast.test.ts +23 -5
- package/src/theme/controls.module.css +162 -23
- package/src/theme/index.ts +55 -24
- package/src/theme/nav-link.module.css +10 -10
- package/src/theme/shadow-surfaces.test.ts +72 -33
- package/src/theme/timeline.module.css +3 -3
- package/src/theme-lab/index.tsx +2 -2
- package/src/tokens/index.ts +110 -46
- package/src/tokens/palette.ts +33 -2
package/dist/tokens/index.js
CHANGED
|
@@ -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-
|
|
71
|
+
goodSoft: "var(--vx-good-soft)",
|
|
72
72
|
bad: "var(--vx-bad)",
|
|
73
73
|
warn: "var(--vx-warn)",
|
|
74
|
-
goodSolid: "var(--vx-
|
|
75
|
-
badSolid: "var(--vx-
|
|
76
|
-
warnSolid: "var(--vx-
|
|
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-
|
|
79
|
-
badRef: "var(--vx-
|
|
80
|
-
warnRef: "var(--vx-
|
|
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-
|
|
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-
|
|
93
|
-
legendText: "var(--vx-
|
|
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-
|
|
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,26 +106,29 @@ 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-
|
|
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-
|
|
115
|
-
accentFillHover: "var(--vx-
|
|
116
|
-
onAccent: "var(--vx-
|
|
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).
|
|
120
120
|
shadowCard: "var(--vx-shadow-card)",
|
|
121
121
|
shadowCtrl: "var(--vx-shadow-ctrl)",
|
|
122
|
+
// Raised interactive controls — drop + a 1px INSET edge, the one depth every raised Button/
|
|
123
|
+
// ActionIcon variant shares (works over a fill, a tint or a panel alike; see SHADOW.raised).
|
|
124
|
+
shadowRaised: "var(--vx-shadow-raised)",
|
|
122
125
|
// Floating-layer elevation (menus, popovers, tooltips, modals, drawers) — a real drop shadow.
|
|
123
126
|
shadowOverlay: "var(--vx-shadow-overlay)",
|
|
124
127
|
// App surfaces (cards, borders) — shared with the Mantine chrome
|
|
125
128
|
surface: {
|
|
126
129
|
bg: "var(--vx-surface-bg)",
|
|
127
130
|
panel: "var(--vx-surface-panel)",
|
|
128
|
-
panelHover: "var(--vx-surface-
|
|
131
|
+
panelHover: "var(--vx-surface-panel-hover)",
|
|
129
132
|
elevated: "var(--vx-surface-elevated)",
|
|
130
133
|
subtle: "var(--vx-surface-subtle)",
|
|
131
134
|
overlay: "var(--vx-surface-overlay)",
|
|
@@ -160,47 +163,69 @@ function pxRem(px) {
|
|
|
160
163
|
return `${px / 16}rem`;
|
|
161
164
|
}
|
|
162
165
|
const groupSide = (prefix, map, side) => Object.entries(map).map(([key, pair]) => decl(`${prefix}${key}`, pair[side])).join("\n");
|
|
163
|
-
function
|
|
166
|
+
function frameworkPrimitivesAliases() {
|
|
167
|
+
return [
|
|
168
|
+
" /* Deprecated camelCase aliases \u2014 removed in a future minor; migrate to the kebab names above. */",
|
|
169
|
+
decl("goodSolid", "var(--vx-good-solid)"),
|
|
170
|
+
decl("badSolid", "var(--vx-bad-solid)"),
|
|
171
|
+
decl("warnSolid", "var(--vx-warn-solid)"),
|
|
172
|
+
decl("axisStroke", "var(--vx-axis-stroke)"),
|
|
173
|
+
decl("dotStroke", "var(--vx-dot-stroke)"),
|
|
174
|
+
decl("tooltipBg", "var(--vx-tooltip-bg)"),
|
|
175
|
+
decl("tooltipText", "var(--vx-tooltip-text)"),
|
|
176
|
+
decl("tooltipMuted", "var(--vx-tooltip-muted)"),
|
|
177
|
+
decl("tooltipBorder", "var(--vx-tooltip-border)"),
|
|
178
|
+
decl("tooltipShadow", "var(--vx-tooltip-shadow)"),
|
|
179
|
+
decl("legendText", "var(--vx-legend-text)"),
|
|
180
|
+
decl("accentHover", "var(--vx-accent-hover)"),
|
|
181
|
+
decl("accentFill", "var(--vx-accent-fill)"),
|
|
182
|
+
decl("accentFillHover", "var(--vx-accent-fill-hover)"),
|
|
183
|
+
decl("onAccent", "var(--vx-on-accent)"),
|
|
184
|
+
decl("surface-panelHover", "var(--vx-surface-panel-hover)")
|
|
185
|
+
].join("\n");
|
|
186
|
+
}
|
|
187
|
+
function frameworkPrimitives(side, data, legacyAliases) {
|
|
164
188
|
const n = data.NEUTRAL;
|
|
165
189
|
const s = data.SEMANTIC;
|
|
166
190
|
const su = data.SURFACE;
|
|
167
191
|
const ink = data.INK;
|
|
168
192
|
const ac = data.ACCENT;
|
|
169
|
-
|
|
193
|
+
const canonical = [
|
|
170
194
|
groupSide("status-", data.STATUS, side),
|
|
171
|
-
decl("
|
|
172
|
-
decl("
|
|
173
|
-
decl("
|
|
195
|
+
decl("good-solid", s.good[side]),
|
|
196
|
+
decl("bad-solid", s.bad[side]),
|
|
197
|
+
decl("warn-solid", s.warn[side]),
|
|
174
198
|
decl("neutral", n.neutral[side]),
|
|
175
199
|
decl("line", n.line[side]),
|
|
176
200
|
decl("line2", n.line2[side]),
|
|
177
201
|
decl("axis", n.axis[side]),
|
|
178
|
-
decl("
|
|
202
|
+
decl("axis-stroke", n.axisStroke[side]),
|
|
179
203
|
decl("grid", n.grid[side]),
|
|
180
204
|
decl("crosshair", n.crosshair[side]),
|
|
181
|
-
decl("
|
|
182
|
-
decl("
|
|
183
|
-
decl("
|
|
184
|
-
decl("
|
|
185
|
-
decl("
|
|
186
|
-
decl("
|
|
187
|
-
decl("
|
|
205
|
+
decl("dot-stroke", n.dotStroke[side]),
|
|
206
|
+
decl("tooltip-bg", n.tooltipBg[side]),
|
|
207
|
+
decl("tooltip-text", n.tooltipText[side]),
|
|
208
|
+
decl("tooltip-muted", n.tooltipMuted[side]),
|
|
209
|
+
decl("tooltip-border", n.tooltipBorder[side]),
|
|
210
|
+
decl("tooltip-shadow", n.tooltipShadow[side]),
|
|
211
|
+
decl("legend-text", n.legendText[side]),
|
|
188
212
|
decl("ink", ink.ink[side]),
|
|
189
213
|
decl("ink2", ink.ink2[side]),
|
|
190
214
|
decl("muted", ink.muted[side]),
|
|
191
215
|
decl("faint", ink.faint[side]),
|
|
192
216
|
decl("accent", ac.accent[side]),
|
|
193
|
-
decl("
|
|
194
|
-
decl("
|
|
195
|
-
decl("
|
|
196
|
-
decl("
|
|
217
|
+
decl("accent-hover", ac.accentHover[side]),
|
|
218
|
+
decl("accent-fill", ac.accentFill[side]),
|
|
219
|
+
decl("accent-fill-hover", ac.accentFillHover[side]),
|
|
220
|
+
decl("on-accent", ac.onAccent[side]),
|
|
197
221
|
decl("divider", su.divider[side]),
|
|
198
222
|
decl("shadow-card", SHADOW.card[side]),
|
|
199
223
|
decl("shadow-ctrl", SHADOW.ctrl[side]),
|
|
224
|
+
decl("shadow-raised", SHADOW.raised[side]),
|
|
200
225
|
decl("shadow-overlay", SHADOW.overlay[side]),
|
|
201
226
|
decl("surface-bg", su.bg[side]),
|
|
202
227
|
decl("surface-panel", su.panel[side]),
|
|
203
|
-
decl("surface-
|
|
228
|
+
decl("surface-panel-hover", su.panelHover[side]),
|
|
204
229
|
decl("surface-elevated", su.elevated[side]),
|
|
205
230
|
decl("surface-subtle", su.subtle[side]),
|
|
206
231
|
decl("surface-overlay", su.overlay[side]),
|
|
@@ -208,6 +233,8 @@ function frameworkPrimitives(side, data) {
|
|
|
208
233
|
decl("surface-border", su.border[side]),
|
|
209
234
|
decl("surface-hairline", su.hairline[side])
|
|
210
235
|
].join("\n");
|
|
236
|
+
return legacyAliases ? `${canonical}
|
|
237
|
+
${frameworkPrimitivesAliases()}` : canonical;
|
|
211
238
|
}
|
|
212
239
|
function spaceDecls(space) {
|
|
213
240
|
return [
|
|
@@ -360,9 +387,21 @@ const DEFAULT_SPACE_VALUES = {
|
|
|
360
387
|
step: SPACE_STEP,
|
|
361
388
|
rowLineHeight: ROW_LINE_HEIGHT
|
|
362
389
|
};
|
|
363
|
-
function
|
|
364
|
-
const space = spaceDecls(DEFAULT_SPACE_VALUES);
|
|
390
|
+
function frameworkDerivedAliases(data) {
|
|
365
391
|
return [
|
|
392
|
+
" /* Deprecated camelCase aliases \u2014 removed in a future minor; migrate to the kebab names above. */",
|
|
393
|
+
...Object.keys(data.FILL).map(
|
|
394
|
+
(name) => decl(`fillHover-${name}`, `var(--vx-fill-hover-${name})`)
|
|
395
|
+
),
|
|
396
|
+
decl("goodSoft", "var(--vx-good-soft)"),
|
|
397
|
+
decl("goodRef", "var(--vx-good-ref)"),
|
|
398
|
+
decl("badRef", "var(--vx-bad-ref)"),
|
|
399
|
+
decl("warnRef", "var(--vx-warn-ref)")
|
|
400
|
+
].join("\n");
|
|
401
|
+
}
|
|
402
|
+
function frameworkDerived(data, only, legacyAliases) {
|
|
403
|
+
const space = spaceDecls(DEFAULT_SPACE_VALUES);
|
|
404
|
+
const canonical = [
|
|
366
405
|
decl("radius-card", `${RADIUS.card}px`),
|
|
367
406
|
decl("radius-ctrl", `${RADIUS.ctrl}px`),
|
|
368
407
|
// The two offset tiers (SegmentedControl indicator/Kbd/Code, Progress/scale-sm) — added so a
|
|
@@ -387,21 +426,23 @@ function frameworkDerived(data, only) {
|
|
|
387
426
|
// hover along instead of leaving a stale pair. 88% of the fill over black lands ~0.128 luminance:
|
|
388
427
|
// a visible press-darkening that still clears AA for the white label (~5.9:1).
|
|
389
428
|
...Object.keys(data.FILL).map(
|
|
390
|
-
(name) => decl(`
|
|
429
|
+
(name) => decl(`fill-hover-${name}`, `color-mix(in srgb, var(--vx-fill-${name}) 88%, #000)`)
|
|
391
430
|
),
|
|
392
431
|
// The type scale, emitted from the SAME `TEXT` object `VX.text` reads — CSS modules and the
|
|
393
432
|
// Mantine theme consume these; inline styles / visx read the numbers. One ladder, two forms.
|
|
394
433
|
...Object.entries(TEXT).map(([step, px]) => decl(`text-${step}`, `${px}px`)),
|
|
395
434
|
decl("area-top", "22%"),
|
|
396
435
|
decl("area-bottom", "1%"),
|
|
397
|
-
decl("good", "color-mix(in srgb, var(--vx-
|
|
398
|
-
decl("
|
|
399
|
-
decl("bad", "color-mix(in srgb, var(--vx-
|
|
400
|
-
decl("warn", "color-mix(in srgb, var(--vx-
|
|
401
|
-
decl("
|
|
402
|
-
decl("
|
|
403
|
-
decl("
|
|
436
|
+
decl("good", "color-mix(in srgb, var(--vx-good-solid) 18%, transparent)"),
|
|
437
|
+
decl("good-soft", "color-mix(in srgb, var(--vx-good-solid) 8%, transparent)"),
|
|
438
|
+
decl("bad", "color-mix(in srgb, var(--vx-bad-solid) 18%, transparent)"),
|
|
439
|
+
decl("warn", "color-mix(in srgb, var(--vx-warn-solid) 8%, transparent)"),
|
|
440
|
+
decl("good-ref", "color-mix(in srgb, var(--vx-good-solid) 30%, transparent)"),
|
|
441
|
+
decl("bad-ref", "color-mix(in srgb, var(--vx-bad-solid) 30%, transparent)"),
|
|
442
|
+
decl("warn-ref", "color-mix(in srgb, var(--vx-warn-solid) 20%, transparent)")
|
|
404
443
|
].join("\n");
|
|
444
|
+
return legacyAliases ? `${canonical}
|
|
445
|
+
${frameworkDerivedAliases(data)}` : canonical;
|
|
405
446
|
}
|
|
406
447
|
function seriesTokens(map, prefix = "") {
|
|
407
448
|
const out = {};
|
|
@@ -418,13 +459,14 @@ const MANTINE_SCHEME_ATTRIBUTE = "data-mantine-color-scheme";
|
|
|
418
459
|
const indent = (block) => block.split("\n").map((line) => line === "" ? line : ` ${line}`).join("\n");
|
|
419
460
|
function buildPaletteCss(opts = {}, data = buildPaletteData()) {
|
|
420
461
|
const groups = opts.groups ?? {};
|
|
462
|
+
const legacyAliases = opts.legacyAliases ?? true;
|
|
421
463
|
const extraDerived = (opts.derived ?? []).map((d) => ` ${d}`).join("\n");
|
|
422
|
-
const derivedBlock = frameworkDerived(data, opts.only ?? "all");
|
|
464
|
+
const derivedBlock = frameworkDerived(data, opts.only ?? "all", legacyAliases);
|
|
423
465
|
const derived = extraDerived ? `${derivedBlock}
|
|
424
466
|
${extraDerived}` : derivedBlock;
|
|
425
467
|
const side = (s) => {
|
|
426
468
|
const extra = Object.entries(groups).map(([prefix, map]) => groupSide(prefix, map, s)).join("\n");
|
|
427
|
-
const framework = frameworkPrimitives(s, data);
|
|
469
|
+
const framework = frameworkPrimitives(s, data, legacyAliases);
|
|
428
470
|
return extra ? `${framework}
|
|
429
471
|
${extra}` : framework;
|
|
430
472
|
};
|
package/dist/tokens/palette.d.ts
CHANGED
|
@@ -84,6 +84,37 @@ export declare const SHADOW: {
|
|
|
84
84
|
readonly light: "0 1px 2px rgba(28,25,23,0.12)";
|
|
85
85
|
readonly dark: "0 1px 2px rgba(0,0,0,0.35)";
|
|
86
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* Interactive-control depth — the ONE value every raised Button/ActionIcon/Input variant shares
|
|
89
|
+
* (`docs/DESIGN-SPEC.md` §5's Button idiom). Exists rather than reusing `card` because `card`'s
|
|
90
|
+
* ring is OUTSET, and an outset ring paints in the color of whatever it is drawn over: fine
|
|
91
|
+
* between neutral panels, but on light scheme it resolves to `--vx-surface-hairline` and draws a
|
|
92
|
+
* pale grey outline around a saturated `filled` button, which reads as a rendering defect.
|
|
93
|
+
*
|
|
94
|
+
* THE TWO SCHEMES ARE SHAPED DIFFERENTLY, and the asymmetry is the whole design — do NOT "tidy"
|
|
95
|
+
* them into one shape. Both were arrived at by elimination, on screen:
|
|
96
|
+
*
|
|
97
|
+
* - DARK = drop + a full inset rim. Its edge is a LIGHTENING, so it cannot collide with the
|
|
98
|
+
* dark drop below the box; a uniform lightening on a dark surface reads as rim light wrapping
|
|
99
|
+
* a raised object, which is exactly right.
|
|
100
|
+
*
|
|
101
|
+
* - LIGHT = drop ONLY, no edge at all. A light-mode edge would have to be a DARKENING (there is
|
|
102
|
+
* nothing lighter than a near-white control to lighten with), and every position for one
|
|
103
|
+
* fails: a uniform dark ring does not read as depth, it reads as a BORDER — it made `default`
|
|
104
|
+
* and `light` look like outlined buttons and every form field look boxed. Moving it to the
|
|
105
|
+
* bottom edge alone then put a dark inner line directly above the dark drop, i.e. a visible
|
|
106
|
+
* DOUBLE BOTTOM BORDER. There is no third position, because a light-mode raised object's only
|
|
107
|
+
* honest cue is the shadow it casts. So light casts one and draws nothing.
|
|
108
|
+
*
|
|
109
|
+
* Consequence to know, on light only: a `default` control nested in a Card shares
|
|
110
|
+
* `--vx-surface-panel` with it and has no boundary but the drop. That is accepted — a wrong-
|
|
111
|
+
* looking border on every control in the app is worse than a soft edge in one nesting case. If it
|
|
112
|
+
* ever needs more, raise the DROP. Do not reintroduce an edge; both shapes have been tried.
|
|
113
|
+
*/
|
|
114
|
+
readonly raised: {
|
|
115
|
+
readonly light: "0 1px 2px rgba(28,25,23,0.10)";
|
|
116
|
+
readonly dark: "0 1px 2px rgba(0,0,0,0.35), inset 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent)";
|
|
117
|
+
};
|
|
87
118
|
readonly overlay: {
|
|
88
119
|
readonly light: "0 8px 24px rgba(28,25,23,0.10)";
|
|
89
120
|
readonly dark: "0 8px 24px rgba(0,0,0,0.5)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/tokens/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;CAgCL,CAAA;AAEV;;;;GAIG;AACH,eAAO,MAAM,CAAC,GAAI,KAAK,SAAS,MAAM,EAAE,EAAE,cAAS,EAAE,aAAQ,KAAG,SAG9D,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/tokens/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;CAgCL,CAAA;AAEV;;;;GAIG;AACH,eAAO,MAAM,CAAC,GAAI,KAAK,SAAS,MAAM,EAAE,EAAE,cAAS,EAAE,aAAQ,KAAG,SAG9D,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM;;;;;;;;;IASjB;;;;;;;;;;;;;;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AM,MAAM;;;;;;CAA6B,CAAA;AAEhD;+BAC+B;AAC/B,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAA2B,CAAA;AAE5C;+CAC+C;AAC/C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;CAA8B,CAAA"}
|
package/dist/tokens/palette.js
CHANGED
|
@@ -44,6 +44,37 @@ const SHADOW = {
|
|
|
44
44
|
light: "0 1px 2px rgba(28,25,23,0.12)",
|
|
45
45
|
dark: "0 1px 2px rgba(0,0,0,0.35)"
|
|
46
46
|
},
|
|
47
|
+
/**
|
|
48
|
+
* Interactive-control depth — the ONE value every raised Button/ActionIcon/Input variant shares
|
|
49
|
+
* (`docs/DESIGN-SPEC.md` §5's Button idiom). Exists rather than reusing `card` because `card`'s
|
|
50
|
+
* ring is OUTSET, and an outset ring paints in the color of whatever it is drawn over: fine
|
|
51
|
+
* between neutral panels, but on light scheme it resolves to `--vx-surface-hairline` and draws a
|
|
52
|
+
* pale grey outline around a saturated `filled` button, which reads as a rendering defect.
|
|
53
|
+
*
|
|
54
|
+
* THE TWO SCHEMES ARE SHAPED DIFFERENTLY, and the asymmetry is the whole design — do NOT "tidy"
|
|
55
|
+
* them into one shape. Both were arrived at by elimination, on screen:
|
|
56
|
+
*
|
|
57
|
+
* - DARK = drop + a full inset rim. Its edge is a LIGHTENING, so it cannot collide with the
|
|
58
|
+
* dark drop below the box; a uniform lightening on a dark surface reads as rim light wrapping
|
|
59
|
+
* a raised object, which is exactly right.
|
|
60
|
+
*
|
|
61
|
+
* - LIGHT = drop ONLY, no edge at all. A light-mode edge would have to be a DARKENING (there is
|
|
62
|
+
* nothing lighter than a near-white control to lighten with), and every position for one
|
|
63
|
+
* fails: a uniform dark ring does not read as depth, it reads as a BORDER — it made `default`
|
|
64
|
+
* and `light` look like outlined buttons and every form field look boxed. Moving it to the
|
|
65
|
+
* bottom edge alone then put a dark inner line directly above the dark drop, i.e. a visible
|
|
66
|
+
* DOUBLE BOTTOM BORDER. There is no third position, because a light-mode raised object's only
|
|
67
|
+
* honest cue is the shadow it casts. So light casts one and draws nothing.
|
|
68
|
+
*
|
|
69
|
+
* Consequence to know, on light only: a `default` control nested in a Card shares
|
|
70
|
+
* `--vx-surface-panel` with it and has no boundary but the drop. That is accepted — a wrong-
|
|
71
|
+
* looking border on every control in the app is worse than a soft edge in one nesting case. If it
|
|
72
|
+
* ever needs more, raise the DROP. Do not reintroduce an edge; both shapes have been tried.
|
|
73
|
+
*/
|
|
74
|
+
raised: {
|
|
75
|
+
light: "0 1px 2px rgba(28,25,23,0.10)",
|
|
76
|
+
dark: "0 1px 2px rgba(0,0,0,0.35), inset 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent)"
|
|
77
|
+
},
|
|
47
78
|
// Floating-layer elevation (menus, popovers, tooltips, modals, drawers) — a REAL drop shadow, a
|
|
48
79
|
// step above `card`, so detached surfaces read as lifted off the page (`docs/DESIGN-SPEC.md` §5).
|
|
49
80
|
// Unlike `card`, no embedded ring: floating surfaces carry a real 1px `--vx-surface-border` so
|
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-
|
|
126
|
-
--vx-
|
|
127
|
-
--vx-
|
|
128
|
-
--vx-
|
|
129
|
-
--vx-
|
|
130
|
-
--vx-
|
|
131
|
-
--vx-
|
|
132
|
-
--vx-
|
|
133
|
-
--vx-
|
|
134
|
-
--vx-
|
|
135
|
-
--vx-
|
|
136
|
-
--vx-
|
|
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-
|
|
149
|
-
--vx-
|
|
150
|
-
--vx-bad: color-mix(in srgb, var(--vx-
|
|
151
|
-
--vx-warn: color-mix(in srgb, var(--vx-
|
|
152
|
-
--vx-
|
|
153
|
-
--vx-
|
|
154
|
-
--vx-
|
|
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,63 @@ 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-
|
|
164
|
-
--vx-
|
|
165
|
-
--vx-
|
|
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-
|
|
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-
|
|
174
|
-
--vx-
|
|
175
|
-
--vx-
|
|
176
|
-
--vx-
|
|
177
|
-
--vx-
|
|
178
|
-
--vx-
|
|
179
|
-
--vx-
|
|
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-
|
|
186
|
-
--vx-
|
|
187
|
-
--vx-
|
|
188
|
-
--vx-
|
|
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);
|
|
209
|
+
--vx-shadow-raised: 0 1px 2px rgba(0,0,0,0.35), inset 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent);
|
|
192
210
|
--vx-shadow-overlay: 0 8px 24px rgba(0,0,0,0.5);
|
|
193
211
|
--vx-surface-bg: #27272a;
|
|
194
212
|
--vx-surface-panel: #2b2b2e;
|
|
195
|
-
--vx-surface-
|
|
213
|
+
--vx-surface-panel-hover: #38383b;
|
|
196
214
|
--vx-surface-elevated: #38383b;
|
|
197
215
|
--vx-surface-subtle: #323235;
|
|
198
216
|
--vx-surface-overlay: color-mix(in srgb, #3f3f46 50%, #27272a);
|
|
199
217
|
--vx-surface-field: #27272a;
|
|
200
218
|
--vx-surface-border: #444447;
|
|
201
219
|
--vx-surface-hairline: #4e4e51;
|
|
220
|
+
/* Deprecated camelCase aliases — removed in a future minor; migrate to the kebab names above. */
|
|
221
|
+
--vx-goodSolid: var(--vx-good-solid);
|
|
222
|
+
--vx-badSolid: var(--vx-bad-solid);
|
|
223
|
+
--vx-warnSolid: var(--vx-warn-solid);
|
|
224
|
+
--vx-axisStroke: var(--vx-axis-stroke);
|
|
225
|
+
--vx-dotStroke: var(--vx-dot-stroke);
|
|
226
|
+
--vx-tooltipBg: var(--vx-tooltip-bg);
|
|
227
|
+
--vx-tooltipText: var(--vx-tooltip-text);
|
|
228
|
+
--vx-tooltipMuted: var(--vx-tooltip-muted);
|
|
229
|
+
--vx-tooltipBorder: var(--vx-tooltip-border);
|
|
230
|
+
--vx-tooltipShadow: var(--vx-tooltip-shadow);
|
|
231
|
+
--vx-legendText: var(--vx-legend-text);
|
|
232
|
+
--vx-accentHover: var(--vx-accent-hover);
|
|
233
|
+
--vx-accentFill: var(--vx-accent-fill);
|
|
234
|
+
--vx-accentFillHover: var(--vx-accent-fill-hover);
|
|
235
|
+
--vx-onAccent: var(--vx-on-accent);
|
|
236
|
+
--vx-surface-panelHover: var(--vx-surface-panel-hover);
|
|
202
237
|
}
|
|
203
238
|
html[data-mantine-color-scheme='light'] {
|
|
204
239
|
--vx-status-excellent: #29a634;
|
|
@@ -206,43 +241,61 @@ html[data-mantine-color-scheme='light'] {
|
|
|
206
241
|
--vx-status-warn: #b07808;
|
|
207
242
|
--vx-status-bad: #b5403d;
|
|
208
243
|
--vx-status-neutral: #71717a;
|
|
209
|
-
--vx-
|
|
210
|
-
--vx-
|
|
211
|
-
--vx-
|
|
244
|
+
--vx-good-solid: #327a4d;
|
|
245
|
+
--vx-bad-solid: #b5403d;
|
|
246
|
+
--vx-warn-solid: #b07808;
|
|
212
247
|
--vx-neutral: #525255;
|
|
213
248
|
--vx-line: #52525c;
|
|
214
249
|
--vx-line2: #71717a;
|
|
215
250
|
--vx-axis: rgba(38, 38, 41, 0.6);
|
|
216
|
-
--vx-
|
|
251
|
+
--vx-axis-stroke: rgba(38, 38, 41, 0.12);
|
|
217
252
|
--vx-grid: rgba(38, 38, 41, 0.07);
|
|
218
253
|
--vx-crosshair: rgba(38, 38, 41, 0.32);
|
|
219
|
-
--vx-
|
|
220
|
-
--vx-
|
|
221
|
-
--vx-
|
|
222
|
-
--vx-
|
|
223
|
-
--vx-
|
|
224
|
-
--vx-
|
|
225
|
-
--vx-
|
|
254
|
+
--vx-dot-stroke: #ffffff;
|
|
255
|
+
--vx-tooltip-bg: #ffffff;
|
|
256
|
+
--vx-tooltip-text: rgba(38, 38, 41, 0.88);
|
|
257
|
+
--vx-tooltip-muted: rgba(38, 38, 41, 0.5);
|
|
258
|
+
--vx-tooltip-border: 1px solid #e4e4e7;
|
|
259
|
+
--vx-tooltip-shadow: 0 2px 8px rgba(38, 38, 41, 0.1);
|
|
260
|
+
--vx-legend-text: rgba(38, 38, 41, 0.82);
|
|
226
261
|
--vx-ink: #262629;
|
|
227
262
|
--vx-ink2: #404043;
|
|
228
263
|
--vx-muted: #525255;
|
|
229
264
|
--vx-faint: #737376;
|
|
230
265
|
--vx-accent: #4374a6;
|
|
231
|
-
--vx-
|
|
232
|
-
--vx-
|
|
233
|
-
--vx-
|
|
234
|
-
--vx-
|
|
266
|
+
--vx-accent-hover: #3c6895;
|
|
267
|
+
--vx-accent-fill: #4374a6;
|
|
268
|
+
--vx-accent-fill-hover: #3c6895;
|
|
269
|
+
--vx-on-accent: #ffffff;
|
|
235
270
|
--vx-divider: color-mix(in srgb, #e5e5e5 65%, transparent);
|
|
236
271
|
--vx-shadow-card: 0 1px 2px rgba(28,25,23,0.05), 0 0 0 1px var(--vx-surface-hairline);
|
|
237
272
|
--vx-shadow-ctrl: 0 1px 2px rgba(28,25,23,0.12);
|
|
273
|
+
--vx-shadow-raised: 0 1px 2px rgba(28,25,23,0.10);
|
|
238
274
|
--vx-shadow-overlay: 0 8px 24px rgba(28,25,23,0.10);
|
|
239
275
|
--vx-surface-bg: #f2f2f5;
|
|
240
276
|
--vx-surface-panel: #fafafd;
|
|
241
|
-
--vx-surface-
|
|
277
|
+
--vx-surface-panel-hover: #ffffff;
|
|
242
278
|
--vx-surface-elevated: #ffffff;
|
|
243
279
|
--vx-surface-subtle: #f4f4f8;
|
|
244
280
|
--vx-surface-overlay: #ffffff;
|
|
245
281
|
--vx-surface-field: #ffffff;
|
|
246
282
|
--vx-surface-border: #e2e2e5;
|
|
247
283
|
--vx-surface-hairline: #eaeaee;
|
|
284
|
+
/* Deprecated camelCase aliases — removed in a future minor; migrate to the kebab names above. */
|
|
285
|
+
--vx-goodSolid: var(--vx-good-solid);
|
|
286
|
+
--vx-badSolid: var(--vx-bad-solid);
|
|
287
|
+
--vx-warnSolid: var(--vx-warn-solid);
|
|
288
|
+
--vx-axisStroke: var(--vx-axis-stroke);
|
|
289
|
+
--vx-dotStroke: var(--vx-dot-stroke);
|
|
290
|
+
--vx-tooltipBg: var(--vx-tooltip-bg);
|
|
291
|
+
--vx-tooltipText: var(--vx-tooltip-text);
|
|
292
|
+
--vx-tooltipMuted: var(--vx-tooltip-muted);
|
|
293
|
+
--vx-tooltipBorder: var(--vx-tooltip-border);
|
|
294
|
+
--vx-tooltipShadow: var(--vx-tooltip-shadow);
|
|
295
|
+
--vx-legendText: var(--vx-legend-text);
|
|
296
|
+
--vx-accentHover: var(--vx-accent-hover);
|
|
297
|
+
--vx-accentFill: var(--vx-accent-fill);
|
|
298
|
+
--vx-accentFillHover: var(--vx-accent-fill-hover);
|
|
299
|
+
--vx-onAccent: var(--vx-on-accent);
|
|
300
|
+
--vx-surface-panelHover: var(--vx-surface-panel-hover);
|
|
248
301
|
}
|
package/llms.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# basalt-ui v1.
|
|
1
|
+
# basalt-ui v1.6.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.
|
|
22
|
+
Version: 1.6.0
|
|
23
23
|
|
|
24
24
|
## basalt-ui
|
|
25
25
|
Import: import { ... } from 'basalt-ui'
|