@threadlabs/looma 0.41.2 → 0.43.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 (279) hide show
  1. package/components/ui-action-bar/ui-action-bar.html +1 -7
  2. package/components/ui-affordance-scope/ui-affordance-scope.html +4 -4
  3. package/components/ui-avatar/ui-avatar.html +0 -22
  4. package/components/ui-avatar-group/ui-avatar-group.html +1 -11
  5. package/components/ui-badge/ui-badge.html +57 -78
  6. package/components/ui-button/ui-button.html +66 -90
  7. package/components/ui-button/ui-button.js +2 -2
  8. package/components/ui-callout/ui-callout.html +31 -69
  9. package/components/ui-card/ui-card.html +47 -21
  10. package/components/ui-checkbox/ui-checkbox.html +2 -16
  11. package/components/ui-cluster/ui-cluster.html +1 -7
  12. package/components/ui-combobox/ui-combobox.html +7 -70
  13. package/components/ui-container/ui-container.html +2 -12
  14. package/components/ui-context-menu/ui-context-menu.html +1 -23
  15. package/components/ui-dialog/ui-dialog.html +9 -41
  16. package/components/ui-disclosure/ui-disclosure.html +1 -15
  17. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +1 -1
  18. package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +1 -1
  19. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
  20. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -2
  21. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +2 -2
  22. package/components/ui-floating-action-button/ui-floating-action-button.html +0 -14
  23. package/components/ui-form-field/ui-form-field.html +2 -32
  24. package/components/ui-grid/ui-grid.html +1 -11
  25. package/components/ui-icon/ui-icon.html +1 -12
  26. package/components/ui-icon-button/ui-icon-button.html +94 -94
  27. package/components/ui-input/ui-input.html +5 -55
  28. package/components/ui-input-group/ui-input-group.html +1 -13
  29. package/components/ui-light-editor/ui-light-editor.html +1 -1
  30. package/components/ui-list/ui-list.html +0 -10
  31. package/components/ui-list-item/ui-list-item.html +1 -19
  32. package/components/ui-listbox/ui-listbox.html +0 -21
  33. package/components/ui-menu/ui-menu.html +8 -32
  34. package/components/ui-menu-item/ui-menu-item.html +1 -27
  35. package/components/ui-meter/ui-meter.html +11 -6
  36. package/components/ui-nav-item/ui-nav-item.html +0 -18
  37. package/components/ui-popover/ui-popover.html +9 -41
  38. package/components/ui-radio/ui-radio.html +58 -12
  39. package/components/ui-radio-group/ui-radio-group.html +0 -5
  40. package/components/ui-reel/ui-reel.html +1 -11
  41. package/components/ui-search-result-row/ui-search-result-row.html +0 -34
  42. package/components/ui-search-shell/ui-search-shell.html +1 -43
  43. package/components/ui-section/ui-section.html +1 -1
  44. package/components/ui-select/ui-select.html +0 -42
  45. package/components/ui-separator/ui-separator.html +0 -6
  46. package/components/ui-sidebar/ui-sidebar.html +2 -24
  47. package/components/ui-site-header/ui-site-header.html +0 -25
  48. package/components/ui-skeleton/ui-skeleton.html +0 -9
  49. package/components/ui-stack/ui-stack.html +6 -11
  50. package/components/ui-status-message/ui-status-message.html +1 -1
  51. package/components/ui-swatch/ui-swatch.html +0 -5
  52. package/components/ui-switch/ui-switch.html +6 -17
  53. package/components/ui-switcher/ui-switcher.html +1 -11
  54. package/components/ui-tabs/ui-tabs.html +4 -22
  55. package/components/ui-text/ui-text.html +20 -7
  56. package/components/ui-textarea/ui-textarea.html +0 -50
  57. package/components/ui-toast/ui-toast.html +12 -27
  58. package/components/ui-toast-region/ui-toast-region.html +13 -34
  59. package/components/ui-tooltip/ui-tooltip.html +9 -53
  60. package/components/ui-top-bar/ui-top-bar.html +1 -31
  61. package/components/ui-tree/ui-tree.html +1 -16
  62. package/components/ui-tree-item/ui-tree-item.html +1 -23
  63. package/components/ui-tree-item/ui-tree-item.js +0 -1
  64. package/dist/index.js +1 -1
  65. package/docs/README.md +15 -9
  66. package/docs/catalog.json +973 -186
  67. package/docs/customizer-render.mjs +25 -9
  68. package/docs/customizer.js +42 -2
  69. package/docs/fonts.mjs +1 -1
  70. package/docs/palette.mjs +5 -4
  71. package/docs/theme.mjs +214 -51
  72. package/docs/value-editors.mjs +2 -1
  73. package/package.json +2 -2
  74. package/styles/ui-action-bar.css +3 -11
  75. package/styles/ui-affordance-scope.css +4 -4
  76. package/styles/ui-avatar-group.css +3 -15
  77. package/styles/ui-avatar.css +2 -26
  78. package/styles/ui-badge.css +56 -80
  79. package/styles/ui-button.css +65 -92
  80. package/styles/ui-callout.css +33 -73
  81. package/styles/ui-card.css +42 -18
  82. package/styles/ui-checkbox.css +4 -20
  83. package/styles/ui-cluster.css +2 -10
  84. package/styles/ui-combobox.css +7 -140
  85. package/styles/ui-container.css +2 -14
  86. package/styles/ui-context-menu.css +3 -27
  87. package/styles/ui-dialog.css +22 -88
  88. package/styles/ui-disclosure.css +3 -19
  89. package/styles/ui-editor-mention-menu-item.css +1 -1
  90. package/styles/ui-editor-mention-menu.css +1 -1
  91. package/styles/ui-editor-table-context-menu.css +1 -1
  92. package/styles/ui-editor-table-overlay.css +2 -2
  93. package/styles/ui-editor-table-toolbar.css +2 -2
  94. package/styles/ui-floating-action-button.css +2 -18
  95. package/styles/ui-form-field.css +4 -36
  96. package/styles/ui-grid.css +2 -14
  97. package/styles/ui-icon-button.css +93 -96
  98. package/styles/ui-icon.css +3 -16
  99. package/styles/ui-input-group.css +2 -14
  100. package/styles/ui-input.css +6 -57
  101. package/styles/ui-light-editor.css +2 -2
  102. package/styles/ui-list-item.css +3 -23
  103. package/styles/ui-list.css +2 -14
  104. package/styles/ui-listbox.css +2 -44
  105. package/styles/ui-menu-item.css +3 -31
  106. package/styles/ui-menu.css +11 -37
  107. package/styles/ui-meter.css +8 -4
  108. package/styles/ui-nav-item.css +2 -22
  109. package/styles/ui-popover.css +12 -46
  110. package/styles/ui-radio-group.css +1 -6
  111. package/styles/ui-radio.css +68 -15
  112. package/styles/ui-reel.css +2 -14
  113. package/styles/ui-search-result-row.css +2 -38
  114. package/styles/ui-search-shell.css +3 -47
  115. package/styles/ui-section.css +1 -1
  116. package/styles/ui-select.css +2 -46
  117. package/styles/ui-separator.css +2 -10
  118. package/styles/ui-sidebar.css +4 -28
  119. package/styles/ui-site-header.css +1 -26
  120. package/styles/ui-skeleton.css +2 -12
  121. package/styles/ui-stack.css +4 -12
  122. package/styles/ui-status-message.css +1 -1
  123. package/styles/ui-swatch.css +1 -6
  124. package/styles/ui-switch.css +8 -21
  125. package/styles/ui-switcher.css +2 -14
  126. package/styles/ui-tabs.css +6 -26
  127. package/styles/ui-text.css +11 -3
  128. package/styles/ui-textarea.css +2 -54
  129. package/styles/ui-toast-region.css +29 -73
  130. package/styles/ui-toast.css +24 -54
  131. package/styles/ui-tooltip.css +12 -58
  132. package/styles/ui-top-bar.css +3 -35
  133. package/styles/ui-tree-item.css +5 -51
  134. package/styles/ui-tree.css +3 -20
  135. package/theme-system.css +16 -10
  136. package/tokens.css +75 -18
  137. package/vanilla/UiBadge.d.ts +1 -1
  138. package/vanilla/UiBadge.js +1 -1
  139. package/vanilla/UiButton.d.ts +1 -1
  140. package/vanilla/UiButton.js +1 -1
  141. package/vanilla/UiCard.d.ts +1 -1
  142. package/vanilla/UiCard.js +1 -1
  143. package/vanilla/UiIconButton.d.ts +1 -1
  144. package/vanilla/UiIconButton.js +1 -1
  145. package/vanilla/UiMeter.d.ts +1 -1
  146. package/vanilla/UiMeter.js +1 -1
  147. package/vanilla/UiStack.js +1 -1
  148. package/vanilla/UiText.d.ts +1 -1
  149. package/vanilla/UiText.js +1 -1
  150. package/vue/UiActionBar.vue +3 -9
  151. package/vue/UiAffordanceScope.vue +4 -4
  152. package/vue/UiAvatar.vue +1 -28
  153. package/vue/UiAvatarGroup.vue +1 -11
  154. package/vue/UiBadge.d.ts +2 -2
  155. package/vue/UiBadge.vue +84 -81
  156. package/vue/UiButton.d.ts +2 -2
  157. package/vue/UiButton.vue +120 -106
  158. package/vue/UiCallout.vue +31 -72
  159. package/vue/UiCard.d.ts +2 -2
  160. package/vue/UiCard.vue +77 -32
  161. package/vue/UiCheckbox.vue +2 -16
  162. package/vue/UiCluster.vue +1 -10
  163. package/vue/UiCombobox.vue +13 -72
  164. package/vue/UiContainer.vue +1 -13
  165. package/vue/UiContextMenu.vue +1 -30
  166. package/vue/UiDialog.vue +23 -77
  167. package/vue/UiDisclosure.vue +1 -15
  168. package/vue/UiEditorMentionMenu.vue +1 -1
  169. package/vue/UiEditorMentionMenuItem.vue +1 -1
  170. package/vue/UiEditorTableContextMenu.vue +1 -1
  171. package/vue/UiEditorTableOverlay.vue +2 -2
  172. package/vue/UiEditorTableToolbar.vue +2 -2
  173. package/vue/UiFloatingActionButton.vue +0 -22
  174. package/vue/UiFormField.vue +6 -33
  175. package/vue/UiGrid.vue +1 -13
  176. package/vue/UiIcon.vue +1 -16
  177. package/vue/UiIconButton.d.ts +2 -2
  178. package/vue/UiIconButton.vue +145 -106
  179. package/vue/UiInput.vue +1 -54
  180. package/vue/UiInputGroup.vue +8 -20
  181. package/vue/UiLightEditor.vue +2 -2
  182. package/vue/UiList.vue +2 -12
  183. package/vue/UiListItem.vue +8 -26
  184. package/vue/UiListbox.vue +0 -23
  185. package/vue/UiMenu.vue +12 -44
  186. package/vue/UiMenuItem.vue +1 -27
  187. package/vue/UiMeter.d.ts +2 -2
  188. package/vue/UiMeter.vue +47 -12
  189. package/vue/UiNavItem.vue +3 -21
  190. package/vue/UiPopover.vue +12 -53
  191. package/vue/UiRadio.vue +58 -12
  192. package/vue/UiRadioGroup.vue +0 -11
  193. package/vue/UiReel.vue +1 -11
  194. package/vue/UiSearchResultRow.vue +0 -35
  195. package/vue/UiSearchShell.vue +1 -53
  196. package/vue/UiSection.vue +1 -1
  197. package/vue/UiSelect.vue +0 -42
  198. package/vue/UiSeparator.vue +0 -7
  199. package/vue/UiSidebar.vue +3 -26
  200. package/vue/UiSiteHeader.vue +0 -24
  201. package/vue/UiSkeleton.vue +0 -9
  202. package/vue/UiStack.vue +6 -11
  203. package/vue/UiStatusMessage.vue +1 -1
  204. package/vue/UiSwatch.vue +1 -6
  205. package/vue/UiSwitch.vue +6 -17
  206. package/vue/UiSwitcher.vue +1 -14
  207. package/vue/UiTabs.vue +4 -22
  208. package/vue/UiText.d.ts +2 -2
  209. package/vue/UiText.vue +30 -5
  210. package/vue/UiTextarea.vue +0 -50
  211. package/vue/UiToast.vue +26 -34
  212. package/vue/UiToastRegion.vue +26 -55
  213. package/vue/UiTooltip.vue +12 -64
  214. package/vue/UiTopBar.vue +1 -34
  215. package/vue/UiTree.vue +2 -17
  216. package/vue/UiTreeItem.vue +2 -28
  217. package/vue/chunks/UiActionBar.js +1 -1
  218. package/vue/chunks/UiAffordanceScope.js +1 -1
  219. package/vue/chunks/UiAvatar.js +1 -1
  220. package/vue/chunks/UiAvatarGroup.js +1 -1
  221. package/vue/chunks/UiBadge.js +4 -2
  222. package/vue/chunks/UiButton.js +4 -2
  223. package/vue/chunks/UiCallout.js +1 -1
  224. package/vue/chunks/UiCard.js +5 -3
  225. package/vue/chunks/UiCheckbox.js +1 -1
  226. package/vue/chunks/UiCluster.js +2 -2
  227. package/vue/chunks/UiCombobox.js +3 -3
  228. package/vue/chunks/UiContainer.js +2 -2
  229. package/vue/chunks/UiContextMenu.js +1 -1
  230. package/vue/chunks/UiDialog.js +1 -1
  231. package/vue/chunks/UiDisclosure.js +1 -1
  232. package/vue/chunks/UiEditorMentionMenu.js +1 -1
  233. package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
  234. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  235. package/vue/chunks/UiEditorTableOverlay.js +1 -1
  236. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  237. package/vue/chunks/UiFloatingActionButton.js +1 -1
  238. package/vue/chunks/UiFormField.js +1 -1
  239. package/vue/chunks/UiGrid.js +2 -2
  240. package/vue/chunks/UiIcon.js +1 -1
  241. package/vue/chunks/UiIconButton.js +4 -2
  242. package/vue/chunks/UiInput.js +1 -1
  243. package/vue/chunks/UiInputGroup.js +1 -1
  244. package/vue/chunks/UiLightEditor.js +1 -1
  245. package/vue/chunks/UiList.js +1 -1
  246. package/vue/chunks/UiListItem.js +1 -1
  247. package/vue/chunks/UiListbox.js +1 -1
  248. package/vue/chunks/UiMenu.js +1 -1
  249. package/vue/chunks/UiMenuItem.js +1 -1
  250. package/vue/chunks/UiMeter.js +4 -2
  251. package/vue/chunks/UiNavItem.js +1 -1
  252. package/vue/chunks/UiPopover.js +1 -1
  253. package/vue/chunks/UiRadio.js +1 -1
  254. package/vue/chunks/UiRadioGroup.js +1 -1
  255. package/vue/chunks/UiReel.js +2 -2
  256. package/vue/chunks/UiSearchResultRow.js +1 -1
  257. package/vue/chunks/UiSearchShell.js +1 -1
  258. package/vue/chunks/UiSection.js +1 -1
  259. package/vue/chunks/UiSelect.js +1 -1
  260. package/vue/chunks/UiSeparator.js +1 -1
  261. package/vue/chunks/UiSidebar.js +1 -1
  262. package/vue/chunks/UiSiteHeader.js +1 -1
  263. package/vue/chunks/UiSkeleton.js +1 -1
  264. package/vue/chunks/UiStack.js +3 -3
  265. package/vue/chunks/UiStatusMessage.js +1 -1
  266. package/vue/chunks/UiSwatch.js +1 -1
  267. package/vue/chunks/UiSwitch.js +1 -1
  268. package/vue/chunks/UiSwitcher.js +2 -2
  269. package/vue/chunks/UiTabs.js +1 -1
  270. package/vue/chunks/UiText.js +4 -2
  271. package/vue/chunks/UiTextarea.js +1 -1
  272. package/vue/chunks/UiToast.js +1 -1
  273. package/vue/chunks/UiToastRegion.js +1 -1
  274. package/vue/chunks/UiTooltip.js +1 -1
  275. package/vue/chunks/UiTopBar.js +1 -1
  276. package/vue/chunks/UiTree.js +1 -1
  277. package/vue/chunks/UiTreeItem.js +1 -1
  278. package/vue/components.css +857 -2184
  279. package/vue/editor/index.js +8 -2
