@voidable/theme 0.7.0 → 0.8.1

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 (323) hide show
  1. package/README.md +133 -8
  2. package/dist/base.css +20 -0
  3. package/dist/base.min.css +1 -0
  4. package/dist/component-tokens.json +1015 -0
  5. package/dist/components/accordion.css +149 -0
  6. package/dist/components/accordion.min.css +1 -0
  7. package/dist/components/action-input.css +416 -0
  8. package/dist/components/action-input.min.css +1 -0
  9. package/dist/components/alert.css +151 -0
  10. package/dist/components/alert.min.css +1 -0
  11. package/dist/components/avatar.css +73 -0
  12. package/dist/components/avatar.min.css +1 -0
  13. package/dist/components/badge.css +108 -0
  14. package/dist/components/badge.min.css +1 -0
  15. package/dist/components/banner.css +149 -0
  16. package/dist/components/banner.min.css +1 -0
  17. package/dist/components/bar-chart.css +101 -0
  18. package/dist/components/bar-chart.min.css +1 -0
  19. package/dist/components/breadcrumbs.css +82 -0
  20. package/dist/components/breadcrumbs.min.css +1 -0
  21. package/dist/components/button.css +237 -0
  22. package/dist/components/button.min.css +1 -0
  23. package/dist/components/calendar.css +669 -0
  24. package/dist/components/calendar.min.css +1 -0
  25. package/dist/components/card.css +161 -0
  26. package/dist/components/card.min.css +1 -0
  27. package/dist/components/carousel.css +223 -0
  28. package/dist/components/carousel.min.css +1 -0
  29. package/dist/components/checkbox-group.css +68 -0
  30. package/dist/components/checkbox-group.min.css +1 -0
  31. package/dist/components/checkbox.css +169 -0
  32. package/dist/components/checkbox.min.css +1 -0
  33. package/dist/components/collapsible.css +152 -0
  34. package/dist/components/collapsible.min.css +1 -0
  35. package/dist/components/color-picker.css +364 -0
  36. package/dist/components/color-picker.min.css +1 -0
  37. package/dist/components/combobox.css +548 -0
  38. package/dist/components/combobox.min.css +1 -0
  39. package/dist/components/compose-input.css +117 -0
  40. package/dist/components/compose-input.min.css +1 -0
  41. package/dist/components/dialog.css +175 -0
  42. package/dist/components/dialog.min.css +1 -0
  43. package/dist/components/divider.css +84 -0
  44. package/dist/components/divider.min.css +1 -0
  45. package/dist/components/donut-chart.css +122 -0
  46. package/dist/components/donut-chart.min.css +1 -0
  47. package/dist/components/drawer.css +230 -0
  48. package/dist/components/drawer.min.css +1 -0
  49. package/dist/components/dropdown-menu.css +274 -0
  50. package/dist/components/dropdown-menu.min.css +1 -0
  51. package/dist/components/editable.css +141 -0
  52. package/dist/components/editable.min.css +1 -0
  53. package/dist/components/error-fallback.css +129 -0
  54. package/dist/components/error-fallback.min.css +1 -0
  55. package/dist/components/field.css +103 -0
  56. package/dist/components/field.min.css +1 -0
  57. package/dist/components/file-upload.css +156 -0
  58. package/dist/components/file-upload.min.css +1 -0
  59. package/dist/components/gauge.css +186 -0
  60. package/dist/components/gauge.min.css +1 -0
  61. package/dist/components/hamburger.css +114 -0
  62. package/dist/components/hamburger.min.css +1 -0
  63. package/dist/components/hover-card.css +220 -0
  64. package/dist/components/hover-card.min.css +1 -0
  65. package/dist/components/indicator.css +159 -0
  66. package/dist/components/indicator.min.css +1 -0
  67. package/dist/components/input.css +134 -0
  68. package/dist/components/input.min.css +1 -0
  69. package/dist/components/line-chart.css +157 -0
  70. package/dist/components/line-chart.min.css +1 -0
  71. package/dist/components/list.css +90 -0
  72. package/dist/components/list.min.css +1 -0
  73. package/dist/components/menu.css +208 -0
  74. package/dist/components/menu.min.css +1 -0
  75. package/dist/components/multiselect.css +397 -0
  76. package/dist/components/multiselect.min.css +1 -0
  77. package/dist/components/nav-bar.css +75 -0
  78. package/dist/components/nav-bar.min.css +1 -0
  79. package/dist/components/nav-menu.css +173 -0
  80. package/dist/components/nav-menu.min.css +1 -0
  81. package/dist/components/number-input.css +272 -0
  82. package/dist/components/number-input.min.css +1 -0
  83. package/dist/components/pagination.css +128 -0
  84. package/dist/components/pagination.min.css +1 -0
  85. package/dist/components/panel.css +96 -0
  86. package/dist/components/panel.min.css +1 -0
  87. package/dist/components/pin-input.css +185 -0
  88. package/dist/components/pin-input.min.css +1 -0
  89. package/dist/components/popover.css +227 -0
  90. package/dist/components/popover.min.css +1 -0
  91. package/dist/components/progress.css +148 -0
  92. package/dist/components/progress.min.css +1 -0
  93. package/dist/components/radio-group.css +64 -0
  94. package/dist/components/radio-group.min.css +1 -0
  95. package/dist/components/radio.css +174 -0
  96. package/dist/components/radio.min.css +1 -0
  97. package/dist/components/scroll-area.css +83 -0
  98. package/dist/components/scroll-area.min.css +1 -0
  99. package/dist/components/segmented-control.css +158 -0
  100. package/dist/components/segmented-control.min.css +1 -0
  101. package/dist/components/select.css +207 -0
  102. package/dist/components/select.min.css +1 -0
  103. package/dist/components/sidebar.css +62 -0
  104. package/dist/components/sidebar.min.css +1 -0
  105. package/dist/components/skeleton.css +85 -0
  106. package/dist/components/skeleton.min.css +1 -0
  107. package/dist/components/slider.css +193 -0
  108. package/dist/components/slider.min.css +1 -0
  109. package/dist/components/spinner.css +100 -0
  110. package/dist/components/spinner.min.css +1 -0
  111. package/dist/components/stat.css +177 -0
  112. package/dist/components/stat.min.css +1 -0
  113. package/dist/components/status-dot.css +60 -0
  114. package/dist/components/status-dot.min.css +1 -0
  115. package/dist/components/stepper.css +114 -0
  116. package/dist/components/stepper.min.css +1 -0
  117. package/dist/components/switch.css +175 -0
  118. package/dist/components/switch.min.css +1 -0
  119. package/dist/components/table.css +416 -0
  120. package/dist/components/table.min.css +1 -0
  121. package/dist/components/tabs.css +185 -0
  122. package/dist/components/tabs.min.css +1 -0
  123. package/dist/components/tag.css +134 -0
  124. package/dist/components/tag.min.css +1 -0
  125. package/dist/components/tags-input.css +267 -0
  126. package/dist/components/tags-input.min.css +1 -0
  127. package/dist/components/textarea.css +127 -0
  128. package/dist/components/textarea.min.css +1 -0
  129. package/dist/components/toast.css +200 -0
  130. package/dist/components/toast.min.css +1 -0
  131. package/dist/components/toggle-group.css +59 -0
  132. package/dist/components/toggle-group.min.css +1 -0
  133. package/dist/components/toggle.css +139 -0
  134. package/dist/components/toggle.min.css +1 -0
  135. package/dist/components/tooltip.css +221 -0
  136. package/dist/components/tooltip.min.css +1 -0
  137. package/dist/core.css +9657 -0
  138. package/dist/core.min.css +1 -0
  139. package/dist/dtcg/aurora.dark.tokens.json +4723 -0
  140. package/dist/dtcg/aurora.light.tokens.json +4723 -0
  141. package/dist/dtcg/capsule.dark.tokens.json +4723 -0
  142. package/dist/dtcg/capsule.light.tokens.json +4723 -0
  143. package/dist/dtcg/console.dark.tokens.json +4723 -0
  144. package/dist/dtcg/console.light.tokens.json +4723 -0
  145. package/dist/dtcg/dune.dark.tokens.json +4723 -0
  146. package/dist/dtcg/dune.light.tokens.json +4723 -0
  147. package/dist/dtcg/iris.dark.tokens.json +4723 -0
  148. package/dist/dtcg/iris.light.tokens.json +4723 -0
  149. package/dist/dtcg/loft.dark.tokens.json +5203 -0
  150. package/dist/dtcg/loft.light.tokens.json +5203 -0
  151. package/dist/dtcg/orbit.dark.tokens.json +4723 -0
  152. package/dist/dtcg/orbit.light.tokens.json +4723 -0
  153. package/dist/dtcg/paper.dark.tokens.json +4723 -0
  154. package/dist/dtcg/paper.light.tokens.json +4723 -0
  155. package/dist/dtcg/slab.dark.tokens.json +4969 -0
  156. package/dist/dtcg/slab.light.tokens.json +4969 -0
  157. package/dist/dtcg/void.dark.tokens.json +4723 -0
  158. package/dist/dtcg/void.light.tokens.json +4723 -0
  159. package/dist/dtcg/voidable.resolver.json +117 -0
  160. package/dist/exports.json +708 -0
  161. package/dist/json/aurora.dark.json +394 -0
  162. package/dist/json/aurora.light.json +394 -0
  163. package/dist/json/capsule.dark.json +394 -0
  164. package/dist/json/capsule.light.json +394 -0
  165. package/dist/json/console.dark.json +394 -0
  166. package/dist/json/console.light.json +394 -0
  167. package/dist/json/dune.dark.json +394 -0
  168. package/dist/json/dune.light.json +394 -0
  169. package/dist/json/iris.dark.json +394 -0
  170. package/dist/json/iris.light.json +394 -0
  171. package/dist/json/loft.dark.json +423 -0
  172. package/dist/json/loft.light.json +423 -0
  173. package/dist/json/orbit.dark.json +394 -0
  174. package/dist/json/orbit.light.json +394 -0
  175. package/dist/json/paper.dark.json +394 -0
  176. package/dist/json/paper.light.json +394 -0
  177. package/dist/json/slab.dark.json +412 -0
  178. package/dist/json/slab.light.json +412 -0
  179. package/dist/json/void.dark.json +394 -0
  180. package/dist/json/void.light.json +394 -0
  181. package/dist/knobs.css +21 -0
  182. package/dist/knobs.json +362 -0
  183. package/dist/knobs.min.css +1 -0
  184. package/dist/layers.css +2 -0
  185. package/dist/layers.min.css +1 -0
  186. package/dist/names.d.ts +519 -0
  187. package/dist/names.js +719 -0
  188. package/dist/patterns/app-shell.css +136 -0
  189. package/dist/patterns/app-shell.min.css +1 -0
  190. package/dist/patterns/data.css +430 -0
  191. package/dist/patterns/data.min.css +1 -0
  192. package/dist/patterns/media.css +288 -0
  193. package/dist/patterns/media.min.css +1 -0
  194. package/dist/patterns/page.css +323 -0
  195. package/dist/patterns/page.min.css +1 -0
  196. package/dist/patterns/shell.css +328 -0
  197. package/dist/patterns/shell.min.css +1 -0
  198. package/dist/primitives.css +175 -0
  199. package/dist/primitives.min.css +1 -0
  200. package/dist/reset.css +44 -0
  201. package/dist/reset.min.css +1 -0
  202. package/dist/skin.d.ts +14 -0
  203. package/dist/skin.js +158 -0
  204. package/dist/skins/loft.css +94 -0
  205. package/dist/skins/loft.min.css +1 -0
  206. package/dist/skins/slab.css +99 -0
  207. package/dist/skins/slab.min.css +1 -0
  208. package/dist/themes/aurora.css +18 -0
  209. package/dist/themes/aurora.min.css +1 -0
  210. package/dist/themes/capsule.css +18 -0
  211. package/dist/themes/capsule.min.css +1 -0
  212. package/dist/themes/console.css +18 -0
  213. package/dist/themes/console.min.css +1 -0
  214. package/dist/themes/dune.css +18 -0
  215. package/dist/themes/dune.min.css +1 -0
  216. package/dist/themes/iris.css +18 -0
  217. package/dist/themes/iris.min.css +1 -0
  218. package/dist/themes/orbit.css +18 -0
  219. package/dist/themes/orbit.min.css +1 -0
  220. package/dist/themes/paper.css +19 -0
  221. package/dist/themes/paper.min.css +1 -0
  222. package/dist/themes/void.css +18 -0
  223. package/dist/themes/void.min.css +1 -0
  224. package/dist/tokens.css +695 -0
  225. package/dist/tokens.min.css +1 -0
  226. package/dist/type.css +99 -0
  227. package/dist/type.min.css +1 -0
  228. package/dist/void.css +9673 -0
  229. package/dist/void.min.css +1 -0
  230. package/package.json +66 -8
  231. package/src/app-shell/detail.css +7 -5
  232. package/src/app-shell/subtable.css +7 -6
  233. package/src/base.css +28 -0
  234. package/src/components/accordion.css +96 -19
  235. package/src/components/action-input.css +51 -61
  236. package/src/components/alert.css +63 -23
  237. package/src/components/avatar.css +0 -2
  238. package/src/components/badge.css +35 -25
  239. package/src/components/banner.css +60 -19
  240. package/src/components/bar-chart.css +10 -3
  241. package/src/components/breadcrumbs.css +20 -16
  242. package/src/components/button.css +130 -55
  243. package/src/components/calendar.css +40 -17
  244. package/src/components/card.css +122 -23
  245. package/src/components/carousel.css +85 -118
  246. package/src/components/checkbox-group.css +3 -1
  247. package/src/components/checkbox.css +18 -23
  248. package/src/components/collapsible.css +95 -29
  249. package/src/components/color-picker.css +10 -10
  250. package/src/components/combobox.css +47 -29
  251. package/src/components/compose-input.css +3 -3
  252. package/src/components/dialog.css +115 -41
  253. package/src/components/divider.css +7 -4
  254. package/src/components/donut-chart.css +25 -15
  255. package/src/components/drawer.css +135 -68
  256. package/src/components/dropdown-menu.css +21 -43
  257. package/src/components/editable.css +7 -7
  258. package/src/components/error-fallback.css +48 -27
  259. package/src/components/field.css +12 -5
  260. package/src/components/file-upload.css +2 -1
  261. package/src/components/gauge.css +35 -23
  262. package/src/components/hamburger.css +10 -10
  263. package/src/components/hover-card.css +13 -113
  264. package/src/components/indicator.css +22 -18
  265. package/src/components/input.css +15 -12
  266. package/src/components/line-chart.css +10 -10
  267. package/src/components/list.css +28 -7
  268. package/src/components/menu.css +48 -33
  269. package/src/components/multiselect.css +57 -40
  270. package/src/components/nav-bar.css +23 -14
  271. package/src/components/nav-menu.css +31 -22
  272. package/src/components/number-input.css +56 -79
  273. package/src/components/overlay.css +215 -0
  274. package/src/components/pagination.css +42 -31
  275. package/src/components/panel.css +37 -11
  276. package/src/components/pin-input.css +23 -22
  277. package/src/components/popover.css +19 -35
  278. package/src/components/progress.css +19 -10
  279. package/src/components/radio-group.css +2 -1
  280. package/src/components/radio.css +15 -20
  281. package/src/components/scroll-area.css +3 -3
  282. package/src/components/segmented-control.css +46 -29
  283. package/src/components/select.css +99 -31
  284. package/src/components/sidebar.css +8 -4
  285. package/src/components/skeleton.css +8 -3
  286. package/src/components/slider.css +4 -2
  287. package/src/components/spinner.css +5 -4
  288. package/src/components/stat.css +59 -52
  289. package/src/components/status-dot.css +0 -1
  290. package/src/components/switch.css +18 -26
  291. package/src/components/table.css +443 -16
  292. package/src/components/tabs.css +92 -29
  293. package/src/components/tag.css +44 -20
  294. package/src/components/tags-input.css +43 -55
  295. package/src/components/textarea.css +15 -12
  296. package/src/components/toast.css +84 -22
  297. package/src/components/toggle.css +35 -42
  298. package/src/components/tooltip.css +19 -38
  299. package/src/core.css +98 -0
  300. package/src/forced-colors.css +134 -0
  301. package/src/index.css +4 -77
  302. package/src/knobs.css +101 -0
  303. package/src/layers.css +38 -0
  304. package/src/media/media.css +258 -0
  305. package/src/media/surface.css +143 -0
  306. package/src/patterns/data.css +461 -0
  307. package/src/patterns/page.css +348 -0
  308. package/src/patterns/shell.css +371 -0
  309. package/src/pre-upgrade.css +202 -0
  310. package/src/primitives.css +19 -97
  311. package/src/reset.css +45 -21
  312. package/src/skins/loft.css +114 -0
  313. package/src/skins/slab.css +107 -0
  314. package/src/themes/aurora.css +16 -0
  315. package/src/themes/capsule.css +16 -0
  316. package/src/themes/console.css +16 -0
  317. package/src/themes/dune.css +16 -0
  318. package/src/themes/iris.css +16 -0
  319. package/src/themes/orbit.css +16 -0
  320. package/src/themes/paper.css +18 -0
  321. package/src/themes/void.css +16 -0
  322. package/src/tokens.css +552 -98
  323. package/src/type.css +103 -0
