@voidable/theme 0.6.0 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidable/theme",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "exports": {
@@ -0,0 +1,68 @@
1
+ /* ============================================================
2
+ void-bar-chart — light DOM SVG, theme-driven
3
+ ============================================================ */
4
+
5
+ void-bar-chart {
6
+ display: block;
7
+ width: 100%;
8
+ font-family: var(--void-font-mono);
9
+ color: var(--void-color-text);
10
+ }
11
+
12
+ void-bar-chart svg {
13
+ display: block;
14
+ width: 100%;
15
+ height: 100%;
16
+ overflow: visible;
17
+ }
18
+
19
+ /* Gridlines */
20
+ void-bar-chart .void-bar-chart-grid line {
21
+ stroke: var(--void-chart-grid);
22
+ stroke-width: 1;
23
+ shape-rendering: crispEdges;
24
+ }
25
+
26
+ /* Axis tick labels */
27
+ void-bar-chart .void-bar-chart-y-axis text,
28
+ void-bar-chart .void-bar-chart-x-axis text {
29
+ font-family: var(--void-font-mono);
30
+ font-size: var(--void-text-2xs);
31
+ fill: var(--void-chart-tick-label);
32
+ letter-spacing: var(--void-tracking-wide);
33
+ }
34
+
35
+ /* Bars — default 'filled' variant.
36
+ rx/ry pick up --void-radius-sm so [data-shape="sharp"] on <html>
37
+ auto-squares the corners (token cascades to 0). */
38
+ void-bar-chart .void-bar-chart-bar {
39
+ fill: var(--series-color, var(--void-color-accent));
40
+ stroke: none;
41
+ rx: var(--void-radius-sm);
42
+ ry: var(--void-radius-sm);
43
+ transition: y var(--void-duration-fast) var(--void-ease-out),
44
+ height var(--void-duration-fast) var(--void-ease-out);
45
+ }
46
+
47
+ /* 'outline' variant — tinted fill + stroke */
48
+ void-bar-chart[variant="outline"] .void-bar-chart-bar {
49
+ fill: color-mix(in srgb, var(--series-color, var(--void-color-accent)) 18%, transparent);
50
+ stroke: var(--series-color, var(--void-color-accent));
51
+ stroke-width: 1.5;
52
+ }
53
+
54
+ /* 'wireframe' variant — stroke only, no fill */
55
+ void-bar-chart[variant="wireframe"] .void-bar-chart-bar {
56
+ fill: none;
57
+ stroke: var(--series-color, var(--void-color-accent));
58
+ stroke-width: 1.5;
59
+ }
60
+
61
+ /* Value labels above bars */
62
+ void-bar-chart .void-bar-chart-values text {
63
+ font-family: var(--void-font-mono);
64
+ font-size: var(--void-text-2xs);
65
+ font-weight: var(--void-weight-medium);
66
+ fill: var(--void-color-text);
67
+ letter-spacing: var(--void-tracking-wide);
68
+ }
@@ -0,0 +1,95 @@
1
+ /* ============================================================
2
+ void-donut-chart — light DOM SVG, theme-driven
3
+ ============================================================ */
4
+
5
+ void-donut-chart {
6
+ display: inline-block;
7
+ font-family: var(--void-font-mono);
8
+ color: var(--void-color-text);
9
+ }
10
+
11
+ void-donut-chart svg {
12
+ display: block;
13
+ width: 100%;
14
+ height: 100%;
15
+ overflow: visible;
16
+ }
17
+
18
+ /* Segment — default 'filled' variant.
19
+ Donut shape is inherently circular — sharp/curvy doesn't apply here.
20
+ Use the `gaps` prop on the component to control whitespace between
21
+ segments (boolean or %). */
22
+ void-donut-chart .void-donut-chart-segment {
23
+ fill: var(--segment-color, var(--void-color-accent));
24
+ stroke: var(--segment-color, var(--void-color-accent));
25
+ stroke-width: 0;
26
+ }
27
+
28
+ /* 'outline' variant — tinted fill + stroke */
29
+ void-donut-chart[variant="outline"] .void-donut-chart-segment {
30
+ fill: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 18%, transparent);
31
+ stroke-width: 1.5;
32
+ }
33
+
34
+ /* 'wireframe' variant — stroke only */
35
+ void-donut-chart[variant="wireframe"] .void-donut-chart-segment {
36
+ fill: none;
37
+ stroke-width: 1.5;
38
+ }
39
+
40
+ /* Center total (when show-total) */
41
+ void-donut-chart .void-donut-chart-total text {
42
+ font-family: var(--void-font-mono);
43
+ font-size: var(--void-text-xl);
44
+ font-weight: var(--void-weight-semibold);
45
+ fill: var(--void-color-text);
46
+ letter-spacing: var(--void-tracking-tight);
47
+ }
48
+
49
+ /* Per-segment labels (when show-values).
50
+ paint-order: stroke draws a bg-colored halo BEHIND the text, making it
51
+ legible against any segment color (white text on white segment would
52
+ otherwise vanish). The halo inverts with theme — black in dark mode,
53
+ white in light mode. */
54
+ void-donut-chart .void-donut-chart-labels text {
55
+ font-family: var(--void-font-mono);
56
+ font-size: var(--void-text-2xs);
57
+ font-weight: var(--void-weight-medium);
58
+ fill: var(--void-color-text);
59
+ letter-spacing: var(--void-tracking-wide);
60
+ paint-order: stroke;
61
+ stroke: var(--void-color-bg);
62
+ stroke-width: 3px;
63
+ stroke-linejoin: round;
64
+ stroke-linecap: round;
65
+ pointer-events: none;
66
+ }
67
+
68
+ /* ── Hover tooltip ───────────────────────────────────────────── */
69
+
70
+ void-donut-chart .void-donut-chart-tooltip-bg {
71
+ fill: var(--void-color-bg-elevated);
72
+ stroke: var(--void-color-border);
73
+ stroke-width: 1;
74
+ }
75
+
76
+ void-donut-chart .void-donut-chart-tooltip-name {
77
+ font-family: var(--void-font-mono);
78
+ font-size: var(--void-text-2xs);
79
+ font-weight: var(--void-weight-semibold);
80
+ fill: var(--void-color-text);
81
+ text-transform: uppercase;
82
+ letter-spacing: var(--void-tracking-widest);
83
+ }
84
+
85
+ void-donut-chart .void-donut-chart-tooltip-value {
86
+ font-family: var(--void-font-mono);
87
+ font-size: var(--void-text-xs);
88
+ font-weight: var(--void-weight-medium);
89
+ fill: var(--void-color-text);
90
+ }
91
+
92
+ void-donut-chart .void-donut-chart-tooltip-pct {
93
+ fill: var(--void-color-text-secondary);
94
+ font-weight: var(--void-weight-normal);
95
+ }
@@ -0,0 +1,182 @@
1
+ /* ============================================================
2
+ void-gauge — light DOM SVG, theme-driven
3
+ ============================================================ */
4
+
5
+ void-gauge {
6
+ display: inline-block;
7
+ font-family: var(--void-font-mono);
8
+ color: var(--void-color-text);
9
+ }
10
+
11
+ void-gauge svg {
12
+ display: block;
13
+ width: 100%;
14
+ height: 100%;
15
+ overflow: visible;
16
+ }
17
+
18
+ /* Background track — the empty arc */
19
+ void-gauge .void-gauge-track {
20
+ fill: none;
21
+ stroke: var(--void-chart-grid);
22
+ stroke-linecap: round;
23
+ }
24
+
25
+ /* Zone bands — subtle threshold backgrounds. Butt caps so adjacent zones
26
+ meet cleanly without overlapping rounded "blobs" at the boundaries.
27
+ This base rule covers the 'filled' variant (stroked centerline arcs). */
28
+ void-gauge .void-gauge-zone {
29
+ fill: none;
30
+ stroke: var(--zone-color, var(--void-color-text-muted));
31
+ stroke-linecap: butt;
32
+ opacity: 0.25;
33
+ }
34
+
35
+ /* Outline variant: zones are closed-band paths (not stroked arcs), so
36
+ paint via fill instead of stroke. Opacity sits below the value's
37
+ 14% color-mix fill — the filled portion must read as the prominent
38
+ element with zones as faint backdrop hints, not the other way around. */
39
+ void-gauge[variant="outline"] .void-gauge-zone {
40
+ fill: var(--zone-color, var(--void-color-text-muted));
41
+ stroke: none;
42
+ opacity: 0.10;
43
+ }
44
+
45
+ /* Half-disk cap that rounds the leading/trailing edge of the zone bands
46
+ without overlapping the straight section of the zone arc. Used only
47
+ by the filled variant — the outline variant bakes its caps directly
48
+ into the band path. */
49
+ void-gauge .void-gauge-zone-cap {
50
+ fill: var(--zone-color, var(--void-color-text-muted));
51
+ stroke: none;
52
+ opacity: 0.25;
53
+ }
54
+
55
+
56
+ /* Value fill — solid arc. Rounded caps give the overall filled portion
57
+ a soft leading and trailing edge. Segments overlay on top with butt
58
+ caps; the value-fill's round caps remain visible at the start/end. */
59
+ void-gauge .void-gauge-value {
60
+ fill: none;
61
+ stroke: var(--value-color, var(--void-color-accent));
62
+ stroke-linecap: round;
63
+ }
64
+
65
+ /* Per-segment arcs (overlay on top of value fill). Butt caps so
66
+ inter-segment boundaries are straight, not overlapping circles.
67
+ Round leading/trailing edges are added as separate cap circles
68
+ (.void-gauge-segment-cap) painted underneath in the first/last
69
+ segment's color. */
70
+ void-gauge .void-gauge-segment {
71
+ fill: none;
72
+ stroke: var(--segment-color, var(--void-color-accent));
73
+ stroke-linecap: butt;
74
+ cursor: pointer;
75
+ }
76
+
77
+ /* Leading/trailing round caps for the segment group. Painted before
78
+ the segment arcs so the arcs cover the inward-facing half — only
79
+ the outward-facing half remains visible as a rounded edge. */
80
+ void-gauge .void-gauge-segment-cap {
81
+ fill: var(--segment-color, var(--void-color-accent));
82
+ stroke: none;
83
+ }
84
+
85
+ /* 'outline' variant — matches outline-button styling:
86
+ - 14% color-mix fill (the tinted background of outline buttons)
87
+ - 36% color-mix stroke as a hairline border around the band
88
+ The value/segment paths render as closed bands (not stroked centerline
89
+ arcs) when variant="outline", so the SVG fill + stroke combo works. */
90
+ void-gauge[variant="outline"] .void-gauge-value {
91
+ fill: color-mix(in srgb, var(--value-color, var(--void-color-accent)) 14%, transparent);
92
+ stroke: color-mix(in srgb, var(--value-color, var(--void-color-accent)) 36%, transparent);
93
+ stroke-width: 1 !important;
94
+ }
95
+
96
+ void-gauge[variant="outline"] .void-gauge-segment {
97
+ fill: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 14%, transparent);
98
+ stroke: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 36%, transparent);
99
+ stroke-width: 1 !important;
100
+ }
101
+
102
+ void-gauge[variant="outline"] .void-gauge-segment-cap {
103
+ fill: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 14%, transparent);
104
+ stroke: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 36%, transparent);
105
+ stroke-width: 1;
106
+ }
107
+
108
+ /* 'wireframe' variant — thin stroke, no opacity change */
109
+ void-gauge[variant="wireframe"] .void-gauge-track,
110
+ void-gauge[variant="wireframe"] .void-gauge-value,
111
+ void-gauge[variant="wireframe"] .void-gauge-segment {
112
+ stroke-width: 1.5 !important;
113
+ }
114
+
115
+ /* Gauges are inherently arc shapes — sharp/curvy doesn't apply.
116
+ Use the `gaps` prop on the component to control segment whitespace. */
117
+
118
+ /* Tick marks — speedometer-style indicator lines outside the arc band */
119
+ void-gauge .void-gauge-tick {
120
+ stroke: var(--void-chart-axis, var(--void-color-border-strong));
121
+ stroke-linecap: butt;
122
+ }
123
+
124
+ void-gauge .void-gauge-tick-minor {
125
+ stroke-width: 1;
126
+ opacity: 0.5;
127
+ }
128
+
129
+ void-gauge .void-gauge-tick-major {
130
+ stroke-width: 2;
131
+ opacity: 1;
132
+ }
133
+
134
+ /* Center value label */
135
+ void-gauge .void-gauge-center-value {
136
+ font-family: var(--void-font-mono);
137
+ font-size: var(--void-text-2xl);
138
+ font-weight: var(--void-weight-semibold);
139
+ fill: var(--void-color-text);
140
+ letter-spacing: var(--void-tracking-tight);
141
+ }
142
+
143
+ /* Center unit suffix */
144
+ void-gauge .void-gauge-center-unit {
145
+ font-family: var(--void-font-mono);
146
+ font-size: var(--void-text-sm);
147
+ fill: var(--void-color-text-muted);
148
+ letter-spacing: var(--void-tracking-wide);
149
+ }
150
+
151
+ /* ── Hover tooltip (segments only) ───────────────────────────── */
152
+
153
+ void-gauge .void-gauge-segment {
154
+ cursor: pointer;
155
+ }
156
+
157
+ void-gauge .void-gauge-tooltip-bg {
158
+ fill: var(--void-color-bg-elevated);
159
+ stroke: var(--void-color-border);
160
+ stroke-width: 1;
161
+ }
162
+
163
+ void-gauge .void-gauge-tooltip-name {
164
+ font-family: var(--void-font-mono);
165
+ font-size: var(--void-text-2xs);
166
+ font-weight: var(--void-weight-semibold);
167
+ fill: var(--void-color-text);
168
+ text-transform: uppercase;
169
+ letter-spacing: var(--void-tracking-widest);
170
+ }
171
+
172
+ void-gauge .void-gauge-tooltip-value {
173
+ font-family: var(--void-font-mono);
174
+ font-size: var(--void-text-xs);
175
+ font-weight: var(--void-weight-medium);
176
+ fill: var(--void-color-text);
177
+ }
178
+
179
+ void-gauge .void-gauge-tooltip-pct {
180
+ fill: var(--void-color-text-secondary);
181
+ font-weight: var(--void-weight-normal);
182
+ }
@@ -0,0 +1,137 @@
1
+ /* ============================================================
2
+ void-line-chart — light DOM SVG, theme-driven
3
+ ============================================================ */
4
+
5
+ void-line-chart {
6
+ display: block;
7
+ width: 100%;
8
+ font-family: var(--void-font-mono);
9
+ color: var(--void-color-text);
10
+ }
11
+
12
+ void-line-chart svg {
13
+ display: block;
14
+ width: 100%;
15
+ height: 100%;
16
+ overflow: visible;
17
+ }
18
+
19
+ void-line-chart .void-line-chart-grid line {
20
+ stroke: var(--void-chart-grid);
21
+ stroke-width: 1;
22
+ shape-rendering: crispEdges;
23
+ }
24
+
25
+ void-line-chart .void-line-chart-y-axis text,
26
+ void-line-chart .void-line-chart-x-axis text {
27
+ font-family: var(--void-font-mono);
28
+ font-size: var(--void-text-2xs);
29
+ fill: var(--void-chart-tick-label);
30
+ letter-spacing: var(--void-tracking-wide);
31
+ }
32
+
33
+ /* Series group — left-to-right reveal via clip-path */
34
+ void-line-chart .void-line-chart-series {
35
+ clip-path: inset(0 calc((1 - var(--reveal, 1)) * 100%) 0 0);
36
+ }
37
+
38
+ /* Stroked line — curvy (round joins) by default.
39
+ [data-shape="sharp"] on any ancestor switches to mitered joins. */
40
+ void-line-chart .void-line-chart-line {
41
+ fill: none;
42
+ stroke: var(--series-color, var(--void-color-accent));
43
+ stroke-width: 2;
44
+ stroke-linejoin: round;
45
+ stroke-linecap: round;
46
+ }
47
+
48
+ [data-shape="sharp"] void-line-chart .void-line-chart-line {
49
+ stroke-linejoin: miter;
50
+ stroke-linecap: butt;
51
+ }
52
+
53
+ /* Area under line — default 'outline' variant: ~18% tinted fill */
54
+ void-line-chart .void-line-chart-area {
55
+ fill: color-mix(in srgb, var(--series-color, var(--void-color-accent)) 18%, transparent);
56
+ stroke: none;
57
+ }
58
+
59
+ /* 'filled' variant — emphasize the area (stronger fill) */
60
+ void-line-chart[variant="filled"] .void-line-chart-area {
61
+ fill: color-mix(in srgb, var(--series-color, var(--void-color-accent)) 40%, transparent);
62
+ }
63
+
64
+ /* 'wireframe' variant — no area at all, just the line */
65
+ void-line-chart[variant="wireframe"] .void-line-chart-area {
66
+ display: none;
67
+ }
68
+
69
+ void-line-chart .void-line-chart-values text {
70
+ font-family: var(--void-font-mono);
71
+ font-size: var(--void-text-2xs);
72
+ font-weight: var(--void-weight-medium);
73
+ fill: var(--void-color-text);
74
+ letter-spacing: var(--void-tracking-wide);
75
+ }
76
+
77
+ /* ── Hover crosshair + tooltip ───────────────────────────────── */
78
+
79
+ /* Vertical hairline at the hovered x */
80
+ void-line-chart .void-line-chart-hairline {
81
+ stroke: var(--void-color-border-strong);
82
+ stroke-width: 1;
83
+ stroke-dasharray: 3 3;
84
+ pointer-events: none;
85
+ }
86
+
87
+ /* Per-series marker box at the hovered point */
88
+ void-line-chart .void-line-chart-marker {
89
+ fill: var(--void-color-bg);
90
+ stroke: var(--marker-color, var(--void-color-accent));
91
+ stroke-width: 2;
92
+ rx: 2;
93
+ ry: 2;
94
+ pointer-events: none;
95
+ }
96
+
97
+ /* Tooltip background — bg-elevated for contrast against any chart variant */
98
+ void-line-chart .void-line-chart-tooltip-bg {
99
+ fill: var(--void-color-bg-elevated);
100
+ stroke: var(--void-color-border);
101
+ stroke-width: 1;
102
+ pointer-events: none;
103
+ }
104
+
105
+ /* Tooltip label (the x-axis category at this index) */
106
+ void-line-chart .void-line-chart-tooltip-label {
107
+ font-family: var(--void-font-mono);
108
+ font-size: var(--void-text-2xs);
109
+ font-weight: var(--void-weight-semibold);
110
+ fill: var(--void-color-text);
111
+ text-transform: uppercase;
112
+ letter-spacing: var(--void-tracking-widest);
113
+ pointer-events: none;
114
+ }
115
+
116
+ /* Series swatch in the tooltip */
117
+ void-line-chart .void-line-chart-tooltip-swatch {
118
+ fill: var(--swatch-color, var(--void-color-accent));
119
+ pointer-events: none;
120
+ }
121
+
122
+ /* Series name in the tooltip */
123
+ void-line-chart .void-line-chart-tooltip-name {
124
+ font-family: var(--void-font-sans);
125
+ font-size: var(--void-text-xs);
126
+ fill: var(--void-color-text-secondary);
127
+ pointer-events: none;
128
+ }
129
+
130
+ /* Series value in the tooltip — right-aligned, mono */
131
+ void-line-chart .void-line-chart-tooltip-value {
132
+ font-family: var(--void-font-mono);
133
+ font-size: var(--void-text-xs);
134
+ font-weight: var(--void-weight-medium);
135
+ fill: var(--void-color-text);
136
+ pointer-events: none;
137
+ }
@@ -49,6 +49,38 @@ void-number-input input.void-number-input-field::placeholder {
49
49
  color: var(--void-color-text-muted);
50
50
  }
