@voidable/theme 0.6.0 → 0.8.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 (95) hide show
  1. package/README.md +133 -8
  2. package/package.json +66 -8
  3. package/src/app-shell/detail.css +7 -5
  4. package/src/app-shell/subtable.css +7 -6
  5. package/src/base.css +28 -0
  6. package/src/components/accordion.css +96 -19
  7. package/src/components/action-input.css +51 -61
  8. package/src/components/alert.css +63 -23
  9. package/src/components/avatar.css +0 -2
  10. package/src/components/badge.css +35 -25
  11. package/src/components/banner.css +60 -19
  12. package/src/components/bar-chart.css +75 -0
  13. package/src/components/breadcrumbs.css +20 -16
  14. package/src/components/button.css +130 -55
  15. package/src/components/calendar.css +40 -17
  16. package/src/components/card.css +122 -23
  17. package/src/components/carousel.css +85 -118
  18. package/src/components/checkbox-group.css +3 -1
  19. package/src/components/checkbox.css +18 -23
  20. package/src/components/collapsible.css +95 -29
  21. package/src/components/color-picker.css +10 -10
  22. package/src/components/combobox.css +47 -29
  23. package/src/components/compose-input.css +3 -3
  24. package/src/components/dialog.css +115 -41
  25. package/src/components/divider.css +7 -4
  26. package/src/components/donut-chart.css +105 -0
  27. package/src/components/drawer.css +135 -68
  28. package/src/components/dropdown-menu.css +21 -43
  29. package/src/components/editable.css +7 -7
  30. package/src/components/error-fallback.css +48 -27
  31. package/src/components/field.css +12 -5
  32. package/src/components/file-upload.css +2 -1
  33. package/src/components/gauge.css +194 -0
  34. package/src/components/hamburger.css +10 -10
  35. package/src/components/hover-card.css +13 -113
  36. package/src/components/indicator.css +22 -18
  37. package/src/components/input.css +15 -12
  38. package/src/components/line-chart.css +137 -0
  39. package/src/components/list.css +28 -7
  40. package/src/components/menu.css +48 -33
  41. package/src/components/multiselect.css +57 -40
  42. package/src/components/nav-bar.css +23 -14
  43. package/src/components/nav-menu.css +31 -22
  44. package/src/components/number-input.css +85 -62
  45. package/src/components/overlay.css +215 -0
  46. package/src/components/pagination.css +42 -31
  47. package/src/components/panel.css +37 -11
  48. package/src/components/pin-input.css +23 -22
  49. package/src/components/popover.css +19 -35
  50. package/src/components/progress.css +19 -10
  51. package/src/components/radio-group.css +2 -1
  52. package/src/components/radio.css +15 -20
  53. package/src/components/scroll-area.css +3 -3
  54. package/src/components/segmented-control.css +46 -29
  55. package/src/components/select.css +99 -31
  56. package/src/components/sidebar.css +8 -4
  57. package/src/components/skeleton.css +8 -3
  58. package/src/components/slider.css +4 -2
  59. package/src/components/spinner.css +5 -4
  60. package/src/components/stat.css +59 -52
  61. package/src/components/status-dot.css +0 -1
  62. package/src/components/switch.css +18 -26
  63. package/src/components/table.css +443 -16
  64. package/src/components/tabs.css +92 -29
  65. package/src/components/tag.css +44 -20
  66. package/src/components/tags-input.css +43 -55
  67. package/src/components/textarea.css +15 -12
  68. package/src/components/toast.css +84 -22
  69. package/src/components/toggle.css +35 -42
  70. package/src/components/tooltip.css +19 -38
  71. package/src/core.css +98 -0
  72. package/src/forced-colors.css +134 -0
  73. package/src/index.css +4 -71
  74. package/src/knobs.css +101 -0
  75. package/src/layers.css +38 -0
  76. package/src/media/media.css +258 -0
  77. package/src/media/surface.css +143 -0
  78. package/src/patterns/data.css +461 -0
  79. package/src/patterns/page.css +348 -0
  80. package/src/patterns/shell.css +371 -0
  81. package/src/pre-upgrade.css +202 -0
  82. package/src/primitives.css +44 -71
  83. package/src/reset.css +45 -21
  84. package/src/skins/loft.css +114 -0
  85. package/src/skins/slab.css +107 -0
  86. package/src/themes/aurora.css +16 -0
  87. package/src/themes/capsule.css +16 -0
  88. package/src/themes/console.css +16 -0
  89. package/src/themes/dune.css +16 -0
  90. package/src/themes/iris.css +16 -0
  91. package/src/themes/orbit.css +16 -0
  92. package/src/themes/paper.css +18 -0
  93. package/src/themes/void.css +16 -0
  94. package/src/tokens.css +552 -98
  95. package/src/type.css +103 -0