@@ -7,30 +7,8 @@
7
7
  [data-component~="ui-tree-item"] { --html-next-scope-owner: "ui-tree-item" !important; }
8
8
  }
9
9
  @scope ([data-component~="ui-tree-item"]) to ([data-component], [data-slotted]) {
10
- /* This component's hooks style the element they are set on, and never a nested one. */
11
- @property --ui-tree-item-depth {
12
- syntax: "*";
13
- inherits: false;
14
- }
15
- @property --ui-tree-item-font-size {
16
- syntax: "*";
17
- inherits: false;
18
- }
19
- @property --ui-tree-item-label-padding-block {
20
- syntax: "*";
21
- inherits: false;
22
- }
23
- @property --ui-tree-item-label-padding-inline {
24
- syntax: "*";
25
- inherits: false;
26
- }
27
- @property --ui-tree-item-min-block-size {
28
- syntax: "*";
29
- inherits: false;
30
- }
31
-
32
- :scope:where([data-component~="ui-tree-item"]) {
33
- /* Hooks do not inherit, so the parts below read them from the root. The tree's density
10
+ :scope:where([data-component~="ui-tree-item"]) {
11
+ /* Resolve shared part values at the root. The tree's density
34
12
  sets the defaults, in --_ui-default-*. */
35
13
  --_ui-tree-item-min-block-size: var(--ui-tree-item-min-block-size, var(--_ui-default-tree-item-min-block-size));
36
14
  --_ui-tree-item-font-size: var(--ui-tree-item-font-size, var(--_ui-default-tree-item-font-size));
@@ -588,9 +566,7 @@
588
566
  }
589
567
  }
