basalt-ui 2.20.0 → 2.22.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 +72 -0
- package/MIGRATING.md +394 -12
- package/agent/agents/basalt-design-reviewer.md +22 -5
- package/agent/rules/basalt-tokens.md +3 -3
- package/agent/skills/basalt-design/SKILL.md +10 -23
- package/agent/skills/basalt-design/references/anti-defaults.md +24 -0
- package/agent/skills/basalt-design/references/catalogue.md +49 -0
- package/agent/skills/basalt-design/references/concept.md +36 -0
- package/agent/skills/basalt-design/references/encoding-rules.md +45 -0
- package/agent/skills/basalt-design/references/stat-tile.md +24 -0
- package/agent/templates/AGENTS-block.md.tpl +3 -3
- package/configs/oxlint-plugin.js +1 -0
- package/dist/charts/BandStrip.d.ts.map +1 -1
- package/dist/charts/BandStrip.js +27 -3
- package/dist/charts/Bars.d.ts.map +1 -1
- package/dist/charts/Bars.js +5 -0
- package/dist/charts/CartesianChart.d.ts +8 -0
- package/dist/charts/CartesianChart.d.ts.map +1 -1
- package/dist/charts/CartesianChart.js +8 -5
- package/dist/charts/ChartCard.d.ts +17 -4
- package/dist/charts/ChartCard.d.ts.map +1 -1
- package/dist/charts/ChartCard.js +33 -8
- package/dist/charts/DualPanel.d.ts.map +1 -1
- package/dist/charts/DualPanel.js +5 -8
- package/dist/charts/Heatmap.d.ts +12 -1
- package/dist/charts/Heatmap.d.ts.map +1 -1
- package/dist/charts/Heatmap.js +34 -5
- package/dist/charts/Lines.d.ts +3 -0
- package/dist/charts/Lines.d.ts.map +1 -1
- package/dist/charts/Lines.js +29 -6
- package/dist/charts/MirroredBars.d.ts.map +1 -1
- package/dist/charts/MirroredBars.js +4 -6
- package/dist/charts/Sparkline.d.ts +7 -1
- package/dist/charts/Sparkline.d.ts.map +1 -1
- package/dist/charts/Sparkline.js +39 -14
- package/dist/charts/StackedArea.d.ts +4 -1
- package/dist/charts/StackedArea.d.ts.map +1 -1
- package/dist/charts/StackedArea.js +9 -3
- package/dist/charts/band-fold.d.ts +20 -1
- package/dist/charts/band-fold.d.ts.map +1 -1
- package/dist/charts/band-fold.js +9 -0
- package/dist/charts/chart-box.module.css +19 -0
- package/dist/charts/chart-card.module.css +25 -0
- package/dist/charts/chart-legend.module.css +7 -0
- package/dist/charts/compile.d.ts +17 -6
- package/dist/charts/compile.d.ts.map +1 -1
- package/dist/charts/compile.js +145 -74
- package/dist/charts/labels.d.ts +15 -4
- package/dist/charts/labels.d.ts.map +1 -1
- package/dist/charts/labels.js +34 -10
- package/dist/charts/legend.d.ts +2 -0
- package/dist/charts/legend.d.ts.map +1 -1
- package/dist/charts/legend.js +7 -21
- package/dist/charts/marks.js +1 -1
- package/dist/charts/panel.d.ts +0 -6
- package/dist/charts/panel.d.ts.map +1 -1
- package/dist/charts/panel.js +1 -10
- package/dist/charts/ref-label.d.ts +26 -0
- package/dist/charts/ref-label.d.ts.map +1 -0
- package/dist/charts/ref-label.js +63 -0
- package/dist/charts/scales.d.ts +4 -1
- package/dist/charts/scales.d.ts.map +1 -1
- package/dist/charts/scales.js +14 -3
- package/dist/charts/sparkline.module.css +10 -11
- package/dist/charts/sparkline.module.css.d.ts +1 -2
- package/dist/charts/state.d.ts +7 -0
- package/dist/charts/state.d.ts.map +1 -1
- package/dist/charts/state.js +4 -1
- package/dist/charts/types.d.ts +14 -5
- package/dist/charts/types.d.ts.map +1 -1
- package/dist/cli/check-theme.d.ts.map +1 -1
- package/dist/cli/check-theme.js +3 -0
- package/dist/cli/doctor-upgrade.d.ts +1 -0
- package/dist/cli/doctor-upgrade.d.ts.map +1 -1
- package/dist/cli/doctor-upgrade.js +1 -0
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +3 -2
- package/dist/cli/index.d.ts +4 -2
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +27 -15
- package/dist/cli/init.d.ts +2 -0
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +71 -6
- package/dist/cli/shot/capture.d.ts +21 -2
- package/dist/cli/shot/capture.d.ts.map +1 -1
- package/dist/cli/shot/capture.js +200 -33
- package/dist/cli/shot/detect.d.ts +51 -0
- package/dist/cli/shot/detect.d.ts.map +1 -0
- package/dist/cli/shot/detect.js +409 -0
- package/dist/cli/shot/index.d.ts.map +1 -1
- package/dist/cli/shot/index.js +7 -4
- package/dist/cli/shot/measure.d.ts +2 -0
- package/dist/cli/shot/measure.d.ts.map +1 -1
- package/dist/cli/shot/measure.js +2 -0
- package/dist/cli/shot/playwright.d.ts +5 -2
- package/dist/cli/shot/playwright.d.ts.map +1 -1
- package/dist/cli/shot/types.d.ts +6 -1
- package/dist/cli/shot/types.d.ts.map +1 -1
- package/dist/cli/shot/types.js +4 -0
- package/dist/cli/sync.d.ts +2 -0
- package/dist/cli/sync.d.ts.map +1 -1
- package/dist/cli/sync.js +2 -2
- package/dist/common/retry-button.d.ts +12 -0
- package/dist/common/retry-button.d.ts.map +1 -0
- package/dist/common/retry-button.js +22 -0
- package/dist/common/retry-button.module.css +58 -0
- package/dist/common/retry-button.module.css.d.ts +8 -0
- package/dist/controls/controls.module.css +11 -1
- package/dist/controls/filter-pill.d.ts.map +1 -1
- package/dist/controls/filter-pill.js +1 -0
- package/dist/controls/sync-button.d.ts.map +1 -1
- package/dist/controls/sync-button.js +22 -3
- package/dist/controls/sync-button.module.css +34 -2
- package/dist/controls/sync-button.module.css.d.ts +1 -0
- package/dist/dashboard/bar-list.d.ts +5 -2
- package/dist/dashboard/bar-list.d.ts.map +1 -1
- package/dist/dashboard/bar-list.js +9 -10
- package/dist/dashboard/bar-list.module.css +53 -0
- package/dist/dashboard/bar-list.module.css.d.ts +1 -0
- package/dist/dashboard/index.d.ts +1 -0
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +2 -0
- package/dist/dashboard/meter-model.d.ts +108 -6
- package/dist/dashboard/meter-model.d.ts.map +1 -1
- package/dist/dashboard/meter-model.js +123 -19
- package/dist/dashboard/meter-parts.d.ts +8 -0
- package/dist/dashboard/meter-parts.d.ts.map +1 -1
- package/dist/dashboard/meter-parts.js +345 -146
- package/dist/dashboard/meter.d.ts +50 -63
- package/dist/dashboard/meter.d.ts.map +1 -1
- package/dist/dashboard/meter.js +24 -3
- package/dist/dashboard/meter.module.css +79 -65
- package/dist/dashboard/meter.module.css.d.ts +7 -7
- package/dist/dashboard/page-summary.d.ts +20 -0
- package/dist/dashboard/page-summary.d.ts.map +1 -0
- package/dist/dashboard/page-summary.js +28 -0
- package/dist/dashboard/page-summary.module.css +89 -0
- package/dist/dashboard/page-summary.module.css.d.ts +15 -0
- package/dist/dashboard/query-state.d.ts +1 -1
- package/dist/dashboard/query-state.d.ts.map +1 -1
- package/dist/dashboard/query-state.js +3 -2
- package/dist/dashboard/section.d.ts +25 -2
- package/dist/dashboard/section.d.ts.map +1 -1
- package/dist/dashboard/section.js +10 -5
- package/dist/dashboard/section.module.css +23 -0
- package/dist/dashboard/section.module.css.d.ts +1 -0
- package/dist/dashboard/stat-card-parts.d.ts.map +1 -1
- package/dist/dashboard/stat-card-parts.js +1 -1
- package/dist/dashboard/stat-card.d.ts +4 -2
- package/dist/dashboard/stat-card.d.ts.map +1 -1
- package/dist/dashboard/stat-card.js +7 -4
- package/dist/dashboard/stat-card.module.css +17 -0
- package/dist/dashboard/stat-strip.d.ts +24 -1
- package/dist/dashboard/stat-strip.d.ts.map +1 -1
- package/dist/dashboard/stat-strip.js +97 -39
- package/dist/dashboard/stat-strip.module.css +147 -17
- package/dist/dashboard/stat-strip.module.css.d.ts +8 -0
- package/dist/dashboard/visual-slot.d.ts +8 -0
- package/dist/dashboard/visual-slot.d.ts.map +1 -0
- package/dist/dashboard/visual-slot.js +7 -0
- package/dist/guard/index.d.ts +15 -2
- package/dist/guard/index.d.ts.map +1 -1
- package/dist/guard/index.js +14 -0
- package/dist/guard/palette.d.ts +51 -0
- package/dist/guard/palette.d.ts.map +1 -0
- package/dist/guard/palette.js +190 -0
- package/dist/guard/series-file.d.ts +15 -0
- package/dist/guard/series-file.d.ts.map +1 -0
- package/dist/guard/series-file.js +29 -0
- package/dist/guard/types.d.ts +3 -3
- package/dist/guard/types.d.ts.map +1 -1
- package/dist/guard/vx-names.d.ts.map +1 -1
- package/dist/guard/vx-names.js +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/styles.css +34 -2
- package/dist/surfaces.d.ts +1 -1
- package/dist/surfaces.d.ts.map +1 -1
- package/dist/surfaces.js +2 -0
- package/dist/theme/chrome-vars.d.ts +20 -5
- package/dist/theme/chrome-vars.d.ts.map +1 -1
- package/dist/theme/chrome-vars.js +46 -3
- package/dist/theme/controls.module.css +33 -0
- package/dist/theme/controls.module.css.d.ts +1 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +11 -5
- package/dist/tokens/core.d.ts +2 -1
- package/dist/tokens/core.d.ts.map +1 -1
- package/dist/tokens/core.js +6 -1
- package/dist/tokens/derive.d.ts +3 -1
- package/dist/tokens/derive.d.ts.map +1 -1
- package/dist/tokens/derive.js +16 -1
- package/dist/tokens/oklab.d.ts +28 -0
- package/dist/tokens/oklab.d.ts.map +1 -0
- package/dist/tokens/oklab.js +73 -0
- package/dist/tokens/palette.d.ts +4 -0
- package/dist/tokens/palette.d.ts.map +1 -1
- package/dist/tokens/palette.js +4 -0
- package/dist/tokens/status-text.d.ts.map +1 -1
- package/dist/tokens/status-text.js +3 -1
- package/llms.txt +43 -23
- package/package.json +1 -1
- package/src/charts/BandStrip.tsx +33 -3
- package/src/charts/Bars.tsx +6 -0
- package/src/charts/CartesianChart.tsx +16 -3
- package/src/charts/ChartCard.tsx +43 -7
- package/src/charts/DualPanel.tsx +3 -6
- package/src/charts/Heatmap.tsx +54 -5
- package/src/charts/Lines.tsx +56 -10
- package/src/charts/MirroredBars.tsx +3 -5
- package/src/charts/Sparkline.tsx +50 -13
- package/src/charts/StackedArea.tsx +14 -4
- package/src/charts/band-fold.ts +31 -1
- package/src/charts/chart-box.module.css +19 -0
- package/src/charts/chart-card.module.css +25 -0
- package/src/charts/chart-legend.module.css +7 -0
- package/src/charts/compile.ts +210 -85
- package/src/charts/labels.ts +48 -14
- package/src/charts/legend.tsx +10 -20
- package/src/charts/marks.ts +1 -1
- package/src/charts/panel.tsx +1 -16
- package/src/charts/ref-label.ts +104 -0
- package/src/charts/scales.ts +22 -2
- package/src/charts/sparkline.module.css +10 -11
- package/src/charts/sparkline.module.css.d.ts +1 -2
- package/src/charts/state.tsx +12 -1
- package/src/charts/types.ts +14 -5
- package/src/cli/check-theme.ts +3 -0
- package/src/cli/doctor-upgrade.ts +1 -1
- package/src/cli/help.ts +18 -1
- package/src/cli/index.ts +48 -17
- package/src/cli/init.ts +102 -4
- package/src/cli/shot/capture.ts +266 -34
- package/src/cli/shot/detect.ts +550 -0
- package/src/cli/shot/index.ts +8 -4
- package/src/cli/shot/measure.ts +4 -0
- package/src/cli/shot/playwright.ts +2 -2
- package/src/cli/shot/types.ts +8 -1
- package/src/cli/sync.ts +4 -2
- package/src/common/retry-button.module.css +58 -0
- package/src/common/retry-button.module.css.d.ts +8 -0
- package/src/common/retry-button.tsx +29 -0
- package/src/controls/controls.module.css +11 -1
- package/src/controls/filter-pill.tsx +2 -0
- package/src/controls/sync-button.module.css +34 -2
- package/src/controls/sync-button.module.css.d.ts +1 -0
- package/src/controls/sync-button.tsx +40 -4
- package/src/dashboard/bar-list.module.css +53 -0
- package/src/dashboard/bar-list.module.css.d.ts +1 -0
- package/src/dashboard/bar-list.tsx +88 -76
- package/src/dashboard/index.ts +1 -0
- package/src/dashboard/meter-model.ts +265 -28
- package/src/dashboard/meter-parts.tsx +424 -163
- package/src/dashboard/meter.module.css +79 -65
- package/src/dashboard/meter.module.css.d.ts +7 -7
- package/src/dashboard/meter.tsx +77 -17
- package/src/dashboard/page-summary.module.css +89 -0
- package/src/dashboard/page-summary.module.css.d.ts +15 -0
- package/src/dashboard/page-summary.tsx +95 -0
- package/src/dashboard/query-state.tsx +4 -7
- package/src/dashboard/section.module.css +23 -0
- package/src/dashboard/section.module.css.d.ts +1 -0
- package/src/dashboard/section.tsx +59 -11
- package/src/dashboard/stat-card-parts.tsx +5 -1
- package/src/dashboard/stat-card.module.css +17 -0
- package/src/dashboard/stat-card.tsx +14 -5
- package/src/dashboard/stat-strip.module.css +147 -17
- package/src/dashboard/stat-strip.module.css.d.ts +8 -0
- package/src/dashboard/stat-strip.tsx +182 -56
- package/src/dashboard/visual-slot.ts +17 -0
- package/src/guard/index.ts +16 -4
- package/src/guard/palette.ts +261 -0
- package/src/guard/series-file.ts +51 -0
- package/src/guard/types.ts +3 -2
- package/src/guard/vx-names.ts +2 -0
- package/src/index.ts +2 -0
- package/src/styles.css +34 -2
- package/src/surfaces.ts +2 -0
- package/src/theme/__snapshots__/plain-theme.test.ts.snap +220 -60
- package/src/theme/chrome-vars.ts +77 -8
- package/src/theme/controls.module.css +33 -0
- package/src/theme/controls.module.css.d.ts +1 -0
- package/src/theme/index.ts +18 -5
- package/src/tokens/core.ts +4 -1
- package/src/tokens/derive.ts +32 -3
- package/src/tokens/oklab.ts +97 -0
- package/src/tokens/palette.ts +4 -0
- package/src/tokens/status-text.ts +2 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `series-palette`: the series module as a FILE. Judges each `defineSeries` group, wraps the issues
|
|
3
|
+
* as findings, and reads the file with the surfaces derived from the default theme. Kept out of
|
|
4
|
+
* `guard/index.ts`'s import graph on purpose — that graph is on the PreToolUse hook path and never
|
|
5
|
+
* loads colour math or the `derive` engine; this one does. `check-theme` is the only caller.
|
|
6
|
+
*/
|
|
7
|
+
import { existsSync, readFileSync } from 'node:fs'
|
|
8
|
+
import { resolve } from 'node:path'
|
|
9
|
+
|
|
10
|
+
import { DEFAULT_DERIVE_CONFIG, deriveTokens } from '../tokens/derive'
|
|
11
|
+
import { isRuleExempt, severityOf } from './index'
|
|
12
|
+
import { auditSeriesGroups, parseSeriesGroups } from './palette'
|
|
13
|
+
import type { SeriesSurfaces } from './palette'
|
|
14
|
+
import type { Finding, GuardConfig } from './types'
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Judge ONE series file's palette: one finding per failed check, naming the key(s), scheme,
|
|
18
|
+
* measured number and threshold. The series module is exempt from every line-scan kind, so it is
|
|
19
|
+
* judged here instead. Honors `severity` and `exemptRules` like any other kind.
|
|
20
|
+
*/
|
|
21
|
+
export function checkSeriesPalette(
|
|
22
|
+
source: string,
|
|
23
|
+
relPath: string,
|
|
24
|
+
cfg: GuardConfig,
|
|
25
|
+
surfaces: SeriesSurfaces,
|
|
26
|
+
): Finding[] {
|
|
27
|
+
if (isRuleExempt('series-palette', relPath, cfg.exemptRules)) return []
|
|
28
|
+
return auditSeriesGroups(parseSeriesGroups(source), surfaces).map((issue) => ({
|
|
29
|
+
relPath,
|
|
30
|
+
line: issue.line,
|
|
31
|
+
token: issue.keys.join(', '),
|
|
32
|
+
text: issue.message,
|
|
33
|
+
kind: 'series-palette' as const,
|
|
34
|
+
severity: severityOf('series-palette', cfg),
|
|
35
|
+
}))
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Findings for the series module at `<cwd>/<rel>`; none if it does not exist. Surfaces are the
|
|
40
|
+
* derive engine's default `surface.panel` (a chart sits on a panel) — a consumer's `derive`
|
|
41
|
+
* overrides are not read.
|
|
42
|
+
*/
|
|
43
|
+
export function checkSeriesModule(cwd: string, rel: string, cfg: GuardConfig): Finding[] {
|
|
44
|
+
const file = resolve(cwd, rel)
|
|
45
|
+
if (!existsSync(file)) return []
|
|
46
|
+
const { panel } = deriveTokens(DEFAULT_DERIVE_CONFIG).surface
|
|
47
|
+
return checkSeriesPalette(readFileSync(file, 'utf8'), rel, cfg, {
|
|
48
|
+
light: panel.light,
|
|
49
|
+
dark: panel.dark,
|
|
50
|
+
})
|
|
51
|
+
}
|
package/src/guard/types.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Guard types — Mantine-free, dependency-free (zero imports beyond TS types).
|
|
3
3
|
*
|
|
4
|
-
* GuardKind is the closed set of
|
|
4
|
+
* GuardKind is the closed set of 27 violation kinds the theme guard can emit. Retired kinds
|
|
5
5
|
* (`unframed-chart`, `raw-visx-axis`, `chart-missing-aria-label`) stay recognized ids in
|
|
6
6
|
* `PLUGIN_RULE_IDS`/`KNOWN_RULE_IDS` so an existing `theme-allow <id>` reads as a dead waiver, not
|
|
7
7
|
* a typo.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* GuardConfig is the per-run configuration that drives checkSource.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
/** The
|
|
12
|
+
/** The 27 theme-guard violation kinds. */
|
|
13
13
|
export type GuardKind =
|
|
14
14
|
| 'raw-hex'
|
|
15
15
|
| 'raw-color-fn'
|
|
@@ -37,6 +37,7 @@ export type GuardKind =
|
|
|
37
37
|
| 'raw-selection-control'
|
|
38
38
|
| 'raw-media-query'
|
|
39
39
|
| 'unknown-vx-token'
|
|
40
|
+
| 'series-palette'
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
43
|
* How hard a finding lands. `error` fails the build; `warn` reports and passes.
|
package/src/guard/vx-names.ts
CHANGED
|
@@ -203,6 +203,8 @@ export const BASALT_VX_NAMES: readonly string[] = [
|
|
|
203
203
|
'--vx-surface-overlay',
|
|
204
204
|
'--vx-surface-panel',
|
|
205
205
|
'--vx-surface-panel-hover',
|
|
206
|
+
'--vx-surface-row-hover',
|
|
207
|
+
'--vx-surface-row-selected',
|
|
206
208
|
'--vx-surface-subtle',
|
|
207
209
|
'--vx-text-display',
|
|
208
210
|
'--vx-text-h1',
|
package/src/index.ts
CHANGED
package/src/styles.css
CHANGED
|
@@ -67,6 +67,32 @@
|
|
|
67
67
|
text-size-adjust: 100%;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
/* A slashed zero belongs to data text only. Hubot Sans (the heading face) draws one, and it leaked
|
|
71
|
+
into every title that borrows the face (`2026`, `90 days`). `zero` is OFF by default and nothing
|
|
72
|
+
in the package turns it on, so this is the off state at the root: it inherits into every head-face
|
|
73
|
+
surface whether a heading element, a Mantine title or a CSS-module class that only sets the
|
|
74
|
+
family, and is a no-op on the mono stack. */
|
|
75
|
+
:root {
|
|
76
|
+
font-feature-settings: 'zero' 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Mono data text drops its ligatures: `<>` in a facts line is two characters, not a diamond. Reaches
|
|
80
|
+
the mono stack by element (code, kbd, samp, pre), by contract (`data-numeric`, `data-monospace`),
|
|
81
|
+
by Mantine's `ff="monospace"` inline style, and by the stack's own var in an inline style. Body
|
|
82
|
+
sans keeps its ligatures. A CSS-module class that only sets the mono family is out of reach. */
|
|
83
|
+
code,
|
|
84
|
+
kbd,
|
|
85
|
+
samp,
|
|
86
|
+
pre,
|
|
87
|
+
[data-numeric],
|
|
88
|
+
[data-monospace],
|
|
89
|
+
[style*='font-family-monospace'],
|
|
90
|
+
[style*='basalt-font-mono'],
|
|
91
|
+
.mantine-Code-root,
|
|
92
|
+
.mantine-Kbd-root {
|
|
93
|
+
font-variant-ligatures: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
70
96
|
/* Removes the grey tap-highlight flash on iOS/Android for anything actually tappable. Scoped to
|
|
71
97
|
the interactive roles/tags rather than `*` (argo's own rule): a highlight on non-interactive
|
|
72
98
|
content is not the flash this exists to remove, and `*` would also numb a consumer's own
|
|
@@ -144,6 +170,14 @@
|
|
|
144
170
|
outline-color: var(--vx-accent);
|
|
145
171
|
}
|
|
146
172
|
|
|
173
|
+
/* The chart host is a focusable element Mantine does not own, so no `mantine-focus-*` class reaches
|
|
174
|
+
it and the UA ring paints instead: a white double ring in dark (argo strength strip and
|
|
175
|
+
diagnostics at dark 390). There is no media or pointer branch behind it. */
|
|
176
|
+
.basalt-chart:focus-visible {
|
|
177
|
+
outline: 2px solid var(--vx-accent);
|
|
178
|
+
outline-offset: calc(0.125rem * var(--mantine-scale));
|
|
179
|
+
}
|
|
180
|
+
|
|
147
181
|
/* Hubot Sans is a condensed display face — the spec pins it at 88% font-stretch everywhere it
|
|
148
182
|
lands (headings + the Mantine Title component). Read from the knob declared above rather than
|
|
149
183
|
hardcoded here, so a consumer retunes it in one declaration instead of fighting these bare
|
|
@@ -156,8 +190,6 @@
|
|
|
156
190
|
h6,
|
|
157
191
|
.mantine-Title-root {
|
|
158
192
|
font-stretch: var(--basalt-font-head-stretch, 88%);
|
|
159
|
-
/* Hubot Sans draws a slashed zero by default; a heading numeral is a figure, not code. */
|
|
160
|
-
font-feature-settings: 'zero' 0;
|
|
161
193
|
font-variant-numeric: lining-nums;
|
|
162
194
|
}
|
|
163
195
|
|
package/src/surfaces.ts
CHANGED
|
@@ -347,6 +347,8 @@ export const SURFACES = {
|
|
|
347
347
|
'surface-shadow-override',
|
|
348
348
|
// A `var(--vx-*)` naming a token basalt no longer (or never) emits.
|
|
349
349
|
'unknown-vx-token',
|
|
350
|
+
// The series file's computed palette checks (lightness, chroma, CVD separation, contrast).
|
|
351
|
+
'series-palette',
|
|
350
352
|
// Not a token kind — the kind that judges the ANNOTATION rather than the code. It lands here
|
|
351
353
|
// because `agent/rules/basalt-tokens.md` is where the `theme-allow` grammar is documented
|
|
352
354
|
// (said once, on purpose), so this is the header that must name its enforcement.
|