@@ -0,0 +1,194 @@
1
+ /* ============================================================
2
+ void-gauge — light DOM SVG, theme-driven
3
+ ============================================================ */
4
+ /* @tokens void-gauge
5
+ --void-gauge-size Setting: the largest width of the gauge. It fills its container up to this and shrinks with it below; the height follows from the arc. */
6
+
7
+ /* Fills its container up to a ceiling, like the donut; the height comes
8
+ from the SVG's own proportions (full, three-quarter or half circle). */
9
+ void-gauge {
10
+ display: block;
11
+ box-sizing: border-box;
12
+ inline-size: 100%;
13
+ max-inline-size: var(--void-gauge-size, 13.75rem);
14
+ font-family: var(--void-font-mono);
15
+ color: var(--void-color-text);
16
+ }
17
+
18
+ void-gauge svg {
19
+ display: block;
20
+ width: 100%;
21
+ height: auto;
22
+ overflow: visible;
23
+ }
24
+
25
+ /* Background track — the empty arc */
26
+ void-gauge .void-gauge-track {
27
+ stroke-width: var(--gauge-stroke-width);
28
+ fill: none;
29
+ stroke: var(--void-chart-grid);
30
+ stroke-linecap: round;
31
+ }
32
+
33
+ /* Zone bands — subtle threshold backgrounds. Butt caps so adjacent zones
34
+ meet cleanly without overlapping rounded "blobs" at the boundaries.
35
+ This base rule covers the 'filled' variant (stroked centerline arcs). */
36
+ void-gauge .void-gauge-zone {
37
+ stroke-width: var(--gauge-stroke-width);
38
+ fill: none;
39
+ stroke: var(--zone-color, var(--void-color-text-muted));
40
+ stroke-linecap: butt;
41
+ opacity: 0.25;
42
+ }
43
+
44
+ /* Outline variant: zones are closed-band paths (not stroked arcs), so
45
+ paint via fill instead of stroke. Opacity sits below the value's
46
+ 14% color-mix fill — the filled portion must read as the prominent
47
+ element with zones as faint backdrop hints, not the other way around. */
48
+ void-gauge[variant="outline"] .void-gauge-zone {
49
+ fill: var(--zone-color, var(--void-color-text-muted));
50
+ stroke: none;
51
+ opacity: 0.10;
52
+ }
53
+
54
+ /* Half-disk cap that rounds the leading/trailing edge of the zone bands
55
+ without overlapping the straight section of the zone arc. Used only
56
+ by the filled variant — the outline variant bakes its caps directly
57
+ into the band path. */
58
+ void-gauge .void-gauge-zone-cap {
59
+ fill: var(--zone-color, var(--void-color-text-muted));
60
+ stroke: none;
61
+ opacity: 0.25;
62
+ }
63
+
64
+
65
+ /* Value fill — solid arc. Rounded caps give the overall filled portion
66
+ a soft leading and trailing edge. Segments overlay on top with butt
67
+ caps; the value-fill's round caps remain visible at the start/end. */
68
+ void-gauge .void-gauge-value {
69
+ stroke-width: var(--gauge-stroke-width);
70
+ fill: none;
71
+ stroke: var(--value-color, var(--void-color-accent));
72
+ stroke-linecap: round;
73
+ }
74
+
75
+ /* Per-segment arcs (overlay on top of value fill). Butt caps so
76
+ inter-segment boundaries are straight, not overlapping circles.
77
+ Round leading/trailing edges are added as separate cap circles
78
+ (.void-gauge-segment-cap) painted underneath in the first/last
79
+ segment's color. */
80
+ void-gauge .void-gauge-segment {
81
+ stroke-width: var(--gauge-stroke-width);
82
+ fill: none;
83
+ stroke: var(--segment-color, var(--void-color-accent));
84
+ stroke-linecap: butt;
85
+ cursor: pointer;
86
+ }
87
+
88
+ /* Leading/trailing round caps for the segment group. Painted before
89
+ the segment arcs so the arcs cover the inward-facing half — only
90
+ the outward-facing half remains visible as a rounded edge. */
91
+ void-gauge .void-gauge-segment-cap {
92
+ fill: var(--segment-color, var(--void-color-accent));
93
+ stroke: none;
94
+ }
95
+
96
+ /* 'outline' variant — matches outline-button styling:
97
+ - 14% color-mix fill (the tinted background of outline buttons)
98
+ - 36% color-mix stroke as a hairline border around the band
99
+ The value/segment paths render as closed bands (not stroked centerline
100
+ arcs) when variant="outline", so the SVG fill + stroke combo works. */
101
+ void-gauge[variant="outline"] .void-gauge-value {
102
+ fill: color-mix(in srgb, var(--value-color, var(--void-color-accent)) 14%, transparent);
103
+ stroke: color-mix(in srgb, var(--value-color, var(--void-color-accent)) 36%, transparent);
104
+ stroke-width: var(--void-chart-stroke-hairline) !important;
105
+ }
106
+
107
+ void-gauge[variant="outline"] .void-gauge-segment {
108
+ fill: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 14%, transparent);
109
+ stroke: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 36%, transparent);
110
+ stroke-width: var(--void-chart-stroke-hairline) !important;
111
+ }
112
+
113
+ void-gauge[variant="outline"] .void-gauge-segment-cap {
114
+ fill: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 14%, transparent);
115
+ stroke: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 36%, transparent);
116
+ stroke-width: var(--void-chart-stroke-hairline);
117
+ }
118
+
119
+ /* 'wireframe' variant — thin stroke, no opacity change */
120
+ void-gauge[variant="wireframe"] .void-gauge-track,
121
+ void-gauge[variant="wireframe"] .void-gauge-value,
122
+ void-gauge[variant="wireframe"] .void-gauge-segment {
123
+ stroke-width: var(--void-chart-stroke-thin) !important;
124
+ }
125
+
126
+ /* Gauges are inherently arc shapes — sharp/curvy doesn't apply.
127
+ Use the `gaps` prop on the component to control segment whitespace. */
128
+
129
+ /* Tick marks — speedometer-style indicator lines outside the arc band */
130
+ void-gauge .void-gauge-tick {
131
+ stroke: var(--void-chart-axis);
132
+ stroke-linecap: butt;
133
+ }
134
+
135
+ void-gauge .void-gauge-tick-minor {
136
+ stroke-width: var(--void-chart-stroke-hairline);
137
+ opacity: 0.5;
138
+ }
139
+
140
+ void-gauge .void-gauge-tick-major {
141
+ stroke-width: var(--void-chart-stroke-medium);
142
+ opacity: 1;
143
+ }
144
+
145
+ /* Center value label */
146
+ void-gauge .void-gauge-center-value {
147
+ font-family: var(--void-type-value-family);
148
+ font-size: var(--void-text-2xl);
149
+ font-weight: var(--void-type-value-weight);
150
+ font-variant-numeric: var(--void-type-value-numeric);
151
+ fill: var(--void-type-value-color);
152
+ letter-spacing: var(--void-type-value-tracking);
153
+ }
154
+
155
+ /* Center unit suffix */
156
+ void-gauge .void-gauge-center-unit {
157
+ font-family: var(--void-type-unit-family);
158
+ font-size: var(--void-type-unit-size);
159
+ fill: var(--void-type-unit-color);
160
+ letter-spacing: var(--void-type-unit-tracking);
161
+ }
162
+
163
+ /* ── Hover tooltip (segments only) ───────────────────────────── */
164
+
165
+ void-gauge .void-gauge-segment {
166
+ cursor: pointer;
167
+ }
168
+
169
+ void-gauge .void-gauge-tooltip-bg {
170
+ fill: var(--void-color-bg-elevated);
171
+ stroke: var(--void-color-border);
172
+ stroke-width: var(--void-chart-stroke-hairline);
173
+ }
174
+
175
+ void-gauge .void-gauge-tooltip-name {
176
+ font-family: var(--void-type-label-family);
177
+ font-size: var(--void-type-label-size);
178
+ font-weight: var(--void-type-label-weight);
179
+ fill: var(--void-color-text);
180
+ text-transform: var(--void-type-label-case);
181
+ letter-spacing: var(--void-type-label-tracking);
182
+ }
183
+
184
+ void-gauge .void-gauge-tooltip-value {
185
+ font-family: var(--void-font-mono);
186
+ font-size: var(--void-text-xs);
187
+ font-weight: var(--void-weight-medium);
188
+ fill: var(--void-color-text);
189
+ }
190
+
191
+ void-gauge .void-gauge-tooltip-pct {
192
+ fill: var(--void-color-text-secondary);
193
+ font-weight: var(--void-weight-normal);
194
+ }
@@ -4,7 +4,7 @@ void-hamburger {
4
4
  justify-content: center;
5
5
  cursor: pointer;
6
6
  padding: var(--void-space-2);
7
- border-radius: var(--void-radius-md);
7
+ border-radius: var(--void-control-radius);
8
8
  background: transparent;
9
9
  border: none;
10
10
  user-select: none;
@@ -15,8 +15,8 @@ void-hamburger:hover {
15
15
  }
16
16
 
17
17
  void-hamburger:focus-visible {
18
- outline: 2px solid var(--void-color-border-focus);
19
- outline-offset: 2px;
18
+ outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
19
+ outline-offset: var(--void-focus-ring-offset);
20
20
  }
21
21
 
22
22
  .void-hamburger-lines {
@@ -36,15 +36,15 @@ void-hamburger:focus-visible {
36
36
  opacity var(--void-duration-fast) var(--void-ease-in-out);
37
37
  }
38
38
 
39
- void-hamburger[active] .void-hamburger-line:nth-child(1) {
39
+ void-hamburger[open] .void-hamburger-line:nth-child(1) {
40
40
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
41
41
  }
42
42
 
43
- void-hamburger[active] .void-hamburger-line:nth-child(2) {
43
+ void-hamburger[open] .void-hamburger-line:nth-child(2) {
44
44
  opacity: 0;
45
45
  }
46
46
 
47
- void-hamburger[active] .void-hamburger-line:nth-child(3) {
47
+ void-hamburger[open] .void-hamburger-line:nth-child(3) {
48
48
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
49
49
  }
50
50
 
@@ -53,11 +53,11 @@ void-hamburger[size="sm"] .void-hamburger-lines {
53
53
  gap: 3px;
54
54
  }
55
55
 
56
- void-hamburger[size="sm"][active] .void-hamburger-line:nth-child(1) {
56
+ void-hamburger[size="sm"][open] .void-hamburger-line:nth-child(1) {
57
57
  transform: rotate(45deg) translate(0.3rem, 0.3rem);
58
58
  }
59
59
 
60
- void-hamburger[size="sm"][active] .void-hamburger-line:nth-child(3) {
60
+ void-hamburger[size="sm"][open] .void-hamburger-line:nth-child(3) {
61
61
  transform: rotate(-45deg) translate(0.3rem, -0.3rem);
62
62
  }
63
63
 
@@ -66,10 +66,10 @@ void-hamburger[size="lg"] .void-hamburger-lines {
66
66
  gap: 5px;
67
67
  }
68
68
 
69
- void-hamburger[size="lg"][active] .void-hamburger-line:nth-child(1) {
69
+ void-hamburger[size="lg"][open] .void-hamburger-line:nth-child(1) {
70
70
  transform: rotate(45deg) translate(0.4375rem, 0.4375rem);
71
71
  }
72
72
 
73
- void-hamburger[size="lg"][active] .void-hamburger-line:nth-child(3) {
73
+ void-hamburger[size="lg"][open] .void-hamburger-line:nth-child(3) {
74
74
  transform: rotate(-45deg) translate(0.4375rem, -0.4375rem);
75
75
  }
@@ -1,124 +1,24 @@
1
1
  void-hover-card {
2
- position: relative;
3
2
  display: inline-flex;
4
3
  }
5
4
 
6
- .void-hover-card-trigger {
7
- display: inline-flex;
5
+ /* The trigger part wraps the control and draws nothing itself: the control is
6
+ the box (and the anchor's only in-flow content), before and after upgrade. */
7
+ void-hover-card-trigger {
8
+ display: contents;
8
9
  }
9
10
 
10
- .void-hover-card-body {
11
- position: absolute;
12
- z-index: var(--void-z-dropdown);
11
+ /* A popover="manual" surface in the top layer; placement, gap, flipping and
12
+ transitions are shared (overlay.css). */
13
+ void-hover-card-content {
13
14
  min-width: 16rem; /* token-ok: intrinsic card minimum width */
14
- background: var(--void-color-bg-elevated);
15
- border: 1px solid var(--void-color-border);
16
- border-radius: var(--void-radius-lg);
15
+ max-width: min(24rem, calc(100vw - 2 * var(--void-overlay-gap)));
16
+ background: var(--void-float-surface);
17
+ border: var(--void-float-border-width) solid var(--void-float-border);
18
+ border-radius: var(--void-float-radius);
17
19
  padding: var(--void-space-4);
18
- box-shadow: 0 4px 16px var(--void-color-bg-overlay);
20
+ box-shadow: var(--void-float-shadow);
19
21
  font-family: var(--void-font-sans);
20
- font-size: var(--void-text-sm);
22
+ font-size: var(--void-type-body-size);
21
23
  color: var(--void-color-text);
22
- opacity: 0;
23
- pointer-events: none;
24
- transform: scale(0.96);
25
- transition:
26
- opacity var(--void-duration-fast) var(--void-ease-in-out),
27
- transform var(--void-duration-fast) var(--void-ease-in-out);
28
- }
29
-
30
- void-hover-card[open] .void-hover-card-body {
31
- opacity: 1;
32
- pointer-events: auto;
33
- transform: scale(1);
34
- }
35
-
36
- /* Position: bottom (default) */
37
- void-hover-card[position="bottom"] .void-hover-card-body,
38
- void-hover-card:not([position]) .void-hover-card-body {
39
- top: calc(100% + var(--void-space-2));
40
- left: 50%;
41
- transform: translateX(-50%) scale(0.96);
42
- }
43
-
44
- void-hover-card[position="bottom"][open] .void-hover-card-body,
45
- void-hover-card:not([position])[open] .void-hover-card-body {
46
- transform: translateX(-50%) scale(1);
47
- }
48
-
49
- /* Position: top */
50
- void-hover-card[position="top"] .void-hover-card-body {
51
- bottom: calc(100% + var(--void-space-2));
52
- left: 50%;
53
- transform: translateX(-50%) scale(0.96);
54
- }
55
-
56
- void-hover-card[position="top"][open] .void-hover-card-body {
57
- transform: translateX(-50%) scale(1);
58
- }
59
-
60
- /* Position: left */
61
- void-hover-card[position="left"] .void-hover-card-body {
62
- right: calc(100% + var(--void-space-2));
63
- top: 50%;
64
- transform: translateY(-50%) scale(0.96);
65
- }
66
-
67
- void-hover-card[position="left"][open] .void-hover-card-body {
68
- transform: translateY(-50%) scale(1);
69
- }
70
-
71
- /* Position: right */
72
- void-hover-card[position="right"] .void-hover-card-body {
73
- left: calc(100% + var(--void-space-2));
74
- top: 50%;
75
- transform: translateY(-50%) scale(0.96);
76
- }
77
-
78
- void-hover-card[position="right"][open] .void-hover-card-body {
79
- transform: translateY(-50%) scale(1);
80
- }
81
-
82
- /* Arrow indicators */
83
- .void-hover-card-body::before {
84
- content: '';
85
- position: absolute;
86
- width: var(--void-space-2);
87
- height: var(--void-space-2);
88
- background: var(--void-color-bg-elevated);
89
- border: 1px solid var(--void-color-border);
90
- transform: rotate(45deg);
91
- }
92
-
93
- void-hover-card[position="bottom"] .void-hover-card-body::before,
94
- void-hover-card:not([position]) .void-hover-card-body::before {
95
- top: calc(-1 * var(--void-space-1) - 1px);
96
- left: 50%;
97
- margin-left: calc(-1 * var(--void-space-1));
98
- border-bottom: none;
99
- border-right: none;
100
- }
101
-
102
- void-hover-card[position="top"] .void-hover-card-body::before {
103
- bottom: calc(-1 * var(--void-space-1) - 1px);
104
- left: 50%;
105
- margin-left: calc(-1 * var(--void-space-1));
106
- border-top: none;
107
- border-left: none;
108
- }
109
-
110
- void-hover-card[position="left"] .void-hover-card-body::before {
111
- right: calc(-1 * var(--void-space-1) - 1px);
112
- top: 50%;
113
- margin-top: calc(-1 * var(--void-space-1));
114
- border-left: none;
115
- border-bottom: none;
116
- }
117
-
118
- void-hover-card[position="right"] .void-hover-card-body::before {
119
- left: calc(-1 * var(--void-space-1) - 1px);
120
- top: 50%;
121
- margin-top: calc(-1 * var(--void-space-1));
122
- border-right: none;
123
- border-top: none;
124
24
  }
@@ -1,5 +1,5 @@
1
1
  void-indicator {
2
- --tone: var(--void-color-accent);
2
+ --_void-tone: var(--void-color-accent);
3
3
  position: relative;
4
4
  display: inline-flex;
5
5
  }
@@ -11,7 +11,7 @@ void-indicator {
11
11
  min-width: 8px;
12
12
  min-height: 8px;
13
13
  border-radius: var(--void-radius-full);
14
- background: var(--tone);
14
+ background: var(--_void-tone);
15
15
  font-family: var(--void-font-sans);
16
16
  font-size: var(--void-text-2xs);
17
17
  font-weight: var(--void-weight-semibold);
@@ -26,24 +26,25 @@ void-indicator {
26
26
  padding: 0 4px;
27
27
  }
28
28
 
29
- void-indicator[position="top-right"] .void-indicator-dot { top: -4px; right: -4px; }
30
- void-indicator[position="top-left"] .void-indicator-dot { top: -4px; left: -4px; }
31
- void-indicator[position="bottom-right"] .void-indicator-dot { bottom: -4px; right: -4px; }
32
- void-indicator[position="bottom-left"] .void-indicator-dot { bottom: -4px; left: -4px; }
29
+ void-indicator[placement="top-right"] .void-indicator-dot { top: -4px; right: -4px; }
30
+ void-indicator[placement="top-left"] .void-indicator-dot { top: -4px; left: -4px; }
31
+ void-indicator[placement="bottom-right"] .void-indicator-dot { bottom: -4px; right: -4px; }
32
+ void-indicator[placement="bottom-left"] .void-indicator-dot { bottom: -4px; left: -4px; }
33
33
 
34
- void-indicator[color="error"] { --tone: var(--void-color-error); }
35
- void-indicator[color="warning"] { --tone: var(--void-color-warning); }
36
- void-indicator[color="caution"] { --tone: var(--void-color-caution); }
37
- void-indicator[color="success"] { --tone: var(--void-color-success); }
38
- void-indicator[color="info"] { --tone: var(--void-color-info); }
39
- void-indicator[color="notice"] { --tone: var(--void-color-notice); }
34
+ void-indicator[color="error"] { --_void-tone: var(--void-color-error); }
35
+ void-indicator[color="warning"] { --_void-tone: var(--void-color-warning); }
36
+ void-indicator[color="caution"] { --_void-tone: var(--void-color-caution); }
37
+ void-indicator[color="highlight"] { --_void-tone: var(--void-color-highlight); }
38
+ void-indicator[color="success"] { --_void-tone: var(--void-color-success); }
39
+ void-indicator[color="info"] { --_void-tone: var(--void-color-info); }
40
+ void-indicator[color="notice"] { --_void-tone: var(--void-color-notice); }
40
41
 
41
42
  void-indicator[ping] .void-indicator-dot::before {
42
43
  content: '';
43
44
  position: absolute;
44
45
  inset: 0;
45
46
  border-radius: var(--void-radius-full);
46
- background: var(--tone);
47
+ background: var(--_void-tone);
47
48
  animation: void-indicator-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
48
49
  }
49
50
 
@@ -55,9 +56,12 @@ void-indicator[size="sm"] .void-indicator-dot { min-width: 6px; min-height: 6px;
55
56
  void-indicator[size="sm"] .void-indicator-dot:not(:empty) { min-width: 14px; min-height: 14px; }
56
57
  void-indicator[size="lg"] .void-indicator-dot { min-width: 10px; min-height: 10px; }
57
58
  void-indicator[size="lg"] .void-indicator-dot:not(:empty) { min-width: 20px; min-height: 20px; font-size: var(--void-text-xs); }
58
- void-indicator[size="xl"] .void-indicator-dot { min-width: 12px; min-height: 12px; }
59
- void-indicator[size="xl"] .void-indicator-dot:not(:empty) { min-width: 24px; min-height: 24px; font-size: var(--void-text-sm); }
60
- void-indicator[size="xxl"] .void-indicator-dot { min-width: 14px; min-height: 14px; }
61
- void-indicator[size="xxl"] .void-indicator-dot:not(:empty) { min-width: 28px; min-height: 28px; font-size: var(--void-text-base); }
62
59
 
63
- void-indicator[color="success"] .void-indicator-dot { box-shadow: 0 0 6px var(--void-color-success); }
60
+
61
+ /* Reduced motion: no expanding ping ring; the dot itself stays visible */
62
+ @media (prefers-reduced-motion: reduce) {
63
+ void-indicator[ping] .void-indicator-dot::before {
64
+ animation: none;
65
+ opacity: 0;
66
+ }
67
+ }
@@ -1,19 +1,23 @@
1
1
  void-input {
2
+ --_void-field-height: var(--void-control-height);
3
+ --_void-field-padding: var(--void-control-padding);
4
+ --_void-field-text: var(--void-control-text);
2
5
  display: flex;
3
6
  flex-direction: column;
4
- gap: var(--void-space-1);
7
+ gap: var(--void-space-1h);
5
8
  font-family: var(--void-font-sans);
6
9
  }
7
10
 
8
11
  void-input input {
9
12
  width: 100%;
10
- padding: var(--void-space-2) var(--void-space-3);
11
- background: var(--void-color-bg-secondary);
12
- border: 1px solid var(--void-color-border);
13
- border-radius: var(--void-radius-md);
13
+ height: var(--_void-field-height);
14
+ padding: 0 var(--_void-field-padding);
15
+ background: var(--void-field-surface);
16
+ border: var(--void-control-border-width) solid var(--void-field-border);
17
+ border-radius: var(--void-control-radius);
14
18
  color: var(--void-color-text);
15
19
  font-family: inherit;
16
- font-size: var(--void-text-sm);
20
+ font-size: var(--_void-field-text);
17
21
  line-height: var(--void-leading-normal);
18
22
  outline: none;
19
23
  transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
@@ -25,7 +29,7 @@ void-input input::placeholder {
25
29
  }
26
30
 
27
31
  void-input input:hover {
28
- border-color: var(--void-color-border-strong);
32
+ border-color: var(--void-field-border);
29
33
  }
30
34
 
31
35
  void-input input:focus {
@@ -48,10 +52,9 @@ void-input[error]:not([error=""]) input:focus {
48
52
 
49
53
  .void-input-error {
50
54
  color: var(--void-color-error);
51
- font-size: var(--void-text-xs);
55
+ font-size: var(--void-type-caption-size);
56
+ line-height: var(--void-type-caption-leading);
52
57
  }
53
58
 
54
- void-input[size="sm"] input { padding: var(--void-space-1) var(--void-space-2); font-size: var(--void-text-xs); }
55
- void-input[size="lg"] input { padding: var(--void-space-3) var(--void-space-4); font-size: var(--void-text-base); }
56
- void-input[size="xl"] input { padding: var(--void-space-4) var(--void-space-5); font-size: var(--void-text-lg); }
57
- void-input[size="xxl"] input { padding: var(--void-space-5) var(--void-space-6); font-size: var(--void-text-xl); }
59
+ void-input[size="sm"] { --_void-field-height: var(--void-control-height-sm); --_void-field-padding: var(--void-control-padding-sm); --_void-field-text: var(--void-control-text-sm); }
60
+ void-input[size="lg"] { --_void-field-height: var(--void-control-height-lg); --_void-field-padding: var(--void-control-padding-lg); --_void-field-text: var(--void-control-text-lg); }
@@ -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: var(--void-chart-stroke-hairline);
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: var(--void-chart-stroke-medium);
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: var(--void-chart-stroke-hairline);
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: var(--void-chart-stroke-medium);
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: var(--void-chart-stroke-hairline);
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-type-label-family);
108
+ font-size: var(--void-type-label-size);
109
+ font-weight: var(--void-type-label-weight);
110
+ fill: var(--void-color-text);
111
+ text-transform: var(--void-type-label-case);
112
+ letter-spacing: var(--void-type-label-tracking);
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
+ }