590
568
  @scope ([data-component~="ui-tree-item"]) to ([data-component]) {
591
- /* This component's hooks style the element they are set on, and never a nested one. */
592
-
593
- /* Selection is the same surface recipe as destination and choice rows. */
569
+ /* Selection is the same surface recipe as destination and choice rows. */
594
570
 
595
571
  /* Child combinators: drop feedback belongs to this item's own row, not the rows nested in it. */
596
572
 
@@ -663,30 +639,8 @@
663
639
  /* A component that sets its display still honours the hidden attribute on its root. */
664
640
  }
665
641
  @scope ([data-slotted~="ui-tree-item"]:not([data-component])) to ([data-component], [data-slotted]) {
666
- /* This component's hooks style the element they are set on, and never a nested one. */
667
- @property --ui-tree-item-depth {
668
- syntax: "*";
669
- inherits: false;
670
- }
671
- @property --ui-tree-item-font-size {
672
- syntax: "*";
673
- inherits: false;
674
- }
675
- @property --ui-tree-item-label-padding-block {
676
- syntax: "*";
677
- inherits: false;
678
- }
679
- @property --ui-tree-item-label-padding-inline {
680
- syntax: "*";
681
- inherits: false;
682
- }
683
- @property --ui-tree-item-min-block-size {
684
- syntax: "*";
685
- inherits: false;
686
- }
687
-
688
- :where([data-component~="ui-tree-item"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-tree-item"]))) {
689
- /* Hooks do not inherit, so the parts below read them from the root. The tree's density
642
+ :where([data-component~="ui-tree-item"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-tree-item"]))) {
643
+ /* Resolve shared part values at the root. The tree's density
690
644
  sets the defaults, in --_ui-default-*. */
691
645
  --_ui-tree-item-min-block-size: var(--ui-tree-item-min-block-size, var(--_ui-default-tree-item-min-block-size));
692
646
  --_ui-tree-item-font-size: var(--ui-tree-item-font-size, var(--_ui-default-tree-item-font-size));
@@ -7,21 +7,7 @@
7
7
  [data-component~="ui-tree"] { --html-next-scope-owner: "ui-tree" !important; }
8
8
  }
9
9
  @scope ([data-component~="ui-tree"]) to ([data-component], [data-slotted]) {
10
- /* This component's hooks style the element they are set on, and never a nested one. */
11
- @property --ui-tree-drop-color {
12
- syntax: "*";
13
- inherits: false;
14
- }
15
- @property --ui-tree-gutter {
16
- syntax: "*";
17
- inherits: false;
18
- }
19
- @property --ui-tree-indent {
20
- syntax: "*";
21
- inherits: false;
22
- }
23
-
24
- /* Reaches the items the way density does, so the setting lives on the tree the way a reader
10
+ /* Reaches the items the way density does, so the setting lives on the tree the way a reader
25
11
  thinks about it: this list scrolls its long names. */
26
12
  :scope:where([data-component~="ui-tree"])[data-ui-tree-state~="marquee"] {
27
13
  --_ui-default-tree-item-marquee: 1;
@@ -35,8 +21,7 @@
35
21
  }
36
22
 
37
23
  :scope:where([data-component~="ui-tree"]) {
38
- /* Hooks do not inherit: the tree hands its own to its items here, and a tree nested in an item
39
- starts again from its own settings. */
24
+ /* Resolve tree hooks here and reset private density defaults for nested trees. */
40
25
  --_ui-tree-indent: var(--ui-tree-indent);
41
26
  --_ui-tree-drop-color: var(--ui-tree-drop-color);
42
27
  --_ui-default-tree-item-marquee: initial;
@@ -62,9 +47,7 @@
62
47
  }
63
48
  }
64
49
  @scope ([data-component~="ui-tree"]) to ([data-component]) {
65
- /* This component's hooks style the element they are set on, and never a nested one. */
66
-
67
- /* Reaches the items the way density does, so the setting lives on the tree the way a reader
50
+ /* Reaches the items the way density does, so the setting lives on the tree the way a reader
68
51
  thinks about it: this list scrolls its long names. */
69
52
 
70
53
  /* The items' defaults for this density: an item's own hook still wins. */
package/theme-system.css CHANGED
@@ -40,7 +40,7 @@
40
40
  contrast cannot unexpectedly turn linear spacing into quadratic spacing. */
41
41
  --ui-control-size: calc(var(--_ui-root-font-unit) * var(--ui-control-roominess));
42
42
  --_ui-theme-ratio: max(1, var(--ui-scale-ratio));
43
- --_ui-theme-unit: calc(1rem * 0.25 * max(0, var(--ui-spacing)) * clamp(0.75, var(--ui-rhythm), 1.5));
43
+ --_ui-theme-unit: calc(1rem * 0.25 * max(0, var(--ui-spacing)));
44
44
  --ui-line-height-tight: clamp(1.1, calc(1.2 + (var(--ui-rhythm) - 1) * 0.2), 1.3);
45
45
  --ui-line-height: clamp(1.35, calc(1.4 + (var(--ui-rhythm) - 1) * 0.4), 1.6);
46
46
  --ui-line-height-md: var(--ui-line-height);
@@ -97,26 +97,32 @@
97
97
  --ui-elevation-dialog: var(--ui-shadow-lg);
98
98
  --ui-control-inset: inset calc(var(--_ui-light-inline) * var(--_ui-theme-inner)) calc(var(--_ui-light-block) * var(--_ui-theme-inner)) calc(3px * var(--_ui-theme-inner)) rgb(0 0 0 / 0.15), inset calc(-1 * var(--_ui-light-inline)) calc(-1 * var(--_ui-light-block)) 0 rgb(255 255 255 / calc(var(--_ui-theme-edge) * var(--ui-light-strength) * 0.18)), var(--ui-material-glow);
99
99
  --ui-pressed: inset calc(2 * var(--_ui-light-inline) * var(--_ui-theme-inner)) calc(2 * var(--_ui-light-block) * var(--_ui-theme-inner)) calc(4px * var(--_ui-theme-inner)) rgb(0 0 0 / 0.2);
100
- --ui-overlay-surface: var(--ui-surface-raised);
100
+ /* Overlay surface is an optional group override; each surface owns its semantic fallback. */
101
101
  /* Decorative outer material is allowed to transmit the scene. Content keeps
102
102
  its own opaque plane; changing the scene cannot undermine text contrast. */
103
103
  --ui-material-content: var(--ui-surface-raised);
104
- --ui-material-glass: color-mix(in srgb, var(--ui-surface-raised) calc((1 - clamp(0, var(--ui-overlay-translucency), 1)) * 35%), transparent);
104
+ --ui-material-glass: color-mix(in srgb, var(--ui-surface-raised) calc((1 - clamp(0, var(--ui-overlay-translucency), 1)) * 100%), transparent);
105
105
  --ui-material-edge: color-mix(in srgb, var(--ui-surface-raised) 80%, var(--ui-text));
106
106
  /* Each role has a bounded reflection colour. Shared source coordinates are
107
107
  relative to each surface, so size and position never change the lighting. */
108
- --ui-surface-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%), color-mix(in srgb, var(--ui-surface-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), transparent 85%);
109
- --ui-neutral-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%), color-mix(in srgb, var(--ui-neutral-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), transparent 85%);
110
- --ui-accent-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%), color-mix(in srgb, var(--ui-accent-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), transparent 85%);
111
- --ui-danger-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%), color-mix(in srgb, var(--ui-danger-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), transparent 85%);
112
- --ui-success-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%), color-mix(in srgb, var(--ui-success-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), transparent 85%);
113
- --ui-warning-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%), color-mix(in srgb, var(--ui-warning-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), transparent 85%);
114
- --ui-info-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%), color-mix(in srgb, var(--ui-info-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), transparent 85%);
108
+ --ui-surface-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-surface-specular, var(--ui-surface-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-surface-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-surface-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
109
+ --ui-neutral-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-neutral-specular, var(--ui-neutral-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-neutral-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-neutral-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
110
+ --ui-knob-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-knob-specular, var(--ui-knob-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-knob-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-knob-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
111
+ --ui-knob-on-accent-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-knob-on-accent-specular, var(--ui-knob-on-accent-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-knob-on-accent-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-knob-on-accent-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
112
+ --ui-accent-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-accent-specular, var(--ui-accent-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-accent-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-accent-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
113
+ --ui-accent-secondary-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-accent-secondary-specular, var(--ui-accent-secondary-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-accent-secondary-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-accent-secondary-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
114
+ --ui-accent-tertiary-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-accent-tertiary-specular, var(--ui-accent-tertiary-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-accent-tertiary-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-accent-tertiary-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
115
+ --ui-danger-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-danger-specular, var(--ui-danger-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-danger-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-danger-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
116
+ --ui-success-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-success-specular, var(--ui-success-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-success-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-success-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
117
+ --ui-warning-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-warning-specular, var(--ui-warning-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-warning-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-warning-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
118
+ --ui-info-highlight: radial-gradient(ellipse calc(35% + var(--ui-light-spread) * 165%) calc(55% + var(--ui-light-spread) * 200%) at calc(var(--ui-light-x) * 100%) calc(var(--ui-light-y) * 100%) in srgb, color-mix(in srgb, var(--ui-info-specular, var(--ui-info-reflection, var(--ui-surface-raised))) calc(var(--ui-finish) * var(--ui-light-strength) * 100%), transparent), color-mix(in srgb, var(--ui-info-reflection, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 75%), transparent) 8%, transparent 28%, color-mix(in srgb, var(--ui-info-shade, var(--ui-surface-raised)) calc(var(--ui-finish) * var(--ui-light-strength) * 35%), transparent) 100%);
115
119
  /* Keep the low end gentle; the upper range deliberately reaches beyond restrained ornament. */
116
120
  --_ui-theme-glow: calc(clamp(0, var(--ui-glow), 1) + 2 * pow(clamp(0, var(--ui-glow), 1), 4));
117
121
  --ui-material-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-accent) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
118
122
  --ui-neutral-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-text) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
119
123
  --ui-accent-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-accent) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
124
+ --ui-accent-secondary-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-accent-secondary) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
125
+ --ui-accent-tertiary-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-accent-tertiary) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
120
126
  --ui-danger-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-danger) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
121
127
  --ui-success-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-success) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
122
128
  --ui-warning-glow: 0 0 calc(18px * var(--_ui-theme-glow)) color-mix(in srgb, var(--ui-warning) calc(var(--_ui-theme-glow) * var(--ui-light-strength) * 18%), transparent);
package/tokens.css CHANGED
@@ -23,8 +23,28 @@
23
23
  --ui-surface-raised: #ffffff;
24
24
  --ui-surface-sunken: #f0f0ec;
25
25
  --ui-text: #1a1a1a;
26
+ /* The reflected environment is independent of object pigment. */
27
+ --ui-light-color: #ffffff;
26
28
  --ui-focus-halo: 0 0 0 calc(var(--ui-focus-width) * 1.5) color-mix(in srgb, var(--ui-focus-ring) 40%, transparent);
27
29
 
30
+ /* Shared action boundaries follow their fills until a recipe refines the family. */
31
+ --ui-tonal-opacity: 1;
32
+ --ui-accent-border: var(--ui-accent);
33
+ --ui-accent-hover-border: var(--ui-accent-hover);
34
+ --ui-accent-active-border: var(--ui-accent-active);
35
+ --ui-danger-border: var(--ui-danger);
36
+ --ui-danger-hover-border: var(--ui-danger-hover);
37
+ --ui-danger-active-border: var(--ui-danger-active);
38
+ --ui-success-border: var(--ui-success);
39
+ --ui-success-hover-border: var(--ui-success-hover);
40
+ --ui-success-active-border: var(--ui-success-active);
41
+ --ui-warning-border: var(--ui-warning);
42
+ --ui-warning-hover-border: var(--ui-warning-hover);
43
+ --ui-warning-active-border: var(--ui-warning-active);
44
+ --ui-info-border: var(--ui-info);
45
+ --ui-info-hover-border: var(--ui-info-hover);
46
+ --ui-info-active-border: var(--ui-info-active);
47
+
28
48
  /* The base type token owns the document root; rem-based roles scale from it once. */
29
49
  font-size: var(--ui-font-size);
30
50
 
@@ -87,10 +107,13 @@
87
107
  never has to: these exist so components share one vocabulary, not to be configured. */
88
108
  :root,
89
109
  :where([data-theme], [data-contrast]) {
110
+ color: var(--ui-text-primary);
90
111
  /* Neutral is a quiet filled surface, never the text colour inverted. */
91
- --ui-neutral-surface: color-mix(in srgb, var(--ui-text) 6%, var(--ui-surface-raised));
92
- --ui-neutral-hover: color-mix(in srgb, var(--ui-text) 10%, var(--ui-surface-raised));
93
- --ui-neutral-active: color-mix(in srgb, var(--ui-text) 14%, var(--ui-surface-raised));
112
+ --ui-neutral-surface: light-dark(color-mix(in oklab, var(--ui-text) 6%, var(--ui-surface-raised)), color-mix(in oklab, var(--ui-text) 13.5%, var(--ui-surface-raised)));
113
+ --ui-neutral-hover: light-dark(color-mix(in oklab, var(--ui-text) 10%, var(--ui-surface-raised)), color-mix(in oklab, var(--ui-text) 22.5%, var(--ui-surface-raised)));
114
+ --ui-neutral-active: light-dark(color-mix(in oklab, var(--ui-text) 14%, var(--ui-surface-raised)), color-mix(in oklab, var(--ui-text) 31.5%, var(--ui-surface-raised)));
115
+ /* Quiet neutral shadows complement the shared action and field boundary. */
116
+ --ui-neutral-shadow: var(--ui-shadow-xs);
94
117
  --ui-accent-line-width: var(--ui-border-width);
95
118
 
96
119
  /* Type scale, from the base size. */
@@ -159,7 +182,7 @@
159
182
  /* Lines divide content; stronger edges enclose surfaces; control edges identify inputs. */
160
183
  --ui-border-divider: color-mix(in oklab, var(--ui-border) 50%, var(--ui-border-strong));
161
184
  --ui-border-strong: color-mix(in oklab, var(--ui-text) 25%, var(--ui-surface));
162
- --ui-control-border: color-mix(in oklab, var(--ui-text) 43%, var(--ui-surface));
185
+ --ui-control-border: light-dark(color-mix(in oklab, var(--ui-text) 30%, var(--ui-surface)), color-mix(in oklab, var(--ui-text) 40%, var(--ui-surface-raised)));
163
186
 
164
187
  /* States: toward the ink for pressure, toward the page for a tint. In a dark theme the ink is
165
188
  light, so the same mixes brighten instead of darkening, without a second set of values. */
@@ -197,13 +220,42 @@
197
220
  --ui-border-subtle: color-mix(in srgb, var(--ui-border) 55%, var(--ui-surface));
198
221
  --ui-border-default: var(--ui-border);
199
222
 
223
+ /* Optional brand accents use the primary identity until explicitly supplied. */
224
+ --ui-accent-secondary: var(--ui-accent);
225
+ --ui-on-accent-secondary: var(--ui-on-accent);
226
+ --ui-accent-secondary-hover: color-mix(in oklab, var(--ui-accent-secondary) 86%, var(--ui-text));
227
+ --ui-accent-secondary-active: color-mix(in oklab, var(--ui-accent-secondary) 74%, var(--ui-text));
228
+ --ui-accent-secondary-subtle-text: light-dark(oklch(from var(--ui-accent-secondary) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-accent-secondary) max(l, 0.80) min(c, 0.16) h));
229
+ --ui-accent-secondary-soft: light-dark(oklch(from var(--ui-accent-secondary) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-accent-secondary) clamp(0.34, l, 0.38) min(c, 0.035) h));
230
+ --ui-accent-secondary-soft-border: color-mix(in srgb, var(--ui-accent-secondary-soft) 75%, var(--ui-accent-secondary-subtle-text));
231
+ --ui-accent-secondary-solid: var(--ui-accent-secondary);
232
+ --ui-accent-secondary-strong-surface: var(--ui-accent-secondary);
233
+ --ui-accent-secondary-border: var(--ui-accent-secondary);
234
+ --ui-accent-secondary-on-strong: var(--ui-on-accent-secondary);
235
+ --ui-accent-secondary-hover-border: var(--ui-accent-secondary-hover);
236
+ --ui-accent-secondary-active-border: var(--ui-accent-secondary-active);
237
+ --ui-accent-tertiary: var(--ui-accent);
238
+ --ui-on-accent-tertiary: var(--ui-on-accent);
239
+ --ui-accent-tertiary-hover: color-mix(in oklab, var(--ui-accent-tertiary) 86%, var(--ui-text));
240
+ --ui-accent-tertiary-active: color-mix(in oklab, var(--ui-accent-tertiary) 74%, var(--ui-text));
241
+ --ui-accent-tertiary-subtle-text: light-dark(oklch(from var(--ui-accent-tertiary) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-accent-tertiary) max(l, 0.80) min(c, 0.16) h));
242
+ --ui-accent-tertiary-soft: light-dark(oklch(from var(--ui-accent-tertiary) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-accent-tertiary) clamp(0.34, l, 0.38) min(c, 0.035) h));
243
+ --ui-accent-tertiary-soft-border: color-mix(in srgb, var(--ui-accent-tertiary-soft) 75%, var(--ui-accent-tertiary-subtle-text));
244
+ --ui-accent-tertiary-solid: var(--ui-accent-tertiary);
245
+ --ui-accent-tertiary-strong-surface: var(--ui-accent-tertiary);
246
+ --ui-accent-tertiary-border: var(--ui-accent-tertiary);
247
+ --ui-accent-tertiary-on-strong: var(--ui-on-accent-tertiary);
248
+ --ui-accent-tertiary-hover-border: var(--ui-accent-tertiary-hover);
249
+ --ui-accent-tertiary-active-border: var(--ui-accent-tertiary-active);
250
+ --ui-link-color: var(--ui-accent-subtle-text);
251
+
200
252
  /* Intent tones: a solid surface, its foreground, and a soft tint of each. */
