@zyncat/ui 0.13.0 → 0.15.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 (440) hide show
  1. package/README.md +72 -13
  2. package/dist/alert.css +26 -33
  3. package/dist/alert.js +18 -17
  4. package/dist/alert.js.map +1 -1
  5. package/dist/avatar-group.js +2 -2
  6. package/dist/avatar-group.js.map +1 -1
  7. package/dist/avatar.css +51 -50
  8. package/dist/avatar.js +29 -7
  9. package/dist/avatar.js.map +1 -1
  10. package/dist/badge.css +30 -36
  11. package/dist/badge.js +1 -1
  12. package/dist/button.css +80 -96
  13. package/dist/button.js +1 -1
  14. package/dist/checkbox.css +27 -32
  15. package/dist/checkbox.js +2 -2
  16. package/dist/{chunk-RJFGWJ4W.js → chunk-3XRVPCIM.js} +6 -6
  17. package/dist/chunk-3XRVPCIM.js.map +1 -0
  18. package/dist/{chunk-M43IOM5C.js → chunk-5GBV45YD.js} +3 -3
  19. package/dist/{chunk-M43IOM5C.js.map → chunk-5GBV45YD.js.map} +1 -1
  20. package/dist/{chunk-45R4Z5XN.js → chunk-5VC3TUZ2.js} +4 -4
  21. package/dist/{chunk-45R4Z5XN.js.map → chunk-5VC3TUZ2.js.map} +1 -1
  22. package/dist/{chunk-A5WTZACK.js → chunk-5W5TKANX.js} +3 -3
  23. package/dist/{chunk-A5WTZACK.js.map → chunk-5W5TKANX.js.map} +1 -1
  24. package/dist/{chunk-AADAJL7D.js → chunk-5X3MJRIM.js} +8 -9
  25. package/dist/chunk-5X3MJRIM.js.map +1 -0
  26. package/dist/{chunk-TCUCYFT7.js → chunk-6SUHSSOK.js} +3 -3
  27. package/dist/{chunk-TCUCYFT7.js.map → chunk-6SUHSSOK.js.map} +1 -1
  28. package/dist/{chunk-DDRSMHN4.js → chunk-6X3G4GIM.js} +3 -3
  29. package/dist/{chunk-DDRSMHN4.js.map → chunk-6X3G4GIM.js.map} +1 -1
  30. package/dist/{chunk-TYHR4VNM.js → chunk-AREEMG47.js} +10 -8
  31. package/dist/chunk-AREEMG47.js.map +1 -0
  32. package/dist/{chunk-EF6RPXU7.js → chunk-BH4JFWXQ.js} +36 -31
  33. package/dist/chunk-BH4JFWXQ.js.map +1 -0
  34. package/dist/{chunk-TVYH4AN7.js → chunk-BTF6DAE3.js} +13 -13
  35. package/dist/chunk-BTF6DAE3.js.map +1 -0
  36. package/dist/{chunk-CF4QHO4N.js → chunk-CAXQJSIE.js} +10 -10
  37. package/dist/{chunk-CF4QHO4N.js.map → chunk-CAXQJSIE.js.map} +1 -1
  38. package/dist/{chunk-4C5RZXBT.js → chunk-CFRGQJ23.js} +8 -8
  39. package/dist/chunk-CFRGQJ23.js.map +1 -0
  40. package/dist/{chunk-IJS7TPGV.js → chunk-FEXUS4SV.js} +6 -5
  41. package/dist/chunk-FEXUS4SV.js.map +1 -0
  42. package/dist/{chunk-227ZW4V7.js → chunk-FLQVOSFC.js} +11 -11
  43. package/dist/chunk-FLQVOSFC.js.map +1 -0
  44. package/dist/{chunk-FONOS5RN.js → chunk-FVPNICF4.js} +11 -10
  45. package/dist/chunk-FVPNICF4.js.map +1 -0
  46. package/dist/{chunk-I45AU6KH.js → chunk-GGDAMIBH.js} +13 -7
  47. package/dist/chunk-GGDAMIBH.js.map +1 -0
  48. package/dist/{chunk-4BSHB7R3.js → chunk-GJTHWB6O.js} +9 -9
  49. package/dist/chunk-GJTHWB6O.js.map +1 -0
  50. package/dist/{chunk-EAI4POPB.js → chunk-GOLSYGRA.js} +45 -75
  51. package/dist/chunk-GOLSYGRA.js.map +1 -0
  52. package/dist/chunk-H3X2263Y.js +17 -0
  53. package/dist/chunk-H3X2263Y.js.map +1 -0
  54. package/dist/chunk-K45CWVHS.js +53 -0
  55. package/dist/chunk-K45CWVHS.js.map +1 -0
  56. package/dist/{chunk-JY6A2ZJZ.js → chunk-LNAV5E7S.js} +2 -2
  57. package/dist/{chunk-JY6A2ZJZ.js.map → chunk-LNAV5E7S.js.map} +1 -1
  58. package/dist/{chunk-TUTXXC3W.js → chunk-MDSRZ4QR.js} +3 -3
  59. package/dist/{chunk-TUTXXC3W.js.map → chunk-MDSRZ4QR.js.map} +1 -1
  60. package/dist/chunk-N2GJEO5Z.js +101 -0
  61. package/dist/chunk-N2GJEO5Z.js.map +1 -0
  62. package/dist/chunk-PU3QWBEL.js +39 -0
  63. package/dist/chunk-PU3QWBEL.js.map +1 -0
  64. package/dist/{chunk-43M6GQ4Q.js → chunk-PWQVSVXR.js} +51 -32
  65. package/dist/chunk-PWQVSVXR.js.map +1 -0
  66. package/dist/chunk-QGVFFT2B.js +14 -0
  67. package/dist/chunk-QGVFFT2B.js.map +1 -0
  68. package/dist/{chunk-5PZ43DCG.js → chunk-RBSHRRNO.js} +12 -13
  69. package/dist/chunk-RBSHRRNO.js.map +1 -0
  70. package/dist/{chunk-XNIYSAMJ.js → chunk-RW2A4M2Q.js} +14 -9
  71. package/dist/chunk-RW2A4M2Q.js.map +1 -0
  72. package/dist/{chunk-HY5MPISE.js → chunk-UYSXJ7MH.js} +9 -9
  73. package/dist/chunk-UYSXJ7MH.js.map +1 -0
  74. package/dist/chunk-VDOBLABP.js +38 -0
  75. package/dist/chunk-VDOBLABP.js.map +1 -0
  76. package/dist/chunk-VNVVG47J.js +12 -0
  77. package/dist/chunk-VNVVG47J.js.map +1 -0
  78. package/dist/{chunk-3MPF7FZV.js → chunk-WCWV5IX6.js} +3 -3
  79. package/dist/{chunk-3MPF7FZV.js.map → chunk-WCWV5IX6.js.map} +1 -1
  80. package/dist/{chunk-VAXCXZ53.js → chunk-WZUTBJC4.js} +5 -4
  81. package/dist/chunk-WZUTBJC4.js.map +1 -0
  82. package/dist/cli.js +137 -25
  83. package/dist/collapse.css +15 -30
  84. package/dist/collapse.js +1 -1
  85. package/dist/confetti.css +19 -12
  86. package/dist/confetti.js +7 -6
  87. package/dist/confetti.js.map +1 -1
  88. package/dist/count-badge.js +2 -2
  89. package/dist/date-field.js +20 -19
  90. package/dist/date-field.js.map +1 -1
  91. package/dist/date-picker.css +131 -154
  92. package/dist/date-range-field.js +55 -54
  93. package/dist/date-range-field.js.map +1 -1
  94. package/dist/datetime-field.js +24 -23
  95. package/dist/datetime-field.js.map +1 -1
  96. package/dist/dialog.css +31 -41
  97. package/dist/dialog.js +23 -22
  98. package/dist/dialog.js.map +1 -1
  99. package/dist/digit-strip.css +16 -16
  100. package/dist/dropdown.css +36 -27
  101. package/dist/dropdown.js +77 -40
  102. package/dist/dropdown.js.map +1 -1
  103. package/dist/emoji-picker.js +44 -45
  104. package/dist/emoji-picker.js.map +1 -1
  105. package/dist/facebook-feed.css +145 -148
  106. package/dist/facebook-feed.js +106 -102
  107. package/dist/facebook-feed.js.map +1 -1
  108. package/dist/flow-field.css +8 -4
  109. package/dist/flow-field.js +7 -6
  110. package/dist/flow-field.js.map +1 -1
  111. package/dist/glide.js +4 -3
  112. package/dist/icon.css +7 -10
  113. package/dist/input.css +76 -84
  114. package/dist/instagram-feed.css +65 -66
  115. package/dist/instagram-feed.js +61 -44
  116. package/dist/instagram-feed.js.map +1 -1
  117. package/dist/lens.css +42 -38
  118. package/dist/lens.js +17 -16
  119. package/dist/lens.js.map +1 -1
  120. package/dist/mcp.js +3 -2
  121. package/dist/menu-surface.css +54 -34
  122. package/dist/modal.css +2 -4
  123. package/dist/modal.js +12 -11
  124. package/dist/modal.js.map +1 -1
  125. package/dist/morphing-text.css +26 -16
  126. package/dist/morphing-text.js +14 -13
  127. package/dist/morphing-text.js.map +1 -1
  128. package/dist/motion-devtools.css +42 -68
  129. package/dist/motion-devtools.js +47 -39
  130. package/dist/motion-devtools.js.map +1 -1
  131. package/dist/motion-tokens.js +1 -1
  132. package/dist/multi-select.js +21 -16
  133. package/dist/multi-select.js.map +1 -1
  134. package/dist/number-field.js +14 -14
  135. package/dist/number-field.js.map +1 -1
  136. package/dist/odometer.css +22 -16
  137. package/dist/odometer.js +12 -11
  138. package/dist/odometer.js.map +1 -1
  139. package/dist/otp-field.js +3 -3
  140. package/dist/otp-field.js.map +1 -1
  141. package/dist/overlay.css +4 -9
  142. package/dist/pagination.css +10 -15
  143. package/dist/pagination.js +11 -10
  144. package/dist/pagination.js.map +1 -1
  145. package/dist/popover.css +13 -15
  146. package/dist/popover.js +10 -9
  147. package/dist/radio-group.css +60 -73
  148. package/dist/radio-group.js +30 -29
  149. package/dist/radio-group.js.map +1 -1
  150. package/dist/select.css +66 -75
  151. package/dist/select.js +19 -14
  152. package/dist/select.js.map +1 -1
  153. package/dist/sheet.css +12 -14
  154. package/dist/sheet.js +11 -10
  155. package/dist/status-badge.js +9 -9
  156. package/dist/status-badge.js.map +1 -1
  157. package/dist/styles.css +34 -34
  158. package/dist/support-rail.css +116 -100
  159. package/dist/support-rail.js +41 -40
  160. package/dist/support-rail.js.map +1 -1
  161. package/dist/table.css +76 -84
  162. package/dist/table.js +42 -41
  163. package/dist/table.js.map +1 -1
  164. package/dist/tabs.css +82 -90
  165. package/dist/tabs.js +23 -20
  166. package/dist/tabs.js.map +1 -1
  167. package/dist/tag.css +48 -53
  168. package/dist/tag.js +13 -12
  169. package/dist/tag.js.map +1 -1
  170. package/dist/text-field.js +5 -5
  171. package/dist/textarea.css +46 -49
  172. package/dist/textarea.js +16 -16
  173. package/dist/textarea.js.map +1 -1
  174. package/dist/theme.js +31 -15
  175. package/dist/theme.js.map +1 -1
  176. package/dist/tiktok.css +113 -117
  177. package/dist/tiktok.js +53 -52
  178. package/dist/tiktok.js.map +1 -1
  179. package/dist/time-field.js +26 -20
  180. package/dist/time-field.js.map +1 -1
  181. package/dist/toast-store.js +2 -1
  182. package/dist/toast.css +49 -65
  183. package/dist/toast.js +32 -26
  184. package/dist/toast.js.map +1 -1
  185. package/dist/toggle-tag.js +22 -13
  186. package/dist/toggle-tag.js.map +1 -1
  187. package/dist/toggle.css +26 -31
  188. package/dist/toggle.js +7 -7
  189. package/dist/toggle.js.map +1 -1
  190. package/dist/tooltip.css +16 -23
  191. package/dist/tooltip.js +117 -95
  192. package/dist/tooltip.js.map +1 -1
  193. package/dist/trigger.css +3 -3
  194. package/dist/types/components/composites/alert/Alert.d.ts +1 -2
  195. package/dist/types/components/composites/date-picker/TimeField.d.ts +1 -2
  196. package/dist/types/components/composites/date-picker/field-shell.d.ts +1 -1
  197. package/dist/types/components/composites/date-picker/time-core.d.ts +1 -2
  198. package/dist/types/components/composites/dropdown/Dropdown.d.ts +9 -1
  199. package/dist/types/components/composites/dropdown/types.d.ts +14 -0
  200. package/dist/types/components/composites/emoji-picker/EmojiPickerPanel.d.ts +1 -1
  201. package/dist/types/components/composites/emoji-picker/data.d.ts +2 -5
  202. package/dist/types/components/composites/emoji-picker/react/useEmojiPicker.d.ts +0 -11
  203. package/dist/types/components/composites/emoji-picker/types.d.ts +3 -8
  204. package/dist/types/components/composites/select/MultiSelect.d.ts +6 -1
  205. package/dist/types/components/composites/select/Select.d.ts +6 -1
  206. package/dist/types/components/composites/select/core/index.d.ts +1 -1
  207. package/dist/types/components/composites/select/core/menu.d.ts +3 -3
  208. package/dist/types/components/composites/select/core/panel.d.ts +3 -3
  209. package/dist/types/components/composites/tabs/Tabs.d.ts +7 -10
  210. package/dist/types/components/composites/toast/Toast.d.ts +1 -1
  211. package/dist/types/components/composites/tooltip/Tooltip.d.ts +9 -1
  212. package/dist/types/components/composites/tooltip/tooltip-store.d.ts +5 -6
  213. package/dist/types/components/dev/MotionDevtools.d.ts +3 -1
  214. package/dist/types/components/internal/hooks/use-host-election.d.ts +8 -0
  215. package/dist/types/components/internal/icon/Icon.d.ts +1 -3
  216. package/dist/types/components/internal/menu/highlight.d.ts +7 -0
  217. package/dist/types/components/internal/utils/activation.d.ts +0 -4
  218. package/dist/types/components/primitives/avatar/Avatar.d.ts +1 -1
  219. package/dist/types/components/primitives/button/Button.d.ts +1 -1
  220. package/dist/types/components/primitives/input/TextField.d.ts +1 -2
  221. package/dist/types/components/primitives/textarea/Textarea.d.ts +0 -1
  222. package/dist/types/shared-slot.d.ts +1 -0
  223. package/dist/types/tokens/component-styles.generated.d.ts +79 -151
  224. package/dist/types/tokens/motion-defaults.generated.d.ts +34 -0
  225. package/dist/types/tokens/motion-scale.d.ts +2 -2
  226. package/dist/types/tokens/motion-tokens.d.ts +7 -0
  227. package/dist/types/tokens/theme-sync.d.ts +3 -0
  228. package/dist/types/tokens/theme-tokens.generated.d.ts +669 -1105
  229. package/dist/typing-lines.css +17 -10
  230. package/dist/typing-lines.js +9 -8
  231. package/dist/typing-lines.js.map +1 -1
  232. package/dist/weight-field.css +31 -17
  233. package/dist/weight-field.js +4 -4
  234. package/dist/weight-field.js.map +1 -1
  235. package/dist/youtube.css +90 -96
  236. package/dist/youtube.js +87 -86
  237. package/dist/youtube.js.map +1 -1
  238. package/package.json +3 -1
  239. package/skills/zyncat-ui/SKILL.md +5 -3
  240. package/skills/zyncat-ui/references/components.md +4 -4
  241. package/skills/zyncat-ui/references/theming.md +105 -34
  242. package/src/components/composites/alert/Alert.tsx +9 -10
  243. package/src/components/composites/alert/alert.css +26 -33
  244. package/src/components/composites/date-picker/DateField.tsx +1 -1
  245. package/src/components/composites/date-picker/DateRangeField.tsx +1 -1
  246. package/src/components/composites/date-picker/DateTimeField.tsx +4 -4
  247. package/src/components/composites/date-picker/TimeField.tsx +8 -5
  248. package/src/components/composites/date-picker/calendar-panel.tsx +25 -20
  249. package/src/components/composites/date-picker/date-picker.css +131 -154
  250. package/src/components/composites/date-picker/field-shell.tsx +7 -7
  251. package/src/components/composites/date-picker/range-panel.tsx +34 -34
  252. package/src/components/composites/date-picker/time-core.tsx +4 -6
  253. package/src/components/composites/date-picker/use-day-focus.ts +1 -1
  254. package/src/components/composites/dialog/Dialog.tsx +11 -11
  255. package/src/components/composites/dialog/dialog.css +31 -41
  256. package/src/components/composites/dropdown/Dropdown.tsx +15 -2
  257. package/src/components/composites/dropdown/Dropdown.usage.md +7 -4
  258. package/src/components/composites/dropdown/dropdown.css +36 -27
  259. package/src/components/composites/dropdown/menu-panel.tsx +56 -27
  260. package/src/components/composites/dropdown/types.ts +28 -6
  261. package/src/components/composites/emoji-picker/EmojiPickerPanel.tsx +5 -4
  262. package/src/components/composites/emoji-picker/EmojiPickerPanel.usage.md +4 -4
  263. package/src/components/composites/emoji-picker/data.ts +2 -5
  264. package/src/components/composites/emoji-picker/dom.ts +6 -6
  265. package/src/components/composites/emoji-picker/react/category-bar.tsx +6 -6
  266. package/src/components/composites/emoji-picker/react/useEmojiPicker.ts +0 -11
  267. package/src/components/composites/emoji-picker/scaffold.ts +7 -7
  268. package/src/components/composites/emoji-picker/search.ts +0 -7
  269. package/src/components/composites/emoji-picker/styles.css +34 -34
  270. package/src/components/composites/emoji-picker/types.ts +3 -8
  271. package/src/components/composites/modal/Modal.tsx +2 -2
  272. package/src/components/composites/modal/modal.css +2 -4
  273. package/src/components/composites/pagination/Pagination.tsx +7 -7
  274. package/src/components/composites/pagination/pagination.css +10 -15
  275. package/src/components/composites/popover/Popover.tsx +2 -2
  276. package/src/components/composites/popover/popover.css +13 -15
  277. package/src/components/composites/select/MultiSelect.tsx +11 -2
  278. package/src/components/composites/select/MultiSelect.usage.md +2 -1
  279. package/src/components/composites/select/Select.tsx +10 -1
  280. package/src/components/composites/select/Select.usage.md +2 -1
  281. package/src/components/composites/select/core/index.ts +1 -1
  282. package/src/components/composites/select/core/menu.tsx +19 -4
  283. package/src/components/composites/select/core/panel.tsx +19 -15
  284. package/src/components/composites/select/core/trigger.tsx +5 -5
  285. package/src/components/composites/select/select.css +66 -75
  286. package/src/components/composites/sheet/Sheet.tsx +2 -2
  287. package/src/components/composites/sheet/sheet.css +12 -14
  288. package/src/components/composites/sheet/use-sheet-drag.ts +1 -1
  289. package/src/components/composites/table/Table.tsx +35 -35
  290. package/src/components/composites/table/table.css +76 -84
  291. package/src/components/composites/tabs/Tabs.tsx +20 -21
  292. package/src/components/composites/tabs/Tabs.usage.md +3 -2
  293. package/src/components/composites/tabs/tabs.css +82 -90
  294. package/src/components/composites/toast/Toast.tsx +23 -18
  295. package/src/components/composites/toast/toast-store.ts +8 -6
  296. package/src/components/composites/toast/toast.css +49 -65
  297. package/src/components/composites/tooltip/Tooltip.tsx +40 -19
  298. package/src/components/composites/tooltip/Tooltip.usage.md +9 -1
  299. package/src/components/composites/tooltip/tooltip-host.tsx +55 -23
  300. package/src/components/composites/tooltip/tooltip-store.ts +36 -53
  301. package/src/components/composites/tooltip/tooltip.css +16 -23
  302. package/src/components/compound/support-rail/SupportRail.tsx +33 -33
  303. package/src/components/compound/support-rail/support-rail.css +116 -100
  304. package/src/components/dev/MotionDevtools.tsx +28 -17
  305. package/src/components/dev/MotionDevtools.usage.md +2 -2
  306. package/src/components/dev/motion-devtools.css +42 -68
  307. package/src/components/dev/slowmo-engine.ts +16 -15
  308. package/src/components/expressive/confetti/Confetti.tsx +4 -4
  309. package/src/components/expressive/confetti/confetti.css +19 -12
  310. package/src/components/expressive/facebook-feed/chrome.tsx +2 -2
  311. package/src/components/expressive/facebook-feed/facebook-feed.css +145 -148
  312. package/src/components/expressive/facebook-feed/post.tsx +39 -39
  313. package/src/components/expressive/facebook-feed/reel.tsx +41 -37
  314. package/src/components/expressive/facebook-feed/story.tsx +27 -27
  315. package/src/components/expressive/flow-field/FlowField.tsx +4 -4
  316. package/src/components/expressive/flow-field/flow-field.css +8 -4
  317. package/src/components/expressive/instagram-feed/InstagramFeed.tsx +52 -44
  318. package/src/components/expressive/instagram-feed/instagram-feed.css +65 -66
  319. package/src/components/expressive/lens/Lens.tsx +14 -14
  320. package/src/components/expressive/lens/lens.css +42 -38
  321. package/src/components/expressive/morphing-text/MorphingText.tsx +12 -13
  322. package/src/components/expressive/morphing-text/morphing-text.css +26 -16
  323. package/src/components/expressive/odometer/Odometer.tsx +9 -9
  324. package/src/components/expressive/odometer/odometer.css +22 -16
  325. package/src/components/expressive/tiktok/TikTok.tsx +54 -54
  326. package/src/components/expressive/tiktok/tiktok.css +113 -117
  327. package/src/components/expressive/typing-lines/TypingLines.tsx +0 -0
  328. package/src/components/expressive/typing-lines/typing-lines.css +17 -10
  329. package/src/components/expressive/weight-field/WeightField.tsx +4 -4
  330. package/src/components/expressive/weight-field/weight-field.css +31 -17
  331. package/src/components/expressive/youtube/YouTube.tsx +4 -4
  332. package/src/components/expressive/youtube/glyphs.tsx +16 -16
  333. package/src/components/expressive/youtube/media.tsx +3 -3
  334. package/src/components/expressive/youtube/post.tsx +28 -28
  335. package/src/components/expressive/youtube/short.tsx +25 -25
  336. package/src/components/expressive/youtube/video.tsx +13 -13
  337. package/src/components/expressive/youtube/youtube.css +90 -96
  338. package/src/components/internal/glass/glass.css +19 -22
  339. package/src/components/internal/glass/glint.ts +3 -3
  340. package/src/components/internal/hooks/use-host-election.ts +46 -0
  341. package/src/components/internal/icon/Icon.tsx +1 -5
  342. package/src/components/internal/icon/IconSlot.tsx +1 -1
  343. package/src/components/internal/icon/icon.css +7 -10
  344. package/src/components/internal/menu/highlight.ts +12 -0
  345. package/src/components/internal/menu/menu-row.tsx +5 -5
  346. package/src/components/internal/menu/menu-surface.css +54 -34
  347. package/src/components/internal/overlay/layer.tsx +2 -1
  348. package/src/components/internal/overlay/modal.tsx +5 -4
  349. package/src/components/internal/overlay/overlay.css +4 -9
  350. package/src/components/internal/overlay/trigger.css +3 -3
  351. package/src/components/internal/utils/activation.ts +0 -4
  352. package/src/components/primitives/avatar/Avatar.tsx +24 -8
  353. package/src/components/primitives/avatar/AvatarGroup.tsx +4 -4
  354. package/src/components/primitives/avatar/avatar.css +51 -50
  355. package/src/components/primitives/badge/Badge.tsx +9 -9
  356. package/src/components/primitives/badge/StatusBadge.tsx +7 -7
  357. package/src/components/primitives/badge/badge.css +30 -36
  358. package/src/components/primitives/badge/digit-strip.css +16 -16
  359. package/src/components/primitives/badge/digit-strip.tsx +4 -4
  360. package/src/components/primitives/button/Button.tsx +8 -8
  361. package/src/components/primitives/button/button.css +80 -96
  362. package/src/components/primitives/checkbox/Checkbox.tsx +10 -4
  363. package/src/components/primitives/checkbox/check-glyph.tsx +5 -5
  364. package/src/components/primitives/checkbox/checkbox.css +27 -32
  365. package/src/components/primitives/collapse/Collapse.tsx +2 -2
  366. package/src/components/primitives/collapse/collapse.css +15 -30
  367. package/src/components/primitives/collapse/collapse.typecheck.tsx +1 -1
  368. package/src/components/primitives/input/NumberField.tsx +11 -11
  369. package/src/components/primitives/input/OtpField.tsx +3 -3
  370. package/src/components/primitives/input/TextField.tsx +9 -10
  371. package/src/components/primitives/input/field-chrome.tsx +6 -6
  372. package/src/components/primitives/input/input.css +76 -84
  373. package/src/components/primitives/radio-group/RadioGroup.tsx +23 -23
  374. package/src/components/primitives/radio-group/radio-group.css +60 -73
  375. package/src/components/primitives/tag/Tag.tsx +5 -5
  376. package/src/components/primitives/tag/ToggleTag.tsx +11 -6
  377. package/src/components/primitives/tag/tag.css +48 -53
  378. package/src/components/primitives/textarea/Textarea.tsx +13 -14
  379. package/src/components/primitives/textarea/textarea.css +46 -49
  380. package/src/components/primitives/toggle/Toggle.tsx +7 -7
  381. package/src/components/primitives/toggle/toggle.css +26 -31
  382. package/src/engine/animate.ts +2 -1
  383. package/src/engine/flip.ts +2 -1
  384. package/src/mcp/server.ts +3 -1
  385. package/src/motion/flip.ts +7 -8
  386. package/src/motion/glide.tsx +41 -26
  387. package/src/shared-slot.ts +10 -0
  388. package/src/styles.css +7 -15
  389. package/src/tokens/base.css +15 -0
  390. package/src/tokens/color.css +19 -59
  391. package/src/tokens/component-styles.generated.ts +79 -151
  392. package/src/tokens/dark.css +63 -0
  393. package/src/tokens/decisions.css +26 -0
  394. package/src/tokens/elevation.css +71 -21
  395. package/src/tokens/fonts.css +0 -2
  396. package/src/tokens/glass.css +15 -9
  397. package/src/tokens/motion-defaults.generated.ts +21 -0
  398. package/src/tokens/motion-scale.ts +2 -2
  399. package/src/tokens/motion-tokens.ts +65 -40
  400. package/src/tokens/motion-tokens.usage.md +5 -2
  401. package/src/tokens/motion.css +12 -22
  402. package/src/tokens/radius.css +10 -9
  403. package/src/tokens/semantic.css +57 -37
  404. package/src/tokens/spacing.css +5 -6
  405. package/src/tokens/theme-sync.tsx +15 -0
  406. package/src/tokens/theme-tokens.generated.ts +682 -1109
  407. package/src/tokens/theme.tsx +22 -16
  408. package/src/tokens/theme.usage.md +19 -13
  409. package/src/tokens/typography.css +16 -19
  410. package/tailwind.css +193 -0
  411. package/dist/chunk-227ZW4V7.js.map +0 -1
  412. package/dist/chunk-43M6GQ4Q.js.map +0 -1
  413. package/dist/chunk-4BSHB7R3.js.map +0 -1
  414. package/dist/chunk-4C5RZXBT.js.map +0 -1
  415. package/dist/chunk-5PZ43DCG.js.map +0 -1
  416. package/dist/chunk-7IZJERGA.js +0 -80
  417. package/dist/chunk-7IZJERGA.js.map +0 -1
  418. package/dist/chunk-AADAJL7D.js.map +0 -1
  419. package/dist/chunk-CNWTIMIP.js +0 -39
  420. package/dist/chunk-CNWTIMIP.js.map +0 -1
  421. package/dist/chunk-EAI4POPB.js.map +0 -1
  422. package/dist/chunk-EF6RPXU7.js.map +0 -1
  423. package/dist/chunk-FONOS5RN.js.map +0 -1
  424. package/dist/chunk-FQEHSKEI.js +0 -38
  425. package/dist/chunk-FQEHSKEI.js.map +0 -1
  426. package/dist/chunk-HY5MPISE.js.map +0 -1
  427. package/dist/chunk-I45AU6KH.js.map +0 -1
  428. package/dist/chunk-IJS7TPGV.js.map +0 -1
  429. package/dist/chunk-OWNMRMPN.js +0 -14
  430. package/dist/chunk-OWNMRMPN.js.map +0 -1
  431. package/dist/chunk-RJFGWJ4W.js.map +0 -1
  432. package/dist/chunk-TVYH4AN7.js.map +0 -1
  433. package/dist/chunk-TYHR4VNM.js.map +0 -1
  434. package/dist/chunk-VAXCXZ53.js.map +0 -1
  435. package/dist/chunk-XNIYSAMJ.js.map +0 -1
  436. package/dist/chunk-Y2YA7QRF.js +0 -17
  437. package/dist/chunk-Y2YA7QRF.js.map +0 -1
  438. package/src/tokens/avatar.css +0 -24
  439. package/src/tokens/icons.css +0 -11
  440. package/src/tokens/layers.css +0 -11