@@ -2,44 +2,54 @@
2
2
  void-badge — Tone system component
3
3
  ============================================================ */
4
4
 
5
+ /* @tokens void-badge
6
+ --void-badge-height Least height and width. Applies at every size.
7
+ --void-badge-padding Inline padding.
8
+ --void-badge-font-size Size of the text.
9
+ --void-badge-radius Corner radius: a pill by default, whatever the radius knob says.
10
+ --void-badge-border Edge colour of an outline badge, in place of a tint of its tone. */
11
+
5
12
  void-badge {
6
- --tone: var(--void-color-accent);
13
+ --_void-tone: var(--void-color-accent);
14
+ --_void-badge-height: var(--void-badge-height, 1.375rem);
15
+ --_void-badge-padding: var(--void-badge-padding, var(--void-space-2));
16
+ --_void-badge-font-size: var(--void-badge-font-size, var(--void-text-xs));
7
17
 
8
18
  display: inline-grid;
9
19
  place-content: center;
10
- padding: 0.25rem 0.375rem 0.125rem;
11
- min-width: 1.25rem;
12
- min-height: 1.25rem;
13
- border: 1px solid transparent;
14
- border-radius: var(--void-radius-full);
15
- background: var(--tone);
20
+ padding: 0 var(--_void-badge-padding);
21
+ min-width: var(--_void-badge-height);
22
+ min-height: var(--_void-badge-height);
23
+ border: var(--void-control-border-width) solid transparent;
24
+ border-radius: var(--void-badge-radius, var(--void-radius-full));
25
+ background: var(--_void-tone);
16
26
  color: var(--void-color-text-on-accent);
17
27
  font-family: var(--void-font-sans);
18
- font-size: var(--void-text-xs);
19
- font-weight: var(--void-weight-semibold);
20
- line-height: var(--void-leading-tight);
28
+ font-size: var(--_void-badge-font-size);
29
+ font-weight: var(--void-weight-medium);
30
+ font-variant-numeric: tabular-nums;
31
+ line-height: var(--void-leading-none);
21
32
  white-space: nowrap;
22
33
  text-align: center;
23
34
  }