201
253
  --ui-accent-solid: var(--ui-accent);
202
254
  /* One quiet selection recipe for destination/content rows. Hue derives from the brand;
203
255
  corners derive from the scale, and selected labels retain their resting weight. */
204
- --ui-selection-surface: color-mix(in oklab, var(--ui-accent) 10%, var(--ui-surface));
205
- --ui-selection-border: color-mix(in oklab, var(--ui-accent) 20%, var(--ui-surface));
206
- --ui-selection-text: var(--ui-accent-subtle-text);
256
+ --ui-selection-surface: light-dark(color-mix(in oklab, var(--ui-accent) 10%, var(--ui-surface-raised)), color-mix(in oklab, var(--ui-accent-subtle-text) 22%, var(--ui-surface-raised)));
257
+ --ui-selection-border: light-dark(color-mix(in oklab, var(--ui-accent) 20%, var(--ui-surface-raised)), color-mix(in oklab, var(--ui-accent-subtle-text) 44%, var(--ui-surface-raised)));
258
+ --ui-selection-text: light-dark(var(--ui-accent-subtle-text), color-mix(in oklab, var(--ui-accent-subtle-text) 85%, var(--ui-text)));
207
259
  --ui-selection-radius: var(--ui-radius-md);
208
260
  --ui-nav-icon-size: var(--ui-font-size-md);