@@ -0,0 +1,10 @@
1
+ const SLOTS = Symbol.for('zyncat.ui.shared-slots');
2
+
3
+ type SlotHost = { [SLOTS]?: Map<string, unknown> };
4
+
5
+ export function sharedSlot<T>(key: string, create: () => T): T {
6
+ const host = globalThis as SlotHost;
7
+ const slots = (host[SLOTS] ??= new Map<string, unknown>());
8
+ if (!slots.has(key)) slots.set(key, create());
9
+ return slots.get(key) as T;
10
+ }
package/src/styles.css CHANGED
@@ -1,16 +1,10 @@
1
- /* Zyncat UI base layer - import ONCE at your app root: import '@zyncat/ui/styles.css';
2
- Fonts, design tokens (:root variables) and the shared `glass` utility.
3
-
4
- Everything the library ships sits in the `zyncat` cascade layers, so any unlayered
5
- rule in your own stylesheets beats the library without specificity games.
6
-
7
- Per-component CSS is NOT here on purpose: every component imports its own
8
- stylesheet, so the consumer's bundler code-splits and lazy-loads it with the
9
- component. This file is only the always-needed global layer.
10
- Order matters: fonts - primitives - semantics - shared utilities. */
1
+ /* Zyncat UI global layer - import ONCE at your app root: import '@zyncat/ui/styles.css'.
2
+ Fonts, tokens, the dark theme, the body defaults and the shared glass utility, in the `zyncat`
3
+ layers so an unlayered rule of yours wins. Component CSS ships per component. Order matters. */
11
4
 
