@cube-dev/ui-kit 0.213.0 → 0.214.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 (793) hide show
  1. package/dist/CHANGELOG.md +26 -0
  2. package/dist/_internal/hooks/use-debounced-value.js +1 -1
  3. package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
  4. package/dist/_internal/hooks/use-event.js +1 -1
  5. package/dist/_internal/hooks/use-is-first-render.js +1 -1
  6. package/dist/_internal/hooks/use-sync-ref.js +1 -1
  7. package/dist/_internal/hooks/use-timer/timer.js +1 -1
  8. package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
  9. package/dist/_internal/hooks/use-warn.js +1 -1
  10. package/dist/components/Block.js +1 -1
  11. package/dist/components/CollectionItem.js +1 -1
  12. package/dist/components/GlobalStyles.js +1 -1
  13. package/dist/components/GridProvider.js +1 -1
  14. package/dist/components/HiddenInput.js +1 -1
  15. package/dist/components/Root.js +1 -1
  16. package/dist/components/actions/Action/Action.js +1 -1
  17. package/dist/components/actions/Banner/Banner.js +1 -1
  18. package/dist/components/actions/Button/AutoCollapseObserver.js +1 -1
  19. package/dist/components/actions/Button/Button.js +1 -1
  20. package/dist/components/actions/Button/index.js +1 -1
  21. package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
  22. package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
  23. package/dist/components/actions/ButtonSplit/context.js +1 -1
  24. package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
  25. package/dist/components/actions/CommandMenu/styled.js +1 -1
  26. package/dist/components/actions/ItemAction/ItemAction.js +1 -1
  27. package/dist/components/actions/ItemActionContext.js +1 -1
  28. package/dist/components/actions/ItemActionsWrapper.js +1 -1
  29. package/dist/components/actions/ItemButton/ItemButton.js +1 -1
  30. package/dist/components/actions/Link/Link.js +1 -1
  31. package/dist/components/actions/Menu/Menu.js +1 -1
  32. package/dist/components/actions/Menu/MenuCollectionItem.js +1 -1
  33. package/dist/components/actions/Menu/MenuItem.js +1 -1
  34. package/dist/components/actions/Menu/MenuSection.js +1 -1
  35. package/dist/components/actions/Menu/MenuTrigger.js +1 -1
  36. package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
  37. package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
  38. package/dist/components/actions/Menu/context.js +1 -1
  39. package/dist/components/actions/Menu/styled.js +1 -1
  40. package/dist/components/actions/actions-run.js +1 -1
  41. package/dist/components/actions/use-action.d.ts +1 -1
  42. package/dist/components/actions/use-action.js +2 -2
  43. package/dist/components/actions/use-action.js.map +1 -1
  44. package/dist/components/actions/use-anchored-menu.js +1 -1
  45. package/dist/components/actions/use-context-menu.js +1 -1
  46. package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
  47. package/dist/components/content/Alert/Alert.js +1 -1
  48. package/dist/components/content/Alert/use-alert.js +1 -1
  49. package/dist/components/content/Avatar/Avatar.js +1 -1
  50. package/dist/components/content/Badge/Badge.js +1 -1
  51. package/dist/components/content/Card/Card.js +1 -1
  52. package/dist/components/content/Content.js +1 -1
  53. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
  54. package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
  55. package/dist/components/content/Disclosure/Disclosure.js +1 -1
  56. package/dist/components/content/Divider/Divider.js +1 -1
  57. package/dist/components/content/Footer.js +1 -1
  58. package/dist/components/content/Header.js +1 -1
  59. package/dist/components/content/HotKeys/HotKeys.js +1 -1
  60. package/dist/components/content/InfoBadge/InfoBadge.js +36 -4
  61. package/dist/components/content/InfoBadge/InfoBadge.js.map +1 -1
  62. package/dist/components/content/InlineInput/InlineInput.js +1 -1
  63. package/dist/components/content/Item/Item.js +1 -1
  64. package/dist/components/content/Item/ItemWithNativeLinks.js +1 -1
  65. package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
  66. package/dist/components/content/ItemCard/ItemCard.js +1 -1
  67. package/dist/components/content/Layout/GridLayout.js +1 -1
  68. package/dist/components/content/Layout/Layout.js +1 -1
  69. package/dist/components/content/Layout/LayoutBlock.js +1 -1
  70. package/dist/components/content/Layout/LayoutCenter.js +1 -1
  71. package/dist/components/content/Layout/LayoutContainer.js +1 -1
  72. package/dist/components/content/Layout/LayoutContent.js +1 -1
  73. package/dist/components/content/Layout/LayoutContext.js +1 -1
  74. package/dist/components/content/Layout/LayoutFlex.js +1 -1
  75. package/dist/components/content/Layout/LayoutFooter.js +1 -1
  76. package/dist/components/content/Layout/LayoutGrid.js +1 -1
  77. package/dist/components/content/Layout/LayoutHeader.js +1 -1
  78. package/dist/components/content/Layout/LayoutPane.js +1 -1
  79. package/dist/components/content/Layout/LayoutPanel.js +1 -1
  80. package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
  81. package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
  82. package/dist/components/content/Layout/LayoutToolbar.js +1 -1
  83. package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
  84. package/dist/components/content/Layout/index.js +1 -1
  85. package/dist/components/content/Layout/utils.js +1 -1
  86. package/dist/components/content/Paragraph.js +1 -1
  87. package/dist/components/content/Placeholder/Placeholder.js +1 -1
  88. package/dist/components/content/PrismCode/PrismCode.js +1 -1
  89. package/dist/components/content/PrismCode/prismSetup.js +1 -1
  90. package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
  91. package/dist/components/content/Result/Result.js +1 -1
  92. package/dist/components/content/Skeleton/Skeleton.js +1 -1
  93. package/dist/components/content/Tag/Tag.js +55 -29
  94. package/dist/components/content/Tag/Tag.js.map +1 -1
  95. package/dist/components/content/Text.js +1 -1
  96. package/dist/components/content/TextItem/TextItem.js +1 -1
  97. package/dist/components/content/Title.js +1 -1
  98. package/dist/components/content/Tree/Tree.js +1 -1
  99. package/dist/components/content/Tree/TreeNode.js +1 -1
  100. package/dist/components/content/Tree/checked-keys.js +1 -1
  101. package/dist/components/content/Tree/rowId.js +1 -1
  102. package/dist/components/content/Tree/styled.js +1 -1
  103. package/dist/components/content/Tree/tree-index.js +1 -1
  104. package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
  105. package/dist/components/content/Tree/use-load-data.js +1 -1
  106. package/dist/components/content/highlightText.js +1 -1
  107. package/dist/components/content/use-auto-tooltip.js +1 -1
  108. package/dist/components/data/DataTable/DataTable.js +1 -1
  109. package/dist/components/data/ItemTable/ItemTable.js +1 -1
  110. package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
  111. package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
  112. package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
  113. package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
  114. package/dist/components/data/ItemTable/item-table-sections.js +1 -1
  115. package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
  116. package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
  117. package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
  118. package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
  119. package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
  120. package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
  121. package/dist/components/data/TableBase/ColumnResizer.js +1 -1
  122. package/dist/components/data/TableBase/RowCollection.js +1 -1
  123. package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
  124. package/dist/components/data/TableBase/TableRow.js +1 -1
  125. package/dist/components/data/TableBase/TableRowLink.js +1 -1
  126. package/dist/components/data/TableBase/TableView.js +1 -1
  127. package/dist/components/data/TableBase/TreeGridTable.js +1 -1
  128. package/dist/components/data/TableBase/column-header.js +1 -1
  129. package/dist/components/data/TableBase/column-menu.js +1 -1
  130. package/dist/components/data/TableBase/column-styles.js +1 -1
  131. package/dist/components/data/TableBase/column-tint.js +1 -1
  132. package/dist/components/data/TableBase/row-menu.js +1 -1
  133. package/dist/components/data/TableBase/styled.js +1 -1
  134. package/dist/components/data/TableBase/table-body-sections.js +1 -1
  135. package/dist/components/data/TableBase/table-tree.js +1 -1
  136. package/dist/components/data/TableBase/types.js +1 -1
  137. package/dist/components/data/TableBase/use-cell-selection.js +0 -0
  138. package/dist/components/data/TableBase/use-column-menu.js +1 -1
  139. package/dist/components/data/TableBase/use-column-order.js +1 -1
  140. package/dist/components/data/TableBase/use-column-window.js +1 -1
  141. package/dist/components/data/TableBase/use-container-width.js +1 -1
  142. package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
  143. package/dist/components/data/TableBase/use-scrollability.js +1 -1
  144. package/dist/components/data/TableBase/use-table-columns.js +1 -1
  145. package/dist/components/data/TableBase/use-table-search.js +1 -1
  146. package/dist/components/data/TableBase/use-table-selection.js +1 -1
  147. package/dist/components/data/TableBase/use-table-sort.js +1 -1
  148. package/dist/components/data/TableBase/use-table-sorts.js +1 -1
  149. package/dist/components/data/TableBase/use-table-storage.js +1 -1
  150. package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
  151. package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
  152. package/dist/components/fields/Checkbox/Checkbox.js +1 -1
  153. package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
  154. package/dist/components/fields/Checkbox/context.js +1 -1
  155. package/dist/components/fields/ColorInput/ColorInput.js +1 -1
  156. package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
  157. package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
  158. package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
  159. package/dist/components/fields/ComboBox/ComboBox.js +1 -1
  160. package/dist/components/fields/ComboBox/comboBoxOptions.js +1 -1
  161. package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
  162. package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
  163. package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
  164. package/dist/components/fields/DatePicker/CalendarPopover.js +1 -1
  165. package/dist/components/fields/DatePicker/DateInput.js +1 -1
  166. package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
  167. package/dist/components/fields/DatePicker/DatePicker.js +1 -1
  168. package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
  169. package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
  170. package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
  171. package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
  172. package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
  173. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
  174. package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
  175. package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
  176. package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
  177. package/dist/components/fields/DatePicker/TimeInput.js +1 -1
  178. package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
  179. package/dist/components/fields/DatePicker/YearPicker.js +1 -1
  180. package/dist/components/fields/DatePicker/parseDate.js +1 -1
  181. package/dist/components/fields/DatePicker/period.js +1 -1
  182. package/dist/components/fields/DatePicker/props.js +1 -1
  183. package/dist/components/fields/DatePicker/utils.js +1 -1
  184. package/dist/components/fields/FileInput/FileInput.js +1 -1
  185. package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
  186. package/dist/components/fields/FilterListBox/styled.js +1 -1
  187. package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
  188. package/dist/components/fields/FilterPicker/FilterTree.js +1 -1
  189. package/dist/components/fields/Input/Input.js +1 -1
  190. package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
  191. package/dist/components/fields/ListBox/ListBox.js +1 -1
  192. package/dist/components/fields/ListBox/empty-row.js +1 -1
  193. package/dist/components/fields/ListBox/optionId.js +1 -1
  194. package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
  195. package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
  196. package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
  197. package/dist/components/fields/NumberInput/NumberInput.js +1 -1
  198. package/dist/components/fields/NumberInput/StepButton.js +1 -1
  199. package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
  200. package/dist/components/fields/Picker/Picker.js +1 -1
  201. package/dist/components/fields/RadioGroup/Radio.js +1 -1
  202. package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
  203. package/dist/components/fields/RadioGroup/context.js +1 -1
  204. package/dist/components/fields/RadioGroup/joined-styles.js +1 -1
  205. package/dist/components/fields/SearchComboBox/SearchComboBox.js +1 -1
  206. package/dist/components/fields/SearchInput/SearchInput.js +1 -1
  207. package/dist/components/fields/Select/Select.js +1 -1
  208. package/dist/components/fields/Slider/Gradation.js +1 -1
  209. package/dist/components/fields/Slider/HueSlider.js +1 -1
  210. package/dist/components/fields/Slider/RangeSlider.js +1 -1
  211. package/dist/components/fields/Slider/Slider.js +1 -1
  212. package/dist/components/fields/Slider/SliderBase.js +1 -1
  213. package/dist/components/fields/Slider/SliderThumb.js +1 -1
  214. package/dist/components/fields/Slider/SliderTrack.js +1 -1
  215. package/dist/components/fields/Slider/elements.js +1 -1
  216. package/dist/components/fields/Slider/index.js +1 -1
  217. package/dist/components/fields/Switch/Switch.js +1 -1
  218. package/dist/components/fields/TagInput/TagInput.d.ts +26 -3
  219. package/dist/components/fields/TagInput/TagInput.js +340 -204
  220. package/dist/components/fields/TagInput/TagInput.js.map +1 -1
  221. package/dist/components/fields/TagInput/TagList.js +59 -34
  222. package/dist/components/fields/TagInput/TagList.js.map +1 -1
  223. package/dist/components/fields/TagInput/useActiveOption.js +1 -1
  224. package/dist/components/fields/TagInput/useSuffixSpace.js +62 -0
  225. package/dist/components/fields/TagInput/useSuffixSpace.js.map +1 -0
  226. package/dist/components/fields/TagInput/useTagError.js +1 -1
  227. package/dist/components/fields/TextArea/TextArea.js +1 -1
  228. package/dist/components/fields/TextInput/TextInput.js +1 -1
  229. package/dist/components/fields/TextInput/TextInputBase.js +1 -1
  230. package/dist/components/fields/TextInput/displayed-validation.js +1 -1
  231. package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
  232. package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
  233. package/dist/components/fields/ToggleGroup/ToggleGroup.js +1 -1
  234. package/dist/components/fields/ToggleGroup/ToggleGroupItem.js +1 -1
  235. package/dist/components/fields/ToggleGroup/context.js +1 -1
  236. package/dist/components/fields/TriggerActions.js +1 -1
  237. package/dist/components/fields/color/ColorPanel.js +1 -1
  238. package/dist/components/fields/color/channels.js +1 -1
  239. package/dist/components/fields/color/color.js +1 -1
  240. package/dist/components/fields/color/context.js +1 -1
  241. package/dist/components/fields/option-origin-press.js +1 -1
  242. package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
  243. package/dist/components/form/FieldWrapper/field-description.js +1 -1
  244. package/dist/components/form/Form/Field.js +1 -1
  245. package/dist/components/form/Form/Form.js +1 -1
  246. package/dist/components/form/Form/FormContext.js +1 -1
  247. package/dist/components/form/Form/FormElement.js +1 -1
  248. package/dist/components/form/Form/ModernFormRoot.js +1 -1
  249. package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
  250. package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
  251. package/dist/components/form/Form/SubmitError.js +1 -1
  252. package/dist/components/form/Form/backend.js +1 -1
  253. package/dist/components/form/Form/index.js +1 -1
  254. package/dist/components/form/Form/modern/actions.js +1 -1
  255. package/dist/components/form/Form/modern/context.js +1 -1
  256. package/dist/components/form/Form/modern/controller.js +1 -1
  257. package/dist/components/form/Form/modern/field-binding.js +1 -1
  258. package/dist/components/form/Form/modern/field.js +1 -1
  259. package/dist/components/form/Form/modern/react.js +1 -1
  260. package/dist/components/form/Form/modern/store.js +1 -1
  261. package/dist/components/form/Form/modern/validation.js +1 -1
  262. package/dist/components/form/Form/modern/values.js +1 -1
  263. package/dist/components/form/Form/reset-unbound-controls.js +1 -1
  264. package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
  265. package/dist/components/form/Form/use-field/use-field-props.js +1 -1
  266. package/dist/components/form/Form/use-field/use-field.js +1 -1
  267. package/dist/components/form/Form/use-form.js +1 -1
  268. package/dist/components/form/Form/validation.js +1 -1
  269. package/dist/components/form/Label.js +1 -1
  270. package/dist/components/form/field-chrome.js +1 -1
  271. package/dist/components/form/field-layout.js +1 -1
  272. package/dist/components/form/legacy-tooltip.js +1 -1
  273. package/dist/components/form/validation/ValidationIndicator.js +1 -1
  274. package/dist/components/form/validation/resolve-validation-props.js +1 -1
  275. package/dist/components/form/validation/use-validation-props.js +1 -1
  276. package/dist/components/form/wrapper.js +1 -1
  277. package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
  278. package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
  279. package/dist/components/layout/Flex.js +1 -1
  280. package/dist/components/layout/Flow.js +1 -1
  281. package/dist/components/layout/Grid.js +1 -1
  282. package/dist/components/layout/Panel.js +1 -1
  283. package/dist/components/layout/Prefix.js +1 -1
  284. package/dist/components/layout/ResizablePanel.js +1 -1
  285. package/dist/components/layout/Space.js +1 -1
  286. package/dist/components/layout/Suffix.js +1 -1
  287. package/dist/components/navigation/NavTabs/NavTabs.d.ts +66 -0
  288. package/dist/components/navigation/NavTabs/NavTabs.js +369 -0
  289. package/dist/components/navigation/NavTabs/NavTabs.js.map +1 -0
  290. package/dist/components/navigation/NavTabs/index.d.ts +3 -0
  291. package/dist/components/navigation/Pagination/Pagination.js +1 -1
  292. package/dist/components/navigation/Pagination/use-pagination.js +1 -1
  293. package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
  294. package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
  295. package/dist/components/navigation/Tabs/TabButton.js +4 -49
  296. package/dist/components/navigation/Tabs/TabButton.js.map +1 -1
  297. package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
  298. package/dist/components/navigation/Tabs/TabPanel.js +1 -1
  299. package/dist/components/navigation/Tabs/TabPicker.js +1 -1
  300. package/dist/components/navigation/Tabs/Tabs.js +1 -1
  301. package/dist/components/navigation/Tabs/TabsAction.js +1 -1
  302. package/dist/components/navigation/Tabs/TabsContext.js +1 -1
  303. package/dist/components/navigation/Tabs/popover-placement.js +1 -1
  304. package/dist/components/navigation/Tabs/scroll-tab-into-strip.js +60 -0
  305. package/dist/components/navigation/Tabs/scroll-tab-into-strip.js.map +1 -0
  306. package/dist/components/navigation/Tabs/segmented-styles.js +1 -1
  307. package/dist/components/navigation/Tabs/styled.js +66 -65
  308. package/dist/components/navigation/Tabs/styled.js.map +1 -1
  309. package/dist/components/navigation/Tabs/types.js +1 -1
  310. package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
  311. package/dist/components/navigation/Tabs/use-tab-indicator.js +15 -6
  312. package/dist/components/navigation/Tabs/use-tab-indicator.js.map +1 -1
  313. package/dist/components/navigation/index.d.ts +3 -1
  314. package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
  315. package/dist/components/other/Calendar/Calendar.js +1 -1
  316. package/dist/components/other/Calendar/CalendarCell.js +1 -1
  317. package/dist/components/other/Calendar/CalendarGrid.js +1 -1
  318. package/dist/components/other/Calendar/CalendarHeader.js +1 -1
  319. package/dist/components/other/Calendar/CalendarPanel.js +1 -1
  320. package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
  321. package/dist/components/other/Calendar/PeriodGrid.js +1 -1
  322. package/dist/components/other/Calendar/RangeCalendar.js +1 -1
  323. package/dist/components/other/Calendar/styled.js +1 -1
  324. package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
  325. package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
  326. package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
  327. package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
  328. package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
  329. package/dist/components/overlays/Dialog/Dialog.js +1 -1
  330. package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
  331. package/dist/components/overlays/Dialog/DialogForm.js +1 -1
  332. package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
  333. package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
  334. package/dist/components/overlays/Dialog/context.js +1 -1
  335. package/dist/components/overlays/Dialog/default-button-text.js +1 -1
  336. package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
  337. package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
  338. package/dist/components/overlays/Dialog/use-dialog-open-sync.js +1 -1
  339. package/dist/components/overlays/Dialog/use-dismiss-confirmation.js +1 -1
  340. package/dist/components/overlays/Dialog/use-retained-dialog-focus.js +1 -1
  341. package/dist/components/overlays/Dialog/use-retained-dialog-focus.js.map +1 -1
  342. package/dist/components/overlays/Modal/Modal.js +1 -1
  343. package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
  344. package/dist/components/overlays/Modal/Overlay.js +1 -1
  345. package/dist/components/overlays/Modal/Popover.js +1 -1
  346. package/dist/components/overlays/Modal/Tray.js +1 -1
  347. package/dist/components/overlays/Modal/Underlay.js +1 -1
  348. package/dist/components/overlays/Modal/modal-containment.js +1 -1
  349. package/dist/components/overlays/Notifications/Notification.js +1 -1
  350. package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
  351. package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
  352. package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
  353. package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
  354. package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
  355. package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
  356. package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
  357. package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
  358. package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
  359. package/dist/components/overlays/Notifications/index.js +1 -1
  360. package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
  361. package/dist/components/overlays/Notifications/use-notifications.js +1 -1
  362. package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
  363. package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
  364. package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
  365. package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
  366. package/dist/components/overlays/Toast/ToastItem.js +1 -1
  367. package/dist/components/overlays/Toast/index.js +1 -1
  368. package/dist/components/overlays/Toast/useProgressToast.js +1 -1
  369. package/dist/components/overlays/Toast/useToast.js +1 -1
  370. package/dist/components/overlays/Tooltip/Tooltip.js +17 -14
  371. package/dist/components/overlays/Tooltip/Tooltip.js.map +1 -1
  372. package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
  373. package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
  374. package/dist/components/overlays/Tooltip/context.js +1 -1
  375. package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
  376. package/dist/components/portal/Portal.js +1 -1
  377. package/dist/components/portal/PortalProvider.js +1 -1
  378. package/dist/components/portal/usePortal.js +1 -1
  379. package/dist/components/shared/DraggableCollection.js +1 -1
  380. package/dist/components/shared/InvalidIcon.js +1 -1
  381. package/dist/components/shared/ValidIcon.js +1 -1
  382. package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
  383. package/dist/components/status/Spin/Cube.js +1 -1
  384. package/dist/components/status/Spin/InternalSpinner.js +1 -1
  385. package/dist/components/status/Spin/Spin.js +1 -1
  386. package/dist/components/status/Spin/SpinsContainer.js +1 -1
  387. package/dist/data/item-themes.js +1 -1
  388. package/dist/data/themes.js +1 -1
  389. package/dist/eslint-plugin/defaults.generated.js +9 -1
  390. package/dist/eslint-plugin/defaults.generated.js.map +1 -1
  391. package/dist/eslint-plugin/index.js +1 -1
  392. package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
  393. package/dist/i18n/I18nProvider.js +1 -1
  394. package/dist/i18n/createFormatter.js +1 -1
  395. package/dist/i18n/index.js +1 -1
  396. package/dist/i18n/instance.js +1 -1
  397. package/dist/i18n/locales/de-DE/uikit.js +5 -3
  398. package/dist/i18n/locales/en-US/uikit.js +5 -3
  399. package/dist/i18n/locales/en-US/uikit.json.d.ts +8 -4
  400. package/dist/i18n/locales/es-ES/uikit.js +5 -3
  401. package/dist/i18n/locales/es-MX/uikit.js +5 -3
  402. package/dist/i18n/locales/fr-FR/uikit.js +5 -3
  403. package/dist/i18n/locales/it-IT/uikit.js +5 -3
  404. package/dist/i18n/locales/ja-JP/uikit.js +5 -3
  405. package/dist/i18n/locales/nb-NO/uikit.js +5 -3
  406. package/dist/i18n/locales/pt-BR/uikit.js +5 -3
  407. package/dist/i18n/locales/pt-PT/uikit.js +5 -3
  408. package/dist/i18n/locales/sv-SE/uikit.js +5 -3
  409. package/dist/i18n/locales/vi-VN/uikit.js +5 -3
  410. package/dist/i18n/locales.js +1 -1
  411. package/dist/i18n/namespace.js +1 -1
  412. package/dist/i18n/useFormatter.js +1 -1
  413. package/dist/i18n/useI18n.js +1 -1
  414. package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
  415. package/dist/icons/AdjustmentsIcon.js +1 -1
  416. package/dist/icons/AiIcon.js +1 -1
  417. package/dist/icons/AreaChartIcon.js +1 -1
  418. package/dist/icons/ArrowNarrowDownIcon.js +1 -1
  419. package/dist/icons/ArrowNarrowUpIcon.js +1 -1
  420. package/dist/icons/BackwardIcon.js +1 -1
  421. package/dist/icons/BarChartIcon.js +1 -1
  422. package/dist/icons/BellFilledIcon.js +1 -1
  423. package/dist/icons/BellIcon.js +1 -1
  424. package/dist/icons/BooleanIcon.js +1 -1
  425. package/dist/icons/CalendarEditIcon.js +1 -1
  426. package/dist/icons/CalendarIcon.js +1 -1
  427. package/dist/icons/CaretDownIcon.js +1 -1
  428. package/dist/icons/CaretUpIcon.js +1 -1
  429. package/dist/icons/ChartAreaStackedIcon.js +1 -1
  430. package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
  431. package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
  432. package/dist/icons/ChartBarGroupedIcon.js +1 -1
  433. package/dist/icons/ChartBarHorizontalIcon.js +1 -1
  434. package/dist/icons/ChartBarLineIcon.js +1 -1
  435. package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
  436. package/dist/icons/ChartBarStackedIcon.js +1 -1
  437. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
  438. package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
  439. package/dist/icons/ChartBoxPlot2Icon.js +1 -1
  440. package/dist/icons/ChartBoxPlotIcon.js +1 -1
  441. package/dist/icons/ChartBubbleIcon.js +1 -1
  442. package/dist/icons/ChartDonut2Icon.js +1 -1
  443. package/dist/icons/ChartFunnelIcon.js +1 -1
  444. package/dist/icons/ChartHeatmapIcon.js +1 -1
  445. package/dist/icons/ChartKPIIcon.js +1 -1
  446. package/dist/icons/ChartPie2Icon.js +1 -1
  447. package/dist/icons/ChartScatterIcon.js +1 -1
  448. package/dist/icons/CheckCircleFilledIcon.js +1 -1
  449. package/dist/icons/CheckCircleIcon.js +1 -1
  450. package/dist/icons/CheckIcon.js +1 -1
  451. package/dist/icons/CircleFilledIcon.js +1 -1
  452. package/dist/icons/ClearIcon.js +1 -1
  453. package/dist/icons/CloseCircleFilledIcon.js +1 -1
  454. package/dist/icons/CloseCircleIcon.js +1 -1
  455. package/dist/icons/CloseIcon.js +1 -1
  456. package/dist/icons/CodeIcon.js +1 -1
  457. package/dist/icons/ColumnTotalIcon.js +1 -1
  458. package/dist/icons/CopyIcon.js +1 -1
  459. package/dist/icons/CountIcon.js +1 -1
  460. package/dist/icons/CubeIcon.js +1 -1
  461. package/dist/icons/CubePauseIcon.js +1 -1
  462. package/dist/icons/CubePlayIcon.js +1 -1
  463. package/dist/icons/CurrencyDollarIcon.js +1 -1
  464. package/dist/icons/DangerIcon.js +1 -1
  465. package/dist/icons/DashboardIcon.js +1 -1
  466. package/dist/icons/DatabaseIcon.js +1 -1
  467. package/dist/icons/DecimalDecreaseIcon.js +1 -1
  468. package/dist/icons/DecimalIncreaseIcon.js +1 -1
  469. package/dist/icons/DirectionIcon.js +1 -1
  470. package/dist/icons/DonutIcon.js +1 -1
  471. package/dist/icons/DownIcon.js +1 -1
  472. package/dist/icons/EditIcon.js +1 -1
  473. package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
  474. package/dist/icons/ExclamationCircleIcon.js +1 -1
  475. package/dist/icons/ExclamationIcon.js +1 -1
  476. package/dist/icons/EyeIcon.js +1 -1
  477. package/dist/icons/EyeInvisibleIcon.js +1 -1
  478. package/dist/icons/FilterIcon.js +1 -1
  479. package/dist/icons/FolderFilledIcon.js +1 -1
  480. package/dist/icons/FolderIcon.js +1 -1
  481. package/dist/icons/FolderOpenFilledIcon.js +1 -1
  482. package/dist/icons/FolderOpenIcon.js +1 -1
  483. package/dist/icons/ForwardIcon.js +1 -1
  484. package/dist/icons/GripVerticalIcon.js +1 -1
  485. package/dist/icons/HierarchyIcon.js +1 -1
  486. package/dist/icons/HierarchyOpenIcon.js +1 -1
  487. package/dist/icons/Icon.js +1 -1
  488. package/dist/icons/InfoCircleIcon.js +1 -1
  489. package/dist/icons/InfoIcon.js +1 -1
  490. package/dist/icons/KeyIcon.js +1 -1
  491. package/dist/icons/LeftIcon.js +1 -1
  492. package/dist/icons/LineChartIcon.js +1 -1
  493. package/dist/icons/LoadingIcon.js +1 -1
  494. package/dist/icons/LockFilledIcon.js +1 -1
  495. package/dist/icons/LockIcon.js +1 -1
  496. package/dist/icons/MoreIcon.js +1 -1
  497. package/dist/icons/NotAllowedIcon.js +1 -1
  498. package/dist/icons/Number123Icon.js +1 -1
  499. package/dist/icons/NumberIcon.js +1 -1
  500. package/dist/icons/PauseCircleFilledIcon.js +1 -1
  501. package/dist/icons/PauseCircleIcon.js +1 -1
  502. package/dist/icons/PauseIcon.js +1 -1
  503. package/dist/icons/PercentageIcon.js +1 -1
  504. package/dist/icons/PieChartIcon.js +1 -1
  505. package/dist/icons/PipetteIcon.js +1 -1
  506. package/dist/icons/PlayCircleIcon.js +1 -1
  507. package/dist/icons/PlayIcon.js +1 -1
  508. package/dist/icons/PlusIcon.js +1 -1
  509. package/dist/icons/ProgressBarIcon.js +1 -1
  510. package/dist/icons/ReloadIcon.js +1 -1
  511. package/dist/icons/ReportIcon.js +1 -1
  512. package/dist/icons/ReturnIcon.js +1 -1
  513. package/dist/icons/RightIcon.js +1 -1
  514. package/dist/icons/RowTotalsIcon.js +1 -1
  515. package/dist/icons/SchemeIcon.js +1 -1
  516. package/dist/icons/SearchIcon.js +1 -1
  517. package/dist/icons/SemanticQueryIcon.js +1 -1
  518. package/dist/icons/SettingsIcon.js +1 -1
  519. package/dist/icons/ShieldFilledIcon.js +1 -1
  520. package/dist/icons/ShieldIcon.js +1 -1
  521. package/dist/icons/SlashIcon.js +1 -1
  522. package/dist/icons/SparklesIcon.js +1 -1
  523. package/dist/icons/SqlIcon.js +1 -1
  524. package/dist/icons/StatsIcon.js +1 -1
  525. package/dist/icons/StopIcon.js +1 -1
  526. package/dist/icons/StringIcon.js +1 -1
  527. package/dist/icons/SubtotalsIcon.js +1 -1
  528. package/dist/icons/SwitchIcon.js +1 -1
  529. package/dist/icons/TableIcon.js +1 -1
  530. package/dist/icons/ThumbsDownIcon.js +1 -1
  531. package/dist/icons/ThumbsUpIcon.js +1 -1
  532. package/dist/icons/ThunderboltCrossedIcon.js +1 -1
  533. package/dist/icons/ThunderboltFilledIcon.js +1 -1
  534. package/dist/icons/ThunderboltIcon.js +1 -1
  535. package/dist/icons/TimeIcon.js +1 -1
  536. package/dist/icons/TrashIcon.js +1 -1
  537. package/dist/icons/UnlockIcon.js +1 -1
  538. package/dist/icons/UpIcon.js +1 -1
  539. package/dist/icons/UserGroupIcon.js +1 -1
  540. package/dist/icons/UserIcon.js +1 -1
  541. package/dist/icons/UserLockIcon.js +1 -1
  542. package/dist/icons/ViewIcon.js +1 -1
  543. package/dist/icons/WarningFilledIcon.js +1 -1
  544. package/dist/icons/WarningIcon.js +1 -1
  545. package/dist/icons/wrap-icon.js +1 -1
  546. package/dist/index.d.ts +2 -1
  547. package/dist/index.js +3 -2
  548. package/dist/index.js.map +1 -1
  549. package/dist/probe/canonicalize.js +1 -1
  550. package/dist/probe/css.js +1 -1
  551. package/dist/probe/index.js +1 -1
  552. package/dist/provider.js +1 -1
  553. package/dist/providers/TrackingProvider.js +1 -1
  554. package/dist/providers/navigation-url.js +1 -1
  555. package/dist/providers/navigationAdapter.default.js +1 -1
  556. package/dist/providers/use-navigation.js +1 -1
  557. package/dist/tokens/all-tokens.js +1 -1
  558. package/dist/tokens/base.js +1 -1
  559. package/dist/tokens/color-seed.js +1 -1
  560. package/dist/tokens/color-theme.js +1 -1
  561. package/dist/tokens/colors.js +1 -1
  562. package/dist/tokens/layout.js +1 -1
  563. package/dist/tokens/lazy-styles.js +1 -1
  564. package/dist/tokens/legacy-color.js +1 -1
  565. package/dist/tokens/palette-config.js +1 -1
  566. package/dist/tokens/palette.js +1 -1
  567. package/dist/tokens/resolve.js +1 -1
  568. package/dist/tokens/shadows.js +1 -1
  569. package/dist/tokens/sizes.js +1 -1
  570. package/dist/tokens/spacing.js +1 -1
  571. package/dist/tokens/typography.js +1 -1
  572. package/dist/utils/ResizeSensor.js +1 -1
  573. package/dist/utils/colors.js +1 -1
  574. package/dist/utils/dotize.js +1 -1
  575. package/dist/utils/is-dev-env.js +1 -1
  576. package/dist/utils/layout-scale.js +1 -1
  577. package/dist/utils/modules.js +1 -1
  578. package/dist/utils/promise.js +1 -1
  579. package/dist/utils/raf.js +1 -1
  580. package/dist/utils/random.js +1 -1
  581. package/dist/utils/range.js +1 -1
  582. package/dist/utils/react/RenderCache.js +1 -1
  583. package/dist/utils/react/Slots.js +1 -1
  584. package/dist/utils/react/chain.js +1 -1
  585. package/dist/utils/react/componentBaseProps.js +1 -1
  586. package/dist/utils/react/disabledProps.js +1 -1
  587. package/dist/utils/react/forwardRefWithGenerics.js +1 -1
  588. package/dist/utils/react/index.js +1 -1
  589. package/dist/utils/react/interactions.js +1 -1
  590. package/dist/utils/react/isTextOnly.js +1 -1
  591. package/dist/utils/react/mapProps.js +1 -1
  592. package/dist/utils/react/mergeProps.js +1 -1
  593. package/dist/utils/react/nullableValue.js +1 -1
  594. package/dist/utils/react/overlayKeyPropagation.js +1 -1
  595. package/dist/utils/react/pickBaseCustomizationProps.js +1 -1
  596. package/dist/utils/react/programmaticFocus.js +1 -1
  597. package/dist/utils/react/resolveIcon.js +1 -1
  598. package/dist/utils/react/sharedStore.js +1 -1
  599. package/dist/utils/react/useBufferedValue.js +1 -1
  600. package/dist/utils/react/useCombinedRefs.js +1 -1
  601. package/dist/utils/react/useControlledFocusVisible.js +1 -1
  602. package/dist/utils/react/useEventBus.js +1 -1
  603. package/dist/utils/react/useId.js +1 -1
  604. package/dist/utils/react/useIsDarwin.js +1 -1
  605. package/dist/utils/react/useKeySymbols.js +1 -1
  606. package/dist/utils/react/useLayoutEffect.js +1 -1
  607. package/dist/utils/react/useLocalStorage.js +1 -1
  608. package/dist/utils/react/useMergeStyles.js +1 -1
  609. package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
  610. package/dist/utils/react/useOverlayPosition.js +1 -1
  611. package/dist/utils/react/usePopoverSync.js +1 -1
  612. package/dist/utils/react/useQaProps.js +1 -1
  613. package/dist/utils/react/useScheme.js +1 -1
  614. package/dist/utils/react/useViewportSize.js +1 -1
  615. package/dist/utils/react/wrapNodeIfPlain.js +1 -1
  616. package/dist/utils/selection.js +1 -1
  617. package/dist/utils/styles.js +1 -1
  618. package/dist/utils/tree.js +1 -1
  619. package/dist/utils/warnings.js +1 -1
  620. package/dist/version.js +3 -3
  621. package/harness/dev.harnesspm/patches/glaze-colors.patch.md +4 -0
  622. package/harness/dev.harnesspm/patches/tasty-usage.patch.md +3 -0
  623. package/harness/dev.harnesspm/rules/usage.md +12 -0
  624. package/harness/dev.harnesspm/scripts/colors.mjs +445 -0
  625. package/harness/plugin.json +29 -0
  626. package/package.json +17 -10
  627. package/{docs/components/Block.md → src/components/Block.docs.mdx} +7 -1
  628. package/{docs/components/CollectionItem.md → src/components/CollectionItem.docs.mdx} +12 -8
  629. package/{docs/components/GridProvider.md → src/components/GridProvider.docs.mdx} +4 -0
  630. package/{docs/components/Root.md → src/components/Root.docs.mdx} +6 -2
  631. package/{docs/components/actions/Action.md → src/components/actions/Action/Action.docs.mdx} +7 -1
  632. package/{docs/components/actions/Banner.md → src/components/actions/Banner/Banner.docs.mdx} +17 -3
  633. package/{docs/components/actions/Button.md → src/components/actions/Button/Button.docs.mdx} +19 -4
  634. package/{docs/components/actions/ButtonGroup.md → src/components/actions/ButtonGroup/ButtonGroup.docs.mdx} +6 -2
  635. package/{docs/components/actions/ButtonSplit.md → src/components/actions/ButtonSplit/ButtonSplit.docs.mdx} +18 -3
  636. package/{docs/components/actions/CommandMenu.md → src/components/actions/CommandMenu/CommandMenu.docs.mdx} +29 -17
  637. package/{docs/components/actions/ItemAction.md → src/components/actions/ItemAction/ItemAction.docs.mdx} +8 -1
  638. package/{docs/components/actions/ItemButton.md → src/components/actions/ItemButton/ItemButton.docs.mdx} +18 -9
  639. package/{docs/components/actions/Link.md → src/components/actions/Link/Link.docs.mdx} +11 -3
  640. package/{docs/components/actions/Menu.md → src/components/actions/Menu/Menu.docs.mdx} +27 -15
  641. package/{docs/components/actions/MenuTrigger.md → src/components/actions/Menu/MenuTrigger.docs.mdx} +5 -1
  642. package/{docs/components/actions/SubMenuTrigger.md → src/components/actions/Menu/SubMenuTrigger.docs.mdx} +5 -1
  643. package/{docs/components/actions/use-anchored-menu.md → src/components/actions/use-anchored-menu.docs.mdx} +9 -5
  644. package/{docs/components/actions/use-context-menu.md → src/components/actions/use-context-menu.docs.mdx} +9 -5
  645. package/{docs/components/content/ActiveZone.md → src/components/content/ActiveZone/ActiveZone.docs.mdx} +7 -1
  646. package/{docs/components/content/Alert.md → src/components/content/Alert/Alert.docs.mdx} +14 -1
  647. package/{docs/components/content/Avatar.md → src/components/content/Avatar/Avatar.docs.mdx} +7 -1
  648. package/{docs/components/content/Badge.md → src/components/content/Badge/Badge.docs.mdx} +23 -2
  649. package/{docs/components/content/Card.md → src/components/content/Card/Card.docs.mdx} +7 -1
  650. package/{docs/components/content/Content.md → src/components/content/Content.docs.mdx} +5 -1
  651. package/{docs/components/content/CopyPasteBlock.md → src/components/content/CopyPasteBlock/CopyPasteBlock.docs.mdx} +7 -1
  652. package/{docs/components/content/CopySnippet.md → src/components/content/CopySnippet/CopySnippet.docs.mdx} +7 -1
  653. package/{docs/components/content/Disclosure.md → src/components/content/Disclosure/Disclosure.docs.mdx} +34 -3
  654. package/{docs/components/content/Divider.md → src/components/content/Divider/Divider.docs.mdx} +12 -2
  655. package/{docs/components/content/Footer.md → src/components/content/Footer.docs.mdx} +5 -1
  656. package/{docs/components/content/Header.md → src/components/content/Header.docs.mdx} +5 -1
  657. package/{docs/components/content/HotKeys.md → src/components/content/HotKeys/HotKeys.docs.mdx} +41 -5
  658. package/{docs/components/content/InfoBadge.md → src/components/content/InfoBadge/InfoBadge.docs.mdx} +8 -2
  659. package/{docs/components/content/InlineInput.md → src/components/content/InlineInput/InlineInput.docs.mdx} +36 -3
  660. package/{docs/components/content/Item.md → src/components/content/Item/Item.docs.mdx} +31 -15
  661. package/{docs/components/content/ItemBadge.md → src/components/content/ItemBadge/ItemBadge.docs.mdx} +7 -1
  662. package/{docs/components/content/ItemCard.md → src/components/content/ItemCard/ItemCard.docs.mdx} +19 -6
  663. package/{docs/components/content/Layout.md → src/components/content/Layout/Layout.docs.mdx} +40 -6
  664. package/{docs/components/content/Paragraph.md → src/components/content/Paragraph.docs.mdx} +8 -2
  665. package/{docs/components/content/Placeholder.md → src/components/content/Placeholder/Placeholder.docs.mdx} +7 -1
  666. package/{docs/components/content/PrismCode.md → src/components/content/PrismCode/PrismCode.docs.mdx} +7 -1
  667. package/{docs/components/content/PrismDiffCode.md → src/components/content/PrismDiffCode/PrismDiffCode.docs.mdx} +7 -1
  668. package/{docs/components/content/Result.md → src/components/content/Result/Result.docs.mdx} +35 -4
  669. package/{docs/components/content/Skeleton.md → src/components/content/Skeleton/Skeleton.docs.mdx} +8 -2
  670. package/{docs/components/content/Tag.md → src/components/content/Tag/Tag.docs.mdx} +23 -2
  671. package/{docs/components/content/Text.md → src/components/content/Text.docs.mdx} +7 -1
  672. package/{docs/components/content/TextItem.md → src/components/content/TextItem/TextItem.docs.mdx} +30 -4
  673. package/{docs/components/content/Title.md → src/components/content/Title.docs.mdx} +5 -1
  674. package/{docs/components/content/Tree.md → src/components/content/Tree/Tree.docs.mdx} +28 -1
  675. package/{docs/components/data/DataTable.md → src/components/data/DataTable/DataTable.docs.mdx} +38 -6
  676. package/{docs/components/data/ItemTable.md → src/components/data/ItemTable/ItemTable.docs.mdx} +66 -5
  677. package/{docs/components/fields/Checkbox.md → src/components/fields/Checkbox/Checkbox.docs.mdx} +14 -6
  678. package/{docs/components/fields/ColorInput.md → src/components/fields/ColorInput/ColorInput.docs.mdx} +19 -7
  679. package/{docs/components/fields/ColorPicker.md → src/components/fields/ColorPicker/ColorPicker.docs.mdx} +22 -10
  680. package/{docs/components/fields/ColorSwatch.md → src/components/fields/ColorSwatch/ColorSwatch.docs.mdx} +17 -5
  681. package/{docs/components/fields/ColorSwatchGroup.md → src/components/fields/ColorSwatchGroup/ColorSwatchGroup.docs.mdx} +25 -7
  682. package/{docs/components/fields/ComboBox.md → src/components/fields/ComboBox/ComboBox.docs.mdx} +64 -7
  683. package/{docs/components/fields/CommandTextArea.md → src/components/fields/CommandTextArea/CommandTextArea.docs.mdx} +21 -13
  684. package/{docs/components/fields/DatePicker.md → src/components/fields/DatePicker/DatePicker.docs.mdx} +13 -5
  685. package/{docs/components/fields/PeriodPicker.md → src/components/fields/DatePicker/PeriodPicker.docs.mdx} +24 -5
  686. package/{docs/components/fields/FileInput.md → src/components/fields/FileInput/FileInput.docs.mdx} +16 -6
  687. package/{docs/components/fields/FilterListBox.md → src/components/fields/FilterListBox/FilterListBox.docs.mdx} +46 -10
  688. package/{docs/components/fields/FilterPicker.md → src/components/fields/FilterPicker/FilterPicker.docs.mdx} +57 -19
  689. package/{docs/components/fields/ListBox.md → src/components/fields/ListBox/ListBox.docs.mdx} +61 -11
  690. package/{docs/components/fields/NumberInput.md → src/components/fields/NumberInput/NumberInput.docs.mdx} +15 -7
  691. package/{docs/components/fields/PasswordInput.md → src/components/fields/PasswordInput/PasswordInput.docs.mdx} +15 -7
  692. package/{docs/components/fields/Picker.md → src/components/fields/Picker/Picker.docs.mdx} +53 -21
  693. package/{docs/components/fields/RadioGroup.md → src/components/fields/RadioGroup/RadioGroup.docs.mdx} +25 -15
  694. package/{docs/components/fields/SearchComboBox.md → src/components/fields/SearchComboBox/SearchComboBox.docs.mdx} +33 -14
  695. package/{docs/components/fields/SearchInput.md → src/components/fields/SearchInput/SearchInput.docs.mdx} +17 -7
  696. package/{docs/components/fields/Select.md → src/components/fields/Select/Select.docs.mdx} +55 -20
  697. package/{docs/components/fields/HueSlider.md → src/components/fields/Slider/HueSlider.docs.mdx} +24 -6
  698. package/{docs/components/fields/Slider.md → src/components/fields/Slider/Slider.docs.mdx} +22 -2
  699. package/{docs/components/fields/Switch.md → src/components/fields/Switch/Switch.docs.mdx} +26 -6
  700. package/{docs/components/fields/TagInput.md → src/components/fields/TagInput/TagInput.docs.mdx} +102 -19
  701. package/{docs/components/fields/TextArea.md → src/components/fields/TextArea/TextArea.docs.mdx} +19 -3
  702. package/{docs/components/fields/TextInput.md → src/components/fields/TextInput/TextInput.docs.mdx} +18 -8
  703. package/{docs/components/fields/TextInputMapper.md → src/components/fields/TextInputMapper/TextInputMapper.docs.mdx} +11 -2
  704. package/{docs/components/fields/ToggleGroup.md → src/components/fields/ToggleGroup/ToggleGroup.docs.mdx} +29 -12
  705. package/{docs/components/form/Field.md → src/components/form/Form/Field.docs.mdx} +16 -6
  706. package/{docs/components/form/Form.md → src/components/form/Form/Form.docs.mdx} +19 -6
  707. package/{docs/components/form/FormInstance.md → src/components/form/Form/FormInstance.docs.mdx} +9 -1
  708. package/src/components/form/Form/ModernForm.docs.mdx +6 -0
  709. package/{docs → src/components/form/Form}/modern-form-migration.md +1 -1
  710. package/{docs → src/components/form/Form}/modern-form-typecheck.md +1 -1
  711. package/{docs/components/helpers/DisplayTransition.md → src/components/helpers/DisplayTransition/DisplayTransition.docs.mdx} +15 -0
  712. package/{docs/components/helpers/IconSwitch.md → src/components/helpers/IconSwitch/IconSwitch.docs.mdx} +16 -1
  713. package/{docs/components/layout/Flex.md → src/components/layout/Flex.docs.mdx} +5 -1
  714. package/{docs/components/layout/Flow.md → src/components/layout/Flow.docs.mdx} +5 -1
  715. package/{docs/components/layout/Grid.md → src/components/layout/Grid.docs.mdx} +5 -1
  716. package/{docs/components/layout/Panel.md → src/components/layout/Panel.docs.mdx} +6 -2
  717. package/{docs/components/layout/Prefix.md → src/components/layout/Prefix.docs.mdx} +5 -1
  718. package/{docs/components/layout/ResizablePanel.md → src/components/layout/ResizablePanel.docs.mdx} +9 -2
  719. package/{docs/components/layout/Space.md → src/components/layout/Space.docs.mdx} +5 -1
  720. package/{docs/components/layout/Suffix.md → src/components/layout/Suffix.docs.mdx} +5 -1
  721. package/src/components/navigation/NavTabs/NavTabs.docs.mdx +217 -0
  722. package/{docs/components/navigation/Pagination.md → src/components/navigation/Pagination/Pagination.docs.mdx} +25 -4
  723. package/{docs/components/navigation/Tabs.md → src/components/navigation/Tabs/Tabs.docs.mdx} +94 -10
  724. package/{docs/components/organisms/StatsCard.md → src/components/organisms/StatsCard/StatsCard.docs.mdx} +6 -2
  725. package/{docs/components/other/Calendar.md → src/components/other/Calendar/Calendar.docs.mdx} +23 -5
  726. package/{docs/components/other/CubeLogo.md → src/components/other/CubeLogo/CubeLogo.docs.mdx} +7 -1
  727. package/{docs/components/other/NoDataIcon.md → src/components/other/NoDataIcon/NoDataIcon.docs.mdx} +9 -3
  728. package/{docs/components/overlays/AlertDialog.md → src/components/overlays/AlertDialog/AlertDialog.docs.mdx} +8 -2
  729. package/{docs/components/overlays/Dialog.md → src/components/overlays/Dialog/Dialog.docs.mdx} +11 -3
  730. package/{docs/components/overlays/DialogContainer.md → src/components/overlays/Dialog/DialogContainer.docs.mdx} +12 -5
  731. package/{docs/components/overlays/DialogForm.md → src/components/overlays/Dialog/DialogForm.docs.mdx} +21 -14
  732. package/{docs/components/overlays/DialogTrigger.md → src/components/overlays/Dialog/DialogTrigger.docs.mdx} +10 -5
  733. package/{docs/components/overlays/UseDialogContainer.md → src/components/overlays/Dialog/UseDialogContainer.docs.mdx} +7 -3
  734. package/{docs/components/overlays/Notifications.md → src/components/overlays/Notifications/Notifications.docs.mdx} +29 -6
  735. package/{docs/components/overlays/Toast.md → src/components/overlays/Toast/Toast.docs.mdx} +18 -2
  736. package/{docs/components/overlays/Tooltip.md → src/components/overlays/Tooltip/Tooltip.docs.mdx} +23 -6
  737. package/{docs/components/overlays/TooltipProvider.md → src/components/overlays/Tooltip/TooltipProvider.docs.mdx} +6 -2
  738. package/{docs/components/overlays/TooltipTrigger.md → src/components/overlays/Tooltip/TooltipTrigger.docs.mdx} +6 -2
  739. package/{docs/components/portal/Portal.md → src/components/portal/Portal.docs.mdx} +7 -1
  740. package/{docs/components/status/LoadingAnimation.md → src/components/status/LoadingAnimation/LoadingAnimation.docs.mdx} +8 -2
  741. package/{docs/components/status/Spin.md → src/components/status/Spin/Spin.docs.mdx} +7 -1
  742. package/{docs/BaseProperties.md → src/stories/BaseProperties.docs.mdx} +6 -2
  743. package/{docs/Colors.md → src/stories/Colors.docs.mdx} +23 -1
  744. package/{docs/ComplexLayout.md → src/stories/ComplexLayout.docs.mdx} +34 -1
  745. package/{docs/CreateComponent.md → src/stories/CreateComponent.docs.mdx} +6 -2
  746. package/{docs/FieldProperties.md → src/stories/FieldProperties.docs.mdx} +10 -6
  747. package/{docs/Introduction.md → src/stories/Introduction.docs.mdx} +10 -6
  748. package/{docs/RenderCache.md → src/stories/RenderCache.docs.mdx} +7 -0
  749. package/{docs/SimpleLayout.md → src/stories/SimpleLayout.docs.mdx} +26 -0
  750. package/{docs/Theming.md → src/stories/Theming.docs.mdx} +17 -3
  751. package/{docs/Typography.md → src/stories/Typography.docs.mdx} +15 -0
  752. package/{docs/Usage.md → src/stories/Usage.docs.mdx} +46 -37
  753. package/{docs/Utilities.md → src/stories/Utilities.docs.mdx} +4 -0
  754. package/docs/components/form/ModernForm.md +0 -294
  755. package/docs/glaze/contrast.mdx +0 -751
  756. package/docs/glaze/exporting.mdx +0 -635
  757. package/docs/glaze/getting-started.mdx +0 -487
  758. package/docs/glaze/hdr.mdx +0 -523
  759. package/docs/glaze/methodology.mdx +0 -979
  760. package/docs/glaze/migration.md +0 -542
  761. package/docs/glaze/mixes.mdx +0 -348
  762. package/docs/glaze/okhst.mdx +0 -692
  763. package/docs/glaze/reference/color-definitions.md +0 -552
  764. package/docs/glaze/reference/color-tokens.md +0 -421
  765. package/docs/glaze/reference/configuration.md +0 -532
  766. package/docs/glaze/reference/contrast.md +0 -279
  767. package/docs/glaze/reference/index.md +0 -225
  768. package/docs/glaze/reference/output.md +0 -714
  769. package/docs/glaze/reference/palette.md +0 -435
  770. package/docs/glaze/reference/theme.md +0 -332
  771. package/docs/glaze/reference/utilities.md +0 -646
  772. package/docs/glaze/schemes.mdx +0 -644
  773. package/docs/glaze/shadows-and-glows.mdx +0 -550
  774. package/docs/tasty/README.md +0 -42
  775. package/docs/tasty/adoption.md +0 -331
  776. package/docs/tasty/ai-agents.md +0 -259
  777. package/docs/tasty/comparison.md +0 -449
  778. package/docs/tasty/configuration.md +0 -957
  779. package/docs/tasty/debug.md +0 -333
  780. package/docs/tasty/design-system.md +0 -569
  781. package/docs/tasty/dsl.md +0 -1231
  782. package/docs/tasty/getting-started.md +0 -297
  783. package/docs/tasty/injector.md +0 -635
  784. package/docs/tasty/methodology.md +0 -673
  785. package/docs/tasty/migration-v3.md +0 -285
  786. package/docs/tasty/pipeline.md +0 -768
  787. package/docs/tasty/plugins.md +0 -333
  788. package/docs/tasty/react-api.md +0 -746
  789. package/docs/tasty/runtime-benchmarks.md +0 -388
  790. package/docs/tasty/ssr.md +0 -636
  791. package/docs/tasty/styles.md +0 -781
  792. package/docs/tasty/tasty-static.md +0 -700
  793. /package/{docs → src/components/form/Form}/modern-form-guide.md +0 -0
