@zazz-ui/core 0.4.0 → 0.5.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 (331) hide show
  1. package/AUTHORING.md +158 -0
  2. package/CHANGELOG.md +341 -0
  3. package/README.md +55 -23
  4. package/dist/scroll-state-C8mA5gq6.js +1 -0
  5. package/dist/sri.json +124 -72
  6. package/dist/zazz.css +1 -1
  7. package/dist/zazz.js +1 -1
  8. package/editor/zazz.css-data.json +116794 -0
  9. package/editor/zazz.html-data.json +1683 -0
  10. package/editor/zazz.language-data.json +5001 -0
  11. package/editor/zazz.lint-data.json +152 -0
  12. package/package.json +12 -5
  13. package/src/base/_breakpoints.css +12 -0
  14. package/src/base/_layers.css +8 -9
  15. package/src/base/_properties-2xl.css +171 -0
  16. package/src/base/_properties-active.css +107 -0
  17. package/src/base/_properties-checked.css +107 -0
  18. package/src/base/_properties-current.css +107 -0
  19. package/src/base/_properties-disabled.css +107 -0
  20. package/src/base/_properties-focus-visible.css +107 -0
  21. package/src/base/_properties-focus-within.css +107 -0
  22. package/src/base/_properties-hover.css +107 -0
  23. package/src/base/_properties-lg.css +171 -0
  24. package/src/base/_properties-md.css +171 -0
  25. package/src/base/_properties-open.css +107 -0
  26. package/src/base/_properties-sm.css +171 -0
  27. package/src/base/_properties-starting.css +55 -0
  28. package/src/base/_properties-stuck.css +55 -0
  29. package/src/base/_properties-xl.css +171 -0
  30. package/src/base/_properties.css +555 -0
  31. package/src/base/_reset.css +67 -75
  32. package/src/base/_switches.css +145 -0
  33. package/src/base/_typography.css +437 -370
  34. package/src/base/_utilities-box.css +142 -0
  35. package/src/base/_utilities-color.css +290 -0
  36. package/src/base/_utilities-effects.css +235 -0
  37. package/src/base/_utilities-flow.css +312 -0
  38. package/src/base/_utilities-grid.css +143 -0
  39. package/src/base/_utilities-margin.css +376 -0
  40. package/src/base/_utilities-pseudo.css +426 -0
  41. package/src/base/_utilities-sizing.css +259 -0
  42. package/src/base/_utilities-spacing.css +190 -0
  43. package/src/base/_utilities-tier-2xl.css +93 -0
  44. package/src/base/_utilities-tier-active.css +61 -0
  45. package/src/base/_utilities-tier-checked.css +61 -0
  46. package/src/base/_utilities-tier-current.css +61 -0
  47. package/src/base/_utilities-tier-disabled.css +61 -0
  48. package/src/base/_utilities-tier-focus-visible.css +61 -0
  49. package/src/base/_utilities-tier-focus-within.css +61 -0
  50. package/src/base/_utilities-tier-hover.css +63 -0
  51. package/src/base/_utilities-tier-lg.css +93 -0
  52. package/src/base/_utilities-tier-md.css +93 -0
  53. package/src/base/_utilities-tier-open.css +61 -0
  54. package/src/base/_utilities-tier-sm.css +93 -0
  55. package/src/base/_utilities-tier-starting.css +35 -0
  56. package/src/base/_utilities-tier-stuck.css +114 -0
  57. package/src/base/_utilities-tier-xl.css +93 -0
  58. package/src/base/_utilities-typography.css +141 -0
  59. package/src/base/_variables.css +323 -372
  60. package/src/base/_view-transitions.css +10 -12
  61. package/src/base/command-score.d.ts.map +1 -1
  62. package/src/base/command-score.js +1 -2
  63. package/src/base/command-score.ts +1 -2
  64. package/src/base/dialog-lifecycle.js +1 -1
  65. package/src/base/dialog-lifecycle.ts +1 -1
  66. package/src/base/embla.d.ts +6 -7
  67. package/src/base/embla.d.ts.map +1 -1
  68. package/src/base/embla.js +89 -55
  69. package/src/base/embla.ts +89 -55
  70. package/src/base/hotkeys.d.ts +0 -5
  71. package/src/base/hotkeys.d.ts.map +1 -1
  72. package/src/base/hotkeys.ts +0 -5
  73. package/src/base/navigation.d.ts +12 -1
  74. package/src/base/navigation.d.ts.map +1 -1
  75. package/src/base/navigation.js +229 -86
  76. package/src/base/navigation.ts +224 -92
  77. package/src/base/reveal.js +14 -14
  78. package/src/base/reveal.ts +14 -14
  79. package/src/base/scroll-state.d.ts +21 -0
  80. package/src/base/scroll-state.d.ts.map +1 -0
  81. package/src/base/scroll-state.js +177 -0
  82. package/src/base/scroll-state.ts +188 -0
  83. package/src/base/signals.d.ts +1 -2
  84. package/src/base/signals.d.ts.map +1 -1
  85. package/src/base/signals.js +4 -6
  86. package/src/base/signals.ts +4 -6
  87. package/src/base/style-format.d.ts +33 -0
  88. package/src/base/style-format.d.ts.map +1 -0
  89. package/src/base/style-format.js +160 -0
  90. package/src/base/style-format.ts +180 -0
  91. package/src/base/typeahead.d.ts +19 -4
  92. package/src/base/typeahead.d.ts.map +1 -1
  93. package/src/base/typeahead.js +68 -21
  94. package/src/base/typeahead.ts +73 -23
  95. package/src/base/utilities.d.ts +188 -0
  96. package/src/base/utilities.d.ts.map +1 -0
  97. package/src/base/utilities.js +750 -0
  98. package/src/base/utilities.ts +865 -0
  99. package/src/base/utils.d.ts +3 -7
  100. package/src/base/utils.d.ts.map +1 -1
  101. package/src/base/utils.js +4 -8
  102. package/src/base/utils.ts +4 -8
  103. package/src/base/zazz-element.d.ts +14 -8
  104. package/src/base/zazz-element.d.ts.map +1 -1
  105. package/src/base/zazz-element.js +14 -8
  106. package/src/base/zazz-element.ts +15 -8
  107. package/src/globals.d.ts +1 -1
  108. package/src/head.d.ts +50 -4
  109. package/src/head.d.ts.map +1 -1
  110. package/src/head.js +119 -38
  111. package/src/head.ts +172 -41
  112. package/src/index.css +57 -14
  113. package/src/index.js +5 -0
  114. package/src/index.ts +6 -0
  115. package/src/manifest.d.ts +36 -5
  116. package/src/manifest.d.ts.map +1 -1
  117. package/src/manifest.js +150 -6
  118. package/src/manifest.ts +167 -9
  119. package/src/primitives/accordion/accordion.css +18 -17
  120. package/src/primitives/accordion/accordion.html +42 -9
  121. package/src/primitives/alert-dialog/alert-dialog.css +13 -13
  122. package/src/primitives/alert-dialog/alert-dialog.html +26 -12
  123. package/src/primitives/autocomplete/autocomplete-groups.html +64 -33
  124. package/src/primitives/autocomplete/autocomplete.css +45 -43
  125. package/src/primitives/autocomplete/autocomplete.d.ts +6 -5
  126. package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -1
  127. package/src/primitives/autocomplete/autocomplete.html +38 -26
  128. package/src/primitives/autocomplete/autocomplete.js +6 -5
  129. package/src/primitives/autocomplete/autocomplete.ts +6 -5
  130. package/src/primitives/avatar/avatar.html +110 -15
  131. package/src/primitives/badge/badge-icon.html +22 -8
  132. package/src/primitives/badge/badge.css +401 -128
  133. package/src/primitives/badge/badge.html +12 -6
  134. package/src/primitives/breadcrumbs/breadcrumbs.html +25 -5
  135. package/src/primitives/button/button-icon-only.html +17 -11
  136. package/src/primitives/button/button-icon.html +9 -3
  137. package/src/primitives/button/button.css +408 -164
  138. package/src/primitives/button/button.html +14 -7
  139. package/src/primitives/button-group/button-group-vertical.html +5 -5
  140. package/src/primitives/button-group/button-group.css +53 -25
  141. package/src/primitives/button-group/button-group.html +18 -12
  142. package/src/primitives/callout/callout.css +114 -0
  143. package/src/primitives/callout/callout.html +188 -0
  144. package/src/primitives/card/card-subgrid.html +249 -34
  145. package/src/primitives/card/card.css +125 -0
  146. package/src/primitives/card/card.html +141 -20
  147. package/src/primitives/carousel/carousel.css +30 -20
  148. package/src/primitives/carousel/carousel.d.ts +7 -10
  149. package/src/primitives/carousel/carousel.d.ts.map +1 -1
  150. package/src/primitives/carousel/carousel.html +420 -84
  151. package/src/primitives/carousel/carousel.js +1 -1
  152. package/src/primitives/carousel/carousel.ts +8 -11
  153. package/src/primitives/checkbox/checkbox-tasklist.html +6 -6
  154. package/src/primitives/checkbox/checkbox.css +98 -40
  155. package/src/primitives/checkbox/checkbox.d.ts.map +1 -1
  156. package/src/primitives/checkbox/checkbox.html +13 -8
  157. package/src/primitives/checkbox/checkbox.js +7 -9
  158. package/src/primitives/checkbox/checkbox.ts +7 -15
  159. package/src/primitives/combobox/combobox-multiselect.html +53 -33
  160. package/src/primitives/combobox/combobox.css +147 -126
  161. package/src/primitives/combobox/combobox.d.ts +12 -11
  162. package/src/primitives/combobox/combobox.d.ts.map +1 -1
  163. package/src/primitives/combobox/combobox.html +48 -28
  164. package/src/primitives/combobox/combobox.js +46 -51
  165. package/src/primitives/combobox/combobox.ts +48 -55
  166. package/src/primitives/command/command-actions.d.ts +2 -3
  167. package/src/primitives/command/command-actions.d.ts.map +1 -1
  168. package/src/primitives/command/command-actions.html +48 -33
  169. package/src/primitives/command/command-actions.js +12 -10
  170. package/src/primitives/command/command-actions.ts +12 -13
  171. package/src/primitives/command/command-dialog.html +49 -25
  172. package/src/primitives/command/command.css +52 -42
  173. package/src/primitives/command/command.d.ts +10 -7
  174. package/src/primitives/command/command.d.ts.map +1 -1
  175. package/src/primitives/command/command.html +95 -46
  176. package/src/primitives/command/command.js +30 -13
  177. package/src/primitives/command/command.ts +30 -12
  178. package/src/primitives/debug/audit-core.d.ts +64 -0
  179. package/src/primitives/debug/audit-core.d.ts.map +1 -0
  180. package/src/primitives/debug/audit-core.js +356 -0
  181. package/src/primitives/debug/audit-core.ts +535 -0
  182. package/src/primitives/debug/debug.d.ts +50 -0
  183. package/src/primitives/debug/debug.d.ts.map +1 -0
  184. package/src/primitives/debug/debug.js +168 -0
  185. package/src/primitives/debug/debug.ts +211 -0
  186. package/src/primitives/dialog/dialog-with-form.html +67 -45
  187. package/src/primitives/dialog/dialog.css +87 -61
  188. package/src/primitives/dialog/dialog.html +25 -17
  189. package/src/primitives/fields/fields.css +108 -134
  190. package/src/primitives/fields/fields.html +39 -0
  191. package/src/primitives/input/input-icon-leading.html +3 -3
  192. package/src/primitives/input/input-icon-trailing.html +3 -3
  193. package/src/primitives/input/input.css +87 -49
  194. package/src/primitives/input/input.html +15 -15
  195. package/src/primitives/input-group/input-group-password-group.html +15 -15
  196. package/src/primitives/input-group/input-group.css +118 -75
  197. package/src/primitives/input-group/input-group.html +42 -30
  198. package/src/primitives/kbd/kbd-group.html +15 -2
  199. package/src/primitives/kbd/kbd.css +44 -31
  200. package/src/primitives/kbd/kbd.html +7 -1
  201. package/src/primitives/layout/layout.css +159 -0
  202. package/src/primitives/layout/layout.html +35 -0
  203. package/src/primitives/lightbox/lightbox.css +178 -105
  204. package/src/primitives/lightbox/lightbox.d.ts.map +1 -1
  205. package/src/primitives/lightbox/lightbox.html +138 -166
  206. package/src/primitives/lightbox/lightbox.js +10 -13
  207. package/src/primitives/lightbox/lightbox.ts +12 -13
  208. package/src/primitives/menu/menu-interest.html +60 -18
  209. package/src/primitives/menu/menu.css +22 -17
  210. package/src/primitives/menu/menu.d.ts +5 -5
  211. package/src/primitives/menu/menu.html +195 -40
  212. package/src/primitives/menu/menu.js +8 -8
  213. package/src/primitives/menu/menu.ts +8 -8
  214. package/src/primitives/menubar/menubar-help-search.html +78 -32
  215. package/src/primitives/menubar/menubar.html +166 -38
  216. package/src/primitives/meter/meter.css +41 -38
  217. package/src/primitives/meter/meter.html +44 -9
  218. package/src/primitives/mobile-menu/mobile-menu.css +47 -40
  219. package/src/primitives/mobile-menu/mobile-menu.html +1460 -179
  220. package/src/primitives/navigation-menu/navigation-menu-featured.html +155 -33
  221. package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +222 -47
  222. package/src/primitives/navigation-menu/navigation-menu-interest.html +130 -38
  223. package/src/primitives/navigation-menu/navigation-menu-megamenu.html +402 -72
  224. package/src/primitives/navigation-menu/navigation-menu-simple.html +90 -40
  225. package/src/primitives/navigation-menu/navigation-menu.css +104 -106
  226. package/src/primitives/navigation-menu/navigation-menu.html +554 -158
  227. package/src/primitives/otp/otp.css +43 -44
  228. package/src/primitives/otp/otp.d.ts +4 -5
  229. package/src/primitives/otp/otp.d.ts.map +1 -1
  230. package/src/primitives/otp/otp.html +7 -6
  231. package/src/primitives/otp/otp.js +13 -18
  232. package/src/primitives/otp/otp.ts +12 -19
  233. package/src/primitives/password-group/password-group.css +132 -107
  234. package/src/primitives/password-group/password-group.d.ts.map +1 -1
  235. package/src/primitives/password-group/password-group.html +23 -16
  236. package/src/primitives/password-group/password-group.js +11 -12
  237. package/src/primitives/password-group/password-group.ts +11 -12
  238. package/src/primitives/popover/popover.css +89 -95
  239. package/src/primitives/popover/popover.html +18 -0
  240. package/src/primitives/progress/progress-indeterminate.html +1 -1
  241. package/src/primitives/progress/progress.css +34 -35
  242. package/src/primitives/progress/progress.html +18 -4
  243. package/src/primitives/prose/prose.html +19 -12
  244. package/src/primitives/radio/radio.css +83 -46
  245. package/src/primitives/radio/radio.html +16 -11
  246. package/src/primitives/reveal/reveal.css +37 -46
  247. package/src/primitives/reveal/reveal.html +15 -0
  248. package/src/primitives/scroll-fade/scroll-fade.css +115 -0
  249. package/src/primitives/scroll-fade/scroll-fade.html +69 -0
  250. package/src/primitives/select/multiselect.d.ts +8 -10
  251. package/src/primitives/select/multiselect.d.ts.map +1 -1
  252. package/src/primitives/select/multiselect.js +23 -27
  253. package/src/primitives/select/multiselect.ts +23 -29
  254. package/src/primitives/select/select-align.html +79 -16
  255. package/src/primitives/select/select-multiple.html +8 -4
  256. package/src/primitives/select/select-sides.html +104 -21
  257. package/src/primitives/select/select.css +299 -191
  258. package/src/primitives/select/select.html +24 -5
  259. package/src/primitives/separator/separator.css +15 -18
  260. package/src/primitives/separator/separator.html +37 -10
  261. package/src/primitives/slider/slider.css +48 -38
  262. package/src/primitives/slider/slider.html +9 -1
  263. package/src/primitives/style-guard/style-guard.d.ts +19 -0
  264. package/src/primitives/style-guard/style-guard.d.ts.map +1 -0
  265. package/src/primitives/style-guard/style-guard.js +125 -0
  266. package/src/primitives/style-guard/style-guard.ts +153 -0
  267. package/src/primitives/switch/switch.css +42 -33
  268. package/src/primitives/switch/switch.html +11 -6
  269. package/src/primitives/table/table-alternating.html +1 -1
  270. package/src/primitives/table/table-grid.html +5 -5
  271. package/src/primitives/table/table-size-sm.html +1 -1
  272. package/src/primitives/table/table.css +64 -61
  273. package/src/primitives/table/table.html +7 -7
  274. package/src/primitives/tabs/tabs.css +167 -166
  275. package/src/primitives/tabs/tabs.d.ts +10 -11
  276. package/src/primitives/tabs/tabs.d.ts.map +1 -1
  277. package/src/primitives/tabs/tabs.html +192 -36
  278. package/src/primitives/tabs/tabs.js +14 -15
  279. package/src/primitives/tabs/tabs.ts +14 -15
  280. package/src/primitives/textarea/textarea.css +69 -44
  281. package/src/primitives/textarea/textarea.html +3 -3
  282. package/src/primitives/toaster/toaster.css +90 -92
  283. package/src/primitives/toaster/toaster.d.ts +0 -6
  284. package/src/primitives/toaster/toaster.d.ts.map +1 -1
  285. package/src/primitives/toaster/toaster.html +22 -18
  286. package/src/primitives/toaster/toaster.js +64 -72
  287. package/src/primitives/toaster/toaster.ts +71 -87
  288. package/src/primitives/toggle/toggle.css +368 -153
  289. package/src/primitives/toggle/toggle.html +27 -9
  290. package/src/primitives/toggle-group/toggle-group-multiple.html +3 -3
  291. package/src/primitives/toggle-group/toggle-group-vertical.html +4 -4
  292. package/src/primitives/toggle-group/toggle-group.css +71 -23
  293. package/src/primitives/toggle-group/toggle-group.html +3 -3
  294. package/src/primitives/toolbar/toolbar.html +35 -13
  295. package/src/primitives/tooltip/tooltip-disabled.html +3 -3
  296. package/src/primitives/tooltip/tooltip-sides.html +36 -14
  297. package/src/primitives/tooltip/tooltip-with-kbd.html +5 -5
  298. package/src/primitives/tooltip/tooltip.css +111 -80
  299. package/src/primitives/tooltip/tooltip.html +3 -3
  300. package/src/primitives/utilities/aspect-ratio.html +51 -7
  301. package/src/primitives/utilities/basis.html +64 -11
  302. package/src/primitives/utilities/col-span.html +65 -9
  303. package/src/primitives/utilities/compose.html +48 -10
  304. package/src/primitives/utilities/flex-align.html +89 -19
  305. package/src/primitives/utilities/flex-direction.html +111 -13
  306. package/src/primitives/utilities/flex-grow.html +41 -7
  307. package/src/primitives/utilities/gap.html +158 -19
  308. package/src/primitives/utilities/grid-cols.html +75 -7
  309. package/src/primitives/utilities/grid-responsive.html +111 -12
  310. package/src/primitives/utilities/margin-auto.html +38 -7
  311. package/src/primitives/utilities/object-fit.html +75 -13
  312. package/src/primitives/utilities/order.html +40 -4
  313. package/src/primitives/utilities/overflow.html +74 -20
  314. package/src/primitives/utilities/padding-compose.html +67 -10
  315. package/src/primitives/utilities/padding.html +84 -13
  316. package/src/primitives/utilities/pile.html +29 -0
  317. package/src/primitives/utilities/position.html +65 -8
  318. package/src/primitives/utilities/responsive-flex.html +54 -7
  319. package/src/primitives/utilities/responsive-grid.html +115 -12
  320. package/src/primitives/utilities/size.html +120 -16
  321. package/src/primitives/utilities/width.html +123 -16
  322. package/examples/about.html +0 -583
  323. package/examples/components.html +0 -1028
  324. package/examples/forms.html +0 -504
  325. package/examples/index.html +0 -261
  326. package/examples/layout.html +0 -313
  327. package/examples/products.html +0 -839
  328. package/examples/responsive.html +0 -332
  329. package/src/base/_layout.css +0 -571
  330. package/src/base/_utilities.css +0 -6758
  331. package/src/primitives/utilities/grid-pile.html +0 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,346 @@