209
261
  --ui-nav-gap: var(--ui-space-3);
@@ -215,33 +267,38 @@
215
267
  --ui-nav-compact-min-block-size: var(--ui-control-size-sm);
216
268
  --ui-nav-hover-surface: var(--ui-surface-hover);
217
269
 
218
- --ui-accent-soft: var(--ui-accent-subtle);
270
+ --ui-accent-soft: light-dark(oklch(from var(--ui-accent) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-accent) clamp(0.34, l, 0.38) min(c, 0.035) h));
271
+ --ui-accent-soft-border: color-mix(in srgb, var(--ui-accent-soft) 75%, var(--ui-accent-subtle-text));
219
272
  --ui-accent-contrast: var(--ui-on-accent);
220
273
  --ui-accent-strong-surface: var(--ui-accent);
221
274
  --ui-accent-on-strong: var(--ui-on-accent);
222
- --ui-accent-subtle-text: var(--ui-accent-active);
275
+ --ui-accent-subtle-text: light-dark(oklch(from var(--ui-accent) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-accent) max(l, 0.80) min(c, 0.16) h));
223
276
  --ui-danger-solid: var(--ui-danger);
224
- --ui-danger-soft: color-mix(in srgb, var(--ui-danger) 8%, var(--ui-surface));
277
+ --ui-danger-soft: light-dark(oklch(from var(--ui-danger) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-danger) clamp(0.34, l, 0.38) min(c, 0.035) h));
278
+ --ui-danger-soft-border: color-mix(in srgb, var(--ui-danger-soft) 75%, var(--ui-danger-subtle-text));
225
279
  --ui-danger-strong-surface: var(--ui-danger);