24
35
 
25
36
  /* Colors */
26
- void-badge[color="error"] { --tone: var(--void-color-error); }
27
- void-badge[color="warning"] { --tone: var(--void-color-warning); }
28
- void-badge[color="caution"] { --tone: var(--void-color-caution); }
29
- void-badge[color="success"] { --tone: var(--void-color-success); }
30
- void-badge[color="info"] { --tone: var(--void-color-info); }
31
- void-badge[color="notice"] { --tone: var(--void-color-notice); }
32
- void-badge[color="highlight"] { --tone: var(--void-color-highlight); }
37
+ void-badge[color="error"] { --_void-tone: var(--void-color-error); }
38
+ void-badge[color="warning"] { --_void-tone: var(--void-color-warning); }
39
+ void-badge[color="caution"] { --_void-tone: var(--void-color-caution); }
40
+ void-badge[color="success"] { --_void-tone: var(--void-color-success); }
41
+ void-badge[color="info"] { --_void-tone: var(--void-color-info); }
42
+ void-badge[color="notice"] { --_void-tone: var(--void-color-notice); }
43
+ void-badge[color="highlight"] { --_void-tone: var(--void-color-highlight); }
33
44
 
34
- /* Variants */
45
+ /* Variants — outline is the status chip: a tint of the tone, the tone
46
+ as text, and a faint edge. */
35
47
  void-badge[variant="outline"] {
36
- background: color-mix(in srgb, var(--tone) 14%, transparent);
37
- border: 1px solid color-mix(in srgb, var(--tone) 36%, transparent);
38
- color: var(--tone);
48
+ background: color-mix(in srgb, var(--_void-tone) var(--void-tone-tint), var(--void-color-control-fill));
49
+ border: var(--void-control-border-width) solid var(--void-badge-border, color-mix(in srgb, var(--_void-tone) 24%, transparent));
50
+ color: var(--_void-tone);
39
51
  }