51
51
 
52
+ /* Inline prefix (before input) and unit (after input) */
53
+ .void-number-input-prefix,
54
+ .void-number-input-unit {
55
+ display: inline-flex;
56
+ align-items: center;
57
+ color: var(--void-color-text-muted);
58
+ font-family: inherit;
59
+ font-size: var(--void-text-sm);
60
+ user-select: none;
61
+ pointer-events: none;
62
+ white-space: nowrap;
63
+ flex-shrink: 0;
64
+ }
65
+
66
+ .void-number-input-prefix {
67
+ padding-left: var(--void-space-3);
68
+ }
69
+
70
+ .void-number-input-unit {
71
+ padding-right: var(--void-space-3);
72
+ }
73
+
74
+ /* When a prefix is present, the input doesn't need its own left padding */
75
+ void-number-input:has(.void-number-input-prefix) input.void-number-input-field {
76
+ padding-left: var(--void-space-1);
77
+ }
78
+
79
+ /* When a unit is present, the input doesn't need its own right padding */
80
+ void-number-input:has(.void-number-input-unit) input.void-number-input-field {
81
+ padding-right: var(--void-space-1);
82
+ }
83
+
52
84
  /* Stepper buttons */
53
85
  .void-number-input-btn {
54
86
  display: inline-flex;
@@ -170,6 +202,20 @@ void-number-input[size="lg"] .void-number-input-btn {
170
202
  padding: 0 var(--void-space-4);
171
203
  }
172
204
 
205
+ void-number-input[size="sm"] .void-number-input-prefix,
206
+ void-number-input[size="sm"] .void-number-input-unit {
207
+ font-size: var(--void-text-xs);
208
+ padding-left: var(--void-space-2);
209
+ padding-right: var(--void-space-2);
210
+ }
211
+
212
+ void-number-input[size="lg"] .void-number-input-prefix,
213
+ void-number-input[size="lg"] .void-number-input-unit {
214
+ font-size: var(--void-text-base);
215
+ padding-left: var(--void-space-4);
216
+ padding-right: var(--void-space-4);
217
+ }
218
+
173
219
  /* Disabled state */
174
220
  void-number-input[disabled] {
175
221
  opacity: 0.5;
package/src/index.css CHANGED
@@ -69,3 +69,9 @@
69
69
  @import './app-shell/detail.css';
70
70
  @import './app-shell/modal-actions.css';
71
71
  @import './app-shell/subtable.css';
72
+
73
+ /* Charts */
74
+ @import './components/bar-chart.css';
75
+ @import './components/line-chart.css';
76
+ @import './components/donut-chart.css';
77
+ @import './components/gauge.css';
@@ -3,6 +3,16 @@
3
3
  Raw scales only. No semantic meaning.
4
4
  ============================================================ */
5
5
 
6
+ /* Type --void-anim-scale so per-element inline overrides
7
+ (style="--void-anim-scale: 2") cascade reliably. Other animation
8
+ tokens stay untyped so their calc() expressions resolve lazily at
9
+ the consumer site, picking up local scale overrides. */
10
+ @property --void-anim-scale {
11
+ syntax: '<number>';
12
+ inherits: true;
13
+ initial-value: 1;
14
+ }
15
+
6
16
  :root {
7
17
  /* ── Stone palette ── */
8
18
  --void-stone-50: #fafaf9;
@@ -211,10 +221,34 @@
211
221
  --void-ring-hair: 0 0 0 1px rgba(255,255,255,.06);
212
222
  --void-ring-hair-strong: 0 0 0 1px rgba(255,255,255,.12);
213
223
 
214
- /* ── Motion — durations ── */
215
- --void-duration-fast: 100ms;
216
- --void-duration-normal: 200ms;
217
- --void-duration-slow: 300ms;
224
+ /* ── Motion — durations
225
+ All durations scale with --void-anim-scale (1 = default, 0 = off).
226
+ Override per-element via inline style="--void-anim-scale: N" or
227
+ page-wide via <html data-anim-speed="…"> below. */
228
+ --void-anim-scale: 1;
229
+ --void-duration-fast: calc(100ms * var(--void-anim-scale));
230
+ --void-duration-normal: calc(200ms * var(--void-anim-scale));
231
+ --void-duration-slow: calc(300ms * var(--void-anim-scale));
232
+
233
+ /* Chart-specific base durations — consumed by JS rAF loops.
234
+ JS reads these as plain values, then multiplies by the
235
+ cascaded --void-anim-scale at the element's site. (Calc'd
236
+ tokens would break parseFloat in getComputedStyle.) */
237
+ --void-duration-chart-enter: 700ms;
238
+ --void-stagger-chart-bars: 40ms;
239
+
240
+ /* Chart series palette — cycle for multi-series charts */
241
+ --void-chart-series-1: var(--void-color-accent);
242
+ --void-chart-series-2: var(--void-color-info);
243
+ --void-chart-series-3: var(--void-color-success);
244
+ --void-chart-series-4: var(--void-color-warning);
245
+ --void-chart-series-5: var(--void-color-error);
246
+ --void-chart-series-6: var(--void-color-notice);
247
+
248
+ /* Chart structural colors */
249
+ --void-chart-grid: color-mix(in srgb, var(--void-color-border) 60%, transparent);
250
+ --void-chart-axis: var(--void-color-border-strong);
251
+ --void-chart-tick-label: var(--void-color-text-muted);
218
252
 
219
253
  /* ── Motion — easings ── */
220
254
  --void-ease-in: cubic-bezier(0.4, 0, 1, 0.2);
@@ -235,3 +269,20 @@
235
269
  --void-sidebar-width: 15rem;
236
270
  --void-sidebar-collapsed-width: 3.75rem;
237
271
  }
272
+
273
+ /* ── Animation speed levels ─────────────────────────────────────
274
+ Override the global scale; off = no animation, instant = ~15ms.
275
+ ─────────────────────────────────────────────────────────────── */
276
+
277
+ :root[data-anim-speed="off"] { --void-anim-scale: 0; }
278
+ :root[data-anim-speed="slowest"] { --void-anim-scale: 3; }
279
+ :root[data-anim-speed="slow"] { --void-anim-scale: 1.75; }
280
+ :root[data-anim-speed="normal"] { --void-anim-scale: 1; }
281
+ :root[data-anim-speed="fast"] { --void-anim-scale: 0.5; }
282
+ :root[data-anim-speed="faster"] { --void-anim-scale: 0.25; }
283
+ :root[data-anim-speed="instant"] { --void-anim-scale: 0.05; }
284
+
285
+ /* Reduced-motion fallback — only when no explicit setting */
286
+ @media (prefers-reduced-motion: reduce) {
287
+ :root:not([data-anim-speed]) { --void-anim-scale: 0; }
288
+ }