package/docs/tasty/dsl.md DELETED
@@ -1,1231 +0,0 @@
1
- # Style DSL Reference
2
-
3
- This is the language behind Tasty’s predictable state resolution. Every property can use a state map; later branches declare higher priority, and Tasty compiles them so only one generated selector can match.
4
-
5
- The same value syntax, state maps, tokens, units, extension semantics, and special declarations apply to React `tasty()`—whether rendered on the client or server—and build-time `tastyStatic()`.
6
-
7
- For the React API (`tasty()`, style functions, component props), see [React API](react-api.md). For all enhanced style properties, see [Style Properties](styles.md). For global configuration, see [Configuration](configuration.md).
8
-
9
- To autocomplete your own token and preset names, see [TypeScript autocomplete](getting-started.md#typescript-autocomplete); to check state keys, tokens, units, and values at lint time, see [ESLint plugin](getting-started.md#eslint-plugin).
10
-
11
- ---
12
-
13
- ## Dictionary
14
-
15
- ### Style Mapping
16
-
17
- Object where keys represent states and values are the styles to apply:
18
-
19
- ```jsx
20
- fill: { '': '#white', hovered: '#gray.05', 'theme=danger': '#red' }
21
- ```
22
-
23
- Define an alias for one component by adding an `'@name': '<state expression>'` key to its styles. It works like a global alias from [`configure({ states })`](configuration.md#options), scoped to that component:
24
-
25
- ```jsx
26
- styles: {
27
- '@narrow': '@media(w < 600px)',
28
- fill: { '': '#surface', '@narrow': '#surface-mobile' },
29
- }
30
- ```
31
-
32
- An alias can use other aliases, anywhere in its expression:
33
-
34
- ```jsx
35
- configure({
36
- states: {
37
- '@mobile': '@media(w < 768px)',
38
- '@collapsed': '@mobile & !expanded',
39
- },
40
- });
41
-
42
- styles: {
43
- '@compact': '@collapsed | @media:print', // local, built on a global alias
44
- padding: { '': '4x', '@compact': '2x' },
45
- }
46
- ```
47
-
48
- - A local alias sees the component's aliases first, then the global ones. Aliases declared inside a sub-element also see the root-level ones.
49
- - A global alias sees only global aliases. It means the same thing in every component: if a component redefines `@mobile` locally, the global `@collapsed` keeps using the global `@mobile`.
50
- - A circular alias (`'@a': '@b'` with `'@b': '@a'`, or `'@a': '@a & hovered'`) never matches, and a `CIRCULAR_STATE_ALIAS` warning names the loop.
51
-
52
- #### State Key Types
53
-
54
- | Syntax | Example | Generated CSS |
55
- | ------------------ | ------------------------ | ------------------------------------------------------------------------ |
56
- | Boolean modifier | `hovered` | `[data-hovered]` |
57
- | Value modifier | `theme=danger` | `[data-theme="danger"]` |
58
- | Pseudo-class | `:hover` | `:hover` |
59
- | Class selector | `.active` | `.active` |
60
- | Attribute selector | `[aria-expanded="true"]` | `[aria-expanded="true"]` |
61
- | Combined (AND) | `hovered & .active` | `[data-hovered].active` |
62
- | Combined (OR) | `hovered \| focused` | `[data-hovered], [data-focused]` |
63
- | Negated (NOT) | `!disabled` | `:not([data-disabled])` |
64
- | Exclusive (XOR) | `hovered ^ focused` | `[data-hovered]:not([data-focused]), :not([data-hovered])[data-focused]` |
65
-
66
- #### Automatic Native States
67
-
68
- `disabled`, `checked`, and `hidden` are built-in automatic states. A Tasty component sets `data-disabled`, `data-checked`, and `data-hidden` from the native `disabled`, `checked`, and `hidden` props (or `isDisabled`, `isChecked`, `isHidden`), so each pair below expresses the same component state:
69
-
70
- | Concise Tasty state | Compiles to | Explicit attribute selector |
71
- | ------------------- | ----------------- | --------------------------- |
72
- | `disabled` | `[data-disabled]` | `[disabled]` |
73
- | `checked` | `[data-checked]` | `[checked]` |
74
- | `hidden` | `[data-hidden]` | `[hidden]` |
75
-
76
- Prefer the concise form when authoring Tasty component styles. Explicit attribute selectors remain valid and can be useful when targeting arbitrary attributes or when CSS-shaped syntax makes an introductory example easier to recognize.
77
-
78
- Operator precedence (highest to lowest): `!` (NOT) > `^` (XOR) > `|` (OR) > `&` (AND). Use parentheses to override: `hovered & (pressed ^ focused)`.
79
-
80
- A top-level comma is the same as `|`: `'hovered, focused'` is `'hovered | focused'`.
81
-
82
- `^` (XOR) means "exactly one of" — `A ^ B` expands to `(A & !B) | (!A & B)`. This is useful for mutually exclusive states where exactly one should be active:
83
-
84
- ```jsx
85
- fill: {
86
- '': '#surface',
87
- 'hovered ^ focused': '#accent', // active when hovered OR focused, but not both
88
- }
89
- ```
90
-
91
- Modifier and class names start with a letter and may be a single letter (`x` → `[data-x]`, `.x`). Tasty emits an `INVALID_STATE_KEY` warning for a key it cannot fully read and skips the unreadable parts. That covers characters outside the notation (`1st`, or `@media (w < 600px)` with a space before the parenthesis), an operator missing a state (`hovered &`), and two states with no operator between them (`hovered focused`). A partly read key can apply in states you did not mean, so fix the key rather than rely on what it produces.
92
-
93
- #### Default State Ordering
94
-
95
- Key order sets priority — later keys win and turn off earlier ones via negation. The bare default (`''`) is the lowest-priority state, so it **must be the first key**. If it appears after other states, Tasty moves it to the front and emits a dev warning (`MISPLACED_DEFAULT_STATE`); otherwise it would override every state above it.
96
-
97
- ```jsx
98
- // Correct — default first
99
- color: { '': '#text', hovered: '#accent' }
100
-
101
- // Auto-corrected with a warning — '' moved to the front
102
- color: { hovered: '#accent', '': '#text' }
103
- ```
104
-
105
- The bare `''` default still **receives negation** (it is turned off when a higher-priority state matches). For a value that must always apply as a guaranteed floor — even where a query is _unknown_ — use the [`_` fallback floor](#_--fallback-floor) instead. The two can coexist: `''` is the negated default, `_` is the always-on floor. If a map contains only `_` and `''` (no other states), the `''` default is redundant — Tasty keeps the `_` value and drops `''` with a `REDUNDANT_DEFAULT_STATE` warning.
106
-
107
- ### Sub-element
108
-
109
- Element styled using a capitalized key. Identified by `data-element` attribute:
110
-
111
- ```jsx
112
- styles: {
113
- Title: { preset: 'h3' },
114
- }
115
- // Targets: <div data-element="Title">
116
- ```
117
-
118
- #### Selector Affix (`$`)
119
-
120
- Control how a sub-element selector attaches to the root selector using the `$` property inside the sub-element's styles.
121
-
122
- Examples below assume the sub-element key is **Cell** (i.e. `[data-element="Cell"]` in CSS):
123
-
124
- | Pattern | Result | Description |
125
- | ----------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
126
- | _(none)_ | `[data-element="Cell"]` | Descendant (default) |
127
- | `>` | `> [data-element="Cell"]` | Direct child |
128
- | `>Body>` | `> [data-element="Body"] > [data-element="Cell"]` | Chained elements |
129
- | `> Cell` | `> [data-element="Cell"]` | Self-name shorthand — when the trailing element name matches the sub-element's own key, it acts as the placeholder (same as `@`); no duplication |
130
- | `h1` | `h1` | Tag selector (no key injection) |
131
- | `h1 >` | `h1 > [data-element="Cell"]` | Key is direct child of tag |
132
- | `h1 *` | `h1 *` | Any descendant of tag |
133
- | `*` | `*` | All descendants |
134
- | `&::before` | `::before` | Root pseudo (no key); `&` is required |
135
- | `@::before` | `[data-element="Cell"]::before` | Pseudo on the sub-element |
136
- | `>@.active` | `> [data-element="Cell"].active` | Class on the sub-element |
137
-
138
- Rules for key injection (`[data-element="..."]`):
139
-
140
- - **Trailing combinator** (`>`, `+`, `~`) — key is injected after it
141
- - **Uppercase element name** (`Body`, `Row`) — key is injected as descendant
142
- - **HTML tag** (`h1`, `a`, `span`) — no key injection; the tag IS the selector
143
- - **Universal selector** (`*`) — no key injection
144
- - **Pseudo / class / attribute** — no key injection
145
-
146
- The `@` placeholder marks exactly where `[data-element="..."]` is injected, allowing you to attach pseudo-classes, pseudo-elements, or class selectors directly to the sub-element instead of the root:
147
-
148
- ```jsx
149
- const List = tasty({
150
- styles: {
151
- Item: {
152
- $: '>@::after',
153
- content: '""',
154
- },
155
- },
156
- });
157
- // → .t1x29r0l.t1x29r0l > [data-element="Item"]::after { content: ""; }
158
- ```
159
-
160
- Keep conditions such as `:last-child` out of `$` and write them as `@own(:last-child)` in a state map; `tasty/no-state-in-selector` warns otherwise. When `$` ends in a pseudo-element, `@own()` describes the pseudo-element instead (see [`@own(...)`](#own--sub-elements-own-state)), so a condition on the element it belongs to stays in `$`, before the pseudo-element: `$: 'a[rel="next"]::before'`.
161
-
162
- ### Color Token
163
-
164
- Named color prefixed with `#` that maps to CSS custom properties. Supports opacity with `.N` suffix:
165
-
166
- ```jsx
167
- fill: '#purple.5'; // → color-mix(in oklab, var(--purple-color) 50%, transparent)
168
- ```
169
-
170
- ### Modifier
171
-
172
- State value via `mods` prop that generates `data-*` attributes:
173
-
174
- ```jsx
175
- mods={{ hovered: true, theme: 'danger' }}
176
- // → data-hovered="" data-theme="danger"
177
- ```
178
-
179
- Modifiers can also be exposed as top-level component props via `modProps` — see [React API — Mod Props](react-api.md#mod-props).
180
-
181
- ---
182
-
183
- ## Color Tokens & Opacity
184
-
185
- ```jsx
186
- color: '#purple', // Full opacity
187
- color: '#purple.5', // 50% opacity
188
- color: '#purple.05', // 5% opacity
189
- color: '#purple.$fade', // Opacity from a custom property
190
- fill: '#current', // → currentcolor
191
- fill: '#surface+#dark.04', // #dark at 4% opacity over #surface, as one color
192
- color: '(#primary, #secondary)', // Fallback syntax
193
- ```
194
-
195
- `#white`, `#black`, `#border`, and `#outline` are registered by default (see [Default properties](#default-properties)), and `#clear` is a built-in alias for `transparent` (see [below](#clear-is-transparent)), so they work before you define any tokens.
196
-
197
- A name that is also a hex color is read as a token with the literal as its fallback, in every color style: `color: '#ddd'` emits `var(--ddd-color, #ddd)`, and `#ddd.5` emits `color-mix(in oklab, var(--ddd-color, #ddd) 50%, transparent)`. A `#ddd` token, if you define one, wins over the literal.
198
-
199
- The suffix fades the token's color by mixing it with `transparent`:
200
-
201
- ```jsx
202
- fill: '#purple.5';
203
- // → color-mix(in oklab, var(--purple-color) 50%, transparent)
204
- ```
205
-
206
- The mix asks nothing of the color beyond _being_ a color. That means the suffix
207
- works on every one of these:
208
-
209
- - a token holding a `color-mix()`, a `light-dark()`, or a `color()` in a space
210
- Tasty cannot convert — none of which have channels to decompose
211
- - `#current`, which resolves to the color the element inherits
212
- - a `--name-color` variable declared in your own CSS, with no Tasty token
213
- definition behind it
214
-
215
- `color-mix()` is Baseline widely available (Chrome 111, Firefox 113, Safari
216
- 16.2). Two properties follow from mixing rather than writing an alpha channel:
217
-
218
- - **Alpha composes.** The mix is premultiplied, so a color that is already
219
- translucent is faded further: a token holding `rgb(255 0 0 / .8)` faded to
220
- `.5` is alpha `.4`. An opaque token — the usual case — ends at exactly the
221
- suffix. System colors are whatever the platform draws, and some are
222
- translucent: Chrome and Safari on macOS give `Highlight` an alpha of `.6`, so
223
- a token holding it faded to `.5` ends at `.3` there.
224
- - **A `$prop` alpha must be a number.** `#purple.$fade` emits
225
- `calc(var(--fade) * 100%)`, because a mix percentage cannot be a `<number>`,
226
- so `$fade` has to hold `.5`, not `50%`.
227
-
228
- ### `#clear` is transparent
229
-
230
- `#clear` is a built-in [replace token](#replace-tokens) for `transparent`.
231
- Opacity suffixes are ignored: `#clear.5` and `#clear.$fade` both emit
232
- `transparent`. The same rule applies to user-defined replace tokens resolving
233
- to `transparent`, including aliases of `#clear`.
234
-
235
- It does not read `--clear-color` or require an `@property` registration.
236
- An explicit `configure({ replaceTokens: { '#clear': ... } })` overrides the
237
- default alias and uses the replacement's usual opacity behavior.
238
-
239
- ### `#current` is the keyword
240
-
241
- `#current` emits the `currentcolor` keyword, so it resolves against the element
242
- that reads it. That is what lets it follow a color an ancestor faded — a ramp
243
- that expresses its disabled state once, in `color`, fades everything painted from
244
- `#current` below it with no further declarations.
245
-
246
- The `color` style also publishes `--current-color` beside every color it sets,
247
- for anything that needs the inherited color _as a color_ rather than as the
248
- keyword — hand-authored CSS, or a place the keyword will not do. Read it as
249
- `$current-color`. It is registered with `initial-value: currentcolor`, so where
250
- nothing published it, it still resolves against each element's own color:
251
-
252
- ```jsx
253
- fill: '$current-color'; // → var(--current-color)
254
- ```
255
-
256
- A color that already reads the color it inherits — `#current`, a `#current` fade
257
- — is not published into it: resolving such a value a second time at a descendant
258
- would fade it twice.
259
-
260
- ### `#current` fades compose
261
-
262
- `currentcolor` is the color an element **inherits**, which an ancestor may
263
- already have faded, so `#current.4` means "40% of what reaches me":
264
-
265
- ```jsx
266
- fill: '#current.4';
267
- // → color-mix(in oklab, currentcolor 40%, transparent)
268
- ```
269
-
270
- A `#current` fade nested inside another one composes: a label at `#current.4`
271
- with a fill of `#current.18` under it lands at `.072`. Color ramps built on
272
- `#current` depend on that.
273
-
274
- Fades always mix `in oklab`: it is unbounded, so a wide-gamut color is not
275
- clamped, and rectangular, so there is no hue to interpolate against
276
- `transparent`. Nothing configures it — see
277
- [Color space](configuration.md#color-space).
278
-
279
- ### Compound colors
280
-
281
- Join color tokens with `+` to paint each one, at its own opacity, over the
282
- colors before it. The result is one color, so it works anywhere a token does:
283
-
284
- ```jsx
285
- fill: '#surface+#dark.04',
286
- // → color-mix(in srgb, var(--dark-color) 4%, var(--surface-color))
287
-
288
- border: '1bw #border+#dark.1',
289
- color: 'light-dark(#primary+#black.2, #primary+#white.2)',
290
- '#hover-surface': '#surface-2+#surface-text.03',
291
- ```
292
-
293
- Read it left to right, bottom layer first: `#surface+#accent.1+#dark.04` paints
294
- `#accent` at 10% over `#surface`, then `#dark` at 4% over that. Every operand is
295
- an ordinary token — `#current`, `#clear`, a hex color, a replace token — and
296
- takes its opacity suffix as it does anywhere: `#surface+#dark.$hover` reads the
297
- opacity from `$hover`, and a faded base such as `#surface.5+#dark.04` is layered
298
- as it is.
299
-
300
- The layers mix in sRGB, the space browsers composite in, so the color is exactly
301
- what stacking them as layers would show — but it is one color, which contrast
302
- checkers can read and transitions interpolate. A faded base is exact too:
303
- `#surface.5+#dark.04` is as translucent as the two layers would be.
304
-
305
- Every layer's token has to be opaque. The mix counts a layer's own alpha as well
306
- as its opacity suffix, and lowers the alpha of the whole color, so a layer token
307
- that holds a translucent color, or turns transparent in some state, leaves the
308
- result see-through: with `'#overlay': { '': '#clear', hovered: '#dark' }`,
309
- `'#surface+#overlay.04'` is 96% opaque at rest. Vary the opacity instead
310
- (`'#surface+#dark.$hover'`), or give each state its own color
311
- (`fill: { '': '#surface', hovered: '#surface+#dark.04' }`).
312
-
313
- - Write it as one word: `#surface + #dark.04` is three separate values, and
314
- Tasty warns in development.
315
- - A layer without an opacity covers everything before it: `#surface+#dark` is
316
- `#dark`, with a development warning.
317
- - A layer Tasty can see is transparent — `#clear`, a fade to `.0`, a color with
318
- a zero alpha — is left out: `#surface+#clear` is `#surface`.
319
- - Over a transparent base, a layer is just its fade: `#clear+#dark.04` compiles
320
- to `#dark.04`.
321
- - A `+` joining anything but color tokens (`#surface+1x`) is not a compound: the
322
- token is dropped, with a development warning, and the style renders as if
323
- that color were not there.
324
-
325
- A `+` joins tokens only. To fade a whole compound, give it a token
326
- (`'#hover-surface': '#surface+#dark.04'`) and fade that (`#hover-surface.5`). For
327
- a mix that is not a layer over another color, such as an even blend in OKLCH,
328
- write `color-mix()` itself.
329
-
330
- ---
331
-
332
- ## CSS Color Functions
333
-
334
- Every CSS color function is recognized as a color, so it lands in the color slot
335
- of whichever style property you use it in — and tokens inside it are expanded:
336
-
337
- ```jsx
338
- fill: 'color-mix(in oklab, #primary 50%, #surface)',
339
- color: 'light-dark(#dark, #light)',
340
- color: 'contrast-color(#primary)',
341
- fill: 'color(display-p3 1 .5 0)',
342
- border: '1bw solid oklch(from #primary l c h / 50%)', // relative color syntax
343
- shadow: '0 0 1x color-mix(in oklab, #dark 20%, transparent)',
344
- ```
345
-
346
- Tasty also ships `okhsl()` and `okhst()`, which compile to `rgb()` at parse
347
- time: `fill: 'okhsl(280 80% 50%)'` → `rgb(40% 38.5% 88.2%)`.
348
-
349
- `light-dark()` is the one exception to "always a color": CSS lets it pick between
350
- values of any type, so it is treated as a color only when its arguments are
351
- colors. `padding: 'light-dark(1x, 2x)'` still reaches the padding slot.
352
-
353
- A color token defined as one of these functions takes the
354
- [opacity suffix](#color-tokens--opacity) like any other:
355
-
356
- ```jsx
357
- const Card = tasty({
358
- styles: {
359
- '#brand': 'color-mix(in oklab, #primary 50%, #surface)',
360
- fill: '#brand.5',
361
- },
362
- });
363
- ```
364
-
365
- A [replace token](configuration.md#replace-tokens-parse-time-substitution) is
366
- substituted while parsing, so its color is right there to fade in place. A
367
- channel function takes the alpha after a slash; a derived function has no alpha
368
- channel, so it gets wrapped:
369
-
370
- ```jsx
371
- configure({
372
- replaceTokens: {
373
- '#solid': 'hsl(220 90% 50%)',
374
- '#adaptive': 'light-dark(#dark, #light)',
375
- },
376
- });
377
-
378
- fill: '#solid.5'; // → hsl(220 90% 50% / .5)
379
- fill: '#adaptive.5'; // → color-mix(in oklab, light-dark(…) 50%, transparent)
380
- ```
381
-
382
- ### Color keywords
383
-
384
- CSS named colors (`rebeccapurple`) and system colors (`Canvas`, `CanvasText`,
385
- `Highlight`, `ButtonText`, `GrayText`, `LinkText`, …) are colors too: they land
386
- in the color slot of any style and can be a color token's value. System colors
387
- are what `forced-colors` styles are written in:
388
-
389
- ```jsx
390
- const Checkbox = tasty({
391
- styles: {
392
- '#forced-border': 'CanvasText',
393
- border: {
394
- '': '1bw #border',
395
- '@media(forced-colors: active)': '1bw #forced-border',
396
- },
397
- outline: { '': false, focused: '2px Highlight' },
398
- },
399
- });
400
- ```
401
-
402
- A custom property whose fallback is a single color is read as a color, so it
403
- also fills the color slot: `border: '1bw var(--accent, Highlight)'`, as does
404
- `($accent, Highlight)`. Keywords are case-insensitive: a color token keeps the
405
- case it was written in, and a property value such as `border` or `fill` emits
406
- them lowercase.
407
-
408
- The deprecated system colors (`Menu`, `Window`, `ButtonHighlight`, …) are not
409
- recognized.
410
-
411
- ---
412
-
413
- ## Built-in Units
414
-
415
- | Unit | Description | Default | Example | CSS output |
416
- | ---- | ------------------ | ---------------- | ------- | ---------------- |
417
- | `x` | Spacing step | `8px` | `2x` | `16px` |
418
- | `r` | Border radius | `6px` | `1r` | `6px` |
419
- | `cr` | Card border radius | `10px` | `1cr` | `10px` |
420
- | `bw` | Border width | `1px` | `2bw` | `2px` |
421
- | `ow` | Outline width | `3px` | `1ow` | `3px` |
422
- | `sf` | Stable fraction | `minmax(0, Nfr)` | `1sf` | `minmax(0, 1fr)` |
423
-
424
- Units compile to plain values. Change the scale with `configure({ units: { x: '4px' } })`, or point a unit at a custom property when it must change at runtime: with `units: { x: 'var(--gap)' }`, `2x` compiles to `calc(2 * var(--gap))`. Setting a `$gap` or `$radius` token does not change the units. Register additional units the same way via [`configure()`](configuration.md#options).
425
-
426
- ---
427
-
428
- ## Replace Tokens
429
-
430
- Tokens defined via [`configure({ replaceTokens })`](configuration.md#replace-tokens-parse-time-substitution) are replaced at parse time and baked into the generated CSS:
431
-
432
- ```jsx
433
- const Card = tasty({
434
- styles: {
435
- padding: '$card-padding',
436
- fill: '#surface',
437
- border: '1bw solid #accent',
438
- },
439
- });
440
- ```
441
-
442
- ---
443
-
444
- ## Recipes
445
-
446
- Apply predefined style bundles (defined via [`configure({ recipes })`](configuration.md#recipes)) using the `recipe` style property:
447
-
448
- ```jsx
449
- const Card = tasty({
450
- styles: {
451
- recipe: 'card',
452
- color: '#text',
453
- },
454
- });
455
-
456
- // Compose multiple recipes
457
- const ElevatedCard = tasty({
458
- styles: {
459
- recipe: 'card elevated',
460
- color: '#text',
461
- },
462
- });
463
- ```
464
-
465
- **Where recipes resolve:**
466
-
467
- The `recipe` property is resolved on the component root and independently inside each sub-element's styles:
468
-
469
- ```jsx
470
- const CardWithPanel = tasty({
471
- styles: {
472
- recipe: 'card',
473
- Panel: {
474
- recipe: 'card elevated',
475
- padding: '2x', // Overrides the panel's base recipe padding
476
- },
477
- },
478
- });
479
- ```
480
-
481
- At each level, base recipes are collected in the order listed (later recipes replace earlier values for the same property), then local styles are merged, then post recipes are merged. The merges with local styles and post recipes follow the [state-map extension and replacement rules](#extending-vs-replacing-state-maps).
482
-
483
- Recipe definitions themselves cannot contain a `recipe` reference to another recipe: there is no recursive expansion or recipe inheritance. Compose names in the root or sub-element `recipe` property instead. See [Configuration — Recipes](configuration.md#recipes) for an unsupported nesting example.
484
-
485
- **Post-merge recipes (`/` separator):**
486
-
487
- Recipes listed after `/` are applied _after_ component styles using `mergeStyles`:
488
-
489
- ```jsx
490
- const Input = tasty({
491
- styles: {
492
- recipe: 'reset input / input-autofill',
493
- preset: 't3',
494
- },
495
- });
496
- ```
497
-
498
- Use `none` to skip base recipes and apply only post recipes:
499
-
500
- ```jsx
501
- const Custom = tasty({
502
- styles: {
503
- recipe: 'none / disabled',
504
- padding: '2x',
505
- },
506
- });
507
- ```
508
-
509
- ---
510
-
511
- ## Extending vs. Replacing State Maps
512
-
513
- When a style property uses a state map, the merge behavior depends on whether the child provides a `''` (default) key:
514
-
515
- - **No `''` key** — extend mode: parent states are preserved, child adds/overrides
516
- - **Has `''` key** — replace mode: child defines everything from scratch
517
-
518
- ```jsx
519
- // Parent has: fill: { '': '#white', hovered: '#blue', disabled: '#gray' }
520
-
521
- // Extend — no '' key, parent states preserved
522
- const MyButton = tasty(Button, {
523
- styles: {
524
- fill: {
525
- loading: '#yellow', // append new state
526
- disabled: '#gray.20', // override existing state in place
527
- },
528
- },
529
- });
530
-
531
- // Replace — has '' key, parent states dropped
532
- const MyButton = tasty(Button, {
533
- styles: {
534
- fill: {
535
- '': '#red',
536
- hovered: '#blue',
537
- },
538
- },
539
- });
540
- ```
541
-
542
- Use `'@inherit'` to pull a parent state value. In extend mode it repositions the state; in replace mode it cherry-picks it:
543
-
544
- ```jsx
545
- // Extend mode: reposition disabled to end (highest CSS priority)
546
- fill: {
547
- 'loading': '#yellow',
548
- disabled: '@inherit',
549
- }
550
-
551
- // Replace mode: cherry-pick disabled from parent
552
- fill: {
553
- '': '#red',
554
- disabled: '@inherit',
555
- }
556
- ```
557
-
558
- Use `null` inside a state map to remove a state, or `false` to block it entirely (tombstone):
559
-
560
- ```jsx
561
- const MyButton = tasty(Button, {
562
- styles: {
563
- fill: {
564
- hovered: null, // removes the parent's hovered state
565
- disabled: false, // tombstone — no CSS for disabled, blocks recipe too
566
- },
567
- },
568
- });
569
- ```
570
-
571
- ### Resetting Properties with `null` and `false`
572
-
573
- ```jsx
574
- const SimpleButton = tasty(Button, {
575
- styles: {
576
- fill: null, // discard parent's fill, let recipe fill in
577
- border: false, // no border at all (tombstone — blocks recipe too)
578
- },
579
- });
580
- ```
581
-
582
- | Value | Meaning | Recipe fills in? |
583
- | ----------- | ------------------------------------ | ---------------- |
584
- | `undefined` | Not provided — parent preserved | N/A |
585
- | `null` | Intentional unset — parent discarded | Yes |
586
- | `false` | Tombstone — blocks everything | No |
587
-
588
- ---
589
-
590
- ## Advanced States (`@` prefix)
591
-
592
- | Prefix | Purpose | Example |
593
- | ----------- | ----------------------------------------- | -------------------------- |
594
- | `@media` | Media queries | `@media(w < 768px)` |
595
- | `@(...)` | Container queries | `@(panel, w >= 300px)` |
596
- | `@supports` | Feature/selector support | `@supports(display: grid)` |
597
- | `@root` | Root element states | `@root(schema=dark)` |
598
- | `@parent` | Parent/ancestor element states | `@parent(hovered)` |
599
- | `@own` | Sub-element's own state | `@own(hovered)` |
600
- | `@starting` | Entry animation | `@starting` |
601
- | `_` | Fallback floor (always-on, never negated) | `_` |
602
- | `:is()` | CSS `:is()` structural pseudo-class | `:is(fieldset > label)` |
603
- | `:has()` | CSS `:has()` relational pseudo-class | `:has(> Icon)` |
604
- | `:not()` | CSS `:not()` negation (prefer `!:is()`) | `:not(:first-child)` |
605
- | `:where()` | CSS `:where()` (zero specificity) | `:where(Section)` |
606
-
607
- > **Specificity.** All state selectors Tasty generates (modifiers, pseudo-classes,
608
- > `:is()`/`:not()` groups, and `@root` / `@parent` context) are wrapped in
609
- > `:where(...)` so they carry **zero specificity**. The only specificity anchors
610
- > are the doubled component class (`.t0.t0`) and sub-element `[data-element]`
611
- > attributes. This means overlapping rules (e.g. a `_` fallback floor and the
612
- > states layered over it) resolve purely by **source order** — Tasty emits
613
- > lower-priority states first and higher-priority states last so the cascade
614
- > produces the intended winner.
615
-
616
- ### `@media(...)` — Media Queries
617
-
618
- Media queries support dimension shorthands:
619
-
620
- | Shorthand | Expands to |
621
- | --------- | ---------- |
622
- | `w` | `width` |
623
- | `h` | `height` |
624
-
625
- ```jsx
626
- fill: {
627
- '': '#surface',
628
- '@media(w < 768px)': '#surface-mobile',
629
- '@media(600px <= w < 1200px)': '#surface-tablet',
630
- '@media(prefers-color-scheme: dark)': '#surface-dark',
631
- }
632
- ```
633
-
634
- | Tasty syntax | CSS output |
635
- | ------------------------------------ | ------------------------------------- |
636
- | `@media(w < 768px)` | `@media (width < 768px)` |
637
- | `@media(600px <= w < 1200px)` | `@media (600px <= width < 1200px)` |
638
- | `@media:print` | `@media print` |
639
- | `@media:screen` | `@media screen` |
640
- | `@media:all` | `@media all` |
641
- | `@media:speech` | `@media speech` |
642
- | `@media(prefers-color-scheme: dark)` | `@media (prefers-color-scheme: dark)` |
643
- | `@media(prefers-reduced-motion)` | `@media (prefers-reduced-motion)` |
644
- | `@media(aspect-ratio > 16/9)` | `@media (aspect-ratio > 16/9)` |
645
-
646
- Tasty units resolve to their literal length inside query conditions, built-in and configured units alike: `@media(w < 40x)` emits `@media (width < 320px)`. A query condition cannot read a custom property, so a unit configured as one (`units: { x: 'var(--gap)' }`) cannot be used there; write that length in `px`, `em`, or `rem`.
647
-
648
- Units are only converted in features that take a length: `width`, `height`, `inline-size`, and `block-size`, with or without `min-`/`max-` (`@media(min-width: 40x)` converts too). Every other feature keeps its value as written, so `@media(min-resolution: 2x)` and `@media(resolution >= 2x)` reach the browser unchanged: there `x` is CSS's own resolution unit, an alias of `dppx`.
649
-
650
- When it combines or orders conditions, Tasty compares bounds only within one unit. `@media(w >= 600px) & @media(w < 40em)` keeps both bounds, because a query `em` follows the user's font size, so `600px` and `40em` cannot be ordered at build time.
651
-
652
- In practice, define state aliases via `configure({ states })` and use `@mobile` instead of writing the full query in every component.
653
-
654
- ### `@(...)` — Container Queries
655
-
656
- Container queries use the syntax `@(name, condition)` for named containers or `@(condition)` for the nearest ancestor container. Dimension shorthands (`w`, `h`, `is`, `bs`) are expanded the same way as `@media`.
657
-
658
- | Shorthand | Expands to |
659
- | --------- | ------------- |
660
- | `w` | `width` |
661
- | `h` | `height` |
662
- | `is` | `inline-size` |
663
- | `bs` | `block-size` |
664
-
665
- ```jsx
666
- const Panel = tasty({
667
- styles: {
668
- flow: {
669
- '': 'column',
670
- '@(layout, w >= 600px)': 'row',
671
- },
672
- },
673
- });
674
- ```
675
-
676
- | Tasty syntax | CSS output |
677
- | ---------------------------------- | -------------------------------------------- |
678
- | `@(layout, w < 600px)` | `@container layout (width < 600px)` |
679
- | `@(w < 600px)` | `@container (width < 600px)` |
680
- | `@(layout, $variant=danger)` | `@container layout style(--variant: danger)` |
681
- | `@(layout, $compact)` | `@container layout style(--compact)` |
682
- | `@(scroll-state(stuck: top))` | `@container scroll-state(stuck: top)` |
683
- | `@(nav, scroll-state(stuck: top))` | `@container nav scroll-state(stuck: top)` |
684
-
685
- Container style queries use `$prop` (boolean) or `$prop=value` syntax, which maps to CSS `style(--prop)` or `style(--prop: value)`. The value is emitted unquoted, so it matches a custom property set to the identifier `danger`, not the string `"danger"`.
686
-
687
- Other size features pass through as written: `@(aspect-ratio > 1)` → `@container (aspect-ratio > 1)`, `@(orientation: portrait)` → `@container (orientation: portrait)`. They need a container with `containerType: 'size'`, since an `inline-size` container has no block size to compare against.
688
-
689
- ### `@supports(...)` — Feature Queries
690
-
691
- Feature queries test CSS property support and accept CSS support functions such
692
- as `at-rule()`. Use `$` as the first argument to test selector support:
693
-
694
- | Tasty syntax | CSS output |
695
- | ----------------------------- | ----------------------------------- |
696
- | `@supports(display: grid)` | `@supports (display: grid)` |
697
- | `@supports($, :has(*))` | `@supports selector(:has(*))` |
698
- | `@supports(at-rule(@scope))` | `@supports (at-rule(@scope))` |
699
- | `!@supports(display: grid)` | `@supports (not (display: grid))` |
700
- | `!@supports(at-rule(@scope))` | `@supports (not (at-rule(@scope)))` |
701
-
702
- ```jsx
703
- display: {
704
- '': 'flex',
705
- '@supports(display: grid)': 'grid',
706
- }
707
- ```
708
-
709
- `at-rule()` tests whether the browser supports the named at-rule. Its surrounding
710
- parentheses in Tasty's CSS output are valid CSS. Negation and combinations with
711
- other states use the same syntax as property queries:
712
-
713
- ```jsx
714
- color: {
715
- _: 'red',
716
- '@supports(at-rule(@scope)) & @supports(display: grid)': 'blue',
717
- }
718
- ```
719
-
720
- Use `_` to keep a base value when a browser cannot evaluate a query. A support
721
- query only detects a browser feature; it does not add an API for authoring the
722
- queried at-rule in a Tasty style object. For conditional stylesheet imports such
723
- as `@import url("scoped.css") supports(at-rule(@scope));`, use an ordinary CSS
724
- stylesheet or document-level `useRawCSS()`. Put imports before other rules in
725
- that stylesheet. Imports cannot be used in constructable stylesheets, including
726
- Tasty's adopted-sheet mode for Shadow DOM.
727
-
728
- ### `_` — Fallback Floor
729
-
730
- By default Tasty makes states **mutually exclusive**: a higher-priority state
731
- turns the lower-priority ones off via negation, so exactly one branch applies.
732
- This relies on `A | !A` always being true. CSS feature/container queries break
733
- that assumption: `@supports(...)` and `@(...)` queries can be **unknown** (not
734
- just true/false), and `not(unknown)` is also unknown — so a negated default
735
- branch silently never applies. The classic case is `scroll-state`: a browser can
736
- support `container-type: scroll-state` while a specific `scroll-state(...)` query
737
- is unknown, leaving _no_ branch active.
738
-
739
- The `_` fallback floor solves this. Use `_` as a **standalone key** and its value
740
- **always applies** as a guaranteed floor: it never receives negation, and
741
- higher-priority states simply layer over it via the cascade.
742
-
743
- ```jsx
744
- inset: {
745
- _: '0 top',
746
- '@supports(container-type: scroll-state) & @(scroll-state(scrolled: block-end))':
747
- '-80x top',
748
- }
749
- ```
750
-
751
- ```css
752
- .t0.t0 {
753
- inset: 0 auto auto auto;
754
- }
755
- @supports (container-type: scroll-state) {
756
- @container scroll-state(scrolled: block-end) {
757
- .t0.t0 {
758
- inset: -640px auto auto auto;
759
- }
760
- }
761
- }
762
- ```
763
-
764
- The floor is emitted as a bare rule (no negated `@supports` / container branches),
765
- so it always applies. When the override matches it wins because it is emitted
766
- later and all state selectors share the same specificity (see the note on
767
- `:where()` above).
768
-
769
- Notes:
770
-
771
- - `_` is a **standalone key only** — it defines a single map-wide floor and
772
- cannot be combined with state logic. Keys like `_ & hovered` or `_ | focused`
773
- are ignored with an `INVALID_FALLBACK_KEY` dev warning.
774
- - `_` can coexist with the bare `''` default when other states exist: `''` is the
775
- negated default, `_` is the always-on floor. With only `_` and `''` (no other
776
- states) the `''` default is redundant — Tasty keeps the `_` value and drops
777
- `''` with a `REDUNDANT_DEFAULT_STATE` warning.
778
- - `_` is position-independent: it is always placed at the lowest priority
779
- regardless of where it appears in the map.
780
-
781
- #### `_` vs the `''` default
782
-
783
- In simple maps where every other state is a plain modifier (always cleanly
784
- on/off), `_` and `''` produce the **same visible result** — the base value shows
785
- whenever no other state wins. They diverge in three situations, and the root
786
- cause is always the same: **`''` is mutually exclusive (turned off by negation),
787
- while `_` is always on (layered underneath).**
788
-
789
- - **Unknown / invalid branches.** If a higher-priority branch sits behind a query
790
- that can be _unknown_ (`@supports`, container, `scroll-state`) or uses a
791
- selector the browser drops, the negated `''` default disappears along with it
792
- (`not(unknown) = unknown`), leaving the property with no rule. The `_` floor
793
- survives because it is an unconditional bare rule. This is the case `_` exists
794
- for.
795
-
796
- - **Empty / "unset" states.** A state can intentionally produce _no_ output (an
797
- empty value) to leave a property unset while that state is active. With `''`
798
- this works — the default is negated away and nothing replaces it, so the
799
- property unsets. With `_` the floor can never be turned off, so its value keeps
800
- applying and the "unset on this state" intent is lost.
801
-
802
- ```jsx
803
- // '' : color unsets while loading. '_' : color stays #text while loading.
804
- color: { '': '#text', loading: '' }
805
- ```
806
-
807
- - **States with different output shapes.** Because `_` layers additively, when
808
- different states emit _different sets_ of declarations, the floor's
809
- declarations bleed through wherever the winning state does not override the
810
- same property — which can produce inconsistent combinations. A `''` default is
811
- swapped out cleanly by its mutually-exclusive condition.
812
-
813
- Rule of thumb: **use `''` for the normal default** (clean mutual exclusivity,
814
- supports unsetting), and reach for `_` only when a value must survive an
815
- _unknown_ higher-priority branch.
816
-
817
- ### `@root(...)` — Root Element States
818
-
819
- Root states generate selectors on the `:root` element. They are useful for theme modes, feature flags, and other page-level conditions:
820
-
821
- These docs use `data-schema` in examples. If your app standardizes on a different root attribute, keep the same pattern and swap the attribute name consistently in your aliases and selectors.
822
-
823
- ```jsx
824
- color: {
825
- '': '#text',
826
- '@root(schema=dark)': '#text-on-dark',
827
- '@root(.premium-user)': '#gold',
828
- }
829
- ```
830
-
831
- | Tasty syntax | CSS selector |
832
- | ---------------------- | --------------------------------- |
833
- | `@root(schema=dark)` | `:root[data-schema="dark"]` |
834
- | `@root(hovered)` | `:root[data-hovered]` |
835
- | `@root(.premium-user)` | `:root.premium-user` |
836
- | `@root([lang="en"])` | `:root[lang="en"]` |
837
- | `!@root(schema=dark)` | `:root:not([data-schema="dark"])` |
838
-
839
- Root conditions are prepended to the component selector inside `:where()`: `:where(:root[data-schema="dark"]) .t0.t0 { ... }`.
840
-
841
- ### `@own(...)` — Sub-element's Own State
842
-
843
- By default, state keys in sub-element styles refer to the root component's state context. Use `@own(...)` when the sub-element should react to its own state:
844
-
845
- ```jsx
846
- const Nav = tasty({
847
- styles: {
848
- NavItem: {
849
- color: {
850
- '': '#text',
851
- '@own(:hover)': '#primary',
852
- '@own(:focus-visible)': '#primary',
853
- selected: '#primary', // root-level modifier
854
- },
855
- },
856
- },
857
- elements: { NavItem: 'a' },
858
- });
859
- ```
860
-
861
- | Tasty syntax (inside sub-element) | CSS output |
862
- | --------------------------------- | ------------------------------------------------- |
863
- | `@own(:hover)` | `:hover` on the sub-element selector |
864
- | `@own(hovered)` | `[data-hovered]` on the sub-element selector |
865
- | `@own(theme=dark)` | `[data-theme="dark"]` on the sub-element selector |
866
-
867
- `@own()` is only valid inside sub-element styles. Using it on root styles emits a warning and is treated as a regular modifier.
868
-
869
- When `$` ends in a pseudo-element, `@own()` is the pseudo-element's own state and goes after it:
870
-
871
- ```jsx
872
- Label: {
873
- $: '@::part(label)',
874
- color: { '': '#text', '@own(:focus)': '#primary' },
875
- },
876
- // → .t0.t0 [data-element="Label"]::part(label):where(:focus) { … }
877
- ```
878
-
879
- A pseudo-element has no attributes, classes, or place in the DOM tree. So a state that tests a modifier (`@own(hovered)`), an attribute (`@own([open])`), a class, or a tree position (`@own(:first-child)`, `@own(:has(…))`) can never match it. Tasty ignores such a state and warns. To condition on the element the pseudo-element belongs to, write it in `$` before the pseudo-element (`$: 'a[rel="next"]::before'`), or use `@parent()` for its ancestors.
880
-
881
- This covers every pseudo-element form: `::before`, `::marker`, `::backdrop`, vendor-prefixed ones such as `::-webkit-details-marker`, functional ones such as `::part(label)`, and the legacy `:before`, `:after`, `:first-line`, `:first-letter`. Each item of a `$` list is judged on its own. Tasty emits pseudo-class states regardless of browser support. Only some pseudo-elements, such as `::part()` and `::-webkit-scrollbar-thumb`, match states like `:hover` or `:focus` today.
882
-
883
- ### `@starting` — Entry Animation
884
-
885
- Wraps the rule in `@starting-style`, enabling CSS entry animations for elements as they appear in the DOM:
886
-
887
- ```jsx
888
- const FadeIn = tasty({
889
- styles: {
890
- opacity: { '': '1', '@starting': '0' },
891
- transform: { '': 'scale(1)', '@starting': 'scale(0.95)' },
892
- transition: 'opacity, translate',
893
- },
894
- });
895
- ```
896
-
897
- | Tasty syntax | CSS output |
898
- | ------------ | ------------------------------------ |
899
- | `@starting` | `.t0.t0 { @starting-style { ... } }` |
900
-
901
- ### `@parent(...)` — Parent Element States
902
-
903
- Style based on ancestor element attributes. Uses `:where([selector] *)` / `:where(:not([selector] *))` for symmetric, composable parent checks. Boolean logic (`&`, `|`, `!`, `^`) is supported inside `@parent()`.
904
-
905
- ```jsx
906
- const Highlight = tasty({
907
- styles: {
908
- fill: {
909
- '': '#white',
910
- '@parent(hovered)': '#gray.05', // Any ancestor has [data-hovered]
911
- '@parent(theme=dark, >)': '#dark-02', // Direct parent has [data-theme="dark"]
912
- },
913
- },
914
- });
915
- ```
916
-
917
- | Syntax | CSS Output |
918
- | ------------------------------------- | -------------------------------------------------------------------------- |
919
- | `@parent(hovered)` | `:where([data-hovered] *)` |
920
- | `!@parent(hovered)` | `:where(:not([data-hovered] *))` |
921
- | `@parent(hovered, >)` | `:where([data-hovered] > *)` (direct parent) |
922
- | `@parent(.active)` | `:where(.active *)` |
923
- | `@parent(hovered & focused)` | `:where([data-hovered][data-focused] *)` (same ancestor) |
924
- | `@parent(hovered) & @parent(focused)` | `:where([data-hovered] *):where([data-focused] *)` (independent ancestors) |
925
- | `@parent(hovered \| focused)` | `:where([data-hovered] *, [data-focused] *)` (OR inside single wrapper) |
926
-
927
- For sub-elements, the parent check applies to the root element's ancestors:
928
-
929
- ```jsx
930
- const Card = tasty({
931
- styles: {
932
- Label: {
933
- color: {
934
- '': '#text',
935
- '@parent(hovered)': '#primary',
936
- },
937
- },
938
- },
939
- });
940
- // → .t0.t0:where([data-hovered] *) [data-element="Label"]
941
- ```
942
-
943
- ### `:is()`, `:has()` — CSS Structural Pseudo-classes
944
-
945
- Use CSS structural pseudo-classes directly in state keys. Capitalized words become `[data-element="..."]` selectors; lowercase words are HTML tags. A trailing combinator (`>`, `+`, `~`) is auto-completed with `*`. Leading combinators (`> Icon`, `+ Icon`) are relative selectors and are valid only inside `:has()`.
946
-
947
- `:where()` and `:not()` are also supported but rarely needed — use `:is()` and `!` negation instead.
948
-
949
- > **Performance warning:** CSS structural pseudo-classes — especially `:has()` — can be costly for the browser to evaluate because they require inspecting the DOM tree beyond the matched element. Tasty already provides a rich, purpose-built state system (`@parent()`, `@own()`, modifiers, boolean logic) that covers the vast majority of use cases without the performance trade-off. **Prefer Tasty's built-in mechanisms and treat `:has()` / `:is()` as a last resort** for conditions that cannot be expressed any other way.
950
-
951
- ```jsx
952
- const Card = tasty({
953
- styles: {
954
- display: {
955
- '': 'block',
956
- ':has(> Icon)': 'grid', // has Icon as direct child
957
- ':has(+ Icon)': 'grid', // immediately followed by an Icon sibling
958
- ':has(~ Icon)': 'grid', // has an Icon sibling somewhere after
959
- ':has(Icon +)': 'grid', // immediately preceded by an Icon sibling (auto-completes to `Icon + *`)
960
- ':has(Icon ~)': 'grid', // has an Icon sibling somewhere before (auto-completes to `Icon ~ *`)
961
- ':is(fieldset > label)': 'inline', // is a label inside a fieldset (HTML tags)
962
- '!:has(> Icon)': 'flex', // negation: no Icon child
963
- },
964
- },
965
- });
966
- ```
967
-
968
- | Syntax | CSS Output | Meaning |
969
- | -------------------- | ------------------------------------- | --------------------------------------- |
970
- | `:has(> Icon)` | `:has(> [data-element="Icon"])` | Has Icon as direct child |
971
- | `:has(+ Icon)` | `:has(+ [data-element="Icon"])` | Immediately followed by an Icon sibling |
972
- | `:has(~ Icon)` | `:has(~ [data-element="Icon"])` | Has an Icon sibling somewhere after |
973
- | `:has(Icon +)` | `:has([data-element="Icon"] + *)` | Immediately preceded by an Icon sibling |
974
- | `:has(Icon ~)` | `:has([data-element="Icon"] ~ *)` | Has an Icon sibling somewhere before |
975
- | `:has(>)` | `:has(> *)` | Has any direct child |
976
- | `:is(Field + input)` | `:is([data-element="Field"] + input)` | Is an input right after a Field sibling |
977
- | `:has(button)` | `:has(button)` | HTML tag (lowercase, unchanged) |
978
- | `!:has(> Icon)` | `:not(:has(> [data-element="Icon"]))` | Negation (use `!`) |
979
- | `!:is(Panel)` | `:not([data-element="Panel"])` | Negation (use `!:is`) |
980
-
981
- Combine with other states using boolean logic (`&`, `|`, `!`, `^`):
982
-
983
- ```jsx
984
- ':has(> Icon) & hovered'; // AND: structural + data attribute
985
- '@parent(hovered) & :has(> Icon)'; // AND: parent check + structural
986
- ':has(> Icon) | :has(> Button)'; // OR: either sub-element present
987
- ':has(> Icon) ^ :has(> Button)'; // XOR: exactly one present
988
- ```
989
-
990
- > **Nesting limit:** The state key parser supports up to 2 levels of nested parentheses inside `:is()`, `:has()`, `:not()`, and `:where()` — e.g. `:has(Input:not(:disabled))` works, but 3+ levels like `:has(:is(:not(:hover)))` will not be tokenized correctly. This covers virtually all practical use cases.
991
-
992
- ---
993
-
994
- ## Keyframes
995
-
996
- Define animations inline using the `@keyframes` key in styles:
997
-
998
- ```jsx
999
- const Pulse = tasty({
1000
- styles: {
1001
- animation: 'pulse 2s infinite',
1002
- '@keyframes': {
1003
- pulse: {
1004
- '0%, 100%': { transform: 'scale(1)' },
1005
- '50%': { transform: 'scale(1.05)' },
1006
- },
1007
- },
1008
- },
1009
- });
1010
- ```
1011
-
1012
- Keyframes names are case-sensitive and keep their authored case in `animation` and `animationName` (`fadeIn`, not `fadein`), so they match `@keyframes` defined here, in `configure({ keyframes })`, or in plain CSS. Everything else in the value — durations, timing functions, keywords — is parsed as usual.
1013
-
1014
- ---
1015
-
1016
- ## Properties (`@property`)
1017
-
1018
- CSS cannot transition or animate custom properties unless the browser knows their type. Tasty solves this automatically — when you assign a concrete value to a custom property, the type is inferred and a CSS `@property` rule is registered behind the scenes:
1019
-
1020
- ```jsx
1021
- const AnimatedGradient = tasty({
1022
- styles: {
1023
- '$gradient-angle': '0deg',
1024
- '#theme': 'okhst(280 80% 50%)',
1025
- image: 'linear-gradient($gradient-angle, #theme, #clear)',
1026
- transition: '$$gradient-angle, ##theme',
1027
- },
1028
- });
1029
- ```
1030
-
1031
- Here `$gradient-angle: '0deg'` is detected as `<angle>` and `#theme` as `<color>` (via the `#name` naming convention), so both transitions work without any manual `@property` declarations. Numeric types (`<number>`, `<length>`, `<percentage>`, `<angle>`, `<time>`) are inferred from values; `<color>` is inferred from `#name` tokens.
1032
-
1033
- Use explicit `@property` when you need non-default settings like `inherits: false`:
1034
-
1035
- ```jsx
1036
- '@property': {
1037
- '$gradient-angle': { syntax: '<angle>', inherits: false, initialValue: '0deg' },
1038
- },
1039
- ```
1040
-
1041
- ### Default properties
1042
-
1043
- Tasty registers these properties itself. Style handlers read their defaults from them rather than repeating the values inline, so styles work before you define any tokens, and defining a token replaces the initial value.
1044
-
1045
- | Token | Initial value | Read by |
1046
- | ---------------------------------------------------- | ---------------------------------------- | -------------------------------------------------------------- |
1047
- | `#current` | `currentcolor` | anything reading `$current-color`, which `color` sets |
1048
- | `#white`, `#black` | `rgb(255 255 255)`, `rgb(0 0 0)` | your styles |
1049
- | `#border` | `currentcolor` | `border` with no color |
1050
- | `#outline` | `currentcolor` | `outline` with no color |
1051
- | `$gap`, `$radius`, `$border-width`, `$outline-width` | `8px`, `6px`, `1px`, `3px` | units you point at them, as in `units: { x: 'var(--gap)' }` |
1052
- | `$transition` | `80ms` | `transition` with no duration |
1053
- | `$sharp-radius` | `0px` | the sharp corners of `radius: 'leaf'` and `radius: 'backleaf'` |
1054
- | `$bold-font-weight` | `700` | `preset: 'name / strong'` |
1055
- | `$font-sans-fallback`, `$font-mono-fallback` | a `system-ui` and a `ui-monospace` stack | `font` and presets, after `$font-sans` / `$font-mono` |
1056
-
1057
- Every rendering path emits them: the client injector, the SSR collector (`TastyRegistry`, `tastyIntegration()`, `runWithCollector()`), the `withTastyNext()` shared stylesheet, and the Babel plugin. CSS written with the programmatic API needs [`extractConfigProperties()`](tasty-static.md#programmatic-api), once per stylesheet. Server rendering without a collector, such as Astro without `tastyIntegration()`, emits none of them.
1058
-
1059
- The initial values need `@property` support: Chrome and Edge 85+, Firefox 128+, Safari 16.4+. In older engines a handler that reads one of these tokens resolves to nothing unless your tokens define it: a `border` with no color draws no border, and a `transition` with no duration does not animate. To support those engines, define the tokens your styles rely on in `configure({ tokens })`.
1060
-
1061
- ---
1062
-
1063
- ## Font Face (`@font-face`)
1064
-
1065
- Register custom fonts directly inside a `styles` object. Keys are font-family names, values are descriptor objects (or arrays of them for multiple weights/styles).
1066
-
1067
- ```ts
1068
- const Heading = tasty({
1069
- styles: {
1070
- '@font-face': {
1071
- 'Brand Sans': {
1072
- src: 'url("/fonts/brand-sans.woff2") format("woff2")',
1073
- fontDisplay: 'swap',
1074
- },
1075
- },
1076
- font: '"Brand Sans", sans-serif',
1077
- },
1078
- });
1079
- ```
1080
-
1081
- ### Multiple weights
1082
-
1083
- Supply an array to register several variants of the same family:
1084
-
1085
- ```ts
1086
- '@font-face': {
1087
- 'Brand Sans': [
1088
- { src: 'url("/fonts/brand-regular.woff2") format("woff2")', fontWeight: 400, fontDisplay: 'swap' },
1089
- { src: 'url("/fonts/brand-bold.woff2") format("woff2")', fontWeight: 700, fontDisplay: 'swap' },
1090
- ],
1091
- }
1092
- ```
1093
-
1094
- ### Supported descriptors
1095
-
1096
- | Descriptor | CSS property | Type |
1097
- | ----------------------- | ------------------------- | --------------------------------------------------------- |
1098
- | `src` (required) | `src` | `string` |
1099
- | `fontWeight` | `font-weight` | `string \| number` |
1100
- | `fontStyle` | `font-style` | `string` |
1101
- | `fontStretch` | `font-stretch` | `string` |
1102
- | `fontDisplay` | `font-display` | `'auto' \| 'block' \| 'swap' \| 'fallback' \| 'optional'` |
1103
- | `unicodeRange` | `unicode-range` | `string` |
1104
- | `ascentOverride` | `ascent-override` | `string` |
1105
- | `descentOverride` | `descent-override` | `string` |
1106
- | `lineGapOverride` | `line-gap-override` | `string` |
1107
- | `sizeAdjust` | `size-adjust` | `string` |
1108
- | `fontFeatureSettings` | `font-feature-settings` | `string` |
1109
- | `fontVariationSettings` | `font-variation-settings` | `string` |
1110
-
1111
- > Font-face rules are permanent — they are injected once and never cleaned up, matching how browsers handle `@font-face`.
1112
-
1113
- ---
1114
-
1115
- ## Counter Style (`@counter-style`)
1116
-
1117
- Define custom list markers via the CSS `@counter-style` at-rule. Keys are counter-style names, values are descriptor objects.
1118
-
1119
- ```ts
1120
- const EmojiList = tasty({
1121
- as: 'ol',
1122
- styles: {
1123
- '@counter-style': {
1124
- thumbs: {
1125
- system: 'cyclic',
1126
- symbols: '"👍"',
1127
- suffix: '" "',
1128
- },
1129
- },
1130
- listStyleType: 'thumbs',
1131
- },
1132
- });
1133
- ```
1134
-
1135
- ### Supported descriptors
1136
-
1137
- | Descriptor | CSS property | Type |
1138
- | ------------------- | ------------------ | ---------------------------------------------------------------------------------------- |
1139
- | `system` (required) | `system` | `'cyclic' \| 'numeric' \| 'alphabetic' \| 'symbolic' \| 'additive' \| 'fixed' \| string` |
1140
- | `symbols` | `symbols` | `string` |
1141
- | `additiveSymbols` | `additive-symbols` | `string` |
1142
- | `prefix` | `prefix` | `string` |
1143
- | `suffix` | `suffix` | `string` |
1144
- | `negative` | `negative` | `string` |
1145
- | `range` | `range` | `string` |
1146
- | `pad` | `pad` | `string` |
1147
- | `fallback` | `fallback` | `string` |
1148
- | `speakAs` | `speak-as` | `string` |
1149
-
1150
- > Counter-style rules are permanent — they are injected once and never cleaned up, matching how browsers handle `@counter-style`.
1151
-
1152
- ---
1153
-
1154
- ## Functions (`@function`)
1155
-
1156
- Define reusable, parameterized CSS [custom functions](https://developer.mozilla.org/en-US/docs/Web/CSS/@function) via the CSS `@function` at-rule. A custom function takes parameters and returns a single value — like a dynamic custom property.
1157
-
1158
- The token convention follows Tasty's `$` vs `$$` distinction:
1159
-
1160
- - **`$$name`** — the literal callable name (`--name`). Used for the **definition key** and for **invocation** `$$name(...)`, mirroring the existing `$$gradient-angle` → `--gradient-angle` sugar. The definition key matches the call site.
1161
- - **`$name`** — a custom-property declaration/reference (`var(--name)`). Used for **parameters** and **local variables**, exactly like declaring custom props in a styles object.
1162
- - **Local variables** are declared directly as `$name` keys on the descriptor — the body reads like a mini styles object.
1163
- - `result`, local-variable values, and parameter `default` values flow through the full Tasty DSL, so units (`2x`), color tokens (`#theme`), auto-calc (`(-1 * $value)` → `calc(-1 * var(--value))`), and fallbacks (`($shadow-color, black)` → `var(--shadow-color, black)`) all work.
1164
-
1165
- ```ts
1166
- const Box = tasty({
1167
- styles: {
1168
- '@function': {
1169
- // simplest: one bare param + result (auto-calc, no explicit calc())
1170
- $$negative: { args: ['$value'], result: '(-1 * $value)' },
1171
-
1172
- // typed param + default + return type + local variable
1173
- $$shadow: {
1174
- args: { '$shadow-color': { syntax: '<color>', default: 'inherit' } },
1175
- returns: '<color>',
1176
- $offset: '2px', // local variable
1177
- result: '$offset $offset ($shadow-color, black)',
1178
- },
1179
- },
1180
- margin: '$$negative(10px) top', // → margin: --negative(10px) 0 0 0
1181
- shadow: '$$shadow(#accent)', // → box-shadow: --shadow(var(--accent-color))
1182
- },
1183
- });
1184
- ```
1185
-
1186
- Generated CSS:
1187
-
1188
- ```css
1189
- @function --negative(--value) {
1190
- result: calc(-1 * var(--value));
1191
- }
1192
- @function --shadow(--shadow-color <color>: inherit) returns <color> {
1193
- --offset: 2px;
1194
- result: var(--offset) var(--offset) var(--shadow-color, black);
1195
- }
1196
- .t0 {
1197
- margin: --negative(10px) 0 0 0;
1198
- box-shadow: --shadow(var(--accent-color));
1199
- }
1200
- ```
1201
-
1202
- ### Descriptor shape
1203
-
1204
- | Field | Type | Notes |
1205
- | ------------------- | ------------------------------------------------- | ---------------------------------------------------------------------------------------- |
1206
- | `result` (required) | `string` | The `result:` value, parsed through the Tasty DSL. |
1207
- | `args` | `string[]` \| `Record<string, FunctionParameter>` | Ordered parameters. Array form lists bare names; object form maps names to type/default. |
1208
- | `returns` | `string` | Optional return type, e.g. `'<color>'`. |
1209
- | `$name` keys | `string \| number` | Any `$name` key declares a local variable `--name` (value parsed). |
1210
-
1211
- A `FunctionParameter` is one of: `true` (bare param), a string CSS type shorthand (`'<length>'`), or `{ syntax?: string; default?: string | number }`.
1212
-
1213
- Functions can also be registered with the [`useFunction`](react-api.md#usefunction) style function or globally via [`configure({ functions })`](configuration.md#functions) (the same map also accepts bare-key parse functions).
1214
-
1215
- > `@function` is permanent — injected once and never cleaned up, like `@counter-style`. It is an experimental CSS feature ([Chrome 139+](https://developer.mozilla.org/en-US/docs/Web/CSS/@function)); unsupported browsers safely ignore the native rule, so use it as progressive enhancement — or enable the [`configure({ polyfills: { functions: true } })`](configuration.md#polyfills) inline polyfill to expand `$$name(...)` calls into plain CSS for full cross-browser support.
1216
-
1217
- ---
1218
-
1219
- ## Style Properties
1220
-
1221
- For a complete reference of all enhanced style properties — syntax, values, modifiers, and recommendations — see **[Style Properties Reference](styles.md)**.
1222
-
1223
- ---
1224
-
1225
- ## Learn more
1226
-
1227
- - **[React API](react-api.md)** — `tasty()` factory, component props, variants, sub-elements, style functions
1228
- - **[Methodology](methodology.md)** — Recommended patterns: root + sub-elements, styleProps, tokens, wrapping
1229
- - **[Configuration](configuration.md)** — Tokens, recipes, custom units, style handlers, TypeScript extensions
1230
- - **[Style Properties](styles.md)** — Complete reference for all enhanced style properties
1231
- - **[Build-Time Extraction (`tastyStatic`)](tasty-static.md)** — Static styling with the Babel plugin