40
52
 
41
53
  /* Sizes */
42
- void-badge[size="sm"] { min-width: 1rem; min-height: 1rem; font-size: var(--void-text-2xs); padding: 0.0625rem var(--void-space-1) 0; }
43
- void-badge[size="lg"] { min-width: 1.75rem; min-height: 1.75rem; font-size: var(--void-text-sm); padding: 0.3125rem var(--void-space-3) 0.1875rem; }
44
- void-badge[size="xl"] { min-width: 2.25rem; min-height: 2.25rem; font-size: var(--void-text-base); padding: 0.375rem var(--void-space-4) 0.25rem; }
45
- void-badge[size="xxl"] { min-width: 3rem; min-height: 3rem; font-size: var(--void-text-lg); padding: 0.4375rem var(--void-space-5) 0.3125rem; }
54
+ void-badge[size="sm"] { --_void-badge-height: var(--void-badge-height, 1.125rem); --_void-badge-padding: var(--void-badge-padding, var(--void-space-1h)); --_void-badge-font-size: var(--void-badge-font-size, var(--void-type-label-size)); }
55
+ void-badge[size="lg"] { --_void-badge-height: var(--void-badge-height, 1.75rem); --_void-badge-padding: var(--void-badge-padding, var(--void-space-3)); --_void-badge-font-size: var(--void-badge-font-size, var(--void-text-sm)); }
@@ -1,37 +1,65 @@
1
1
  void-banner {
2
- --tone: var(--void-color-accent);
3
- --tone-subtle: color-mix(in srgb, var(--tone) 14%, transparent);
4
- --tone-border: color-mix(in srgb, var(--tone) 36%, transparent);
2
+ --_void-tone: var(--void-color-accent);
3
+ --_void-tone-subtle: color-mix(in srgb, var(--_void-tone) var(--void-tone-tint), transparent);
4
+ --_void-tone-border: color-mix(in srgb, var(--_void-tone) 36%, transparent);
5
5
 
6
6
  display: flex;
7
7
  align-items: center;
8
8
  gap: var(--void-space-3);
9
- padding: var(--void-space-3) var(--void-space-4);
10
- border: 1px solid var(--tone-border);
9
+ padding: var(--void-space-3) var(--void-container-padding);
10
+ border: var(--void-container-border-width) solid var(--_void-tone-border);
11
11
  border-radius: var(--void-radius-md);
12
- background: var(--tone-subtle);
12
+ background: var(--_void-tone-subtle);
13
13
  color: var(--void-color-text);
14
14
  font-family: var(--void-font-sans);
15
- font-size: var(--void-text-sm);
15
+ font-size: var(--void-type-body-size);
16
16
  }
17
17
 