1
1
  Notable changes to `@zazz-ui/core`, grouped by primitive or base scope under each version. The grouping is load-bearing: the `zazz-ui` CLI's `update` and `diff` print only the slice that touches the files you've vendored. Breaking entries are flagged **BREAKING** with a one-line migration note. During 0.x, a minor bump means at least one breaking entry (ADR-0010 has the full definition of "breaking").
2
2
 
3
+ ## 0.5.0 (2026-10-07)
4
+
5
+ Style utilities (custom properties in `style`, called "props" in earlier 0.5 previews) replace utility classes and `data-ui` replaces class identity (SPEC.md, ADR-0012, ADR-0013). 0.5 is an alpha with breaking changes throughout and is not compatible with 0.4.x: migrate markup and themes in one step, using the migration notes below.
6
+
7
+ ### base
8
+
9
+ - In-page navigation keeps chrome current: a `data-ui-persist` element keeps its scroll offsets in every engine (WebKit reset them, having no `moveBefore()`), and its links take `aria-current` from their twins in the destination's copy, paired by `href`. New `data-ui-persist-scroll="<id>"` renders an element from the destination but keeps its scroll offset, for a region whose content changes per page (a section sidebar). `<ui-debug>` and the lint rule check it like `data-ui-persist` (ADR-0014 amendment).
10
+ - New `current` state tier: `--bg--current`, `--text--current`, the group form, and every other state-taking utility match `[aria-current]` with any value but `"false"`, between `checked` and `open` in precedence. Style a current-page link with it so a persisted header updates with `aria-current`.
11
+ - Fix: an in-page navigation scrolled the window with the reset's `scroll-behavior: smooth`, so the new page visibly scrolled to the top inside the view transition. The jump is now instant.
12
+
13
+ - Typeahead engine (autocomplete, combobox, command): `data-<prefix>-filter="none"` leaves filtering to another source, and the list is observed, so items added or removed after the query are ranked (and, in a palette, the new best match highlighted) like typed input.
14
+ - Editor support: `editor/zazz.language-data.json` (identity → primitive owners, CSSDoc header summaries, `--ui-*` hook defaults, and design tokens resolved through `var()` / `light-dark()` / `clamp()`) for the Zazz language server. `buildHead({ base, primitives })` loads a page's primitives file by file from a local copy (the granular grain, as `cdn.primitives` does from jsDelivr), and `findHeadBlock` / `headBlockEdit` / `replaceHeadBlock` / `headMarker` read and rewrite a page's `<!-- zazz:head -->` block, whose opening marker may record the `buildHead` options as JSON. The package exports `./manifest.ts` and `./head.ts` sources. `style-format.ts` exports `scanDeclarations` (declarations with name, colon, and value offsets).
15
+
16
+ - New **utilities layer**, generated from `src/base/utilities.ts` into `_breakpoints.css`, `_properties*.css`, and `_utilities-*.css`: values are custom properties in `style=""` (`--p: 4`, `--w--md: fit-content`, `--bg--hover: var(--color-muted)`), read by attribute-gated rules with breakpoint and state tiers. Registrations are non-inheriting, so a utility never leaks into a child. `html` gains `container-type: inline-size`, the outermost query container for breakpoint tiers.
17
+ - **BREAKING** The cascade layer is renamed `zazz` → `ui`: the top-level order is `variables, reset, vendors, legacy, ui, overrides`, with `ui.components`, `ui.plugins`, and `ui.utilities` inside it (were `zazz.components`, `zazz.plugins`, `zazz.utilities`). Migration: rename `@layer zazz.*` and `layer(zazz.plugins)` to `@layer ui.*` and `layer(ui.plugins)` in your own CSS.
18
+ - **BREAKING** The focus ring's theme color is the `--color-ring` role (set it on `:root`; default `var(--color-primary)`). The `--ring` token is gone: `--ring`, `--ring-color`, and `--ring-offset-color` are utility names, registered non-inheriting, and the kit reads the ring through `--ring-shadow-color` (the opacity-mixed band color, previously `--ring`) and `--ring-offset-shadow-color` (previously `--ring-offset-color`). Migration: `--ring: …` or `--ring-color: …` on `:root` → `--color-ring: …`; `var(--ring)` / `var(--ring-offset-color)` in your CSS → `--ring-shadow-color` / `--ring-offset-shadow-color`.
19
+ - In dark mode the brand roles are light: `--color-primary`, `--color-secondary`, and `--color-tertiary` resolve to their scale's 50 step (0.4: 800), and their `-foreground` roles to the 950 step (0.4: white). Light mode and the status roles (`info`, `success`, `warning`, `destructive`, white foregrounds) are unchanged.
20
+ - **BREAKING** Theme roles are `--color-*` (`--color-background`, `--color-primary`, `--color-muted-foreground`, …), declared once as `light-dark()` pairs on `:root`. The bare Shadcn names (`--background`, `--primary`, `--card`, …) are removed, not aliased, so a utility name never collides with an inheriting token; a static test keeps every kit stylesheet on `--color-*`. Migration: prefix every role you set or read with `color-` (`--primary: …` → `--color-primary: …`, `var(--border)` → `var(--color-border)`).
21
+ - **BREAKING** The palette scales are `--color-*` too: `--color-primary-50…950` (secondary, tertiary, neutral alike), `--color-white` / `--color-black`, and the alpha overlays `--color-shade-*` / `--color-tint-*`. Migration: prefix every scale you read with `color-` (`var(--primary-600)` → `var(--color-primary-600)`, `var(--shade-900)` → `var(--color-shade-900)`).
22
+ - **BREAKING** Directional style utilities name the physical side, `l`/`t`/`r`/`b`, and still set logical properties (so `l` is the right side in RTL): `--ps`/`--pe` → `--pl`/`--pr`, `--ms`/`--me` → `--ml`/`--mr`, `--start`/`--end` → `--left`/`--right`, `--border-s-*`/`--border-e-*` → `--border-l-*`/`--border-r-*`, with their tier, group, and pseudo forms. Hooks named after them follow: `--ui-input-ps`/`-pe` → `-pl`/`-pr` (select, combobox, and the mobile menu's nested accordion alike). Migration: rename `s` → `l` and `e` → `r` in every directional utility and hook.
23
+ - New border shorthand utilities: `--border`, `--border-x`, `--border-y`, `--border-l`, `--border-t`, `--border-r`, `--border-b`. A color is a 1px solid border in that color, a number is that many px (`abs()`, so `-2` is 2px) in `--color-border`, and a length is the width in `--color-border`; `--border-style` overrides the solid default. Per side, the side longhand beats `--border-width` / `--border-color`, which beat the side, axis, and all-sides shorthands in that order. The shorthands take state and group tiers, and on a primitive they flatten its border states like any base utility (`<ui-debug>` warns); it also warns on a value that is not one color, number, or length, such as CSS's `1px solid red`, which draws a 1px transparent border.
24
+ - Terminology: the inline custom properties are **style utilities** ("style utils"); "props", "style props", "style variables", and "style tokens" are retired in docs, warnings, and code. `src/base/props.ts` is `src/base/utilities.ts` (`Prop` → `Utility`, `PROPS` → `UTILITIES`), and the manifest ships `base/utilities.js`.
25
+ - **BREAKING** Text color is the `--text` utility and font size is `--font-size` (0.5 previews had `--color` and `--text`), so a utility never reads like a `--color-*` token: `--text: var(--color-muted-foreground); --text--hover: var(--color-foreground)`, `--font-size: var(--font-size-lg)`; the group and pseudo forms follow (`--group-text--hover`, `--before-text`). Hooks are named after the utilities they back: a text-color hook ends in `-text` (0.4 `-foreground`) and a font-size hook in `-font-size` (as in 0.4); each primitive's section below lists its renames from 0.4. From a 0.5 preview, `--ui-<x>-color` → `--ui-<x>-text` (button, badge, card, dialog, kbd, mobile-menu, option, table, table-head, table-caption, tabs-label, toaster, toaster-description, toggle, tooltip, field, field-label, input-group, password-group, otp-separator, prose-link) and `--ui-<x>-text` → `--ui-<x>-font-size` (field, button, badge, input, kbd, otp-cell, option, select, table, tabs-label, textarea, toaster-description, toaster-title, toggle, tooltip, password-group, input-group). Part hooks that fill a shape (`--ui-otp-caret-color`, `--ui-dialog-backdrop-color`, `--ui-tooltip-arrow-color`, …) keep their names. Migration from a 0.5 preview: rename sizes first (`--text:` → `--font-size:`, `-text` hooks → `-font-size`), then colors (`--color:` → `--text:`, `-color` text hooks → `-text`).
26
+ - Pseudo-element forms (`--before-*` / `--after-*`) now cover position, display, z, the inset utilities (`--before-inset-y`, `--before-left`, …), padding, opacity, the transforms, transition, aspect, visibility, pointer-events, outline, and font size/weight, besides sizing, color, and `--rounded`: enough to draw an accent bar or a badge dot without a stylesheet. `--before-display` takes CSS values (`block`), not the `flex-col` shorthands.
27
+ - **BREAKING** `--place` is `--place-items`, and `--place-content` joins it: both take the CSS alignment keywords (`center`, `start`, `end`, `stretch`, `space-between`, `safe end`, …) and work tier-only like `--items` and `--justify`. Migration: rename `--place:` to `--place-items:`.
28
+ - Tier-only utilities work on any element that is not a primitive: the no-base rules exclude primitives by tag form and `data-ui` identity (generated from `src/primitives/`) instead of any `data-ui`, so typography roles, switches, and `prose` count as plain. `--opacity--hover: .8` alone now works on `data-ui="text-2xl"` or `data-ui="group"`; a button or card still needs the base, because it sets those properties itself.
29
+ - Tier-only utilities: `--opacity`, `--scale`, `--translate`, `--rotate`, `--shrink`, `--flex-wrap`, `--position`, `--overflow` / `-x` / `-y`, `--rounded`, `--aspect`, and `--z` join the SPEC §3 no-base allowlist, so `--opacity--hover: .4` or `--rounded--md: var(--radius-lg)` works alone on a plain element (a primitive still needs the base, since it carries its own chain). `--shadow` and the `--ring*` utilities work tier-only the same way through their shared `box-shadow` composite. The no-base rules also fire on the `--group-<utility>--<state>` form.
30
+ - Removed tokens nothing read: `--default-transition-property` and `--font-weight-mono`. **BREAKING** The per-state decoration tokens (`--decoration-color--hover` / `--active`, `--decoration-offset--hover` / `--active`) are removed; a link's `:hover` rule sets `--decoration-offset: calc(var(--decoration-thickness) * 2)` itself and `:active` resets it with `inherit` (button and badge link variants, prose links, links inside `<p>`). Link buttons also read `--decoration-thickness--hover` / `--active`, which never existed, so their underline lost its thickness on hover; the reads are gone. Migration: override the base `--decoration-*` tokens on `:root`, or set them in your own `:hover` rule. Fix: a prose `h1` spaced itself with `--paragraph-spacing-display`; it reads `--paragraph-spacing-h1`.
31
+ - **BREAKING** The focus-ring recipe's element private is renamed `--_ring` → `--_ring-fill` in every primitive: `--_<utility>` names are the utilities layer's own privates (a `--ring` utility would have overwritten the ring color). A static test rejects any hand-written use of a generated private name. Migration: if you copied the ring recipe from `_variables.css` into your own component, rename its `--_ring`.
32
+ - Carousel: slides are `transition: none`. Embla loops by moving slides with `transform`, so a transition on a slide (an `<a>` slide picked up the link transition) swept the looped slide across the viewport between the last and first slide. Put hover transitions on a slide's child, as the fragments do.
33
+ - Carousel: the slide gap is a hook, `--ui-carousel-gap` (default `0px`); set it on `:root` so the slide basis follows. A dual-mode `--gap` utility on the slide container changes the gap only (the basis token is computed on `:root`, as in 0.4). 0.4 read the gap from the `.gap-*` utility class on the host, which no longer exists.
34
+ - **BREAKING** The theme is pinned with one attribute, `data-ui-theme="dark" | "light"` on any element (ADR-0013); the `.dark` / `.light` classes and `data-theme` no longer scope a theme. The head's theme script sets `data-ui-theme` on `<html>` from the stored choice and otherwise leaves the page on the system scheme; the command palette's `--theme-toggle` flips the attribute. Migration: replace `class="dark"` with `data-ui-theme="dark"`; if your own script toggled the class, set the attribute instead.
35
+ - **BREAKING** The layout primitive replaces the `.container` system (SPEC §12): `<ui-layout>` or `data-ui="layout"` is itself the band grid for its children (0.4 turned the _parent_ region into the grid); children default to the `xl` band, `data-layout-size` changes that default (was `data-container` on the container), and a child is placed with `--band: layout-md`, `--band: layout-bleed`, `--band--lg: layout-xl` (was `data-container` on the child). Band lines are `layout-<breakpoint>-start/-end` plus `layout-full` and `layout-bleed`; a layout that is a direct child of a layout is a subgrid that keeps the parent's line names. `base/_layout.css` (the `.container`, `@md:container`, `@max-md:container`, and article-width variants) is removed; an article reading width is a utility (`--max-w: var(--article-lg); --mx: auto`). The `--band` no-base rule excludes layout children so a tier-only `--band--lg` keeps the band below lg.
36
+ - **BREAKING** The 0.4 class layer `base/_utilities.css` is deleted; the generated utilities layer (`base/_properties*.css`, `base/_utilities-*.css`) is the whole utilities surface. `MANIFEST_VERSION` is 2 (the CLI's supported range is 1–2). The 0.4 `.container[data-variant="article"]` reading measure is a `data-ui="prose"` block with `--max-w: var(--article-*)` and `--mx: auto`; the responsive `@md:container` / `@max-md:container` variants are breakpoint tiers on a child's band (`--band: layout-full; --band--md: layout-sm`). Fractional basis classes subtracted the gap; write it out: `--basis: calc((100% - var(--space-md)) / 2)`. The utilities examples (`primitives/utilities/*.html`) are rewritten to utilities.
37
+ - **BREAKING** In-page navigation is opt-in and persistence is explicit (SPEC §17, ADR-0014). `navigation.js` swaps only between pages whose `<html>` carries `data-ui-navigation="swap"`, and swaps the whole `<body>` rather than `<main>`; an element survives only with `data-ui-persist="<id>"` on both pages (moved with `moveBefore()` where supported, so it keeps its state). Without the opt-in, navigation is native. `data-layout` on `<main>` is no longer read. Reloads are never intercepted (before, `location.reload()`, including a dev server's live reload, swapped only `<main>` and left the header stale). `ZazzElement` gains a no-op `connectedMoveCallback`, so a moved element keeps its setup. `<ui-debug>` lists the persisted elements and warns on misuse. Migration: add `data-ui-navigation="swap"` to `<html>` on pages that relied on the swap, and `data-ui-persist="toaster"` to a `<ui-toaster>` that should survive navigations.
38
+ - New `starting` state (`@starting-style`, generated into `_utilities-tier-starting.css` and `_properties-starting.css`): `--<utility>--starting` on any color or effects utility is the value the element starts from when it first renders or leaves `display: none`, so a `--transition` animates in from it (`--opacity--starting: 0; --opacity: 1; --transition: opacity 0.3s`). It outranks every other state and has no `--group-*` form (`<ui-debug>` flags one). The html formatter writes it first in its utility's lines.
39
+ - **BREAKING** Breakpoint tiers query the **nearest inline-size container** (`@container (width >= 65ch)`) instead of page flags: the `--cqi-*` flags, the body setter, and the style queries behind every breakpoint setter and keyword rule are removed. The reset's `html`, `body`, `main`, `header`, `footer`, `section`, and `article` stay inline-size containers, so page-level markup responds as before; new `data-ui="container"` switch (`container-type: inline-size`) makes any element one, so tiers inside a card, sidebar, or slot follow its width. An element never queries itself (a container's own tiers read the container above), and `body` can now use responsive utilities. Breakpoints no longer depend on container style queries (Baseline only since 2026). Migration: a subtree that pinned `--cqi-*` to force a mobile layout becomes a narrow `data-ui="container"`.
40
+ - **BREAKING** Breakpoints are Tailwind's five names (`sm`–`2xl`) with thresholds in `ch`, chosen for legibility: `sm` 40ch (the narrowest comfortable line), `md` 65ch (one reading measure, `--article-md`), `lg` 90ch (two 45ch columns), `xl` 120ch (three 40ch columns), `2xl` 150ch (two 75ch measures); ≈ 404/656/909/1210/1515px with the system font. `ch` resolves against the nearest container's font, so a narrower face or a smaller-font container reaches each breakpoint earlier. Layout widths are a separate rem scale, renamed `--breakpoint-*` → `--layout-sm` … `--layout-2xl` (40/48/64/80/96rem): the layout bands and the dialog and command widths read them. The `2xs` and `xs` breakpoints are removed with their tiers (`--*--2xs`, `--*--xs`), bands (`layout-2xs`, `layout-xs`), and `data-layout-size` presets; the navigation-menu popover and the lightbox example size to `--article-sm` instead of `--breakpoint-xs`. Migration: `var(--breakpoint-*)` → `var(--layout-*)`; `--*--xs` → `--*--sm` (shift a progression up one step, as the carousel and responsive-grid examples do); `layout-2xs` / `layout-xs` → `layout-sm` or `--max-w: var(--article-*)`.
41
+ - Each child of a layout is an inline-size query container (`--ui-layout-child-container`, default `inline-size`; `normal` opts a layout's children out), so breakpoint tiers inside a band follow the band's width instead of the full-width section around it. Nested layouts, children that subgrid, and children sized by `fit-content` / `min-content` / `max-content` stay uncontained (containment would break a subgrid or collapse a content-sized box); every primitive fragment renders identically either way.
42
+ - New `--inset-x` and `--inset-y` utilities (spacing family, dual mode, breakpoint tiers): `inset-inline` (left and right) and `inset-block` (top and bottom), logical like the side utilities: `--inset-x: 0; --inset-y: var(--space-sm)`.
43
+ - New experimental `stuck` state (container scroll-state queries natively in Chromium, behind `@supports (container-type: scroll-state)`; elsewhere the new `base/scroll-state.js` polyfill, which `index.js` imports only where the query is unsupported; generated into `_utilities-tier-stuck.css` and `_properties-stuck.css`): every sticky element (`--position: sticky`, its tiers, or raw `position: sticky`) or `--stuck-state` element is a scroll-state container, and `--<utility>--stuck` on its **descendants** (a container query never matches the container) applies while it is stuck to the side `--stuck-state` names: `top` (default), `right`, `bottom`, `left`, `block-start`, `block-end`, `inline-start`, or `inline-end`. It ranks below every own and group state, has no `--group-*` form, and `--stuck-state` takes no tiers (switch `--position` per breakpoint instead). The polyfill measures each container on scroll and resize (once per frame) and writes its stuck sides to `data-ui-stuck`. `<ui-debug>`'s `scroll-state` rule flags an unknown side, a tiered `--stuck-state`, a `--*--stuck` on the sticky element itself, and a group form.
44
+ - `--position` takes breakpoint tiers (it moves from the box family to flow): `--position: sticky; --position--lg: static`.
45
+ - Color utilities take breakpoint tiers too (`--bg--md`, `--text--lg`, `--border-color--md`, the border utilities, …), so paint can change per breakpoint; a state still beats a breakpoint (`--bg--md: black; --bg--hover: gray` is gray on hover at any width), and `--bg--md: none` clears a gradient from md up. Effects stay state-only.
46
+ - New keyword shorthands (SPEC §3a), each working at every tier of its utility: `--shadow: md` (`2xs … 2xl`) reads as `var(--shadow-md)`, and `--font-weight: strong` (also `heading`, `body`) as `var(--font-weight-strong)`; any other value still passes through. `<ui-debug>`'s new `font-weight-name` rule turns a standard weight name (`medium`, `semibold`, …), which is not CSS, into a fix to the number (`500`). Spacing has no keywords: the space tokens are scale steps, so write the number (`--p: 4` is `var(--space-sm)`; 2xs 1, xs 2, sm 4, md 6, lg 11, xl 24, 2xl 40).
47
+ - New shadow color controls: the `--color-shadow` theme input tints every `--shadow-*` token (default `--color-black`), and the `--shadow-hue` utility re-declares the shadow tokens on its element, so that element and its subtree (keyword, `var(--shadow-*)`, and primitive shadows) take that hue.
48
+ - **BREAKING** `--flex-direction` is removed: `--display` takes flex shorthands that set the direction with the display, at every breakpoint: `flex-row`, `flex-col`, `flex-row-reverse`, `flex-col-reverse`, and `inline-flex-…` (`--display: flex-col; --display--md: flex-row`). A tier with any other display resets the direction to row. Migration: `--display: flex; --flex-direction: column` → `--display: flex-col`; `--flex-direction--md: row` → `--display--md: flex-row`; `<ui-debug>` points a leftover `--flex-direction` at the shorthand. The kit's fragments are migrated.
49
+ - Reset hooks: native-element rules that used a token directly now declare a hook in the same rule, so one override retunes them: `--strong-font-weight` (`b`, `strong`), `--hr-bg`, `--code-font-family`, `--optgroup-font-weight`, `--optgroup-option-pl`, and `--selection-bg` (on `html`).
50
+ - New gradient utilities: `--bg-linear`, `--bg-radial`, and `--bg-conic` take the gradient's prelude (a direction or angle, shape, size, `at <position>`, and/or `in <color-space> [<hue> hue]`) and compose `background-image: <type>-gradient(<prelude>, <--bg-stops>)` with the shared `--bg-stops` (normal color-stop syntax): `--bg-linear: to bottom in oklch; --bg-stops: var(--color-shade-600), transparent 20%`. `--bg` stays the color underneath. One gradient per element (conic wins over radial over linear); `<ui-debug>`'s new `gradient-incomplete` rule flags a type without stops, stops without a type, and two types.
51
+ - `--bg: none` clears the background: the color is transparent (on a primitive too) and `background-image` is `none`, at the base and at each state and group tier (`--bg--hover: none` drops a gradient on hover). The editor offers `none` for `--bg`.
52
+ - Raw track lists are `--template-cols` / `--template-rows` (Tailwind's `grid-cols-[…]`), with breakpoint and state tiers, the group form, and no base needed for a tier: `--template-rows: 0fr; --template-rows--open: 1fr` animates an expand.
53
+ - Grid lines are placed only with the span, start, and end utilities: there is no raw `--row` (write `--row-span: 3` for `span 3`), and `--band` is the layout child's band.
54
+ - New grid placement utilities matching Tailwind's: `--col-span` / `--row-span` (a count → `span n / span n`), `--col-start`, `--col-end`, `--row-start`, `--row-end` (line numbers), all with breakpoint tiers and on the no-base allowlist (span ends in `1`, start and end in `auto`); start and end follow span in source, so `--col-start: 2; --col-span: 3` combines. A layout's children are excluded from their no-base rules, as for `--band`. Span every track with `--col-start: 1; --col-end: -1` (Tailwind's `col-span-full`); `<ui-debug>` suggests it for `--col-span: full`.
55
+ - `--grid-cols` / `--grid-rows` also take `subgrid` (Tailwind's `grid-cols-subgrid`; `grid-cols-none` is `--template-cols: none`); a track list stays in `--template-cols` / `--template-rows`.
56
+ - Keywords mix with numbers (SPEC §6, ADR-0012 amendment): `--w: 4; --w--md: auto`, `--w: auto; --w--md: 4`, `--w: fit-content; --h: 4`, `--mx: auto; --max-w: 56`, and `--grid-cols: 2; --grid-cols--md: subgrid` all work. Each keyword-bearing utility gets explicit keyword rules (a base keyword rule, then per breakpoint a typed restore rule and a raw keyword rule) instead of switching its family to raw emission, which made sizing numbers dead on any element with a sizing keyword. `if()` will replace these rules once it is across the support floor. `<ui-debug>` drops its "number read raw next to a sizing keyword" warning.
57
+ - **BREAKING** `html` is the page's scrolling element again: `body` is `min-block-size: 100svh` (footer still pinned on short pages) instead of a fixed-height `overflow-y: auto` scroller, `scroll-behavior: smooth` moves to `html`, and `scrollbar-gutter: stable` is removed. `body` keeps `overflow-x: clip`. Migration: scroll code that targeted `document.body` (`body.scrollTo()`, `body.scrollTop`, a `scroll` listener on body) should use `window` / `document.scrollingElement`.
58
+ - `<ui-debug>` no longer warns that a utility flattens a primitive's state when the element carries a variant preset (`data-button-variant="ghost" style="--text: var(--color-white)"`): a variant plus a utility override is the intended pattern, as in Tailwind.
59
+ - New `AUTHORING.md` (shipped): the markup rules for 0.5 in one page, for people, editor rules, and AI assistants.
60
+ - Editor custom data now completes values after the colon (design tokens per utility, CSS keywords for keyword utilities, layout bands for `--band`) and lists the `--group-<utility>--<state>` forms; `<ui-debug>` accepts group utilities.
61
+ - New role tokens behind the typography roles: `--font-{feature,kerning,language,size-adjust,alternates,caps,east-asian,emoji,ligatures,numeric,position,settings,optical-sizing}-{heading,body}` (the font-feature, kerning, and font-variant controls), declared on `:root` at their CSS initial values (the heading optical-sizing token was `--font-optical-heading`; it is `--font-optical-sizing-heading`, matching the body token); redeclare one to turn a feature on (`--font-numeric-body: tabular-nums`).
62
+ - Fix: card and carousel fragments read an undeclared `--aspect-landscape` token after the class migration; they use `3 / 2` again, as 0.4 did.
63
+ - New `./index.ts` export: the TypeScript entry, for bundlers that transpile the sources (the playground imports it so core edits hot-reload without `tsc`).
64
+ - New editor custom data (SPEC §13, claim 21): `editor/zazz.html-data.json` (every `data-ui` token, every `data-<name>-<key>` attribute with its values, the tag forms) and `editor/zazz.css-data.json` (every utility, tier and pseudo form, every `--ui-*` hook), generated by `vp run generate` and pinned by a freshness test; the workspace `.vscode/settings.json` wires them into VS Code.
65
+ - New `<ui-debug data-debug-domains="localhost">` (`primitives/debug/debug.js`, SPEC §13, development only): audits every `style` attribute for unknown utilities, wrong modes, tiers without a base, tiers a family lacks, a base utility that flattens a state a primitive hook covers (claim 27), raw properties shadowing a utility, whitespace the gates cannot match, and `data-<name>-*` presets outside their identity (tag form, token, or an ancestor; slots and states are exempt). Identities and hooks are read from the page's stylesheets, so it ships with only `base/utilities.js`; on an unlisted domain it removes itself and warns once (`data-debug-warnings="false"` silences it). `audit(root)` is exported for tooling. Not loaded by `index.js`; `zazz-ui add debug`.
66
+ - New optional `primitives/style-guard/style-guard.js` (SPEC §13): a `MutationObserver` that restores an element's utilities when a legacy `style` rewrite (`el.style.cssText = …`, jQuery `.attr("style", …)`) drops them all at once; a single `removeProperty` stays removed (even when it was the only utility: the other declarations surviving the write tells a removal from a rewrite); a rewrite that sets new utilities becomes the new snapshot; `start(root)` re-roots; `data-ui-guard="off"` opts out. Not loaded by `index.js`; add it per page or via `zazz-ui add style-guard`.
67
+ - Tests: the browser suite runs green in Chromium and WebKit (`ZAZZ_BROWSERS=webkit`); the harness gained `tabTo(el)` and `settled(el)` so focus-ring assertions wait for the ring transition and reach buttons where WebKit skips them on Tab.
68
+ - Fix (performance): a parent's inline utility change no longer restyles its whole subtree. Two causes, measured on a container with 1,000 styled children at 196 ms per restyle (0.4 ms now): the reset's universal `::selection { background-color: var(--selection-bg) }` made Chromium recompute every descendant's highlight style on any custom property change, so both selection rules sit on `:root::selection` and reach every selection through highlight inheritance (Chrome 134+, Firefox, WebKit; other engines fall back to the UA selection color); and the stuck readers named their container in an ancestor compound (`[style*="--stuck-state: top"] [style*="--stuck:"]`), which made any inline style change invalidate every styled descendant, so the container now publishes its side as a typed `--_stuck-side` and each side query is `scroll-state(stuck: <side>) and style(--_stuck-side: <side>)` on a plain `[style*="--stuck:"]` reader (the polyfill half compares `data-ui-stuck` on the container and publishes an inherited `--_stuck-polyfill`). `--stuck-state` is registered non-inheriting like a utility.
69
+ - **BREAKING** The per-side border longhands (`--border-{l,t,r,b}-width`, `--border-{l,t,r,b}-color`, eight utilities with every color tier) are removed: a side takes only its shorthand. Migration: `--border-b-width: 1px; --border-b-color: var(--color-border)` → `--border-b: 1`; a colored side → `--border-t: var(--color-primary)` (1px); a wide colored side → `--border-width: 2px; --border-t: var(--color-primary)` or `--border-t: 2; --border-color: …`.
70
+ - `--text-decoration` takes the state tiers and the group form besides breakpoints, and works tier-only: `--text-decoration--hover: underline` on a link, `--group-text-decoration--hover: underline` on a card's title.
71
+ - New animation switches from Tailwind: `data-ui="spin"` (a turn every 1s), `"ping"` (scale 2× and fade every 1s), `"pulse"` (half opacity and back every 2s), and `"bounce"` (drop and rise every 1s). They use `--default-transition-timing-function`, animate `transform` (so the transform utilities still compose), and only run under `prefers-reduced-motion: no-preference`.
72
+ - New `data-ui="not-prose"`: prose stops styling that element's subtree (Tailwind Typography's `not-prose`), for a form or widget embedded in an article.
73
+ - New `truncate` switch: `data-ui="truncate"` keeps text on one line and ends the overflow with an ellipsis (`overflow: hidden`, `text-overflow: ellipsis`, `white-space: nowrap`). A flex item also needs `--min-w: 0`; `--line-clamp` clamps to more lines.
74
+ - New `divide-x` / `divide-y` switches: `data-ui="divide-y"` draws a border on the trailing logical edge of every direct child but the last (1px `--color-border`), and `--divide` on the container sizes or colors it with the border shorthand's grammar (`--divide: 2`, `--divide: var(--color-primary)`); its width and color channels are the layer's only inheriting privates. A switch rather than a `--divide-x` utility because a `[style*=…] > *` rule would make every inline style change invalidate the changed element's subtree.
75
+ - **BREAKING** Fewer keyword utilities: `--size`, `--min-h`, and `--max-h` no longer take `auto` / `fit-content` / `min-content` / `max-content` (`--w`, `--h`, `--min-w`, `--max-w` still do), and `--grid-cols` / `--grid-rows` no longer take `none`. Migration: `--size: fit-content` → `--w: fit-content; --h: fit-content`; the hero that must not squish, `--h: 100svh; --min-h: fit-content` → `--min-h: 100svh` (Tailwind's `min-h-svh`: height stays auto, clamped to the viewport); `--grid-cols: none` → `--template-cols: none`.
76
+ - The gradient utilities (`--bg-linear`, `--bg-radial`, `--bg-conic`, `--bg-stops`) take no tiers (`tiers: "none"` in `utilities.ts`, a per-utility override of the family's tier kind): `--bg--hover: none` still clears a gradient in a state.
77
+ - State setters, keyword aliases, and `--bg--<state>: none` put the pseudo-class before the attribute gate (`:where(:hover[style*="--hover:"])`): the flag test short-circuits before the substring scan, which cuts initial style time on a utility-heavy page. The generated files' comments are a few words each (`src/index.css` ships them raw).
78
+ - **BREAKING** `scroll-fade` is a small primitive (SPEC §11): `data-ui="scroll-fade"` with `data-scroll-fade-axis="x"` for the inline axis, hooks `--ui-scroll-fade-size`, `--ui-scroll-fade-reveal`, and `--ui-scroll-fade-mask`. The `.scroll-fade*` utility classes (per-edge, per-size variants) are gone; a per-edge depth is not carried over (set `--ui-scroll-fade-size`).
79
+ - **BREAKING** Typography roles are `data-ui` tokens (SPEC §10): `data-ui="text-display"`, `text-h1`…`text-h6`, `text-2xl`…`text-2xs`, and `text-eyebrow` replace the `.text-*` classes, and native `h1`–`h6` wear their role without a token. Weight, family, style, and decoration are utilities (`--font-weight`, `--font-family`, `--font-style`, and the new `--text-decoration`), so the `.font-*`, `.italic`, `.underline`, `.overline`, `.line-through`, and `.no-underline` classes are gone. `.text-link` is gone too: a link inside `<p>` is styled as one automatically; elsewhere use `data-ui="button" data-button-variant="link"`. A role followed by `--font-size` / `--font-weight` keeps its family and leading (claim 12). Migration: `class="text-lg font-strong"` → `data-ui="text-lg" style="--font-weight: var(--font-weight-strong)"`. Roles sit in the `reset` layer, so a component rule now beats a role and utilities override both (0.4 role classes were utilities and beat component rules; use `--font-size`, `--leading`, `--font-weight` where a role must win).
80
+ - **BREAKING** The rich-text switch is `data-ui="prose"` (was `class="ui-prose"`). Hook: `--ui-prose-link-color→--ui-prose-link-text`; the other `--ui-prose-*` hooks are unchanged.
81
+ - New `base/_switches.css` (SPEC §11): `data-ui="sr-only"` (was `.sr-only`), `data-ui="pile"` (was `.grid-area-pile`), and `data-ui="isolate"` (was `.z-isolate`; `isolation: isolate`, replacing the 0.5-preview `--isolation` utility). It loads after the generated utilities.
82
+ - **BREAKING** One spacing scale and one font-family layer. `--spacing` is the fluid unit (the dual-mode utility scale, `clamp(0.225rem, …, 0.25rem)`), and `--space-2xs … --space-2xl` are its named multiples (1, 2, 4, 6, 11, 24, 40). Removed: the numeric `--step-*` scale (write a utility number, `--max-w: 96`, or `calc(var(--spacing) * N)` in CSS; `--step-px` and `--step-full` are just `1px` and `100%`), `--gap-xs…xl` (now `--space-xs…xl`), `--_spacing-interval`, and `--font-body` / `--font-heading` / `--font-mono` (set `--font-family-body` / `-heading` / `-mono` directly).
83
+ - Sized token families run 2xs to 2xl: `--space-*`, `--font-size-*`, `--leading-*`, `--tracking-*`, `--paragraph-spacing-*`, `--radius-*`, `--shadow-*`, `--article-*`, plus the `data-ui="text-2xs"` and `"text-2xl"` roles. The new end values extend each curve (`--font-size-2xs` matches the eyebrow size and `--font-size-2xl` the h5 size; `--article-2xs` / `-2xl` are 40ch / 80ch).
84
+ - The full-page example pages that shipped under `examples/` in 0.4 (`index.html`, `components.html`, `forms.html`, …) are removed from the package pending a rewrite (the docs Templates section with them). The containment test (claim 8) now runs against every primitive fragment.
85
+ - Removed the unused `--is-breakpoint-*` flags.
86
+ - The manifest exports `CORE_RUNTIME` (`base/utils.js`, `signals.js`, `zazz-element.js`, `dialog-lifecycle.js`, `navigation.js`) and `CORE_POLYFILLS` (`base/scroll-state.js`, loaded only where `CSS.supports("container-type", "scroll-state")` fails), so the CLI vendors the navigation runtime and the scroll-state polyfill. Both exports are optional, so `MANIFEST_VERSION` stays 2.
87
+ - Fix: prose paragraph spacing read `--paragraph-spacing-multiplier` instead of `--_paragraph-spacing-multiplier`, so its margins were invalid; scroll-fade read an undeclared `--spacing-interval`; the lightbox image base scale and opacity hooks were never declared; the select picker read an undeclared `--ui-popover-backdrop-filter` (removed). A new guard test fails on any variable a kit stylesheet reads without a fallback and nothing declares.
88
+
89
+ ### layout
90
+
91
+ - Fix: only a layout that is a direct child of a layout becomes a subgrid. One nested deeper (inside a card or section in a band) has no parent grid to share and used to collapse; it is now its own band grid.
92
+
93
+ ### button
94
+
95
+ - **BREAKING** Identity is `data-ui="button"` (a space-separated token list matched with `~=`); `.ui-button` no longer matches. Presets are scoped: `data-button-variant="primary|secondary|tertiary|muted|ghost|outline|info|success|warning|destructive|link"` (`secondary`, `tertiary`, and `outline` are new; `outline` is a transparent surface with hook-colored text and border) and `data-button-size="sm|icon|icon-sm"` replace `data-variant` / `data-size`. Migration: `class="ui-button" data-variant="primary"` → `data-ui="button" data-button-variant="primary"`.
96
+ - **BREAKING** Hooks are named after the utilities they back (SPEC §9) and may take a scale number or a length where the utility is dual-mode:
97
+
98
+ | 0.4 | 0.5 |
99
+ | ------------------------------------------------------------------------------------------------------------ | ----------------------------- |
100
+ | `--ui-button-background(--hover/…)` | `--ui-button-bg(--hover/…)` |
101
+ | `--ui-button-foreground(--hover/…)` | `--ui-button-text(--hover/…)` |
102
+ | `--ui-button-line-height` | `--ui-button-leading` |
103
+ | `--ui-button-padding` | `--ui-button-px` (dual) |
104
+ | `--ui-button-block-size` | `--ui-button-min-h` (dual) |
105
+ | `--ui-button-radius` | `--ui-button-rounded` |
106
+ | `--ui-button-gap` | unchanged (dual) |
107
+ | `--ui-button-font-size`, `-ring-color`, `-font-family`, `-font-weight`, `-border-*`, `-icon-size`, `-shadow` | unchanged |
108
+
109
+ Every consumer inside the kit (toggle, select, autocomplete, combobox, command, lightbox, menu, navigation-menu, popover) reads the new names.
110
+
111
+ - Utilities work on a button: `--px: 4` beats a variant, which beats an inline or subtree hook, which beats the `:root` hook; `--px--md: 6` alone applies at md with the hook below; a stylesheet `--px` does nothing. Variants write non-inheriting privates, so a variant never cascades into a nested button while an inline hook does. An inline `--bg` flattens hover (use the hook or `--bg--hover` to keep it). The focus ring is published to `--_focus-ring` and survives `--shadow` and `--ring` utilities.
112
+ - The link variant's minimum block size is now `0` (was `fit-content`, which dual mode cannot carry); rendered size is unchanged.
113
+ - Hover styles sit behind `@media (hover: hover)`, so a tapped button no longer sticks in its hover color on touch screens.
114
+ - New `data-button-variant` values `info`, `success`, and `warning` fill the button with the `--color-info` / `--color-success` / `--color-warning` role and its `-foreground`, like `destructive`.
115
+ - Toaster's action and close buttons are created with `data-ui="button"` and `data-button-*` presets.
116
+ - The dual-mode hooks (`--ui-button-px`, `-min-h`, `-gap`) take scale numbers on the button itself; the select's option hooks (`--ui-option-px`, `-min-h`, `-gap`) alias them as raw lengths, so keep those hooks as lengths if you theme select options.
117
+
118
+ ### separator
119
+
120
+ - **BREAKING** Identity is `data-ui="separator"`; `.ui-separator` no longer matches. The vertical form is `data-separator-orientation="vertical"` (was `data-orientation`). Migration: `<hr class="ui-separator" data-orientation="vertical">` → `<hr data-ui="separator" data-separator-orientation="vertical">`.
121
+ - **BREAKING** `--ui-separator-color` is renamed `--ui-separator-bg` (it backs the `--bg` utility); `--ui-separator-thickness` is unchanged. A `--bg` utility on the separator wins over the hook.
122
+
123
+ ### fields
124
+
125
+ - The hover border (`--ui-field-border-color--hover`) is `--color-border` mixed with 10% `--color-primary` (was the full primary color).
126
+ - New example fragment `fields.html`: a field with hint and error, and a checkbox field group.
127
+ - **BREAKING** Identities are `data-ui="field"` (wrapper) and `data-ui="field-group"` (fieldset; `data-ui="radio-group"` shares its rules). Slots are `data-field-slot="label | description | hint | error"` (was `data-slot="field-*"`); the inline layout is `data-field-orientation="horizontal"` (was `data-orientation`). Migration: `<div class="ui-field"><label data-slot="field-label">` → `<div data-ui="field"><label data-field-slot="label">`.
128
+ - **BREAKING** The shared `--ui-field-*` family is renamed to utility names; every control in the kit reads the new names:
129
+
130
+ | 0.4 | 0.5 |
131
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
132
+ | `--ui-field-background(--hover)` | `--ui-field-bg(--hover)` |
133
+ | `--ui-field-background--focus` | `--ui-field-bg--focus-within` |
134
+ | `--ui-field-border-color--focus` | `--ui-field-border-color--focus-within` |
135
+ | `--ui-field-foreground` | `--ui-field-text` |
136
+ | `--ui-field-radius` | `--ui-field-rounded` |
137
+ | `--ui-field-block-size` | `--ui-field-h` |
138
+ | `--ui-field-font-size` / `-line-height` | `--ui-field-font-size` / `--ui-field-leading` |
139
+ | `--ui-field-padding` | `--ui-field-px` |
140
+ | `--ui-field-template-columns` | `--ui-field-template-cols` |
141
+ | `--ui-field-align-self` / `-inline-size` | `--ui-field-self` / `--ui-field-w` |
142
+ | `--ui-field-group-background` | `--ui-field-group-bg` |
143
+ | `--ui-field-group-padding` / `-margin` | `--ui-field-group-p` / `--ui-field-group-m` |
144
+ | `--ui-field-label-color` | `--ui-field-label-text` |
145
+ | `--ui-field-group-radius` | `--ui-field-group-rounded` |
146
+ | `-border-width/style/color`, `-ring-color`, `-inset-child-radius`, `-addon-padding`, `-gap`, `-option-gap`, `-icon-size`, `-hint-translate--*`, `-group-display/border/gap` | unchanged |
147
+
148
+ - **BREAKING** Slot styling is scoped to the wrapper: `data-field-slot="label"` and friends style only inside `data-ui="field"` (0.4 styled `data-slot="field-label"` anywhere). Migration: give the wrapping element `data-ui="field"`.
149
+ - The dual-mode hooks (`--ui-field-px`, `-h`, `-gap`) take scale numbers on the field wrapper and group; the controls still alias them as raw lengths until their own cycles, so keep those hooks as lengths if you theme inputs, selects, or textareas. Textarea and select read the `--focus-within` hooks under `:focus-visible` / `:open` respectively, as before.
150
+ - Each control now owns its disabled and `:user-invalid` rules in its own file (input, textarea, select, input-group, password-group, radio, checkbox) instead of `fields.css` listing them by class; rendering is unchanged. The dead `.ui-input-file` / `.ui-input-color` entries are dropped.
151
+ - Utilities work on the wrapper and the group: `--display`, `--template-cols`, `--gap`, `--self`, `--w` on a field; `--display`, `--bg`, `--gap`, `--rounded`, `--p`, `--m` on a group.
152
+
153
+ ### badge
154
+
155
+ - **BREAKING** Identity is `data-ui="badge"`; presets are `data-badge-variant="primary|secondary|tertiary|muted|ghost|info|success|warning|destructive|link"` and `data-badge-size="icon"`. Hooks follow the button's rename (`background→bg`, `foreground→text`, `line-height→leading`, `padding→px`, `block-size→h`, `radius→rounded`; `-font-size` unchanged); the combobox tag template and `--ui-combobox-*` defaults read the new names. Migration: `class="ui-badge" data-variant="muted"` → `data-ui="badge" data-badge-variant="muted"`.
156
+ - Fix: the focus ring shows on keyboard focus alone; 0.4 required the pointer to be hovering as well. Hover styles sit behind `@media (hover: hover)`. A disabled badge still goes muted whatever its variant, as in 0.4.
157
+ - New `data-badge-variant` values `secondary` and `tertiary` (the brand roles) and `info`, `success`, `warning`, and `destructive` (the `--color-*` status roles with their `-foreground`); 0.4 badges had only `primary`, `muted`, `ghost`, and `link`.
158
+ - The link variant's block size is `auto` (was `fit-content`); rendered size is unchanged. Icon badges in the fragments name themselves with `aria-label` instead of a visually hidden span.
159
+
160
+ ### kbd
161
+
162
+ - **BREAKING** The group's attribute form is `data-ui="kbd-group"` (the `<ui-kbd-group>` tag form is unchanged); `.ui-kbd-group` no longer matches. Hooks are renamed to utility names: `--ui-kbd-line-height→leading`, `-background→bg`, `-foreground→text`, `-radius→rounded`, `-padding-inline→px`, `-padding-block→py`, `-min-inline-size→min-w`, `-min-block-size→min-h` (`-font-size`, `-font-family`, `-border`, `-icon-size`, `-gap`, `-group-gap` unchanged); button, tooltip, and command read the new names. The bare `<kbd>` needs no identity and takes utilities (`--min-w: 8`) and subtree hooks as before.
163
+
164
+ ### button-group
165
+
166
+ - **BREAKING** The attribute form is `data-ui="button-group"` (the `<ui-button-group>` tag form is unchanged); the vertical preset is `data-button-group-orientation="vertical"` (was `data-orientation`). Hooks: `--ui-button-group-radius→rounded`, `-background→bg`; `--rounded` and `--bg` utilities apply to the group.
167
+
168
+ ### toggle
169
+
170
+ - **BREAKING** Identity is `data-ui="toggle"` on the `<label>`; presets are `data-toggle-variant="primary|muted|ghost|destructive"` and `data-toggle-size="sm|icon|icon-sm"`. Hooks follow the button's rename (`background→bg`, `foreground→text`, `line-height→leading`, `padding→px`, `block-size→min-h`, `radius→rounded`; `-font-size` unchanged); the `--checked`, `--checked-hover`, and `--checked-active` suffixes are unchanged. Migration: `class="ui-toggle" data-size="icon"` → `data-ui="toggle" data-toggle-size="icon"`.
171
+ - A disabled toggle still goes muted whatever its variant, as in 0.4. Utilities apply to the label (`--px: 4` beats the `sm` size); because the checked state lives on the nested input, the label's own state tiers (`--bg--checked`) do not fire: theme the checked look through the `--ui-toggle-*--checked` hooks. Hover styles sit behind `@media (hover: hover)`.
172
+
173
+ ### toggle-group
174
+
175
+ - **BREAKING** The attribute form is `data-ui="toggle-group"` (the `<ui-toggle-group>` tag form is unchanged); the vertical preset is `data-toggle-group-orientation="vertical"` (was `data-orientation`). The checked, focused, or hovered toggle now floats above its neighbours so its border and ring paint over the shared edge, as in the button group. New hooks `--ui-toggle-group-rounded` and `--ui-toggle-group-bg` back the `--rounded` and `--bg` utilities on the group.
176
+
177
+ ### accordion
178
+
179
+ - **BREAKING** The attribute form is `data-ui="accordion"` (the `<ui-accordion>` tag form is unchanged); `.ui-accordion` no longer matches. Hooks are unchanged (none backs a utility). The summary publishes its focus ring to `--_focus-ring`, so a `--shadow` utility on a summary keeps the ring.
180
+
181
+ ### table
182
+
183
+ - **BREAKING** Identity is `data-ui="table"`; presets are `data-table-variant="alternating|grid"`, `data-table-size="sm"`, `data-table-layout="fixed"`, `data-table-state="selected"` on a row (was `data-state`), and `data-table-caption="top"` on the caption (was `data-side`). Hooks: `--ui-table-foreground→text`, `-background→bg`, `-cell-padding-block/inline→cell-py/cell-px`, `-head-block-size→head-h`, `-head-foreground→head-text`, `-foot-background→foot-bg`, `-row-background--hover/--selected→row-bg--hover/--selected`, `-alternating-background→alternating-bg`, `-caption-foreground→caption-text`, `-caption-padding-block/inline→caption-py/caption-px`; `-font-size`, `-font-family`, `-border`, `-head-border`, `-row-border`, `-column-border`, `-head-font-weight`, `-foot-font-weight` unchanged. Part hooks are read on cells, so the presets set the inheriting hooks (a preset on an outer table reaches a nested table, as in 0.4). Row hover sits behind `@media (hover: hover)`.
184
+
185
+ ### progress
186
+
187
+ - **BREAKING** Identity is `data-ui="progress"`. Hooks: `--ui-progress-inline-size→w`, `-block-size→h` (both dual-mode), `-radius→rounded`, `-track-background→bg` (the element box is the track), `-bar-background→bar-bg`; `-track-border` and `-indeterminate-duration` unchanged. The meter reads the new names.
188
+
189
+ ### meter
190
+
191
+ - **BREAKING** Identity is `data-ui="meter"`. Hooks: `--ui-meter-inline-size→w`, `-block-size→h` (dual-mode), `-radius→rounded`, `-track-background→bg`, `-bar-background(--suboptimum/--even-less-good)→bar-bg(…)`; `-track-border` unchanged.
192
+
193
+ ### popover
194
+
195
+ - New example fragment `popover.html`: a button-anchored `[popover]` placed with `data-popover-side` / `data-popover-align`.
196
+ - **BREAKING** The placement presets on a `[popover]` element are `data-popover-side="top|bottom|left|right"` and `data-popover-align="start|center|end"` (were `data-side` / `data-align`); every kit fragment and the multiselect's forwarded panel attributes follow. The native `<select>` takes `data-select-side` / `data-select-align` instead (its rows of the placement matrix live in `select.css`). Addon alignment on input-group and password-group (`data-align="inline-end"`) is a different attribute and is unchanged.
197
+ - Fix: tooltip declared its popover overrides (`--ui-popover-position-area: block-start span-all`, shadow, origin, min width) on `:root`, which retinted and repositioned every popover loaded after it; they now sit on the tooltip content. A popover with no `data-popover-side` drops below its anchor again.
198
+ - **BREAKING** Hooks: `--ui-popover-radius→rounded`, `-button-radius→button-rounded`, `-padding→p`, `-min-inline-size→min-w`, `-max-inline-size→max-w`, `-margin-block→my`, `-margin-inline→mx` (the last five dual-mode: numbers or lengths only, so tooltip and navigation-menu set `--ui-popover-min-w: 0` where they had `fit-content` / `auto`); `-border-color`, `-shadow`, `-origin`, `-position-area`, `-position-try-fallbacks`, and the `--start`/`--end` motion tokens unchanged. The tokens navigation-menu published into the namespace (`--ui-popover-inline-size`, `-gap`, `-child-radius`, `-viewport-*`) are gone; set the `--ui-navigation-menu-popover-*` hooks instead.
199
+
200
+ ### tooltip
201
+
202
+ - **BREAKING** The attribute form is `data-ui="tooltip"` (the `<ui-tooltip>` tag form is unchanged); slots are `data-tooltip-slot="trigger | content | arrow"` (were `data-slot="tooltip-*"`), styled only inside the tooltip. The content's placement uses the popover presets (`data-popover-side`, `data-popover-align`). Hooks: `--ui-tooltip-background→bg`, `-foreground→text`, `-radius→rounded`, `-padding-inline/block→px/py`, `-line-height→leading`, `-max-inline-size→max-w`, `-margin-block/inline→my/mx` (`px`, `py`, `max-w`, `my`, `mx`, and the unrenamed `gap` are dual-mode); `-border-color`, `-shadow`, `-gap`, `-font-size`, `-font-family`, `-font-weight`, `-arrow-*`, `-transition-*`, and the `--start`/`--end` motion tokens unchanged. Utilities on the content (`--bg`, `--px`, …) win over the hooks.
203
+ - New utility `--flex-wrap` (keyword, flow family; requires a base like every flow utility outside the no-base list).
204
+
205
+ ### dialog
206
+
207
+ - **BREAKING** Identity is `data-ui="dialog"` on the `<dialog>`; slots are `data-dialog-slot="content | header | body | footer | close"` (were `data-slot="dialog-*"`), styled only inside the dialog; sizes are `data-dialog-size="article | container | screen"` (was `data-size`). Hooks: `--ui-dialog-inline-size→w` (dual-mode), `-block-size→h` (read raw: a length, or a tier carrying a length, applies; a scale number applies only as a base utility), `-background→bg`, `-foreground→text`, `-radius→rounded`; `-border`, `-shadow`, `-backdrop-*`, `-transition-*`, and the `--start`/`--end` motion tokens unchanged. Alert-dialog, command, mobile-menu, and lightbox read the new names. A `--bg` utility on the dialog retints the root only; the header fade and footer read the `--ui-dialog-bg` hook, so retheme the surface through the hook.
208
+
209
+ ### alert-dialog
210
+
211
+ - **BREAKING** Identity is the token list `data-ui="dialog alert-dialog"` on the `<dialog>` (was `class="ui-dialog ui-alert-dialog"`). Hook: `--ui-alert-dialog-inline-size→w`; `-accent` and `-shadow` unchanged.
212
+
213
+ ### menu
214
+
215
+ - **BREAKING** The attribute form is `data-ui="menu"` (the `<ui-menu>` tag form is unchanged); the panel slot is `data-menu-slot="popover"` (was `data-slot="menu-popover"`), styled only inside the menu; `menu.ts` looks for the new slot and accepts both forms. Hooks: `--ui-menu-button-radius→button-rounded`, `-min-inline-size→min-w` (dual-mode), `-option-gap→gap` (dual-mode); `-shadow` unchanged. Select reads the new radius name.
216
+
217
+ ### navigation-menu
218
+
219
+ - **BREAKING** Identity is `data-ui="navigation-menu"`; slots are `data-navigation-menu-slot="list | item | trigger | popover | viewport | link | submenu | submenu-trigger"` (were `data-slot="navigation-menu-*"`), styled only inside the menu; presets on the popover slot are `data-navigation-menu-variant="submenu"`, `data-navigation-menu-size="container | root | screen"`, and `data-navigation-menu-animation="slide-down"` (were `data-variant` / `data-size` / `data-animation`); placement alignment stays `data-popover-align`. Hooks: `--ui-navigation-menu-popover-child-radius→popover-child-rounded`, `-popover-inline-size→popover-w`, `-popover-viewport-align-items→popover-viewport-items`, `-popover-viewport-template-columns→popover-viewport-template-cols`, `-popover-viewport-min-inline-size→popover-viewport-min-w`; the rest unchanged. The stylesheet reads its own hooks directly instead of republishing them as `--ui-popover-child-radius`, `-gap`, `-inline-size`, and `-viewport-*`.
220
+ - New utility `--shrink` (`flex-shrink`, raw, flow family).
221
+
222
+ ### mobile-menu
223
+
224
+ - **BREAKING** Identity is the token list `data-ui="dialog mobile-menu"` on the `<dialog>` (was `class="ui-mobile-menu"` beside `ui-dialog`); slots are `data-mobile-menu-slot="viewport | header | body | footer"`; the animation preset is `data-mobile-menu-animation="slide-right"` (was `data-animation`). Hooks: `--ui-mobile-menu-background→bg`, `-foreground→text`, `-header-padding-block→header-py` (`-header-padding-inline` keeps its two-value name), `-body-padding-inline/block→body-px/body-py`, `-footer-padding→footer-p`, `-nested-accordion-padding-inline-start→nested-accordion-pl`; `-backdrop-color`, `-footer-gap`, and the `-viewport-*` motion tokens unchanged.
225
+
226
+ ### input
227
+
228
+ - **BREAKING** Identity is `data-ui="input"`. Hooks: `--ui-input-inline-size→w`, `-min-inline-size→min-w`, `-padding-inline-start/end→pl/pr` (all dual-mode), `-line-height→leading`, `-radius→rounded`; `-font-size`, `-border-*`, and `-calendar-picker-*` unchanged. Height and surface colors still come from the `--ui-field-*` family. The focus ring is published to `--_focus-ring` and survives a `--shadow` utility; hover sits behind `@media (hover: hover)`. Input-group and password-group select the new identity.
229
+
230
+ ### textarea
231
+
232
+ - **BREAKING** Identity is `data-ui="textarea"`. Hooks: `--ui-textarea-inline-size→w`, `-min-inline-size→min-w`, `-padding→p` (dual-mode), `-min-block-size→min-h`, `-max-block-size→max-h` (read raw: their defaults are `lh` lengths, so lengths and tiers apply and a scale number applies only as a base utility), `-line-height→leading`, `-radius→rounded`; `-font-size`, `-border-*`, and `-resize` unchanged. The focus ring is published to `--_focus-ring`; hover sits behind `@media (hover: hover)`.
233
+
234
+ ### select
235
+
236
+ - **BREAKING** Identity is `data-ui="select"` on the `<select>`; picker placement presets are `data-select-side` / `data-select-align` (were `data-side` / `data-align`). The multiselect's attribute form is `data-ui="multiselect"` (the `<ui-multiselect>` tag form is unchanged); its config attributes are `data-multiselect-placeholder`, `data-multiselect-label-more`, `data-multiselect-side`, and `data-multiselect-align` (were unprefixed; the unprefixed names are no longer read); its stamped parts carry `data-multiselect-slot="trigger | label | icon | panel | option"`, the trigger carries `data-ui="select"`, and the enhanced native select is marked `data-multiselect-state="enhanced"` (was `data-multiselect-enhanced`). Hooks: `--ui-select-inline-size→w`, `-min-inline-size→min-w`, `-padding-inline-start/end→pl/pr` (dual-mode), `-line-height→leading`, `-radius→rounded` (`-font-size` unchanged); options: `--ui-option-line-height→leading`, `-padding→px`, `-block-size→min-h`, `-radius→rounded`, `-background→bg`, `-foreground→text` (`-font-size` unchanged); autocomplete and combobox read the new option names. The focus ring is published to `--_focus-ring`; hover sits behind `@media (hover: hover)`.
237
+ - Fix: the focus-ring rule is `:is(:focus-visible, :open)`, a forgiving list, so an engine without `:open` keeps the ring (0.4's selector list dropped the whole rule there).
238
+
239
+ ### autocomplete
240
+
241
+ - **BREAKING** The attribute form is `data-ui="autocomplete"` (the `<ui-autocomplete>` tag form is unchanged); parts are `data-autocomplete-slot="panel | list | item | group | group-label | empty"` (were `data-slot="autocomplete-*"`), styled only inside the autocomplete; item facts are `data-autocomplete-value` / `data-autocomplete-keywords` and root config is `data-autocomplete-sort` / `data-autocomplete-min-length`; only the prefixed names are read (`data-value`, `data-keywords`, `data-sort`, `data-filter`, `data-min-length`, and `data-slot="autocomplete-*"` are not); the keyboard highlight is `data-autocomplete-state="highlighted"` (the legacy `data-highlighted` flag is no longer written). Hook: `--ui-autocomplete-panel-max-block-size→panel-max-h` (read raw); `-shadow` unchanged.
242
+ - Fix: the highlighted row in autocomplete, combobox, and command panels showed no highlight since the button started reading variant privates ahead of hooks; the highlight now writes the button's privates.
243
+
244
+ ### combobox
245
+
246
+ - **BREAKING** The attribute form is `data-ui="combobox"` (the `<ui-combobox>` tag form is unchanged); parts are `data-combobox-slot="value | control | trigger | panel | list | item | group | group-label | empty | tag | tag-label | tag-remove | tag-template"` (were `data-slot="combobox-*"`); the variant is `data-combobox-variant="multiselect"`, item and tag facts are `data-combobox-value` / `data-combobox-keywords`, and root config is `data-combobox-label-remove` / `-sort` / `-min-length`; only the prefixed names are read (`data-value`, also as an item's form value, `data-keywords`, `data-variant`, `data-label-remove`, `data-sort`, `data-filter`, `data-min-length`, and `data-slot="combobox-*"` are not); the keyboard highlight is `data-combobox-state="highlighted"`; stamped hidden inputs are marked `data-combobox-state="stamped"` (was `data-combobox-stamped`). The control reads the resolver chain and publishes its focus ring to `--_focus-ring`, so a `--shadow` utility keeps the ring. Hooks: `--ui-combobox-inline-size→w`, `-min-inline-size→min-w`, `-padding-inline-start/end→pl/pr`, `-radius→rounded`, `-panel-max-block-size→panel-max-h`, `-control-align-items→control-items`, `-control-block-size→control-h`, `-control-min-block-size→control-min-h`, `-control-padding-block→control-py`, `-input-min-inline-size→input-min-w`, `-input-min-block-size→input-min-h`, `-tag-padding-block→tag-py`, `-tag-max-inline-size→tag-max-w`, `-tag-remove-radius→tag-remove-rounded`; the rest unchanged.
247
+ - Fix: the combobox read the select's `--ui-select-padding-inline-*` and `-radius` hooks under their 0.4 names after the select rename, so its control had lost its padding and radius.
248
+
249
+ ### command
250
+
251
+ - **BREAKING** The attribute form is `data-ui="command"` (the `<ui-command>` tag form is unchanged); parts are `data-command-slot="panel | header | input | list | item | group | group-label | footer | empty"` (were `data-slot="command-*"`); item facts are `data-command-value` / `data-command-keywords` / `data-command-hotkey` and root config is `data-command-sort` / `data-command-min-length`; the keyboard highlight is `data-command-state="highlighted"`, the item's stay-open flag is `data-command-stay-open` (was `data-stay-open`); only the prefixed names are read (`data-value`, `data-keywords`, `data-hotkey`, `data-stay-open`, `data-sort`, `data-filter`, `data-min-length`, and `data-slot="command-*"` are not), and the typeahead family no longer writes the legacy `data-highlighted` flag. Hooks: `--ui-command-min-inline-size→min-w` (dual-mode), `-max-block-size→max-h`, `-input-padding→input-p`, `-footer-padding→footer-p`; the rest unchanged.
252
+ - New root option `data-command-filter="none"` for a list another source already filtered (a search index, a server): every item stays visible in document order while keyboard navigation, highlight, and ARIA still run. Fix: Enter on a highlighted item dispatched `zazz:command-select` twice (the synthetic click re-entered the commit); it fires once.
253
+
254
+ ### checkbox
255
+
256
+ - **BREAKING** Hooks: `--ui-checkbox-background(--checked)→bg(--checked)`, `-radius→rounded`, `-checkmark-size` / `-indeterminate-size→glyph-size`; `-size` (dual-mode, backs `--size`) and `-border-*` unchanged. The glyph is a masked `::before` painted in the new `--ui-checkbox-foreground`, so `-checkmark-mask` / `-indeterminate-mask` take a `mask` value (were `background-image` URLs). The native control needs no identity; the focus ring is published to `--_focus-ring` and hover sits behind `@media (hover: hover)`.
257
+ - Fix: select-all groups mark table rows with `data-table-state="selected"` (was `data-state`), which the migrated table reads; the row highlight had been lost since the table cycle.
258
+
259
+ ### slider
260
+
261
+ - **BREAKING** Hooks: `--ui-slider-track-block-size→track-h`, `-track-background→track-bg`, `-track-radius→track-rounded`, `-thumb-background→thumb-bg`, `-thumb-radius→thumb-rounded`; the rest unchanged. The hooks now live on `:root` in the variables layer (0.4 declared them on the element, which silently shadowed any `:root` or subtree override); hover sits behind `@media (hover: hover)`.
262
+
263
+ ### switch
264
+
265
+ - **BREAKING** Hooks: `--ui-switch-track-inline-size→track-w`, `-track-block-size→track-h` (both dual-mode), `-track-background(--hover/--checked/--checked-hover)→track-bg(…)`, `-thumb-background→thumb-bg` (new `-thumb-bg--hover`), `-radius→rounded`; `-track-padding`, `-thumb-size`, `-thumb-shadow`, `-thumb-translate`, `-thumb-scale` unchanged. The native control needs no identity; the focus ring is published to `--_focus-ring` and hover sits behind `@media (hover: hover)`.
266
+
267
+ ### input-group
268
+
269
+ - **BREAKING** Identity is `data-ui="input-group"` on the `<label>` shell; slots are `data-input-group-slot="addon | text"` (were `data-slot="input-group-*"`); addon alignment is `data-input-group-align="inline-start | inline-end | block-start | block-end"` (was `data-align`). Hooks: `--ui-input-group-align-items→items`, `-inline-size→w`, `-min-block-size→min-h`, `-padding→p` (the last three dual-mode, as is `-gap`), `-foreground→text`, `-textarea-min-block-size→textarea-min-h`, `-textarea-padding-inline/block→textarea-px/textarea-py`; `-font-size`, `-display`, `-flex-wrap`, `-cursor`, `-font-weight`, `-shadow` unchanged. The focus ring is published to `--_focus-ring`; hover sits behind `@media (hover: hover)`.
270
+
271
+ ### password-group
272
+
273
+ - **BREAKING** Identity is `data-ui="password-group"` on the `<label>` shell (the `<ui-password>` tag form is unchanged); slots are `data-password-group-slot="addon | text | toggle | icon-show | icon-hide"`; addon alignment is `data-password-group-align`; the toggle labels are `data-password-group-label-show` / `-label-hide` on `<ui-password>` (`data-label-show` / `data-label-hide` are no longer read). Hooks follow the input group's rename (`align-items→items`, `inline-size→w`, `min-block-size→min-h`, `padding→p`, `foreground→text`, `textarea-*` sizes; `-font-size` unchanged). The focus ring is published to `--_focus-ring`; hover sits behind `@media (hover: hover)`.
274
+
275
+ ### otp
276
+
277
+ - **BREAKING** The attribute form is `data-ui="otp"` (the `<ui-otp>` tag form is unchanged); the code field carries `data-otp-slot="input"` beside `data-ui="input"` (was `class="ui-otp-input"`); stamped parts are `data-otp-slot="rail | cell | separator"` (were `data-slot="otp-*"`, the cell was `otp-slot`), and cell state is the token list `data-otp-state="filled active"` (were `data-filled` / `data-active`). Hooks: `--ui-otp-slot-*` → `--ui-otp-cell-*` with `inline-size→w`, `block-size→h`, `background→bg`, `radius→rounded` (`-font-size` and `-border-*` keep their suffix); `--ui-otp-separator-color→separator-text`; `-gap` and `-caret-color` unchanged.
278
+
279
+ ### radio
280
+
281
+ - **BREAKING** Identity is `data-ui="radio"` on the input. Hooks: `--ui-radio-background(--checked)→bg(--checked)`, `-radius→rounded`, `-background-size→dot-size`, `-dot-gradient` / `-dot-inner-stop` / `-dot-outer-stop→dot-mask` (the dot is a masked `::before` painted in `-dot-foreground`); `-size` (dual-mode, backs `--size`), `-border-*`, and `-dot-foreground` unchanged. The focus ring is published to `--_focus-ring`; hover sits behind `@media (hover: hover)`.
282
+
283
+ ### tabs
284
+
285
+ - **BREAKING** The attribute form is `data-ui="tabs"` (the `<ui-tabs>` tag form is unchanged); parts are `data-tabs-slot="list | indicator | label | label-text | panel"` (were `data-slot="tabs-*"`); the vertical preset is `data-tabs-orientation="vertical"` (was `data-orientation`, no longer read). Hooks: `--ui-tabs-track-radius→track-rounded`, `-track-background→track-bg`, `-indicator-background→indicator-bg`, `-indicator-radius→indicator-rounded`, `-label-line-height→label-leading`, `-label-background(--hover/--active)→label-bg(…)`, `-label-foreground(--hover/--active)→label-text(…)`, `-label-padding→label-px`, `-label-min-block-size→label-min-h`; `-label-font-size` and the rest unchanged. Label hover sits behind `@media (hover: hover)`.
286
+
287
+ ### carousel
288
+
289
+ - **BREAKING** The attribute form is `data-ui="carousel"` (the `<ui-carousel>` tag form is unchanged); parts are `data-carousel-slot="viewport | container | slide | prev | next | dots | dot | thumbs"` (were `data-slot="carousel-*"`; an element that serves two primitives now carries both attributes, e.g. `data-slot="lightbox-slide" data-carousel-slot="slide"`). JS state is `data-carousel-state`: `active` on the current dot or thumb (was the `is-active` class) and `dragging` on the viewport while a pointer drags it (the kit no longer reads the Embla ClassNames plugin's `is-dragging` class; the plugin remains available for your own CSS). Hook: `--ui-carousel-slide-min-inline-size→slide-min-w`; `-slide-basis`, `-touch-action`, `-cursor--grabbing` unchanged; new `--ui-carousel-gap` (see base). The container takes a dual-mode `--gap` utility. Fix: the script discovered class-form roots after the identity moved; it now discovers `[data-ui~="carousel"]`.
290
+
291
+ ### lightbox
292
+
293
+ - **BREAKING** The attribute form is `data-ui="lightbox"` (the `<ui-lightbox>` tag form is unchanged); parts are `data-lightbox-slot="gallery | stage | slide | content | thumbs | thumb | thumb-content | thumbs-prev | thumbs-next | dialog | prev | next | close | counter"` (were `data-slot="lightbox-*"`), carried beside `data-carousel-slot` where an element serves both primitives. The active thumb and the in-view, snapped dialog slide key on `data-carousel-state` tokens that the carousel script now writes itself (`active`, `in-view`, `snapped`), so the Embla ClassNames plugin is no longer required and the fragments drop `data-carousel-plugins="class-names"`. Hooks: `--ui-lightbox-aspect-ratio→aspect`, `-slide-radius→slide-rounded`, `-thumb-radius→thumb-rounded`; the rest unchanged. Hover effects sit behind `@media (hover: hover)`.
294
+
295
+ ### toaster
296
+
297
+ - **BREAKING** The attribute form is `data-ui="toaster"` (the `<ui-toaster>` tag form is unchanged); the position preset is `data-toaster-position` (was `data-position`); stamped parts carry `data-toaster-slot="list | toast | icon | content | title | description | action | close"` (were `data-slot="toaster-*"`); a toast's variant is `data-toaster-variant` and its id `data-toaster-id`; JS state is the token list `data-toaster-state`: `expanded` on the region (was `data-expanded="true"`) and `front`, `visible`, `removed` on a toast (were `data-front` / `data-visible` / `data-removed` booleans; a hidden toast now simply lacks `visible`). Hooks: `--ui-toaster-background→bg`, `-foreground→text`, `-radius→rounded`, `-inline-size→w`, `-padding→p`, `-description-foreground→description-text`; `-title-font-size`, `-description-font-size`, and the rest unchanged.
298
+ - **BREAKING** The declarative trigger's attributes are prefixed: `data-title`, `data-description`, `data-variant`, `data-duration`, `data-close-button` → `data-toaster-title`, `data-toaster-description`, `data-toaster-variant`, `data-toaster-duration`, `data-toaster-close-button`; the unprefixed names are no longer read. Migration: add the `toaster-` prefix on buttons with `command="--toast*"`.
299
+
300
+ ### reveal
301
+
302
+ - New example fragment `reveal.html`: a staggered `data-reveal-each` group.
303
+ - **BREAKING** A revealed target is marked `data-reveal-state="in-view"` by the script (was the `in-viewport` class); the identity stays `data-reveal` / `data-reveal-each` and the `data-reveal-*` config attributes are unchanged. Migration: if your CSS keyed on `.in-viewport`, switch to `[data-reveal-state~="in-view"]`.
304
+ - **BREAKING** `--ui-reveal-global-ease` is `--ui-reveal-global-timing-function` (the script writes and reads the new name; a per-element `--ui-reveal-ease` is unchanged). Migration: rename the hook where you set it.
305
+
306
+ ### card
307
+
308
+ - New `card.css`: `data-ui="card"` is a grid surface with `--ui-card-bg`, `-text`, `-rounded`, `-shadow`, `-border-width`, `-border-style`, `-border-color`, and dual-mode `-gap` and `-p` hooks. The default card is bare (no padding, radius, or shadow) so media can run edge to edge. Every card has a 1px border, transparent unless a variant colors it, so cards line up whatever their variant. `data-card-variant="outline"` colors the border `--color-border`, `"muted"` sets a `--color-muted` background, and `"floating"` colors the border and adds a `--shadow-sm`; each variant also adds `--space-md` padding and the `--radius-lg` radius. A variant never cascades into a nested card; an inline hook does (SPEC claim 26). The card fragments compose the surface with utilities instead of utility classes.
309
+
310
+ ### callout
311
+
312
+ - New `callout.css`: `data-ui="callout"` is a padded grid with a 1px border, for asides and alerts. Hooks: `--ui-callout-bg`, `-text`, `-rounded`, `-shadow`, `-border-width`, `-border-style`, `-border-color`, and dual-mode `-gap` and `-p`. The default is a card surface with a `--color-border` border. `data-callout-variant="muted"` is a muted card surface (its border goes transparent, so every variant is the same size). `"info"`, `"success"`, and `"warning"` take the matching badge's tint and border, with the role mixed toward `--color-foreground` for text; `"destructive"` is the destructive badge's solid fill.
313
+
314
+ ### avatar
315
+
316
+ - This markup-only primitive's fragments carry utilities and `data-ui` tokens instead of utility classes; nothing changes in the kit's CSS.
317
+
318
+ ### breadcrumbs
319
+
320
+ - This markup-only primitive's fragments carry utilities and `data-ui` tokens instead of utility classes; nothing changes in the kit's CSS.
321
+
322
+ ### menubar
323
+
324
+ - This markup-only primitive's fragments carry utilities and `data-ui` tokens instead of utility classes; nothing changes in the kit's CSS.
325
+
326
+ ### toolbar
327
+
328
+ - This markup-only primitive's fragments carry utilities and `data-ui` tokens instead of utility classes; nothing changes in the kit's CSS.
329
+
330
+ ### debug
331
+
332
+ - `<ui-debug>`'s `attribute-outside-identity` check (and the lint rule sharing it) accepts the attributes of the identity a custom command names on its invoker: `<button commandfor="t" command="--toast" data-toaster-title="Saved">` passes because `--toast` names the toaster, whose script reads them off the button. Another identity's attributes on the same button are still flagged.
333
+
334
+ ## 0.4.1 (2026-09-04)
335
+
336
+ Housekeeping on top of 0.4.0: the vestigial `anchor-size()` `@supports` gates come out, and the anchor-positioning support notes in the CSS headers and ADR-0011 are corrected. No rendered output changes in any browser — see the reasoning on the gate entry below.
337
+
338
+ ### base
339
+
340
+ - The four `@supports (inline-size: anchor-size(width))` gates are removed (autocomplete panel, combobox panel, select `::picker(select)`, multiselect panel); `min-inline-size: anchor-size(width)` now applies unconditionally. **Not a browser-floor raise, and not breaking:** in a browser without `anchor-size()` the function is unknown, so the declaration is dropped at parse time and the `inline-size: max-content` above it still stands — exactly what the gate produced. `anchor-size()` is also Baseline 2026 (Chrome 125, Firefox 147, Safari 26.0), inside the support floor either way. Migration: none.
341
+ - The `anchor-name` gates in popover, tooltip, select, and tabs are deliberately **kept**. Unlike `anchor-size()`, dropping those would change rendering: full `anchor-name` support starts at Safari 27, and on Safari 26.x the gate is what keeps a popover UA-centered instead of an unpositioned top-left box. `tabs.css` also keeps its `@supports not` branch, which is a real designed fallback (indicator hidden, filled label instead). `popover.css` records when to retire them.
342
+ - Corrected support notes in `popover.css`, `autocomplete.css`, `combobox.css`, and `select.css`: anchor positioning reached Baseline in January 2026 (Chrome 151, Firefox 147, Safari 27), so the headers no longer claim Firefox lacks it. ADR-0011's support matrix is corrected the same way, and it now records why no anchor-positioning polyfill is adopted (`@oddbird/css-anchor-positioning` implements no `anchor-size()`, no dynamic anchors, and wraps the target in a way that disturbs custom-element lifecycles).
343
+
3
344
  ## 0.4.0 (2026-09-03)
4
345
 
5
346
  One theme: the **polyfill set is corrected and cut to one**. The Popover API and Invoker Commands are native across the kit's browser floor and are no longer polyfilled; `interestfor` — which is Chromium-only and drives every tooltip — was never actually polyfilled despite appearing to be, and now is. Net effect: tooltips and hover-open menus start working in Firefox and Safari, and the head's polyfill payload drops from ~228 KB to 15 KB. See ADR-0011.
package/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  Zazz is a CSS and vanilla JavaScript UI kit that does not require a build step. It uses semantic design tokens, cascade layers, `data-*` variants, and browser APIs such as popover, `<dialog>`, invoker commands, anchor positioning, and view transitions.
4
4
 
5
- Docs: <https://zazz.sh> (component gallery, tokens, guides, and a [build-your-first-page tutorial](https://zazz.sh/docs/getting-started/first-page))
5
+ Docs: <https://zazz.sh> (guides, a [quick start](https://zazz.sh/docs/quick-start/), and an [API reference](https://zazz.sh/api/) generated from this package's data).
6
+
7
+ **0.5 is an alpha.** The markup contract can change in any release before 1.0, and 0.5 is not compatible with 0.4; see [`CHANGELOG.md`](./CHANGELOG.md) for every breaking change and its migration note.
6
8
 
7
9
  ## Install
8
10
 
@@ -15,24 +17,46 @@ import "@zazz-ui/core/index.css"; // all styles, imported in cascade order
15
17
  import "@zazz-ui/core"; // custom elements and shared behaviors
16
18
  ```
17
19
 
18
- From a CDN:
20
+ From a CDN, the script needs an import map for its dependencies and the Interest Invokers polyfill:
19
21
 
20
22
  ```html
21
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.4.0/dist/zazz.css" />
22
- <script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.4.0/dist/zazz.js"></script>
23
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.5.0/dist/zazz.css" />
24
+ <script type="importmap">
25
+ {
26
+ "imports": {
27
+ "signal-polyfill": "https://cdn.jsdelivr.net/npm/signal-polyfill@0.2.2/dist/index.js",
28
+ "embla-carousel": "https://cdn.jsdelivr.net/npm/embla-carousel@8.6.0/esm/embla-carousel.esm.js",
29
+ "embla-carousel-autoplay": "https://cdn.jsdelivr.net/npm/embla-carousel-autoplay@8.6.0/esm/embla-carousel-autoplay.esm.js",
30
+ "embla-carousel-auto-scroll": "https://cdn.jsdelivr.net/npm/embla-carousel-auto-scroll@8.6.0/esm/embla-carousel-auto-scroll.esm.js",
31
+ "embla-carousel-class-names": "https://cdn.jsdelivr.net/npm/embla-carousel-class-names@8.6.0/esm/embla-carousel-class-names.esm.js"
32
+ }
33
+ }
34
+ </script>
35
+ <script
36
+ type="module"
37
+ src="https://cdn.jsdelivr.net/npm/invokers@2.2.2/dist/esm/production/interest.js"
38
+ ></script>
39
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/core@0.5.0/dist/zazz.js"></script>
23
40
  ```
24
41
 
25
- Use an exact version in CDN URLs. Each release includes `dist/sri.json`, which lists the SHA-384 hash for every published file. Use those hashes in `integrity` attributes.
42
+ Use an exact version in CDN URLs. The [installation guide](https://zazz.sh/docs/install/installation/) has the complete `<head>`, with fonts, the theme script, a per-primitive variant, and integrity hashes on every URL; `buildHead({ cdn: { version } })` from `@zazz-ui/core/head` returns the same markup. Each release also includes `dist/sri.json` with the SHA-384 hash of every published file.
43
+
44
+ Or own the files: the [`zazz-ui`](https://www.npmjs.com/package/zazz-ui) CLI vendors the base platform and any primitives (with their dependencies) into your project and merges later updates against the recorded originals.
45
+
46
+ ```bash
47
+ pnpm dlx zazz-ui init
48
+ pnpm dlx zazz-ui add button card dialog
49
+ ```
26
50
 
27
- You can also copy files directly. Each primitive has a folder under `src/primitives/<name>/` containing its stylesheet, script, and HTML examples. A `zazz-ui` CLI for copying primitives and their dependencies is planned.
51
+ Each primitive is a folder under `src/primitives/<name>/` with its stylesheet, script, and HTML examples, so copying by hand works too.
28
52
 
29
53
  ## Usage
30
54
 
31
55
  ```html
32
- <button class="ui-button" data-variant="primary">It works!</button>
56
+ <button data-ui="button" data-button-variant="primary">It works!</button>
33
57
  ```
34
58
 
35
- Components are classes (`.ui-button`, `.ui-dialog`, `.ui-field`), and variants are `data-*` attributes (`data-variant`, `data-size`) rather than modifier classes.
59
+ Components are identified by `data-ui` tokens (`data-ui="button"`, `data-ui="field"`), presets are scoped attributes (`data-button-variant`, `data-button-size`), and values are style utilities set in `style` (`style="--px: 4; --w--md: fit-content"`) rather than utility classes.
36
60
 
37
61
  ## Theming
38
62
 
@@ -41,40 +65,48 @@ Every value in the kit resolves from a CSS custom property, which gives you thre
41
65
  ```css
42
66
  /* 1. Global tokens move the whole system */
43
67
  :root {
44
- --primary: oklch(0.6 0.2 145);
68
+ --color-primary: oklch(0.6 0.2 145);
45
69
  --radius-md: 0;
46
70
  }
47
71
 
48
72
  /* 2. Component hooks (--ui-*) restyle one primitive everywhere */
49
73
  :root {
50
- --ui-button-radius: var(--radius-full);
74
+ --ui-button-rounded: var(--radius-full);
51
75
  }
52
76
  ```
53
77
 
54
78
  ```html
55
79
  <!-- 3. The same hooks set inline restyle one instance -->
56
- <button class="ui-button" style="--ui-button-background: var(--secondary)">One-off</button>
80
+ <button data-ui="button" style="--ui-button-bg: var(--color-secondary)">One-off</button>
57
81
  ```
58
82
 
59
- Color roles resolve through `light-dark()`, so light and dark themes work out of the box and follow the OS preference (pin one with a `.dark` class on `<html>`). Styles live in cascade layers, so your own CSS can override anything without `!important` or specificity fights. The [extending guide](https://zazz.sh/docs/core-concepts/extending) covers adding your own tokens, utilities, and variants.
83
+ Color roles resolve through `light-dark()`, so light and dark themes work out of the box and follow the OS preference (pin one with `data-ui-theme="dark"` on `<html>`). Styles live in cascade layers, so your own CSS can override anything without `!important` or specificity fights. The [theming guide](https://zazz.sh/docs/theming/customization/) covers tokens, hooks, dark mode, and brand blocks.
60
84
 
61
85
  ## Layout
62
86
 
63
- The `.container` is not a fixed-width box. A region (`main`, `header`, `footer`, `section`, `article`) holding a `.container` becomes a grid of named width bands, and each direct child of the container picks its band. Measured text and full-bleed media can be siblings in the same flow:
87
+ `data-ui="layout"` (or `<ui-layout>`) turns an element into a grid of named width bands for its own children. Each child sits in the default band (`xl`, changed with `data-layout-size`) unless a `--band` utility places it elsewhere, so measured text and full-bleed media are siblings in one flow:
64
88
 
65
89
  ```html
66
- <section>
67
- <div class="container">
68
- <h2>Sits in the default md band</h2>
69
- <figure data-container="bleed">
70
- <img src="/wide.jpg" alt="" />
71
- </figure>
72
- <p>Back to the md band.</p>
73
- </div>
74
- </section>
90
+ <main data-ui="layout">
91
+ <h2>Sits in the default band</h2>
92
+ <figure style="--band: layout-bleed">
93
+ <img src="/wide.jpg" alt="" />
94
+ </figure>
95
+ <p style="--band: layout-md; --band--lg: layout-lg">Measured text, wider from lg up.</p>
96
+ </main>
97
+ ```
98
+
99
+ See [layout](https://zazz.sh/api/foundations/layout/) for the band model and [breakpoints](https://zazz.sh/api/foundations/breakpoints/) for how tiers read the nearest container.
100
+
101
+ ## Tests
102
+
103
+ `vp test` runs two projects: `unit` (happy-dom) and `browser` (Vitest browser mode, Chromium via Playwright, the SPEC claims register). Once per machine:
104
+
105
+ ```sh
106
+ pnpm exec playwright install chromium
75
107
  ```
76
108
 
77
- See [layout and containers](https://zazz.sh/docs/core-concepts/layout) for the band model, the article reading-measure variant, and responsive container variants.
109
+ `vp test --project unit` is the fast loop. `ZAZZ_BROWSERS=webkit,firefox vp test --project "browser*"` runs the other engines after `pnpm exec playwright install webkit firefox`. `ZAZZ_SKIP_BROWSER=1` omits the browser project and says so.
78
110
 
79
111
  ## Browser support
80
112
 
@@ -0,0 +1 @@
1
+ import{t as e}from"./zazz.js";const t=`data-ui-stuck`,n={top:`bottom`,right:`left`,bottom:`top`,left:`right`};let r=[],i,a=0;function o(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){let{overflowX:e,overflowY:n}=getComputedStyle(t);if(/auto|scroll|hidden/.test(e+n))return t}return null}function s(e,{writingMode:t,direction:r}){let i=!t.startsWith(`horizontal`),a=i?t.endsWith(`lr`)?`left`:`right`:`top`,o=i?r===`rtl`?`bottom`:`top`:r===`rtl`?`right`:`left`,s=[];return e===a&&s.push(`block-start`),e===n[a]&&s.push(`block-end`),e===o&&s.push(`inline-start`),e===n[o]&&s.push(`inline-end`),s}function c(e,t){if(t.position!==`sticky`)return[];let n=o(e),r=n??document.scrollingElement??document.documentElement,i=n?(()=>{let e=n.getBoundingClientRect(),t=e.top+n.clientTop,r=e.left+n.clientLeft;return{top:t,left:r,bottom:t+n.clientHeight,right:r+n.clientWidth}})():{top:0,left:0,bottom:innerHeight,right:innerWidth},a=e.getBoundingClientRect(),s=r.scrollHeight-r.clientHeight,c=r.scrollWidth-r.clientWidth,l=getComputedStyle(r).direction===`rtl`,u=r.scrollLeft,d={top:r.scrollTop>0,bottom:r.scrollTop<s-.5,left:l?u>-c+.5:u>0,right:l?u<0:u<c-.5},f={top:a.top-i.top,bottom:i.bottom-a.bottom,left:a.left-i.left,right:i.right-a.right};return Object.keys(f).filter(e=>{let n=t[e];return n!==`auto`&&d[e]&&Math.abs(f[e]-Number.parseFloat(n))<1})}function l(){a=0;for(let e of r){let n=getComputedStyle(e),r=c(e,n).flatMap(e=>[e,...s(e,n)]).join(` `);r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.removeAttribute(t)}}function u(){a||=requestAnimationFrame(l)}function d(){if(i){for(let e of r)e.isConnected||e.removeAttribute(t);r=[...document.querySelectorAll(`[style*=": sticky"], [style*="--stuck-state:"]`)].filter(e=>e.querySelector(`[style*="--stuck:"]`)),u()}}function f(){return typeof CSS<`u`&&CSS.supports(`container-type`,`scroll-state`)}function p({force:e=!1}={}){if(i||!e&&f())return;i=new AbortController;let t={passive:!0,capture:!0,signal:i.signal};document.addEventListener(`scroll`,u,t),window.addEventListener(`resize`,u,t),d()}typeof window<`u`&&typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>p(),{once:!0}):p(),e(d));export{};