226
280
  --ui-danger-on-strong: var(--ui-on-danger);
227
- --ui-danger-subtle-text: var(--ui-danger-hover);
281
+ --ui-danger-subtle-text: light-dark(oklch(from var(--ui-danger) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-danger) max(l, 0.80) min(c, 0.16) h));
228
282
  --ui-success-solid: var(--ui-success);
229
283
  --ui-success-hover: color-mix(in srgb, var(--ui-success) 85%, var(--ui-text));
230
- --ui-success-soft: color-mix(in srgb, var(--ui-success) 8%, var(--ui-surface));
284
+ --ui-success-soft: light-dark(oklch(from var(--ui-success) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-success) clamp(0.34, l, 0.38) min(c, 0.035) h));
285
+ --ui-success-soft-border: color-mix(in srgb, var(--ui-success-soft) 75%, var(--ui-success-subtle-text));
231
286
  --ui-success-strong-surface: var(--ui-success);
232
287
  --ui-success-on-strong: var(--ui-on-accent);
233
- --ui-success-subtle-text: color-mix(in srgb, var(--ui-success) 85%, var(--ui-text));
288
+ --ui-success-subtle-text: light-dark(oklch(from var(--ui-success) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-success) max(l, 0.80) min(c, 0.16) h));
234
289
  --ui-warning-solid: var(--ui-warning);
235
- --ui-warning-soft: color-mix(in srgb, var(--ui-warning) 8%, var(--ui-surface));
290
+ --ui-warning-soft: light-dark(oklch(from var(--ui-warning) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-warning) clamp(0.34, l, 0.38) min(c, 0.035) h));
291
+ --ui-warning-soft-border: color-mix(in srgb, var(--ui-warning-soft) 75%, var(--ui-warning-subtle-text));
236
292
  --ui-warning-strong-surface: var(--ui-warning);
237
293
  --ui-warning-on-strong: var(--ui-on-accent);
238
294
  /* Amber is the lightest intent: it takes more ink than the others to read at 4.5:1, even from a bright seed. */
239
- --ui-warning-subtle-text: color-mix(in srgb, var(--ui-warning) 55%, var(--ui-text));
295
+ --ui-warning-subtle-text: light-dark(oklch(from var(--ui-warning) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-warning) max(l, 0.80) min(c, 0.16) h));
240
296
  --ui-info-solid: var(--ui-info);
241
- --ui-info-soft: color-mix(in srgb, var(--ui-info) 8%, var(--ui-surface));
297
+ --ui-info-soft: light-dark(oklch(from var(--ui-info) 96% min(c, calc(0.02 + 0.03 * max(0, cos(calc((h - 140) * 1deg))))) h), oklch(from var(--ui-info) clamp(0.34, l, 0.38) min(c, 0.035) h));
298
+ --ui-info-soft-border: color-mix(in srgb, var(--ui-info-soft) 75%, var(--ui-info-subtle-text));
242
299
  --ui-info-strong-surface: var(--ui-info);
243
300
  --ui-info-on-strong: var(--ui-on-accent);