18
18
  void-banner[variant="filled"] {
19
- background: var(--tone);
20
- border-color: var(--tone);
19
+ background: var(--_void-tone);
20
+ border-color: var(--_void-tone);
21
21
  color: var(--void-color-text-on-accent);
22
22
  }
23
23
 
24
- void-banner[color="error"] { --tone: var(--void-color-error); }
25
- void-banner[color="warning"] { --tone: var(--void-color-warning); }
26
- void-banner[color="caution"] { --tone: var(--void-color-caution); }
27
- void-banner[color="success"] { --tone: var(--void-color-success); }
28
- void-banner[color="info"] { --tone: var(--void-color-info); }
29
- void-banner[color="notice"] { --tone: var(--void-color-notice); }
24
+ void-banner[color="error"] { --_void-tone: var(--void-color-error); }
25
+ void-banner[color="warning"] { --_void-tone: var(--void-color-warning); }
26
+ void-banner[color="caution"] { --_void-tone: var(--void-color-caution); }
27
+ void-banner[color="highlight"] { --_void-tone: var(--void-color-highlight); }
28
+ void-banner[color="success"] { --_void-tone: var(--void-color-success); }
29
+ void-banner[color="info"] { --_void-tone: var(--void-color-info); }
30
+ void-banner[color="notice"] { --_void-tone: var(--void-color-notice); }
30
31
 