12
5
  @layer zyncat.tokens, zyncat.components;
13
6
 
7
+ @import './tokens/decisions.css';
14
8
  @import './tokens/fonts.css';
15
9
 
16
10
  @import './tokens/color.css';
@@ -20,12 +14,10 @@
20
14
  @import './tokens/elevation.css';
21
15
  @import './tokens/motion.css';
22
16
  @import './tokens/glass.css';
23
- @import './tokens/icons.css';
24
- @import './tokens/layers.css';
25
- @import './tokens/avatar.css';
26
17
 
27
18
  @import './tokens/semantic.css';
19
+ @import './tokens/dark.css';
20
+ @import './tokens/base.css';
28
21
 
29
- /* Cross-cutting frosted-surface utility shared by several unrelated components
30
- (badge, toast, select, icon); kept global instead of duplicated per component. */
22
+ /* The glass utility serves badge, toast, select and icon, so it ships here rather than per component. */
31
23
  @import './components/internal/glass/glass.css';
@@ -0,0 +1,15 @@
1
+ /* The base layer paints the page - app surface, body ink, body type - so `data-theme` on <html>
2
+ turns the whole page, not only the components. Its own cascade layer, after the components, so
3
+ a consumer's unlayered body rule still wins; antialiasing keeps light ink from bloating. */
4
+
5
+ @layer zyncat.tokens, zyncat.components;
6
+
7
+ @layer zyncat.base {
8
+ body {
9
+ background: var(--bg-app);
10
+ color: var(--text-body);
11
+ font: var(--type-body);
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+ }
@@ -1,69 +1,29 @@
1
- /* Color primitives - the closed neutral + status ramps.
2
- The neutral ramp is a cool ink gray: the accent hue (198) at whisper chroma throughout,
3
- arced to peak at the mid steps (500-700) and fall away at both ends - chrome, fills and
4
- text share one temperature with the teal accent instead of fighting it. The canvas is
5
- pure white, so the ramp reads as ink on paper rather than a tinted wash; the light fills
6
- (100-150) sit airy so a recessed well never turns into a heavy slab. Lightness is the
7
- contrast spine - retune chroma freely, move an L step and every text-on-surface pair
8
- moves with it. */
1
+ /* The neutral ramp and the shadow ink. The ramp is --neutral's hue at whisper chroma, peaking at
2
+ the mid steps, so chrome, fills and text share the accent's temperature, and lightness is the
3
+ contrast spine. The ramp is a material: the dark theme derives its roles from --neutral. */
9
4
 
10
5
  @layer zyncat.tokens, zyncat.components;
11
6
 
12
7
  @layer zyncat.tokens {
13
8
  :root {
14
9
  --gray-0: oklch(1 0 0);
15
- --gray-25: oklch(0.992 0.002 198);
16
- --gray-50: oklch(0.984 0.003 198);
17
- --gray-100: oklch(0.97 0.004 198);
18
- --gray-150: oklch(0.954 0.005 198);
19
- --gray-200: oklch(0.924 0.006 198);
20
- --gray-300: oklch(0.874 0.007 198);
21
- --gray-400: oklch(0.765 0.009 198);
22
- --gray-500: oklch(0.642 0.011 198);
23
- --gray-600: oklch(0.532 0.012 198);
24
- --gray-700: oklch(0.422 0.012 198);
25
- --gray-800: oklch(0.305 0.01 198);
26
- --gray-900: oklch(0.225 0.008 198);
27
- --gray-950: oklch(0.165 0.007 198);
28
-
29
- --teal-50: oklch(0.972 0.02 198);
30
- --teal-100: oklch(0.935 0.04 198);
31
- --teal-200: oklch(0.88 0.066 198);
32
- --teal-300: oklch(0.795 0.092 198);
33
- --teal-400: oklch(0.705 0.112 198);
34
- --teal-500: oklch(0.63 0.118 198);
35
- --teal-600: oklch(0.56 0.114 198);
36
- --teal-700: oklch(0.478 0.1 198);
37
- --teal-800: oklch(0.4 0.082 198);
38
- --teal-900: oklch(0.32 0.062 198);
39
-
40
- --green-50: oklch(0.965 0.028 152);
41
- --green-500: oklch(0.62 0.13 152);
42
- --green-600: oklch(0.548 0.122 152);
43
- --green-700: oklch(0.462 0.1 152);
44
-
45
- --amber-50: oklch(0.972 0.034 75);
46
- --amber-500: oklch(0.76 0.14 75);
47
- --amber-600: oklch(0.7 0.142 75);
48
- --amber-700: oklch(0.56 0.118 75);
49
-
50
- --red-50: oklch(0.968 0.02 27);
51
- --red-300: oklch(0.8 0.09 27);
52
- --red-400: oklch(0.64 0.2 27);
53
- --red-500: oklch(0.602 0.196 27);
54
- --red-600: oklch(0.545 0.196 27);
55
- --red-700: oklch(0.478 0.172 27);
56
-
57
- /* Wash tints - glassy active/selected fills that let the surface show through; low alpha per hue.
58
- -strong is the press step of the gray wash (hover 6% < press 10%). */
59
- --gray-wash: color-mix(in oklab, var(--gray-700) 6%, transparent);
60
- --gray-wash-strong: color-mix(in oklab, var(--gray-700) 10%, transparent);
61
- --teal-wash: oklch(0.63 0.118 198 / 0.05);
62
- --green-wash: oklch(0.62 0.13 152 / 0.1);
63
- --amber-wash: oklch(0.76 0.14 75 / 0.12);
64
- --red-wash: oklch(0.602 0.196 27 / 0.1);
10
+ --gray-50: oklch(from var(--neutral) 0.984 0.003 h);
11
+ --gray-100: oklch(from var(--neutral) 0.97 0.004 h);
12
+ --gray-150: oklch(from var(--neutral) 0.954 0.005 h);
13
+ --gray-200: oklch(from var(--neutral) 0.924 0.006 h);
14
+ --gray-300: oklch(from var(--neutral) 0.874 0.007 h);
15
+ --gray-400: oklch(from var(--neutral) 0.765 0.009 h);
16
+ --gray-500: oklch(from var(--neutral) 0.642 0.011 h);
17
+ --gray-600: oklch(from var(--neutral) 0.532 0.012 h);
18
+ --gray-700: oklch(from var(--neutral) 0.422 0.012 h);
19
+ --gray-800: oklch(from var(--neutral) 0.305 0.01 h);
20
+ --gray-900: oklch(from var(--neutral) 0.225 0.008 h);
21
+ --gray-950: oklch(from var(--neutral) 0.165 0.007 h);
22
+ }
65
23
 
66
- /* Cool near-black shadow ink - matches the cool neutral ramp on the white canvas. */
24
+ :root,
25
+ [data-theme='light'] {
26
+ /* Cool near-black shadow ink on the white canvas; the dark theme casts pure black. */
67
27
  --shadow-rgb: 15 22 25;
68
28
  }
69
29
  }
@@ -9,262 +9,190 @@ import type { CSSProperties } from 'react';
9
9
  * Generated from the token and component CSS by `scripts/gen-theme.mjs` - `pnpm sync` rebuilds it.
10
10
  */
11
11
  export interface ConfettiStyle extends CSSProperties {
12
- /** `--confetti-paper-1`. Default: `oklch(0.53 0.2 288)`. */
12
+ /** `--confetti-paper-1` - The five papers a burst draws from; a slot set to a role follows the theme. Default: `oklch(0.53 0.2 288)`. */
13
13
  '--confetti-paper-1'?: string | number;
14
- /** `--confetti-paper-2`. Default: `var(--accent)`. */
14
+ /** `--confetti-paper-2` - The five papers a burst draws from; a slot set to a role follows the theme. Default: `var(--accent)`. */
15
15
  '--confetti-paper-2'?: string | number;
16
- /** `--confetti-paper-3`. Default: `oklch(0.78 0.115 62)`. */
16
+ /** `--confetti-paper-3` - The five papers a burst draws from; a slot set to a role follows the theme. Default: `oklch(0.78 0.115 62)`. */
17
17
  '--confetti-paper-3'?: string | number;
18
- /** `--confetti-paper-4`. Default: `oklch(0.67 0.18 12)`. */
18
+ /** `--confetti-paper-4` - The five papers a burst draws from; a slot set to a role follows the theme. Default: `oklch(0.67 0.18 12)`. */
19
19
  '--confetti-paper-4'?: string | number;
20
- /** `--confetti-paper-5`. Default: `var(--text-strong)`. */
20
+ /** `--confetti-paper-5` - The five papers a burst draws from; a slot set to a role follows the theme. Default: `var(--text-strong)`. */
21
21
  '--confetti-paper-5'?: string | number;
22
- /** `--confetti-weights`. Default: `1 1 1 1 0.45`. */
22
+ /** `--confetti-weights` - How often each paper appears - five weights, in slot order. Default: `1 1 1 1 0.45`. */
23
23
  '--confetti-weights'?: string | number;
24
- /** `--confetti-ink`. Default: `var(--text-strong)`. */
24
+ /** `--confetti-ink` - What the reverse side of a piece darkens toward. Default: `var(--text-strong)`. */
25
25
  '--confetti-ink'?: string | number;
26
- /** `--confetti-light`. Default: `var(--bg-surface)`. */
26
+ /** `--confetti-light` - What the glossy face of a piece brightens toward. Default: `var(--bg-surface)`. */
27
27
  '--confetti-light'?: string | number;
28
- /** `--confetti-shade`. Default: `42%`. */
28
+ /** `--confetti-shade` - How far the reverse side leans toward the ink. Default: `42%`. */
29
29
  '--confetti-shade'?: string | number;
30
- /** `--confetti-gloss`. Default: `66%`. */
30
+ /** `--confetti-gloss` - How far the glossy face leans toward the light. Default: `66%`. */
31
31
  '--confetti-gloss'?: string | number;
32
- /** `--confetti-layer`. Default: `var(--layer-toast)`. */
32
+ /** `--confetti-layer` - The z-index of a viewport-field burst. Default: `var(--layer-toast)`. */
33
33
  '--confetti-layer'?: string | number;
34
- /** `--confetti-reverse-1`. Default: `color-mix(in oklab, var(--confetti-ink) var(--confetti-shade), var(--confetti-paper-1))`. */
35
- '--confetti-reverse-1'?: string | number;
36
- /** `--confetti-reverse-2`. Default: `color-mix(in oklab, var(--confetti-ink) var(--confetti-shade), var(--confetti-paper-2))`. */
37
- '--confetti-reverse-2'?: string | number;
38
- /** `--confetti-reverse-3`. Default: `color-mix(in oklab, var(--confetti-ink) var(--confetti-shade), var(--confetti-paper-3))`. */
39
- '--confetti-reverse-3'?: string | number;
40
- /** `--confetti-reverse-4`. Default: `color-mix(in oklab, var(--confetti-ink) var(--confetti-shade), var(--confetti-paper-4))`. */
41
- '--confetti-reverse-4'?: string | number;
42
- /** `--confetti-reverse-5`. Default: `color-mix(in oklab, var(--confetti-ink) var(--confetti-shade), var(--confetti-paper-5))`. */
43
- '--confetti-reverse-5'?: string | number;
44
- /** `--confetti-sheen-1`. Default: `color-mix(in oklab, var(--confetti-light) var(--confetti-gloss), var(--confetti-paper-1))`. */
45
- '--confetti-sheen-1'?: string | number;
46
- /** `--confetti-sheen-2`. Default: `color-mix(in oklab, var(--confetti-light) var(--confetti-gloss), var(--confetti-paper-2))`. */
47
- '--confetti-sheen-2'?: string | number;
48
- /** `--confetti-sheen-3`. Default: `color-mix(in oklab, var(--confetti-light) var(--confetti-gloss), var(--confetti-paper-3))`. */
49
- '--confetti-sheen-3'?: string | number;
50
- /** `--confetti-sheen-4`. Default: `color-mix(in oklab, var(--confetti-light) var(--confetti-gloss), var(--confetti-paper-4))`. */
51
- '--confetti-sheen-4'?: string | number;
52
- /** `--confetti-sheen-5`. Default: `color-mix(in oklab, var(--confetti-light) var(--confetti-gloss), var(--confetti-paper-5))`. */
53
- '--confetti-sheen-5'?: string | number;
54
34
  }
55
35
 
56
36
  /** Inline styles for FlowField, including its `--flow-field-*` knobs. */
57
37
  export interface FlowFieldStyle extends CSSProperties {
58
- /** `--flow-field-ink`. Default: `var(--text-subtle)`. */
38
+ /** `--flow-field-ink` - The particle colour at rest - the ramp's cold end. Default: `var(--text-subtle)`. */
59
39
  '--flow-field-ink'?: string | number;
60
- /** `--flow-field-accent`. Default: `var(--accent)`. */
40
+ /** `--flow-field-accent` - The particle colour at full speed - the ramp's hot end. Default: `var(--accent)`. */
61
41
  '--flow-field-accent'?: string | number;
62
- /** `--flow-field-min-height`. Default: `var(--space-10)`. */
42
+ /** `--flow-field-min-height` - The field's minimum height before content sizes it. Default: `var(--space-10)`. */
63
43
  '--flow-field-min-height'?: string | number;
64
- /** `--flow-field-ramp-0`. Default: `var(--flow-field-ink)`. */
44
+ /** `--flow-field-ramp-0` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `var(--flow-field-ink)`. */
65
45
  '--flow-field-ramp-0'?: string | number;
66
- /** `--flow-field-ramp-1`. Default: `color-mix(in oklab, var(--flow-field-accent) 9%, var(--flow-field-ink))`. */
46
+ /** `--flow-field-ramp-1` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 9%, var(--flow-field-ink))`. */
67
47
  '--flow-field-ramp-1'?: string | number;
68
- /** `--flow-field-ramp-2`. Default: `color-mix(in oklab, var(--flow-field-accent) 18%, var(--flow-field-ink))`. */
48
+ /** `--flow-field-ramp-2` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 18%, var(--flow-field-ink))`. */
69
49
  '--flow-field-ramp-2'?: string | number;
70
- /** `--flow-field-ramp-3`. Default: `color-mix(in oklab, var(--flow-field-accent) 27%, var(--flow-field-ink))`. */
50
+ /** `--flow-field-ramp-3` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 27%, var(--flow-field-ink))`. */
71
51
  '--flow-field-ramp-3'?: string | number;
72
- /** `--flow-field-ramp-4`. Default: `color-mix(in oklab, var(--flow-field-accent) 36%, var(--flow-field-ink))`. */
52
+ /** `--flow-field-ramp-4` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 36%, var(--flow-field-ink))`. */
73
53
  '--flow-field-ramp-4'?: string | number;
74
- /** `--flow-field-ramp-5`. Default: `color-mix(in oklab, var(--flow-field-accent) 45%, var(--flow-field-ink))`. */
54
+ /** `--flow-field-ramp-5` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 45%, var(--flow-field-ink))`. */
75
55
  '--flow-field-ramp-5'?: string | number;
76
- /** `--flow-field-ramp-6`. Default: `color-mix(in oklab, var(--flow-field-accent) 55%, var(--flow-field-ink))`. */
56
+ /** `--flow-field-ramp-6` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 55%, var(--flow-field-ink))`. */
77
57
  '--flow-field-ramp-6'?: string | number;
78
- /** `--flow-field-ramp-7`. Default: `color-mix(in oklab, var(--flow-field-accent) 64%, var(--flow-field-ink))`. */
58
+ /** `--flow-field-ramp-7` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 64%, var(--flow-field-ink))`. */
79
59
  '--flow-field-ramp-7'?: string | number;
80
- /** `--flow-field-ramp-8`. Default: `color-mix(in oklab, var(--flow-field-accent) 73%, var(--flow-field-ink))`. */
60
+ /** `--flow-field-ramp-8` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 73%, var(--flow-field-ink))`. */
81
61
  '--flow-field-ramp-8'?: string | number;
82
- /** `--flow-field-ramp-9`. Default: `color-mix(in oklab, var(--flow-field-accent) 82%, var(--flow-field-ink))`. */
62
+ /** `--flow-field-ramp-9` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 82%, var(--flow-field-ink))`. */
83
63
  '--flow-field-ramp-9'?: string | number;
84
- /** `--flow-field-ramp-10`. Default: `color-mix(in oklab, var(--flow-field-accent) 91%, var(--flow-field-ink))`. */
64
+ /** `--flow-field-ramp-10` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `color-mix(in oklab, var(--flow-field-accent) 91%, var(--flow-field-ink))`. */
85
65
  '--flow-field-ramp-10'?: string | number;
86
- /** `--flow-field-ramp-11`. Default: `var(--flow-field-accent)`. */
66
+ /** `--flow-field-ramp-11` - The twelve stops from ink to accent, sampled at the next measure; set all twelve for a ramp of your own. Default: `var(--flow-field-accent)`. */
87
67
  '--flow-field-ramp-11'?: string | number;
88
68
  }
89
69
 
90
70
  /** Inline styles for Lens, including its `--lens-*` knobs. */
91
71
  export interface LensStyle extends CSSProperties {
92
- /** `--lens-ink`. Default: `var(--text-strong)`. */
72
+ /** `--lens-ink` - The ink of the glass's edge, vignette and shadow. Default: `var(--text-strong)`. */
93
73
  '--lens-ink'?: string | number;
94
- /** `--lens-surface`. Default: `var(--bg-surface)`. */
74
+ /** `--lens-surface` - The surface behind the glass. Default: `var(--bg-surface)`. */
95
75
  '--lens-surface'?: string | number;
96
- /** `--lens-edge`. Default: `color-mix(in oklab, var(--lens-ink) 16%, transparent)`. */
97
- '--lens-edge'?: string | number;
98
- /** `--lens-highlight`. Default: `color-mix(in oklab, var(--bg-surface) 90%, transparent)`. */
99
- '--lens-highlight'?: string | number;
100
- /** `--lens-vignette-mid`. Default: `5%`. */
101
- '--lens-vignette-mid'?: string | number;
102
- /** `--lens-vignette-edge`. Default: `15%`. */
103
- '--lens-vignette-edge'?: string | number;
104
- /** `--lens-fringe-warm`. Default: `oklch(0.72 0.16 12 / 0.3)`. */
76
+ /** `--lens-fringe-warm` - The chromatic fringe on the warm edge of the glass. Default: `oklch(0.72 0.16 12 / 0.3)`. */
105
77
  '--lens-fringe-warm'?: string | number;
106
- /** `--lens-fringe-cool`. Default: `oklch(0.7 0.15 265 / 0.34)`. */
78
+ /** `--lens-fringe-cool` - The chromatic fringe on the cool edge of the glass. Default: `oklch(0.7 0.15 265 / 0.34)`. */
107
79
  '--lens-fringe-cool'?: string | number;
108
- /** `--lens-rim-start`. Default: `79%`. */
109
- '--lens-rim-start'?: string | number;
110
- /** `--lens-rim-end`. Default: `87%`. */
111
- '--lens-rim-end'?: string | number;
112
80
  }
113
81
 
114
82
  /** Inline styles for MorphingText, including its `--morphing-text-*` knobs. */
115
83
  export interface MorphingTextStyle extends CSSProperties {
116
- /** `--morphing-text-ink`. Default: `var(--text-strong)`. */
84
+ /** `--morphing-text-ink` - Letter ink. Default: `var(--text-strong)`. */
117
85
  '--morphing-text-ink'?: string | number;
118
- /** `--morphing-text-size`. Default: `var(--size-display-lg)`. */
86
+ /** `--morphing-text-size` - Letter size. Default: `var(--size-display-lg)`. */
119
87
  '--morphing-text-size'?: string | number;
120
- /** `--morphing-text-weight`. Default: `var(--weight-medium)`. */
88
+ /** `--morphing-text-weight` - Letter weight. Default: `var(--weight-medium)`. */
121
89
  '--morphing-text-weight'?: string | number;
122
- /** `--morphing-text-leading`. Default: `1.2`. */
90
+ /** `--morphing-text-leading` - Line height, unitless. Default: `1.2`. */
123
91
  '--morphing-text-leading'?: string | number;
124
- /** `--morphing-text-tracking`. Default: `var(--tracking-display)`. */
92
+ /** `--morphing-text-tracking` - Letter spacing. Default: `var(--tracking-display)`. */
125
93
  '--morphing-text-tracking'?: string | number;
126
- /** `--morphing-text-smear`. Default: `1`. */
94
+ /** `--morphing-text-smear` - How much letters blur on the way between words; 0 cuts clean. Default: `1`. */
127
95
  '--morphing-text-smear'?: string | number;
128
- /** `--morphing-text-rule-ink`. Default: `var(--text-strong)`. */
96
+ /** `--morphing-text-rule-ink` - The rule at rest. Default: `var(--text-strong)`. */
129
97
  '--morphing-text-rule-ink'?: string | number;
130
- /** `--morphing-text-rule-accent`. Default: `var(--accent)`. */
98
+ /** `--morphing-text-rule-accent` - The rule while a morph heats it. Default: `var(--accent)`. */
131
99
  '--morphing-text-rule-accent'?: string | number;
132
- /** `--morphing-text-rule-height`. Default: `1px`. */
100
+ /** `--morphing-text-rule-height` - The rule's thickness. Default: `1px`. */
133
101
  '--morphing-text-rule-height'?: string | number;
134
- /** `--morphing-text-rule-gap`. Default: `var(--space-3)`. */
102
+ /** `--morphing-text-rule-gap` - Space between the word and the rule. Default: `var(--space-3)`. */
135
103
  '--morphing-text-rule-gap'?: string | number;
136
- /** `--morphing-text-rule-rest`. Default: `0.1`. */
137
- '--morphing-text-rule-rest'?: string | number;
138
- /** `--morphing-text-rule-lift`. Default: `0.3`. */
139
- '--morphing-text-rule-lift'?: string | number;
140
104
  }
141
105
 
142
106
  /** Inline styles for Odometer, including its `--odometer-*` knobs. */
143
107
  export interface OdometerStyle extends CSSProperties {
144
- /** `--odometer-cell`. Default: `1em`. */
145
- '--odometer-cell'?: string | number;
146
- /** `--odometer-digit`. Default: `1ch`. */
147
- '--odometer-digit'?: string | number;
148
- /** `--odometer-gap`. Default: `0.02em`. */
108
+ /** `--odometer-gap` - Space between digit columns. Default: `0.02em`. */
149
109
  '--odometer-gap'?: string | number;
150
- /** `--odometer-ink`. Default: `var(--text-strong)`. */
110
+ /** `--odometer-ink` - Digit ink. Default: `var(--text-strong)`. */
151
111
  '--odometer-ink'?: string | number;
152
- /** `--odometer-accent`. Default: `var(--accent)`. */
112
+ /** `--odometer-accent` - The tint digits take while they roll fast. Default: `var(--accent)`. */
153
113
  '--odometer-accent'?: string | number;
154
- /** `--odometer-separator-ink`. Default: `var(--text-muted)`. */
114
+ /** `--odometer-separator-ink` - The thousands separator. Default: `var(--text-muted)`. */
155
115
  '--odometer-separator-ink'?: string | number;
156
- /** `--odometer-size`. Default: `var(--size-display)`. */
116
+ /** `--odometer-size` - Digit size. Default: `var(--size-display)`. */
157
117
  '--odometer-size'?: string | number;
158
- /** `--odometer-weight`. Default: `var(--weight-medium)`. */
118
+ /** `--odometer-weight` - Digit weight. Default: `var(--weight-medium)`. */
159
119
  '--odometer-weight'?: string | number;
160
120
  }
161
121
 
162
122
  /** Inline styles for TypingLines, including its `--typing-lines-*` knobs. */
163
123
  export interface TypingLinesStyle extends CSSProperties {
164
- /** `--typing-lines-ink`. Default: `var(--text-strong)`. */
124
+ /** `--typing-lines-ink` - Letter ink. Default: `var(--text-strong)`. */
165
125
  '--typing-lines-ink'?: string | number;
166
- /** `--typing-lines-caret-ink`. Default: `var(--accent)`. */
126
+ /** `--typing-lines-caret-ink` - The caret. Default: `var(--accent)`. */
167
127
  '--typing-lines-caret-ink'?: string | number;
168
- /** `--typing-lines-size`. Default: `var(--size-title)`. */
128
+ /** `--typing-lines-size` - Letter size. Default: `var(--size-title)`. */
169
129
  '--typing-lines-size'?: string | number;
170
- /** `--typing-lines-weight`. Default: `var(--weight-regular)`. */
130
+ /** `--typing-lines-weight` - Letter weight. Default: `var(--weight-regular)`. */
171
131
  '--typing-lines-weight'?: string | number;
172
- /** `--typing-lines-leading`. Default: `1.4`. */
132
+ /** `--typing-lines-leading` - Line height, unitless. Default: `1.4`. */
173
133
  '--typing-lines-leading'?: string | number;
174
- /** `--typing-lines-blink`. Default: `1080ms`. */
134
+ /** `--typing-lines-blink` - The caret's blink period. Default: `1080ms`. */
175
135
  '--typing-lines-blink'?: string | number;
176
- /** `--typing-lines-caret-gap`. Default: `0.12em`. */
136
+ /** `--typing-lines-caret-gap` - Space between the last glyph and the caret. Default: `0.12em`. */
177
137
  '--typing-lines-caret-gap'?: string | number;
178
138
  }
179
139
 
180
140
  /** Inline styles for WeightField, including its `--weight-field-*` knobs. */
181
141
  export interface WeightFieldStyle extends CSSProperties {
182
- /** `--weight-field-ink`. Default: `var(--text-strong)`. */
142
+ /** `--weight-field-ink` - Letter ink. Default: `var(--text-strong)`. */
183
143
  '--weight-field-ink'?: string | number;
184
- /** `--weight-field-size`. Default: `6rem`. */
144
+ /** `--weight-field-size` - Letter size. Default: `6rem`. */
185
145
  '--weight-field-size'?: string | number;
186
- /** `--weight-field-leading`. Default: `1`. */
146
+ /** `--weight-field-leading` - Line height, unitless. Default: `1`. */
187
147
  '--weight-field-leading'?: string | number;
188
- /** `--weight-field-align`. Default: `center`. */
148
+ /** `--weight-field-align` - Where the units sit on the line - center, start or end. Default: `center`. */
189
149
  '--weight-field-align'?: string | number;
190
- /** `--weight-field-pad`. Default: `var(--space-6) var(--space-4)`. */
150
+ /** `--weight-field-pad` - Padding around the field. Default: `var(--space-6) var(--space-4)`. */
191
151
  '--weight-field-pad'?: string | number;
192
- /** `--weight-field-tracking`. Default: `-0.05em`. */
152
+ /** `--weight-field-tracking` - Letter spacing. Default: `-0.05em`. */
193
153
  '--weight-field-tracking'?: string | number;
194
- /** `--weight-field-rest-weight`. Default: `300`. */
154
+ /** `--weight-field-rest-weight` - A unit's weight at rest. Default: `300`. */
195
155
  '--weight-field-rest-weight'?: string | number;
196
- /** `--weight-field-far-weight`. Default: `400`. */
156
+ /** `--weight-field-far-weight` - The weight two units from the pointer. Default: `400`. */
197
157
  '--weight-field-far-weight'?: string | number;
198
- /** `--weight-field-near-weight`. Default: `600`. */
158
+ /** `--weight-field-near-weight` - The weight next to the pointer. Default: `600`. */
199
159
  '--weight-field-near-weight'?: string | number;
200
- /** `--weight-field-peak-weight`. Default: `900`. */
160
+ /** `--weight-field-peak-weight` - The weight under the pointer. Default: `900`. */
201
161
  '--weight-field-peak-weight'?: string | number;
202
- /** `--weight-field-hover-padding`. Default: `calc(1em / 12)`. */
162
+ /** `--weight-field-hover-padding` - How much a unit widens under the pointer. Default: `calc(1em / 12)`. */
203
163
  '--weight-field-hover-padding'?: string | number;
204
- /** `--weight-field-stroke`. Default: `calc(1em * 125 / 6000)`. */
164
+ /** `--weight-field-stroke` - The text stroke every unit carries; the peak letter doubles it. Default: `calc(1em * 125 / 6000)`. */
205
165
  '--weight-field-stroke'?: string | number;
206
- /** `--weight-field-stroke-peak`. Default: `calc(var(--weight-field-stroke) * 2)`. */
207
- '--weight-field-stroke-peak'?: string | number;
208
- /** `--weight-field-duration`. Default: `400ms`. */
166
+ /** `--weight-field-duration` - How long a unit takes to settle at a new weight. Default: `400ms`. */
209
167
  '--weight-field-duration'?: string | number;
210
- /** `--weight-field-ease`. Default: `ease`. */
168
+ /** `--weight-field-ease` - The settle curve. Default: `ease`. */
211
169
  '--weight-field-ease'?: string | number;
212
- /** `--weight-field-ramp`. Default: `calc(var(--weight-field-duration) / var(--weight-field-speed))`. */
213
- '--weight-field-ramp'?: string | number;
214
170
  }
215
171
 
216
172
  /** Inline styles for SupportRail, including its `--support-rail-*` knobs. */
217
173
  export interface SupportRailStyle extends CSSProperties {
218
- /** `--support-rail-width`. Default: `318px`. */
174
+ /** `--support-rail-width` - Panel width; the rail never exceeds its container. Default: `318px`. */
219
175
  '--support-rail-width'?: string | number;
220
- /** `--support-rail-needle-width`. Default: `42px`. */
221
- '--support-rail-needle-width'?: string | number;
222
- /** `--support-rail-needle-height`. Default: `150px`. */
223
- '--support-rail-needle-height'?: string | number;
224
- /** `--support-rail-needle-duck`. Default: `0.55`. */
225
- '--support-rail-needle-duck'?: string | number;
226
- /** `--support-rail-needle-tracking`. Default: `0.22em`. */
227
- '--support-rail-needle-tracking'?: string | number;
228
- /** `--support-rail-caps-tracking`. Default: `0.13em`. */
229
- '--support-rail-caps-tracking'?: string | number;
230
- /** `--support-rail-grabber-width`. Default: `13px`. */
231
- '--support-rail-grabber-width'?: string | number;
232
- /** `--support-rail-grabber-pill`. Default: `34px`. */
233
- '--support-rail-grabber-pill'?: string | number;
234
- /** `--support-rail-live-size`. Default: `6px`. */
235
- '--support-rail-live-size'?: string | number;
236
- /** `--support-rail-live-reach`. Default: `2.6`. */
237
- '--support-rail-live-reach'?: string | number;
238
- /** `--support-rail-rule-width`. Default: `1.5px`. */
239
- '--support-rail-rule-width'?: string | number;
240
- /** `--support-rail-rule-height`. Default: `20px`. */
241
- '--support-rail-rule-height'?: string | number;
242
- /** `--support-rail-row-pad-block`. Default: `var(--space-4)`. */
176
+ /** `--support-rail-row-pad-block` - Row padding on the block axis - the density knob. Default: `var(--space-4)`. */
243
177
  '--support-rail-row-pad-block'?: string | number;
244
- /** `--support-rail-row-pad-inline`. Default: `var(--space-4)`. */
178
+ /** `--support-rail-row-pad-inline` - Row padding on the inline axis - the density knob. Default: `var(--space-4)`. */
245
179
  '--support-rail-row-pad-inline'?: string | number;
246
- /** `--support-rail-row-nudge`. Default: `5px`. */
247
- '--support-rail-row-nudge'?: string | number;
248
- /** `--support-rail-surface`. Default: `var(--bg-subtle)`. */
180
+ /** `--support-rail-surface` - The panel and the needle. Default: `var(--bg-subtle)`. */
249
181
  '--support-rail-surface'?: string | number;
250
- /** `--support-rail-surface-raised`. Default: `var(--bg-surface)`. */
182
+ /** `--support-rail-surface-raised` - The needle while hovered. Default: `var(--bg-surface)`. */
251
183
  '--support-rail-surface-raised'?: string | number;
252
- /** `--support-rail-line`. Default: `var(--border-default)`. */
184
+ /** `--support-rail-line` - The panel's edge and the needle's border. Default: `var(--border-default)`. */
253
185
  '--support-rail-line'?: string | number;
254
- /** `--support-rail-line-soft`. Default: `var(--border-subtle)`. */
186
+ /** `--support-rail-line-soft` - Row dividers and the grabber's edge. Default: `var(--border-subtle)`. */
255
187
  '--support-rail-line-soft'?: string | number;
256
- /** `--support-rail-accent`. Default: `var(--accent)`. */
188
+ /** `--support-rail-accent` - The needle's rule. Default: `var(--accent)`. */
257
189
  '--support-rail-accent'?: string | number;
258
- /** `--support-rail-live-color`. Default: `var(--success)`. */
190
+ /** `--support-rail-live-color` - The live dot and its pulse. Default: `var(--success)`. */
259
191
  '--support-rail-live-color'?: string | number;
260
- /** `--support-rail-radius`. Default: `var(--radius-2xl)`. */
192
+ /** `--support-rail-radius` - The needle's outer corners. Default: `var(--radius-2xl)`. */
261
193
  '--support-rail-radius'?: string | number;
262
- /** `--support-rail-open-duration`. Default: `calc(var(--duration-slower) * 1.4)`. */
194
+ /** `--support-rail-open-duration` - How long the panel takes to open. Default: `calc(var(--duration-slower) * 1.4)`. */
263
195
  '--support-rail-open-duration'?: string | number;
264
- /** `--support-rail-close-duration`. Default: `var(--duration-slower)`. */
196
+ /** `--support-rail-close-duration` - How long the panel takes to close. Default: `var(--duration-slower)`. */
265
197
  '--support-rail-close-duration'?: string | number;
266
- /** `--support-rail-needle-delay`. Default: `calc(var(--duration-slow) * 0.5)`. */
267
- '--support-rail-needle-delay'?: string | number;
268
- /** `--support-rail-stagger`. Default: `calc(var(--duration-fast) * 0.3)`. */
269
- '--support-rail-stagger'?: string | number;
270
198
  }
@@ -0,0 +1,63 @@
1
+ /* The dark theme - `data-theme="dark"` on <html> or any subtree root, `data-theme="light"` for a
2
+ light island inside it. Every value here is a polarity with a light twin, and gen-theme holds
3
+ the two sides together. Surfaces step lighter as they rise; ink steps down from near-white. */
4
+
5
+ @layer zyncat.tokens, zyncat.components;
6
+
7
+ @layer zyncat.tokens {
8
+ [data-theme='dark'] {
9
+ color-scheme: dark;
10
+
11
+ --bg-app: oklch(from var(--neutral) 0.165 0.006 h);
12
+ --bg-surface: oklch(from var(--neutral) 0.195 0.007 h);
13
+ --bg-surface-raised: oklch(from var(--neutral) 0.24 0.008 h);
14
+ --bg-subtle: oklch(from var(--neutral) 0.222 0.007 h);
15
+ --bg-muted: oklch(from var(--neutral) 0.255 0.008 h);
16
+ --bg-inset: oklch(from var(--neutral) 0.13 0.006 h);
17
+ --bg-overlay: oklch(from var(--neutral) 0.06 0.004 h / 0.64);
18
+
19
+ --text-strong: oklch(from var(--neutral) 0.975 0.003 h);
20
+ --text-body: oklch(from var(--neutral) 0.91 0.005 h);
21
+ --text-secondary: oklch(from var(--neutral) 0.82 0.007 h);
22
+ --text-muted: oklch(from var(--neutral) 0.72 0.01 h);
23
+ --text-subtle: oklch(from var(--neutral) 0.62 0.012 h);
24
+ --text-disabled: oklch(from var(--neutral) 0.49 0.012 h);
25
+ --text-inverse: oklch(from var(--neutral) 0.165 0.006 h);
26
+
27
+ --border-subtle: oklch(from var(--neutral) 0.265 0.008 h);
28
+ --border-default: oklch(from var(--neutral) 0.315 0.009 h);
29
+ --border-strong: oklch(from var(--neutral) 0.4 0.011 h);
30
+
31
+ --shadow-rgb: 0 0 0;
32
+ --shadow-strength: 3.5;
33
+ --sheen-strength: 0.2;
34
+ --glow-strength: 1;
35
+
36
+ /* The fills drop a step, since a light face reads as a light source on dark, and the lift they
37
+ rise to stays put. The steps the light side pins near white re-derive from their decision. */
38
+ --accent-fill: oklch(from var(--accent) calc(l - 0.06) calc(c - 0.01) h);
39
+ --accent-subtle: oklch(from var(--accent) 0.27 0.045 h);
40
+ --accent-border: oklch(from var(--accent) 0.45 0.09 h);
41
+ --accent-disabled: oklch(from var(--accent) 0.42 0.06 h);
42
+ --accent-wash: oklch(from var(--accent) l c h / 0.14);
43
+ --text-accent: oklch(from var(--accent) calc(l + 0.14) calc(c - 0.012) h);
44
+
45
+ --info-subtle: oklch(from var(--info) 0.265 0.045 h);
46
+ --info-text: oklch(from var(--info) calc(l + 0.22) calc(c - 0.014) h);
47
+ --info-wash: oklch(from var(--info) 0.63 0.118 h / 0.14);
48
+
49
+ --success-subtle: oklch(from var(--success) 0.265 0.05 h);
50
+ --success-text: oklch(from var(--success) calc(l + 0.23) calc(c - 0.02) h);
51
+ --success-wash: oklch(from var(--success) 0.62 0.13 h / 0.16);
52
+
53
+ --warning-subtle: oklch(from var(--warning) 0.27 0.05 h);
54
+ --warning-text: oklch(from var(--warning) calc(l + 0.13) calc(c - 0.02) h);
55
+ --warning-wash: oklch(from var(--warning) 0.76 0.14 h / 0.18);
56
+
57
+ --danger-fill: oklch(from var(--danger) 0.555 0.185 h);
58
+ --danger-subtle: oklch(from var(--danger) 0.265 0.05 h);
59
+ --danger-text: oklch(from var(--danger) calc(l + 0.2) calc(c - 0.03) h);
60
+ --danger-disabled: oklch(from var(--danger) 0.42 0.08 h);
61
+ --danger-wash: oklch(from var(--danger) 0.602 0.196 h / 0.16);
62
+ }
63
+ }
@@ -0,0 +1,26 @@
1
+ /* The decisions - the values the rest of the vocabulary derives from. zyncat-ui init copies the
2
+ :root block below, comments included, into the project as zyncat.theme.css. */
3
+
4
+ @layer zyncat.tokens, zyncat.components;
5
+
6
+ @layer zyncat.tokens {
7
+ :root {
8
+ /* The brand hue - hover, active, lift, subtle, border, wash, the focus ring and info follow. */
9
+ --accent: oklch(0.63 0.118 198);
10
+ /* Positive status - its subtle, text and wash follow. */
11
+ --success: oklch(0.548 0.122 152);
12
+ /* Caution - its subtle, text and wash follow. */
13
+ --warning: oklch(0.7 0.142 75);
14
+ /* Destructive actions and errors - the danger button ladder, ring, subtle, text and wash follow. */
15
+ --danger: oklch(0.545 0.196 27);
16
+ /* The gray ramp's hue - the accent by default, so chrome shares its temperature. A fixed colour
17
+ cuts the grays loose. Read on :root only: a themed subtree inherits the ramp. */
18
+ --neutral: var(--accent);
19
+ /* Roundness - every --radius-<step> is a fixed ratio of it; 0 squares every corner. */
20
+ --radius: 0.5rem;
21
+ /* The body face - every --type-* bundle follows. */
22
+ --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
23
+ /* The code face - --type-code follows. */
24
+ --font-code: 'Geist Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;
25
+ }
26
+ }