@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
@@ -1,20 +1,24 @@
1
1
  void-combobox {
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
  position: relative;
7
10
  }
8
11
 
9
12
  .void-combobox-input {
10
13
  width: 100%;
11
- padding: var(--void-space-2) var(--void-space-3);
12
- background: var(--void-color-bg-secondary);
13
- border: 1px solid var(--void-color-border);
14
- border-radius: var(--void-radius-md);
14
+ height: var(--_void-field-height);
15
+ padding: 0 var(--_void-field-padding);
16
+ background: var(--void-field-surface);
17
+ border: var(--void-control-border-width) solid var(--void-field-border);
18
+ border-radius: var(--void-control-radius);
15
19
  color: var(--void-color-text);
16
20
  font-family: inherit;
17
- font-size: var(--void-text-sm);
21
+ font-size: var(--_void-field-text);
18
22
  line-height: var(--void-leading-normal);
19
23
  outline: none;
20
24
  transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
@@ -22,13 +26,13 @@ void-combobox {
22
26
  }
23
27
 
24
28
  .void-combobox-input::placeholder { color: var(--void-color-text-muted); }
25
- .void-combobox-input:hover { border-color: var(--void-color-border-strong); }
29
+ .void-combobox-input:hover { border-color: var(--void-field-border); }
26
30
  .void-combobox-input:focus {
27
31
  border-color: var(--void-color-border-focus);
28
32
  box-shadow: 0 0 0 1px var(--void-color-border-focus);
29
33
  }
30
34
 
31
- void-combobox[aria-expanded='true'] .void-combobox-input {
35
+ void-combobox[open] .void-combobox-input {
32
36
  border-color: var(--void-color-border-focus);
33
37
  box-shadow: 0 0 0 1px var(--void-color-border-focus);
34
38
  }
@@ -42,42 +46,57 @@ void-combobox[error]:not([error='']) .void-combobox-input:focus {
42
46
 
43
47
  .void-combobox-error {
44
48
  color: var(--void-color-error);
45
- font-size: var(--void-text-xs);
49
+ font-size: var(--void-type-caption-size);
50
+ line-height: var(--void-type-caption-leading);
46
51
  }
47
52
 
48
- .void-combobox-dropdown {
49
- position: absolute;
50
- top: calc(100% + var(--void-space-1));
51
- left: 0;
52
- right: 0;
53
- background: var(--void-color-bg-elevated);
54
- border: 1px solid var(--void-color-border);
55
- border-radius: var(--void-radius-md);
56
- box-shadow: 0 4px 16px var(--void-color-bg-overlay);
53
+ /* The content part: a popover="manual" surface in the top layer, at least as
54
+ wide as the field; placement, flipping and transitions are shared
55
+ (overlay.css). */
56
+ void-combobox-content {
57
+ --void-overlay-gap: var(--void-space-1);
58
+ min-width: var(--void-overlay-anchor-width);
59
+ color: var(--void-color-text);
60
+ background: var(--void-float-surface);
61
+ border: var(--void-float-border-width) solid var(--void-float-border);
62
+ border-radius: var(--void-float-radius);
63
+ box-shadow: var(--void-float-shadow);
57
64
  max-height: 16rem;
58
65
  overflow-y: auto;
59
- z-index: var(--void-z-dropdown);
60
66
  padding: var(--void-space-1) 0;
61
67
  }
62
68
 
63
- .void-combobox-option {
69
+ /* Each option is the author's void-option, wired as role="option": `active`
70
+ marks the highlighted one (aria-activedescendant), aria-selected the chosen
71
+ one. The typed text filters options out with `hidden`. */
72
+ void-combobox-content > void-option {
73
+ /* Flex, so rich content (an avatar, then the name) lines up. */
74
+ display: flex;
75
+ align-items: center;
76
+ gap: var(--void-space-2);
64
77
  padding: var(--void-space-2) var(--void-space-3);
65
78
  cursor: pointer;
66
79
  color: var(--void-color-text);
67
- font-size: var(--void-text-sm);
80
+ font-size: var(--_void-field-text);
68
81
  user-select: none;
69
82
  transition: background var(--void-duration-fast) var(--void-ease-in-out);
70
83
  }
71
- .void-combobox-option:hover { background: var(--void-color-bg-hover); }
72
- .void-combobox-option[aria-selected='true'] {
84
+ void-combobox-content > void-option[hidden] { display: none; }
85
+ void-combobox-content > void-option:hover { background: var(--void-color-bg-hover); }
86
+ void-combobox-content > void-option[aria-selected='true'] { font-weight: var(--void-weight-medium); }
87
+ void-combobox-content > void-option[active] {
73
88
  background: var(--void-color-accent);
74
89
  color: var(--void-color-text-on-accent);
75
90
  }
91
+ void-combobox-content > void-option[disabled] { opacity: 0.5; cursor: default; }
76
92
 
77
- .void-combobox-empty {
93
+ /* Nothing matches what was typed. */
94
+ void-combobox-content[empty]::after {
95
+ content: 'No options found';
96
+ display: block;
78
97
  padding: var(--void-space-2) var(--void-space-3);
79
98
  color: var(--void-color-text-muted);
80
- font-size: var(--void-text-xs);
99
+ font-size: var(--_void-field-text);
81
100
  }
82
101
 
83
102
  void-combobox[disabled] {
@@ -86,7 +105,6 @@ void-combobox[disabled] {
86
105
  }
87
106
  void-combobox[disabled] .void-combobox-input { cursor: not-allowed; }
88
107
 
89
- void-combobox[size='sm'] .void-combobox-input { padding: var(--void-space-1) var(--void-space-2); font-size: var(--void-text-xs); }
90
- void-combobox[size='lg'] .void-combobox-input { padding: var(--void-space-3) var(--void-space-4); font-size: var(--void-text-base); }
91
- void-combobox[size='xl'] .void-combobox-input { padding: var(--void-space-4) var(--void-space-5); font-size: var(--void-text-lg); }
92
- void-combobox[size='xxl'] .void-combobox-input { padding: var(--void-space-5) var(--void-space-6); font-size: var(--void-text-xl); }
108
+ /* Size variants: each step sets the field tokens and nothing else */
109
+ void-combobox[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); }
110
+ void-combobox[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); }
@@ -8,8 +8,8 @@ void-compose-input {
8
8
  align-items: flex-end;
9
9
  gap: var(--void-space-2);
10
10
  padding: var(--void-space-2);
11
- background: var(--void-color-bg-secondary);
12
- border: 1px solid var(--void-color-border);
11
+ background: var(--void-field-surface);
12
+ border: var(--void-control-border-width) solid var(--void-field-border);
13
13
  border-radius: var(--void-radius-lg);
14
14
  transition: border-color var(--void-duration-fast) var(--void-ease-in-out);
15
15
  }
@@ -45,7 +45,7 @@ void-compose-input {
45
45
  width: 2rem;
46
46
  height: 2rem;
47
47
  border: none;
48
- border-radius: var(--void-radius-md);
48
+ border-radius: var(--void-control-radius);
49
49
  background: var(--void-color-accent);
50
50
  color: var(--void-color-text-on-accent);
51
51
  cursor: pointer;
@@ -1,53 +1,129 @@
1
- void-dialog {
2
- display: none;
3
- }
1
+ /* The host only carries attributes. Its parts (title, description, body,
2
+ actions) are its own children, shown inside a native <dialog> that lives in
3
+ the host's shadow root (::part(surface)), with the close button
4
+ (::part(close)). Before the element upgrades there is no <dialog>, so the
5
+ parts must not show inline (pre-upgrade.css). */
6
+ /* @tokens void-dialog
7
+ --void-dialog-radius Corner radius of the panel (::part(surface)).
8
+ --void-dialog-shadow Shadow of the panel (::part(surface)). */
4
9
 
5
- void-dialog[open] {
10
+ void-dialog {
6
11
  display: contents;
12
+ /* The title row is one step above the large control (56px by default,
13
+ 52px under a denser skin), whatever the title's own leading, so a
14
+ dialog, a drawer and their close buttons line up with each other. */
15
+ --_void-dialog-row: calc(var(--void-control-height-lg) + var(--void-space-3));
16
+ --_void-dialog-title-inset: calc((var(--_void-dialog-row) - var(--void-type-heading-size) * var(--void-type-heading-leading)) / 2);
7
17
  }
8
18
 
9
- .void-dialog-backdrop {
10
- position: fixed;
11
- inset: 0;
12
- background: var(--void-color-bg-overlay);
13
- z-index: var(--void-z-modal);
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
- }
18
-
19
- .void-dialog-panel {
20
- background: var(--void-color-bg-elevated);
21
- border: 1px solid var(--void-color-border);
22
- border-radius: var(--void-radius-lg);
23
- box-shadow: var(--void-shadow-lg);
19
+ /* Modal panel in the top layer (showModal); ::backdrop and transitions in overlay.css. */
20
+ void-dialog::part(surface) {
21
+ box-sizing: border-box;
22
+ margin: auto;
23
+ padding: 0;
24
+ background: var(--void-float-surface);
25
+ color: var(--void-color-text);
26
+ border: var(--void-float-border-width) solid var(--void-float-border);
27
+ border-radius: var(--void-dialog-radius, var(--void-radius-xl));
28
+ box-shadow: var(--void-dialog-shadow, var(--void-shadow-lg));
24
29
  max-height: 85vh;
30
+ max-height: 85dvh;
25
31
  overflow-y: auto;
26
- width: 100%;
32
+ width: calc(100% - 2 * var(--void-space-4));
27
33
  max-width: 32rem;
34
+ opacity: 0;
35
+ scale: 0.97;
28
36
  }
29
37
 
30
- void-dialog[size="sm"] .void-dialog-panel { max-width: 24rem; }
31
- void-dialog[size="md"] .void-dialog-panel { max-width: 32rem; }
32
- void-dialog[size="lg"] .void-dialog-panel { max-width: 48rem; }
33
- void-dialog[size="xl"] .void-dialog-panel { max-width: 64rem; }
38
+ void-dialog[open]::part(surface) {
39
+ opacity: 1;
40
+ scale: 1;
41
+ }
34
42
 
35
- .void-dialog-header {
36
- display: flex;
37
- align-items: center;
38
- justify-content: space-between;
39
- padding: var(--void-space-4) var(--void-space-5);
40
- border-bottom: 1px solid var(--void-color-border);
43
+ @starting-style {
44
+ void-dialog[open]::part(surface) {
45
+ opacity: 0;
46
+ scale: 0.97;
47
+ }
48
+ }
49
+
50
+ void-dialog[size="sm"]::part(surface) { max-width: 24rem; }
51
+ void-dialog[size="md"]::part(surface) { max-width: 32rem; }
52
+ void-dialog[size="lg"]::part(surface) { max-width: 48rem; }
53
+
54
+ /* The title row: the close button sits at its far end. */
55
+ void-dialog-title {
56
+ display: block;
57
+ margin: 0;
58
+ /* Room for the close button, which is laid over the end of the row. */
59
+ padding: var(--_void-dialog-title-inset) calc(var(--void-container-padding) + 1.5rem + var(--void-space-2)) var(--_void-dialog-title-inset) var(--void-container-padding);
60
+ border-bottom: var(--void-rule-head);
61
+ font-family: var(--void-type-heading-family);
62
+ font-size: var(--void-type-heading-size);
63
+ line-height: var(--void-type-heading-leading);
64
+ font-weight: var(--void-type-heading-weight);
65
+ letter-spacing: var(--void-type-heading-tracking);
66
+ color: var(--void-type-heading-color);
67
+ }
68
+
69
+ void-dialog[hide-close] void-dialog-title {
70
+ padding-inline-end: var(--void-container-padding);
41
71
  }
42
72
 
43
- .void-dialog-heading {
73
+ /* A description joins the title's row: the hairline moves below it. */
74
+ void-dialog-title:has(+ void-dialog-description) {
75
+ padding-bottom: var(--void-space-1);
76
+ border-bottom: none;
77
+ }
78
+
79
+ void-dialog-description {
80
+ display: block;
81
+ padding: 0 var(--void-container-padding) var(--void-space-4);
82
+ border-bottom: var(--void-rule-head);
44
83
  font-family: var(--void-font-sans);
45
- font-size: var(--void-text-lg);
46
- font-weight: var(--void-weight-semibold);
84
+ font-size: var(--void-type-body-size);
85
+ color: var(--void-color-text-secondary);
86
+ }
87
+
88
+ void-dialog-body {
89
+ display: block;
90
+ padding: var(--void-container-padding);
91
+ font-family: var(--void-font-sans);
92
+ font-size: var(--void-type-body-size);
47
93
  color: var(--void-color-text);
48
94
  }
49
95
 
50
- .void-dialog-close {
96
+
97
+ /* Blocks written straight into the body (a paragraph, then a field) sit a
98
+ step apart. The scoped reset removes every margin, so without this a label
99
+ sat directly under the sentence above it. Only block-level content is
100
+ named: text with inline markup, and a row of buttons, are left alone. For
101
+ another rhythm, wrap the content in void-stack. */
102
+ void-dialog-body > :where(p, ul, ol, dl, pre, blockquote, form, fieldset, table, figure, div, section, h2, h3, h4, h5, h6, void-field, void-stack, void-alert, void-banner, void-rows, void-description-list, void-checkbox-group, void-radio-group, void-table, void-card, void-panel, void-list, void-divider, void-figures, void-split, void-input, void-textarea, void-select, void-combobox, void-progress) + :where(p, ul, ol, dl, pre, blockquote, form, fieldset, table, figure, div, section, h2, h3, h4, h5, h6, void-field, void-stack, void-alert, void-banner, void-rows, void-description-list, void-checkbox-group, void-radio-group, void-table, void-card, void-panel, void-list, void-divider, void-figures, void-split, void-input, void-textarea, void-select, void-combobox, void-progress) {
103
+ margin-block-start: var(--void-gap-inside);
104
+ }
105
+
106
+ /* The actions close the dialog: they stand clear of the last line or field
107
+ of the body (the body's own padding plus a step), and keep the container
108
+ padding below and beside them. */
109
+ void-dialog-actions {
110
+ display: flex;
111
+ flex-wrap: wrap;
112
+ justify-content: flex-end;
113
+ gap: var(--void-space-2);
114
+ padding: var(--void-space-3) var(--void-container-padding) var(--void-container-padding);
115
+ }
116
+
117
+ /* Actions straight after the title: they need their own top space. */
118
+ :is(void-dialog-title, void-dialog-description) + void-dialog-actions {
119
+ padding-top: var(--void-container-padding);
120
+ }
121
+
122
+ void-dialog::part(close) {
123
+ position: absolute;
124
+ /* Centred in the title row. */
125
+ top: calc((var(--_void-dialog-row) - 1.5rem) / 2);
126
+ inset-inline-end: var(--void-container-padding);
51
127
  display: inline-flex;
52
128
  align-items: center;
53
129
  justify-content: center;
@@ -62,16 +138,14 @@ void-dialog[size="xl"] .void-dialog-panel { max-width: 64rem; }
62
138
  cursor: pointer;
63
139
  opacity: 0.6;
64
140
  transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
65
- flex-shrink: 0;
66
141
  }
67
142
 
68
- .void-dialog-close:hover {
143
+ void-dialog::part(close):hover {
69
144
  opacity: 1;
70
145
  }
71
146
 
72
- .void-dialog-body {
73
- padding: var(--void-space-5);
74
- font-family: var(--void-font-sans);
75
- font-size: var(--void-text-sm);
76
- color: var(--void-color-text);
147
+ void-dialog::part(close):focus-visible {
148
+ opacity: 1;
149
+ outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
150
+ outline-offset: var(--void-focus-ring-offset);
77
151
  }
@@ -2,10 +2,13 @@ void-divider {
2
2
  display: flex;
3
3
  align-items: center;
4
4
  gap: var(--void-space-3);
5
- color: var(--void-color-text-muted);
6
- font-family: var(--void-font-sans);
7
- font-size: var(--void-text-xs);
8
- font-weight: var(--void-weight-medium);
5
+ font-family: var(--void-type-label-family);
6
+ font-size: var(--void-type-label-size);
7
+ line-height: var(--void-type-label-leading);
8
+ font-weight: var(--void-type-label-weight);
9
+ letter-spacing: var(--void-type-label-tracking);
10
+ text-transform: var(--void-type-label-case);
11
+ color: var(--void-type-label-color);
9
12
  }
10
13
 
11
14
  /* Horizontal line via pseudo-elements */
@@ -0,0 +1,105 @@
1
+ /* ============================================================
2
+ void-donut-chart — light DOM SVG, theme-driven
3
+ ============================================================ */
4
+ /* @tokens void-donut-chart
5
+ --void-donut-chart-size Setting: the largest width (and height) of the chart. It fills its container up to this and shrinks with it below. */
6
+
7
+ /* A square that fills its container up to a ceiling. Without the ceiling
8
+ the SVG (width: 100%) grew to the full width of whatever held it, so a
9
+ donut beside a bar chart was several times its height. */
10
+ void-donut-chart {
11
+ display: block;
12
+ box-sizing: border-box;
13
+ inline-size: 100%;
14
+ max-inline-size: var(--void-donut-chart-size, 13.75rem);
15
+ aspect-ratio: 1;
16
+ font-family: var(--void-font-mono);
17
+ color: var(--void-color-text);
18
+ }
19
+
20
+ void-donut-chart svg {
21
+ display: block;
22
+ width: 100%;
23
+ height: 100%;
24
+ overflow: visible;
25
+ }
26
+
27
+ /* Segment — default 'filled' variant.
28
+ Donut shape is inherently circular — sharp/curvy doesn't apply here.
29
+ Use the `gaps` prop on the component to control whitespace between
30
+ segments (boolean or %). */
31
+ void-donut-chart .void-donut-chart-segment {
32
+ fill: var(--segment-color, var(--void-color-accent));
33
+ stroke: var(--segment-color, var(--void-color-accent));
34
+ stroke-width: var(--void-chart-stroke-none);
35
+ }
36
+
37
+ /* 'outline' variant — tinted fill + stroke */
38
+ void-donut-chart[variant="outline"] .void-donut-chart-segment {
39
+ fill: color-mix(in srgb, var(--segment-color, var(--void-color-accent)) 18%, transparent);
40
+ stroke-width: var(--void-chart-stroke-thin);
41
+ }
42
+
43
+ /* 'wireframe' variant — stroke only */
44
+ void-donut-chart[variant="wireframe"] .void-donut-chart-segment {
45
+ fill: none;
46
+ stroke-width: var(--void-chart-stroke-thin);
47
+ }
48
+
49
+ /* Center total (when show-total) */
50
+ void-donut-chart .void-donut-chart-total text {
51
+ font-family: var(--void-type-value-family);
52
+ font-size: var(--void-text-xl);
53
+ font-weight: var(--void-type-value-weight);
54
+ font-variant-numeric: var(--void-type-value-numeric);
55
+ fill: var(--void-type-value-color);
56
+ letter-spacing: var(--void-type-value-tracking);
57
+ }
58
+
59
+ /* Per-segment labels (when show-values).
60
+ paint-order: stroke draws a bg-colored halo BEHIND the text, making it
61
+ legible against any segment color (white text on white segment would
62
+ otherwise vanish). The halo inverts with theme — black in dark mode,
63
+ white in light mode. */
64
+ void-donut-chart .void-donut-chart-labels text {
65
+ font-family: var(--void-font-mono);
66
+ font-size: var(--void-text-2xs);
67
+ font-weight: var(--void-weight-medium);
68
+ fill: var(--void-color-text);
69
+ letter-spacing: var(--void-tracking-wide);
70
+ paint-order: stroke;
71
+ stroke: var(--void-color-bg);
72
+ stroke-width: var(--void-chart-stroke-thick);
73
+ stroke-linejoin: round;
74
+ stroke-linecap: round;
75
+ pointer-events: none;
76
+ }
77
+
78
+ /* ── Hover tooltip ───────────────────────────────────────────── */
79
+
80
+ void-donut-chart .void-donut-chart-tooltip-bg {
81
+ fill: var(--void-color-bg-elevated);
82
+ stroke: var(--void-color-border);
83
+ stroke-width: var(--void-chart-stroke-hairline);
84
+ }
85
+
86
+ void-donut-chart .void-donut-chart-tooltip-name {
87
+ font-family: var(--void-type-label-family);
88
+ font-size: var(--void-type-label-size);
89
+ font-weight: var(--void-type-label-weight);
90
+ fill: var(--void-color-text);
91
+ text-transform: var(--void-type-label-case);
92
+ letter-spacing: var(--void-type-label-tracking);
93
+ }
94
+
95
+ void-donut-chart .void-donut-chart-tooltip-value {
96
+ font-family: var(--void-font-mono);
97
+ font-size: var(--void-text-xs);
98
+ font-weight: var(--void-weight-medium);
99
+ fill: var(--void-color-text);
100
+ }
101
+
102
+ void-donut-chart .void-donut-chart-tooltip-pct {
103
+ fill: var(--void-color-text-secondary);
104
+ font-weight: var(--void-weight-normal);
105
+ }