244
- --ui-info-subtle-text: color-mix(in srgb, var(--ui-info) 85%, var(--ui-text));
301
+ --ui-info-subtle-text: light-dark(oklch(from var(--ui-info) min(l, 0.50) min(c, 0.18) h), oklch(from var(--ui-info) max(l, 0.80) min(c, 0.16) h));
245
302
 
246
303
  /* Interaction roles: what a control paints, whatever its intent. */
247
304
  --ui-action-primary-surface: var(--ui-accent);
@@ -252,7 +309,7 @@
252
309
  --ui-action-secondary-text: var(--ui-text);
253
310
  --ui-control-surface: var(--ui-surface);
254
311
  --ui-control-surface-disabled: var(--ui-surface-muted);
255
- --ui-control-border-hover: color-mix(in oklab, var(--ui-text) 50%, var(--ui-surface));
312
+ --ui-control-border-hover: light-dark(color-mix(in oklab, var(--ui-text) 36%, var(--ui-surface)), color-mix(in oklab, var(--ui-text) 55%, var(--ui-surface-raised)));
256
313
  --ui-control-placeholder: color-mix(in oklab, var(--ui-text) 58%, var(--ui-control-surface));
257
314
  --ui-control-focus: var(--ui-focus-ring);
258
315
  /* Derived from the ring, not a near-white tint, so the halo shows on any surface. */