31
- .void-banner-close {
32
- order: 1;
33
- margin-left: auto;
32
+ /* Parts (CSS-only): title, description, actions and the close control the
33
+ author wrote. The text takes the room, the buttons sit at the far end. */
34
+ void-banner-title {
34
35
  flex-shrink: 0;
36
+ font-weight: var(--void-weight-medium);
37
+ }
38
+
39
+ void-banner-description {
40
+ flex: 1 1 auto;
41
+ min-width: 0;
42
+ }
43
+
44
+ void-banner-actions {
45
+ display: flex;
46
+ flex-shrink: 0;
47
+ align-items: center;
48
+ gap: var(--void-space-2);
49
+ margin-inline-start: auto;
50
+ }
51
+
52
+ void-banner-close {
53
+ display: flex;
54
+ flex-shrink: 0;
55
+ margin-inline-start: auto;
56
+ }
57
+
58
+ void-banner-actions + void-banner-close {
59
+ margin-inline-start: 0;
60
+ }
61
+
62
+ void-banner-close > button {
35
63
  display: inline-flex;
36
64
  align-items: center;
37
65
  justify-content: center;
@@ -48,6 +76,19 @@ void-banner[color="notice"] { --tone: var(--void-color-notice); }
48
76
  transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
49
77
  }
50
78
 
51
- .void-banner-close:hover {
79
+ void-banner-close > button:hover {
52
80
  opacity: 1;
53
81
  }
82
+
83
+ void-banner-close > button:focus-visible {
84
+ opacity: 1;
85
+ outline: var(--void-focus-ring-width) solid currentColor;
86
+ outline-offset: var(--void-focus-ring-offset);
87
+ }
88
+
89
+ /* The attribute is reflected, so the plain banner carries color="default":
90
+ it is a quiet container, not an accent-tinted one. */
91
+ void-banner:not([variant="filled"]):is([color="default"], :not([color])) {
92
+ --_void-tone-subtle: var(--void-color-bg-secondary);
93
+ --_void-tone-border: var(--void-color-border);
94
+ }
@@ -19,7 +19,14 @@ void-bar-chart svg {
19
19
  /* Gridlines */
20
20
  void-bar-chart .void-bar-chart-grid line {
21
21
  stroke: var(--void-chart-grid);
22
- stroke-width: 1;
22
+ stroke-width: var(--void-chart-stroke-hairline);
23
+ shape-rendering: crispEdges;
24
+ }
25
+
26
+ /* The zero line when values go negative: bars grow up and down from it. */
27
+ void-bar-chart .void-bar-chart-baseline {
28
+ stroke: var(--void-color-text-muted);
29
+ stroke-width: var(--void-chart-stroke-hairline);
23
30
  shape-rendering: crispEdges;
24
31
  }
25
32
 
@@ -48,14 +55,14 @@ void-bar-chart .void-bar-chart-bar {
48
55
  void-bar-chart[variant="outline"] .void-bar-chart-bar {
49
56
  fill: color-mix(in srgb, var(--series-color, var(--void-color-accent)) 18%, transparent);
50
57
  stroke: var(--series-color, var(--void-color-accent));
51
- stroke-width: 1.5;
58
+ stroke-width: var(--void-chart-stroke-thin);
52
59
  }
53
60
 
54
61
  /* 'wireframe' variant — stroke only, no fill */
55
62
  void-bar-chart[variant="wireframe"] .void-bar-chart-bar {
56
63
  fill: none;
57
64
  stroke: var(--series-color, var(--void-color-accent));
58
- stroke-width: 1.5;
65
+ stroke-width: var(--void-chart-stroke-thin);
59
66
  }
60
67
 
61
68
  /* Value labels above bars */
@@ -3,39 +3,43 @@ void-breadcrumbs {
3
3
  font-family: var(--void-font-sans);
4
4
  }
5
5
 
6
- .void-breadcrumbs-list {
6
+ /* A flex container, never `display: contents`: some engines drop list semantics from boxless lists. */
7
+ void-breadcrumbs-list {
7
8
  display: flex;
8
9
  flex-wrap: wrap;
9
10
  align-items: center;
10
- list-style: none;
11
- padding: 0;
12
- margin: 0;
13
- gap: var(--void-space-1);
11
+ gap: var(--void-space-2);
14
12
  }
15
13
 
16
- .void-breadcrumbs-item {
14
+ void-breadcrumbs-item {
17
15
  display: inline-flex;
18
16
  align-items: center;
19
- font-size: var(--void-text-sm);
20
- color: var(--void-color-text-muted);
17
+ font-family: var(--void-type-label-family);
18
+ font-size: var(--void-type-label-size);
19
+ line-height: var(--void-type-label-leading);
20
+ font-weight: var(--void-type-label-weight);
21
+ letter-spacing: var(--void-type-label-tracking);
22
+ text-transform: var(--void-type-label-case);
23
+ color: var(--void-type-label-color);
21
24
  }
22
25
 
23
- .void-breadcrumbs-item + .void-breadcrumbs-item::before {
24
- content: attr(data-separator, "/");
25
- margin-right: var(--void-space-1);
26
+ /* The separator is generated content (hidden from assistive technology by the empty alternative text), so
27
+ items come and go, reorder and re-render without the component touching them. */
28
+ void-breadcrumbs-item + void-breadcrumbs-item::before {
29
+ content: var(--_void-breadcrumbs-separator, "/") / "";
30
+ margin-inline-end: var(--void-space-2);
26
31
  color: var(--void-color-text-muted);
27
- opacity: 0.5;
28
32
  }
29
33
 
30
- .void-breadcrumbs-item:last-child {
34
+ void-breadcrumbs-item[aria-current] {
31
35
  color: var(--void-color-text);
32
36
  }
33
37
 
34
- .void-breadcrumbs-item a {
35
- color: var(--void-color-text-muted);
38
+ void-breadcrumbs-item a {
39
+ color: inherit;
36
40
  text-decoration: none;
37
41
  }
38
42
 
39
- .void-breadcrumbs-item a:hover {
43
+ void-breadcrumbs-item a:hover {
40
44
  color: var(--void-color-text);
41
45
  }
@@ -1,35 +1,54 @@
1
1
  /* ============================================================
2
2
  void-button — Tone system component
3
+ Three variants, one size: outline (default), filled and ghost are
4
+ the same height and padding at each size step, so buttons in a row
5
+ line up whatever their variant.
3
6
  ============================================================ */
4
7
 
8
+ /* @tokens void-button
9
+ --void-button-height Height of the button. Applies at every size step; for a proportional change set the --void-control-* steps instead.
10
+ --void-button-padding Inline padding. Applies at every size step; for a proportional change set the --void-control-* steps instead.
11
+ --void-button-font-size Size of the label. Applies at every size step; for a proportional change set the --void-control-* steps instead.
12
+ --void-button-font-weight Weight of the label.
13
+ --void-button-radius Corner radius.
14
+ --void-button-border Edge colour of the default outline button. A coloured button keeps the edge of its tone; a filled one is its tone.
15
+ --void-button-shadow Shadow of the outline and filled button at rest. A ghost button never casts one. */
16
+
5
17
  void-button {
6
18
  /* Tone system — base defaults to accent (monochrome white/black) */
7
- --tone: var(--void-color-accent);
8
- --tone-text: var(--tone);
9
- --tone-subtle: color-mix(in srgb, var(--tone) 14%, transparent);
10
- --tone-border: color-mix(in srgb, var(--tone) 36%, transparent);
11
- --tone-hover: color-mix(in srgb, var(--tone) 22%, transparent);
19
+ --_void-tone: var(--void-color-accent);
20
+ --_void-tone-text: var(--void-color-text);
21
+ --_void-tone-subtle: var(--void-color-control-fill);
22
+ --_void-tone-border: var(--void-button-border, var(--void-color-border-control));
23
+ --_void-tone-hover: color-mix(in srgb, var(--_void-tone) 8%, var(--void-color-control-fill));
24
+ --_void-tone-active: color-mix(in srgb, var(--_void-tone) 13%, var(--void-color-control-fill));
25
+
26
+ /* Size — each size step sets these three and nothing else */
27
+ --_void-button-height: var(--void-button-height, var(--void-control-height));
28
+ --_void-button-padding: var(--void-button-padding, calc(var(--void-control-padding) * 1.25));
29
+ --_void-button-font-size: var(--void-button-font-size, var(--void-control-text));
12
30
 
13
31
  /* Layout */
14
32
  display: inline-flex;
15
33
  align-items: center;
16
34
  justify-content: center;
17
35
  gap: var(--void-space-2);
18
-
19
- /* Generous spacing (negative space principle) */
20
- padding: var(--void-space-2) var(--void-space-4);
36
+ min-height: var(--_void-button-height);
37
+ padding: 0 var(--_void-button-padding);
21
38
 
22
39
  /* Typography */
23
40
  font-family: var(--void-font-sans);
24
- font-size: var(--void-text-sm);
25
- font-weight: var(--void-weight-medium);
41
+ font-size: var(--_void-button-font-size);
42
+ font-weight: var(--void-button-font-weight, var(--void-weight-medium));
26
43
  line-height: var(--void-leading-tight);
44
+ white-space: nowrap;
27
45
 
28
46
  /* Visual */
29
- background: var(--tone-subtle);
30
- border: 1px solid var(--tone-border);
31
- border-radius: var(--void-radius-md);
32
- color: var(--void-color-text);
47
+ background: var(--_void-tone-subtle);
48
+ border: var(--void-control-border-width) solid var(--_void-tone-border);
49
+ border-radius: var(--void-button-radius, var(--void-control-radius));
50
+ box-shadow: var(--void-button-shadow, none);
51
+ color: var(--_void-tone-text);
33
52
  cursor: pointer;
34
53
 
35
54
  /* Motion */
@@ -41,21 +60,32 @@ void-button {
41
60
  user-select: none;
42
61
  }
43
62
 
44
- /* Hover */
63
+ /* Inline icons keep their size and sit on the text baseline */
64
+ void-button svg {
65
+ flex-shrink: 0;
66
+ vertical-align: -0.15em;
67
+ }
68
+
69
+ /* Hover and pressed */
45
70
  void-button:hover {
46
- background: var(--tone-hover);
71
+ background: var(--_void-tone-hover);
72
+ }
73
+
74
+ void-button:active {
75
+ background: var(--_void-tone-active);
47
76
  }
48
77
 
49
78
  /* Focus */
50
- void-button:focus-visible {
51
- outline: 2px solid var(--void-color-border-focus);
52
- outline-offset: 2px;
79
+ void-button:focus-visible,
80
+ void-button:has(> :is(a, button):focus-visible) {
81
+ outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
82
+ outline-offset: var(--void-focus-ring-offset);
53
83
  }
54
84
 
55
85
  /* Filled variant */
56
86
  void-button[variant="filled"] {
57
- background: var(--tone);
58
- border-color: var(--tone);
87
+ background: var(--_void-tone);
88
+ border-color: var(--_void-tone);
59
89
  color: var(--void-color-text-on-accent);
60
90
  }
61
91
 
@@ -63,65 +93,110 @@ void-button[variant="filled"]:hover {
63
93
  opacity: 0.9;
64
94
  }
65
95
 
96
+ void-button[variant="filled"]:active {
97
+ opacity: 0.8;
98
+ }
99
+
100
+ /* Ghost variant — nothing drawn at rest: for row actions, toolbars
101
+ and the quiet button beside a primary one. */
102
+ void-button[variant="ghost"] {
103
+ --_void-tone-hover: color-mix(in srgb, var(--_void-tone) 8%, transparent);
104
+ --_void-tone-active: color-mix(in srgb, var(--_void-tone) 13%, transparent);
105
+ background: transparent;
106
+ border-color: transparent;
107
+ box-shadow: none;
108
+ }
109
+
110
+ void-button[variant="ghost"]:hover {
111
+ background: var(--_void-tone-hover);
112
+ }
113
+
114
+ void-button[variant="ghost"]:active {
115
+ background: var(--_void-tone-active);
116
+ }
117
+
66
118
  /* Color variants — one override cascades to all derived states */
67
- void-button[color="error"] { --tone: var(--void-color-error); }
68
- void-button[color="warning"] { --tone: var(--void-color-warning); }
69
- void-button[color="caution"] { --tone: var(--void-color-caution); }
70
- void-button[color="success"] { --tone: var(--void-color-success); }
71
- void-button[color="info"] { --tone: var(--void-color-info); }
72
- void-button[color="notice"] { --tone: var(--void-color-notice); }
119
+ void-button[color="error"] { --_void-tone: var(--void-color-error); }
120
+ void-button[color="warning"] { --_void-tone: var(--void-color-warning); }
121
+ void-button[color="caution"] { --_void-tone: var(--void-color-caution); }
122
+ void-button[color="highlight"] { --_void-tone: var(--void-color-highlight); }
123
+ void-button[color="success"] { --_void-tone: var(--void-color-success); }
124
+ void-button[color="info"] { --_void-tone: var(--void-color-info); }
125
+ void-button[color="notice"] { --_void-tone: var(--void-color-notice); }
126
+
127
+ /* Coloured buttons keep a tone-derived border and tint; only the
128
+ default (accent) button uses the control boundary token. The
129
+ attribute is reflected, so the default button carries
130
+ color="default". */
131
+ void-button[color]:not([color="default"]) {
132
+ --_void-tone-subtle: color-mix(in srgb, var(--_void-tone) var(--void-tone-tint), var(--void-color-control-fill));
133
+ --_void-tone-border: color-mix(in srgb, var(--_void-tone) 50%, transparent);
134
+ --_void-tone-hover: color-mix(in srgb, var(--_void-tone) calc(var(--void-tone-tint) * 1.5), var(--void-color-control-fill));
135
+ --_void-tone-active: color-mix(in srgb, var(--_void-tone) calc(var(--void-tone-tint) * 2), var(--void-color-control-fill));
136
+ }
137
+
138
+ /* A coloured ghost button carries its colour in the label, and its
139
+ hover fill is the same tint the tone uses everywhere else, so the
140
+ label keeps 4.5:1 on it. */
141
+ void-button[variant="ghost"][color]:not([color="default"]) {
142
+ --_void-tone-text: var(--_void-tone);
143
+ --_void-tone-hover: color-mix(in srgb, var(--_void-tone) var(--void-tone-tint), transparent);
144
+ --_void-tone-active: color-mix(in srgb, var(--_void-tone) calc(var(--void-tone-tint) * 1.25), transparent);
145
+ }
73
146
 
74
147
  /* Size variants */
75
148
  void-button[size="sm"] {
76
- padding: var(--void-space-1) var(--void-space-2);
77
- font-size: var(--void-text-xs);
149
+ --_void-button-height: var(--void-button-height, var(--void-control-height-sm));
150
+ --_void-button-padding: var(--void-button-padding, calc(var(--void-control-padding-sm) * 1.25));
151
+ --_void-button-font-size: var(--void-button-font-size, var(--void-control-text-sm));
78
152
  }
79
153
 
80
154
  void-button[size="lg"] {
81
- padding: var(--void-space-3) var(--void-space-6);
82
- font-size: var(--void-text-base);
83
- }
84
-
85
- void-button[size="xl"] {
86
- padding: var(--void-space-4) var(--void-space-8);
87
- font-size: var(--void-text-lg);
155
+ --_void-button-height: var(--void-button-height, var(--void-control-height-lg));
156
+ --_void-button-padding: var(--void-button-padding, calc(var(--void-control-padding-lg) * 1.25));
157
+ --_void-button-font-size: var(--void-button-font-size, var(--void-control-text-lg));
88
158
  }
89
159
 
90
- void-button[size="xxl"] {
91
- padding: var(--void-space-5) var(--void-space-10);
92
- font-size: var(--void-text-xl);
160
+ /* Icon-only: a labelled button whose only child is an icon is square. */
161
+ void-button[aria-label]:has(> svg:only-child),
162
+ void-button[aria-label]:has(> i:only-child) {
163
+ padding: 0;
164
+ min-width: var(--_void-button-height);
93
165
  }
94
166
 
95
- /* Link targets — stretch <a> to fill the full button */
96
- void-button:has(> a) {
167
+ /* Link buttons — the link (or native button) is the one control: it fills the button and carries the padding, so
168
+ the whole button is the hit area at every size, and the button draws the focus ring when it has focus. */
169
+ void-button:has(> :is(a, button)) {
97
170
  padding: 0;
98
171
  }
99
172
 
100
- void-button > a {
173
+ void-button > :is(a, button) {
101
174
  display: inline-flex;
102
175
  align-items: center;
103
176
  justify-content: center;
177
+ align-self: stretch;
104
178
  gap: var(--void-space-2);
105
- padding: var(--void-space-2) var(--void-space-4);
179
+ padding: 0 var(--_void-button-padding);
106
180
  color: inherit;
107
181
  text-decoration: none;
108
182
  flex: 1;
109
183
  }
110
184
 
111
- void-button[size="sm"] > a {
112
- padding: var(--void-space-1) var(--void-space-2);
113
- }
114
-
115
- void-button[size="lg"] > a {
116
- padding: var(--void-space-3) var(--void-space-6);
117
- }
118
-
119
- void-button[size="xl"] > a {
120
- padding: var(--void-space-4) var(--void-space-8);
185
+ void-button > :is(a, button):focus-visible {
186
+ outline: none;
121
187
  }
122
188
 
123
- void-button[size="xxl"] > a {
124
- padding: var(--void-space-5) var(--void-space-10);
189
+ /* A native button inside is bare: the host draws the button. */
190
+ void-button > button {
191
+ appearance: none;
192
+ background: none;
193
+ border: 0;
194
+ margin: 0;
195
+ font: inherit;
196
+ letter-spacing: inherit;
197
+ text-transform: inherit;
198
+ white-space: inherit;
199
+ cursor: inherit;
125
200
  }
126
201
 
127
202
  /* Disabled */
@@ -105,10 +105,20 @@ void-calendar {
105
105
  }
106
106
 
107
107
  .void-calendar-days {
108
+ display: flex;
109
+ flex-direction: column;
110
+ }
111
+
112
+ .void-calendar-week {
108
113
  display: grid;
109
114
  grid-template-columns: repeat(7, 1fr);
110
115
  }
111
116
 
117
+ .void-calendar-cell {
118
+ display: flex;
119
+ justify-content: center;
120
+ }
121
+
112
122
  .void-calendar-day {
113
123
  display: inline-flex;
114
124
  align-items: center;
@@ -132,8 +142,8 @@ void-calendar {
132
142
  }
133
143
 
134
144
  .void-calendar-day:focus-visible {
135
- outline: 2px solid var(--void-color-border-focus);
136
- outline-offset: -2px;
145
+ outline: var(--void-focus-ring-width) solid var(--void-focus-ring-color);
146
+ outline-offset: calc(-1 * var(--void-focus-ring-width));
137
147
  }
138
148
 
139
149
  .void-calendar-day.outside {
@@ -306,13 +316,19 @@ void-date-picker {
306
316
 
307
317
  .void-date-picker-input {
308
318
  width: 100%;
309
- padding: var(--void-space-2) var(--void-space-8) var(--void-space-2) var(--void-space-3);
310
- background: var(--void-color-bg-secondary);
311
- border: 1px solid var(--void-color-border);
312
- border-radius: var(--void-radius-md);
319
+ /* Room for a date beside the calendar button, which must never sit over the text. */
320
+ min-width: calc(var(--void-space-8) + 10ch);
321
+ /* A field like every other: the shared control height, the field's fill
322
+ and its 3:1 edge. It used to be drawn with the divider colour, which is
323
+ allowed to be faint, at a height and text size of its own. */
324
+ height: var(--void-control-height);
325
+ padding: 0 var(--void-space-8) 0 var(--void-control-padding);
326
+ background: var(--void-field-surface);
327
+ border: var(--void-control-border-width) solid var(--void-field-border);
328
+ border-radius: var(--void-control-radius);
313
329
  color: var(--void-color-text);
314
330
  font-family: inherit;
315
- font-size: var(--void-text-sm);
331
+ font-size: var(--void-control-text);
316
332
  line-height: var(--void-leading-normal);
317
333
  outline: none;
318
334
  cursor: pointer;
@@ -325,7 +341,7 @@ void-date-picker {
325
341
  }
326
342
 
327
343
  .void-date-picker-input:hover {
328
- border-color: var(--void-color-border-strong);
344
+ border-color: var(--void-field-border);
329
345
  }
330
346
 
331
347
  .void-date-picker-input:focus {
@@ -373,22 +389,22 @@ void-date-picker {
373
389
 
374
390
  /* ── Expanded state ── */
375
391
 
376
- void-date-picker[aria-expanded="true"] .void-date-picker-input {
392
+ void-date-picker[open] .void-date-picker-input {
377
393
  border-color: var(--void-color-border-focus);
378
394
  box-shadow: 0 0 0 1px var(--void-color-border-focus);
379
395
  }
380
396
 
381
397
  /* ── Dropdown ── */
382
398
 
399
+ /* A popover="manual" surface in the top layer; placement, flipping and
400
+ transitions are shared (overlay.css). */
383
401
  .void-date-picker-dropdown {
384
- position: absolute;
385
- top: calc(100% + var(--void-space-1));
386
- left: 0;
387
- background: var(--void-color-bg-elevated);
388
- border: 1px solid var(--void-color-border);
389
- border-radius: var(--void-radius-md);
390
- box-shadow: 0 4px 16px var(--void-color-bg-overlay);
391
- z-index: var(--void-z-dropdown);
402
+ --void-overlay-gap: var(--void-space-1);
403
+ background: var(--void-float-surface);
404
+ color: var(--void-color-text);
405
+ border: var(--void-float-border-width) solid var(--void-float-border);
406
+ border-radius: var(--void-float-radius);
407
+ box-shadow: var(--void-float-shadow);
392
408
  padding: var(--void-space-2);
393
409
  }
394
410
 
@@ -411,9 +427,16 @@ void-date-picker[color="warning"] .void-date-picker-input:focus {
411
427
  void-date-picker[color="caution"] .void-date-picker-input {
412
428
  border-color: var(--void-color-caution);
413
429
  }
430
+
431
+ void-date-picker[color="highlight"] .void-date-picker-input {
432
+ border-color: var(--void-color-highlight);
433
+ }
414
434
  void-date-picker[color="caution"] .void-date-picker-input:focus {
415
435
  box-shadow: 0 0 0 1px var(--void-color-caution);
416
436
  }
437
+ void-date-picker[color="highlight"] .void-date-picker-input:focus {
438
+ box-shadow: 0 0 0 1px var(--void-color-highlight);
439
+ }
417
440
 
418
441
  void-date-picker[color="success"] .void-date-picker-input {
419
442
  border-color: var(--void-color-success);