@@ -12,7 +12,7 @@ export interface UiBadgeElement extends HTMLSpanElement {
12
12
  export interface UiBadgeProps {
13
13
  shape?: "pill" | "tag" | "dot" | "square" | "circle" | null;
14
14
  size?: "xs" | "sm" | "md" | "lg" | null;
15
- tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null;
15
+ tone?: "neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null;
16
16
  variant?: "solid" | "subtle" | "outline" | "inverse" | "overlay" | null;
17
17
  attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
18
18
  children?: readonly (string | Node)[];
@@ -7,7 +7,7 @@ const T1 = ["",[]];
7
7
  const T2 = ["",[]];
8
8
  let P0, P1, P2;
9
9
  const S = { n: [], t: [], f: import.meta.url, g: "ui-badge", b: generatedInputs };
10
- const D = { g: "ui-badge", props: { "shape": { "required":false,"values":["pill","tag","dot","square","circle"],"default":"pill", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["solid","subtle","outline","inverse","overlay"],"default":"subtle", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
10
+ const D = { g: "ui-badge", props: { "shape": { "required":false,"values":["pill","tag","dot","square","circle"],"default":"pill", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","accent-secondary","accent-tertiary","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["solid","subtle","outline","inverse","overlay"],"default":"subtle", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
11
11
 
12
12
  export function createUiBadge(options = {}, html) {
13
13
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
@@ -22,7 +22,7 @@ export interface UiButtonProps {
22
22
  square?: boolean | null;
23
23
  stretch?: boolean | null;
24
24
  target?: string | null;
25
- tone?: "accent" | "neutral" | "danger" | "success" | "warning" | "info" | null;
25
+ tone?: "accent" | "accent-secondary" | "accent-tertiary" | "neutral" | "danger" | "success" | "warning" | "info" | null;
26
26
  type?: "button" | "submit" | "reset" | null;
27
27
  variant?: "outline" | "solid" | "danger" | "ghost" | "link" | "card" | "field" | null;
28
28
  attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
@@ -27,7 +27,7 @@ let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P
27
27
  const S = { n: ["appearance","colorTone"], t: ["?","?"], f: import.meta.url, g: "ui-button", k: 0, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs };
28
28
  const A = [["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","type","disabled","aria-disabled","aria-busy"]]];
29
29
  const Q = [[],[],[],[]];
30
- const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "square": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
30
+ const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "square": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
31
31
  const C = (host) => activateModule(controller, host);
32
32
 
33
33
  export function createUiButton(options = {}, html) {
@@ -13,7 +13,7 @@ export interface UiCardProps {
13
13
  as?: "div" | "section" | "article" | "aside" | null;
14
14
  padding?: "xs" | "sm" | "md" | "lg" | null;
15
15
  size?: "content" | "sm" | "md" | "lg" | null;
16
- tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null;
16
+ tone?: "neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null;
17
17
  treatment?: "standard" | "expressive" | null;
18
18
  variant?: "outlined" | "subtle" | "elevated" | null;
19
19
  attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
package/vanilla/UiCard.js CHANGED
@@ -14,7 +14,7 @@ let P0, P1, P2, P3, P4, P5, P6, P7;
14
14
  const S = { n: [], t: [], f: import.meta.url, g: "ui-card", b: generatedInputs };
15
15
  const A = [["section",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["article",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["aside",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]],["div",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-treatment","data-ui-card-prop-variant"]]];
16
16
  const Q = [[],[],[],[]];
17
- const D = { g: "ui-card", props: { "as": { "required":false,"values":["div","section","article","aside"],"default":"div", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "padding": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["content","sm","md","lg"],"default":"content", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "treatment": { "required":false,"values":["standard","expressive"],"default":"standard", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outlined","subtle","elevated"],"default":"outlined", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
17
+ const D = { g: "ui-card", props: { "as": { "required":false,"values":["div","section","article","aside"],"default":"div", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "padding": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["content","sm","md","lg"],"default":"content", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","accent-secondary","accent-tertiary","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "treatment": { "required":false,"values":["standard","expressive"],"default":"standard", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outlined","subtle","elevated"],"default":"outlined", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
18
18
 
19
19
  export function createUiCard(options = {}, html) {
20
20
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
@@ -21,7 +21,7 @@ export interface UiIconButtonProps {
21
21
  revealed?: boolean | null;
22
22
  round?: boolean | null;
23
23
  size?: "sm" | "md" | "lg" | null;
24
- tone?: "accent" | "neutral" | "danger" | "success" | "warning" | "info" | null;
24
+ tone?: "accent" | "accent-secondary" | "accent-tertiary" | "neutral" | "danger" | "success" | "warning" | "info" | null;
25
25
  variant?: "ghost" | "outline" | "solid" | null;
26
26
  attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
27
27
  children?: readonly (string | Node)[];
@@ -8,7 +8,7 @@ const T1 = ["ui-spinner",["size","sm"]];
8
8
  const T2 = ["",[]];
9
9
  let P0, P1, P2;
10
10
  const S = { n: ["appearance","colorTone"], t: ["?","?"], f: import.meta.url, g: "ui-icon-button", k: 0, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs };
11
- const D = { g: "ui-icon-button", props: { "anticipatory": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "guide": { "required":false,"values":["dot","bar"],"default":"dot", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "label": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "matchButton": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "revealed": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "round": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["accent","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["ghost","outline","solid"],"default":"ghost", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
11
+ const D = { g: "ui-icon-button", props: { "anticipatory": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "guide": { "required":false,"values":["dot","bar"],"default":"dot", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "label": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "matchButton": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "revealed": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "round": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["accent","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["ghost","outline","solid"],"default":"ghost", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
12
12
  const C = (host) => activateModule(controller, host);
13
13
 
14
14
  export function createUiIconButton(options = {}, html) {
@@ -15,7 +15,7 @@ export interface UiMeterProps {
15
15
  parts?: readonly ({ readonly value: number; readonly color: string })[] | null;
16
16
  segments?: number | null;
17
17
  size?: "sm" | "md" | null;
18
- tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null;
18
+ tone?: "neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null;
19
19
  value?: number | null;
20
20
  valueText?: string | null;
21
21
  variant?: "progress" | "distribution" | null;
@@ -10,7 +10,7 @@ const T4 = ["span",["class","part","aria-hidden","true"]];
10
10
  let P0, P1, P2, P3, P4;
11
11
  const E = new Map();
12
12
  const S = { n: ["amount","percent"], t: ["?","?"], f: import.meta.url, g: "ui-meter", k: 0, r: readonlyView, b: generatedInputs };
13
- const D = { g: "ui-meter", props: { "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":1, c: checkNumber, t: "number", j: 0, m: "n" }, "parts": { "required":false,"default":[], c: checkList(checkObject([["value", checkNumber, false], ["color", checkString, false]], false)), j: 1, m: ["l",["o",["value","n","color","s"]]] }, "segments": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "size": { "required":false,"values":["sm","md"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "value": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "valueText": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "variant": { "required":false,"values":["progress","distribution"],"default":"progress", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
13
+ const D = { g: "ui-meter", props: { "label": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "max": { "required":false,"default":1, c: checkNumber, t: "number", j: 0, m: "n" }, "parts": { "required":false,"default":[], c: checkList(checkObject([["value", checkNumber, false], ["color", checkString, false]], false)), j: 1, m: ["l",["o",["value","n","color","s"]]] }, "segments": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "size": { "required":false,"values":["sm","md"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","accent-secondary","accent-tertiary","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "value": { "required":false,"default":0, c: checkNumber, t: "number", j: 0, m: "n" }, "valueText": { "required":false,"default":"", c: checkString, t: "string", j: 0, m: "s" }, "variant": { "required":false,"values":["progress","distribution"],"default":"progress", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
14
14
 
15
15
  export function createUiMeter(options = {}, html) {
16
16
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
@@ -31,7 +31,7 @@ export function createUiStack(options = {}, html) {
31
31
  if (c & 8) {
32
32
  const x0 = v[3];
33
33
  const s0 = toText(x0);
34
- if (s0 !== r.v0) r.n.style.setProperty("--ui-stack-height", r.v0 = s0);
34
+ if (s0 !== r.v0) r.n.style.setProperty("--_ui-stack-height", r.v0 = s0);
35
35
  }
36
36
  if (c & 31) {
37
37
  const x1 = hostState(["fill","height","gap","align","justify"], [v[1], v[3], v[2], v[0], v[4]]);
@@ -15,7 +15,7 @@ export interface UiTextProps {
15
15
  font?: "inherit" | "sans" | null;
16
16
  grow?: boolean | null;
17
17
  size?: "inherit" | "xs" | "sm" | "md" | "lg" | null;
18
- tone?: "default" | "secondary" | "muted" | "accent" | "danger" | "success" | "info" | "warning" | null;
18
+ tone?: "default" | "secondary" | "muted" | "accent" | "accent-secondary" | "accent-tertiary" | "danger" | "success" | "info" | "warning" | null;
19
19
  trim?: boolean | null;
20
20
  truncate?: boolean | null;
21
21
  variant?: "body" | "display" | "heading" | "label" | "caption" | "eyebrow" | "code" | null;
package/vanilla/UiText.js CHANGED
@@ -30,7 +30,7 @@ let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P
30
30
  const S = { n: [], t: [], f: import.meta.url, g: "ui-text", b: generatedInputs };
31
31
  const A = [["span",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["div",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["small",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["strong",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["label",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h1",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h2",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h3",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h4",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h5",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["h6",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]],["p",{},[],"",[],["data-ui-text-state","data-ui-text-prop-align","data-ui-text-prop-as","data-ui-text-prop-font","data-ui-text-prop-grow","data-ui-text-prop-size","data-ui-text-prop-tone","data-ui-text-prop-trim","data-ui-text-prop-truncate","data-ui-text-prop-variant","data-ui-text-prop-weight","data-ui-text-prop-wrap"]]];
32
32
  const Q = [[],[],[],[],[],[],[],[],[],[],[],[]];
33
- const D = { g: "ui-text", props: { "align": { "required":false,"values":["start","center"],"default":"start", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "as": { "required":false,"values":["p","span","div","small","strong","label","h1","h2","h3","h4","h5","h6"],"default":"p", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "font": { "required":false,"values":["inherit","sans"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "grow": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["inherit","xs","sm","md","lg"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["default","secondary","muted","accent","danger","success","info","warning"],"default":"default", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "trim": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "truncate": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "variant": { "required":false,"values":["body","display","heading","label","caption","eyebrow","code"],"default":"body", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "weight": { "required":false,"values":["inherit","normal","medium","semibold"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "wrap": { "required":false,"values":["normal","anywhere"],"default":"normal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
33
+ const D = { g: "ui-text", props: { "align": { "required":false,"values":["start","center"],"default":"start", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "as": { "required":false,"values":["p","span","div","small","strong","label","h1","h2","h3","h4","h5","h6"],"default":"p", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "font": { "required":false,"values":["inherit","sans"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "grow": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "size": { "required":false,"values":["inherit","xs","sm","md","lg"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["default","secondary","muted","accent","accent-secondary","accent-tertiary","danger","success","info","warning"],"default":"default", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "trim": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "truncate": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "variant": { "required":false,"values":["body","display","heading","label","caption","eyebrow","code"],"default":"body", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "weight": { "required":false,"values":["inherit","normal","medium","semibold"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "wrap": { "required":false,"values":["normal","anywhere"],"default":"normal", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
34
34
 
35
35
  export function createUiText(options = {}, html) {
36
36
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
@@ -22,15 +22,9 @@ checkHydratedRoot('div', 'ui-action-bar')
22
22
  </template>
23
23
 
24
24
  <style scoped>
25
- /* This component's hooks style the element they are set on, and never a nested one. */
26
- @property --ui-action-bar-gap {
27
- syntax: "*";
28
- inherits: false;
29
- }
30
-
31
25
  /* The action row of a form or dialog. Tertiary actions (Back, Cancel, Discard) sit at the start
32
- edge; secondary actions (Save as draft, Preview) sit just before the primary one, which ends the
33
- row. The bar arranges its actions and leaves their look to them. */
26
+ edge; secondary actions (Save as draft, Preview) sit just before the primary one, which ends the
27
+ row. The bar arranges its actions and leaves their look to them. */
34
28
 
35
29
  /* The tertiary group takes the spare space, pushing the rest to the end edge; without it, the
36
30
  rest still ends the row. */
@@ -42,7 +36,7 @@ checkHydratedRoot('div', 'ui-action-bar')
42
36
 
43
37
  @scope (.ui-action-bar) to ([data-hn]) {
44
38
  :global(:scope:where([data-hn-ui-action-bar])) {
45
- /* Hooks do not inherit, so the parts below read them from the root. */
39
+ /* Resolve shared part values at the component root. */
46
40
  --_ui-action-bar-gap: var(--ui-action-bar-gap);
47
41
 
48
42
  --_gap: var(--ui-space-2);