@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.
- package/README.md +72 -13
- package/dist/alert.css +26 -33
- package/dist/alert.js +18 -17
- package/dist/alert.js.map +1 -1
- package/dist/avatar-group.js +2 -2
- package/dist/avatar-group.js.map +1 -1
- package/dist/avatar.css +51 -50
- package/dist/avatar.js +29 -7
- package/dist/avatar.js.map +1 -1
- package/dist/badge.css +30 -36
- package/dist/badge.js +1 -1
- package/dist/button.css +80 -96
- package/dist/button.js +1 -1
- package/dist/checkbox.css +27 -32
- package/dist/checkbox.js +2 -2
- package/dist/{chunk-RJFGWJ4W.js → chunk-3XRVPCIM.js} +6 -6
- package/dist/chunk-3XRVPCIM.js.map +1 -0
- package/dist/{chunk-M43IOM5C.js → chunk-5GBV45YD.js} +3 -3
- package/dist/{chunk-M43IOM5C.js.map → chunk-5GBV45YD.js.map} +1 -1
- package/dist/{chunk-45R4Z5XN.js → chunk-5VC3TUZ2.js} +4 -4
- package/dist/{chunk-45R4Z5XN.js.map → chunk-5VC3TUZ2.js.map} +1 -1
- package/dist/{chunk-A5WTZACK.js → chunk-5W5TKANX.js} +3 -3
- package/dist/{chunk-A5WTZACK.js.map → chunk-5W5TKANX.js.map} +1 -1
- package/dist/{chunk-AADAJL7D.js → chunk-5X3MJRIM.js} +8 -9
- package/dist/chunk-5X3MJRIM.js.map +1 -0
- package/dist/{chunk-TCUCYFT7.js → chunk-6SUHSSOK.js} +3 -3
- package/dist/{chunk-TCUCYFT7.js.map → chunk-6SUHSSOK.js.map} +1 -1
- package/dist/{chunk-DDRSMHN4.js → chunk-6X3G4GIM.js} +3 -3
- package/dist/{chunk-DDRSMHN4.js.map → chunk-6X3G4GIM.js.map} +1 -1
- package/dist/{chunk-TYHR4VNM.js → chunk-AREEMG47.js} +10 -8
- package/dist/chunk-AREEMG47.js.map +1 -0
- package/dist/{chunk-EF6RPXU7.js → chunk-BH4JFWXQ.js} +36 -31
- package/dist/chunk-BH4JFWXQ.js.map +1 -0
- package/dist/{chunk-TVYH4AN7.js → chunk-BTF6DAE3.js} +13 -13
- package/dist/chunk-BTF6DAE3.js.map +1 -0
- package/dist/{chunk-CF4QHO4N.js → chunk-CAXQJSIE.js} +10 -10
- package/dist/{chunk-CF4QHO4N.js.map → chunk-CAXQJSIE.js.map} +1 -1
- package/dist/{chunk-4C5RZXBT.js → chunk-CFRGQJ23.js} +8 -8
- package/dist/chunk-CFRGQJ23.js.map +1 -0
- package/dist/{chunk-IJS7TPGV.js → chunk-FEXUS4SV.js} +6 -5
- package/dist/chunk-FEXUS4SV.js.map +1 -0
- package/dist/{chunk-227ZW4V7.js → chunk-FLQVOSFC.js} +11 -11
- package/dist/chunk-FLQVOSFC.js.map +1 -0
- package/dist/{chunk-FONOS5RN.js → chunk-FVPNICF4.js} +11 -10
- package/dist/chunk-FVPNICF4.js.map +1 -0
- package/dist/{chunk-I45AU6KH.js → chunk-GGDAMIBH.js} +13 -7
- package/dist/chunk-GGDAMIBH.js.map +1 -0
- package/dist/{chunk-4BSHB7R3.js → chunk-GJTHWB6O.js} +9 -9
- package/dist/chunk-GJTHWB6O.js.map +1 -0
- package/dist/{chunk-EAI4POPB.js → chunk-GOLSYGRA.js} +45 -75
- package/dist/chunk-GOLSYGRA.js.map +1 -0
- package/dist/chunk-H3X2263Y.js +17 -0
- package/dist/chunk-H3X2263Y.js.map +1 -0
- package/dist/chunk-K45CWVHS.js +53 -0
- package/dist/chunk-K45CWVHS.js.map +1 -0
- package/dist/{chunk-JY6A2ZJZ.js → chunk-LNAV5E7S.js} +2 -2
- package/dist/{chunk-JY6A2ZJZ.js.map → chunk-LNAV5E7S.js.map} +1 -1
- package/dist/{chunk-TUTXXC3W.js → chunk-MDSRZ4QR.js} +3 -3
- package/dist/{chunk-TUTXXC3W.js.map → chunk-MDSRZ4QR.js.map} +1 -1
- package/dist/chunk-N2GJEO5Z.js +101 -0
- package/dist/chunk-N2GJEO5Z.js.map +1 -0
- package/dist/chunk-PU3QWBEL.js +39 -0
- package/dist/chunk-PU3QWBEL.js.map +1 -0
- package/dist/{chunk-43M6GQ4Q.js → chunk-PWQVSVXR.js} +51 -32
- package/dist/chunk-PWQVSVXR.js.map +1 -0
- package/dist/chunk-QGVFFT2B.js +14 -0
- package/dist/chunk-QGVFFT2B.js.map +1 -0
- package/dist/{chunk-5PZ43DCG.js → chunk-RBSHRRNO.js} +12 -13
- package/dist/chunk-RBSHRRNO.js.map +1 -0
- package/dist/{chunk-XNIYSAMJ.js → chunk-RW2A4M2Q.js} +14 -9
- package/dist/chunk-RW2A4M2Q.js.map +1 -0
- package/dist/{chunk-HY5MPISE.js → chunk-UYSXJ7MH.js} +9 -9
- package/dist/chunk-UYSXJ7MH.js.map +1 -0
- package/dist/chunk-VDOBLABP.js +38 -0
- package/dist/chunk-VDOBLABP.js.map +1 -0
- package/dist/chunk-VNVVG47J.js +12 -0
- package/dist/chunk-VNVVG47J.js.map +1 -0
- package/dist/{chunk-3MPF7FZV.js → chunk-WCWV5IX6.js} +3 -3
- package/dist/{chunk-3MPF7FZV.js.map → chunk-WCWV5IX6.js.map} +1 -1
- package/dist/{chunk-VAXCXZ53.js → chunk-WZUTBJC4.js} +5 -4
- package/dist/chunk-WZUTBJC4.js.map +1 -0
- package/dist/cli.js +137 -25
- package/dist/collapse.css +15 -30
- package/dist/collapse.js +1 -1
- package/dist/confetti.css +19 -12
- package/dist/confetti.js +7 -6
- package/dist/confetti.js.map +1 -1
- package/dist/count-badge.js +2 -2
- package/dist/date-field.js +20 -19
- package/dist/date-field.js.map +1 -1
- package/dist/date-picker.css +131 -154
- package/dist/date-range-field.js +55 -54
- package/dist/date-range-field.js.map +1 -1
- package/dist/datetime-field.js +24 -23
- package/dist/datetime-field.js.map +1 -1
- package/dist/dialog.css +31 -41
- package/dist/dialog.js +23 -22
- package/dist/dialog.js.map +1 -1
- package/dist/digit-strip.css +16 -16
- package/dist/dropdown.css +36 -27
- package/dist/dropdown.js +77 -40
- package/dist/dropdown.js.map +1 -1
- package/dist/emoji-picker.js +44 -45
- package/dist/emoji-picker.js.map +1 -1
- package/dist/facebook-feed.css +145 -148
- package/dist/facebook-feed.js +106 -102
- package/dist/facebook-feed.js.map +1 -1
- package/dist/flow-field.css +8 -4
- package/dist/flow-field.js +7 -6
- package/dist/flow-field.js.map +1 -1
- package/dist/glide.js +4 -3
- package/dist/icon.css +7 -10
- package/dist/input.css +76 -84
- package/dist/instagram-feed.css +65 -66
- package/dist/instagram-feed.js +61 -44
- package/dist/instagram-feed.js.map +1 -1
- package/dist/lens.css +42 -38
- package/dist/lens.js +17 -16
- package/dist/lens.js.map +1 -1
- package/dist/mcp.js +3 -2
- package/dist/menu-surface.css +54 -34
- package/dist/modal.css +2 -4
- package/dist/modal.js +12 -11
- package/dist/modal.js.map +1 -1
- package/dist/morphing-text.css +26 -16
- package/dist/morphing-text.js +14 -13
- package/dist/morphing-text.js.map +1 -1
- package/dist/motion-devtools.css +42 -68
- package/dist/motion-devtools.js +47 -39
- package/dist/motion-devtools.js.map +1 -1
- package/dist/motion-tokens.js +1 -1
- package/dist/multi-select.js +21 -16
- package/dist/multi-select.js.map +1 -1
- package/dist/number-field.js +14 -14
- package/dist/number-field.js.map +1 -1
- package/dist/odometer.css +22 -16
- package/dist/odometer.js +12 -11
- package/dist/odometer.js.map +1 -1
- package/dist/otp-field.js +3 -3
- package/dist/otp-field.js.map +1 -1
- package/dist/overlay.css +4 -9
- package/dist/pagination.css +10 -15
- package/dist/pagination.js +11 -10
- package/dist/pagination.js.map +1 -1
- package/dist/popover.css +13 -15
- package/dist/popover.js +10 -9
- package/dist/radio-group.css +60 -73
- package/dist/radio-group.js +30 -29
- package/dist/radio-group.js.map +1 -1
- package/dist/select.css +66 -75
- package/dist/select.js +19 -14
- package/dist/select.js.map +1 -1
- package/dist/sheet.css +12 -14
- package/dist/sheet.js +11 -10
- package/dist/status-badge.js +9 -9
- package/dist/status-badge.js.map +1 -1
- package/dist/styles.css +34 -34
- package/dist/support-rail.css +116 -100
- package/dist/support-rail.js +41 -40
- package/dist/support-rail.js.map +1 -1
- package/dist/table.css +76 -84
- package/dist/table.js +42 -41
- package/dist/table.js.map +1 -1
- package/dist/tabs.css +82 -90
- package/dist/tabs.js +23 -20
- package/dist/tabs.js.map +1 -1
- package/dist/tag.css +48 -53
- package/dist/tag.js +13 -12
- package/dist/tag.js.map +1 -1
- package/dist/text-field.js +5 -5
- package/dist/textarea.css +46 -49
- package/dist/textarea.js +16 -16
- package/dist/textarea.js.map +1 -1
- package/dist/theme.js +31 -15
- package/dist/theme.js.map +1 -1
- package/dist/tiktok.css +113 -117
- package/dist/tiktok.js +53 -52
- package/dist/tiktok.js.map +1 -1
- package/dist/time-field.js +26 -20
- package/dist/time-field.js.map +1 -1
- package/dist/toast-store.js +2 -1
- package/dist/toast.css +49 -65
- package/dist/toast.js +32 -26
- package/dist/toast.js.map +1 -1
- package/dist/toggle-tag.js +22 -13
- package/dist/toggle-tag.js.map +1 -1
- package/dist/toggle.css +26 -31
- package/dist/toggle.js +7 -7
- package/dist/toggle.js.map +1 -1
- package/dist/tooltip.css +16 -23
- package/dist/tooltip.js +117 -95
- package/dist/tooltip.js.map +1 -1
- package/dist/trigger.css +3 -3
- package/dist/types/components/composites/alert/Alert.d.ts +1 -2
- package/dist/types/components/composites/date-picker/TimeField.d.ts +1 -2
- package/dist/types/components/composites/date-picker/field-shell.d.ts +1 -1
- package/dist/types/components/composites/date-picker/time-core.d.ts +1 -2
- package/dist/types/components/composites/dropdown/Dropdown.d.ts +9 -1
- package/dist/types/components/composites/dropdown/types.d.ts +14 -0
- package/dist/types/components/composites/emoji-picker/EmojiPickerPanel.d.ts +1 -1
- package/dist/types/components/composites/emoji-picker/data.d.ts +2 -5
- package/dist/types/components/composites/emoji-picker/react/useEmojiPicker.d.ts +0 -11
- package/dist/types/components/composites/emoji-picker/types.d.ts +3 -8
- package/dist/types/components/composites/select/MultiSelect.d.ts +6 -1
- package/dist/types/components/composites/select/Select.d.ts +6 -1
- package/dist/types/components/composites/select/core/index.d.ts +1 -1
- package/dist/types/components/composites/select/core/menu.d.ts +3 -3
- package/dist/types/components/composites/select/core/panel.d.ts +3 -3
- package/dist/types/components/composites/tabs/Tabs.d.ts +7 -10
- package/dist/types/components/composites/toast/Toast.d.ts +1 -1
- package/dist/types/components/composites/tooltip/Tooltip.d.ts +9 -1
- package/dist/types/components/composites/tooltip/tooltip-store.d.ts +5 -6
- package/dist/types/components/dev/MotionDevtools.d.ts +3 -1
- package/dist/types/components/internal/hooks/use-host-election.d.ts +8 -0
- package/dist/types/components/internal/icon/Icon.d.ts +1 -3
- package/dist/types/components/internal/menu/highlight.d.ts +7 -0
- package/dist/types/components/internal/utils/activation.d.ts +0 -4
- package/dist/types/components/primitives/avatar/Avatar.d.ts +1 -1
- package/dist/types/components/primitives/button/Button.d.ts +1 -1
- package/dist/types/components/primitives/input/TextField.d.ts +1 -2
- package/dist/types/components/primitives/textarea/Textarea.d.ts +0 -1
- package/dist/types/shared-slot.d.ts +1 -0
- package/dist/types/tokens/component-styles.generated.d.ts +79 -151
- package/dist/types/tokens/motion-defaults.generated.d.ts +34 -0
- package/dist/types/tokens/motion-scale.d.ts +2 -2
- package/dist/types/tokens/motion-tokens.d.ts +7 -0
- package/dist/types/tokens/theme-sync.d.ts +3 -0
- package/dist/types/tokens/theme-tokens.generated.d.ts +669 -1105
- package/dist/typing-lines.css +17 -10
- package/dist/typing-lines.js +9 -8
- package/dist/typing-lines.js.map +1 -1
- package/dist/weight-field.css +31 -17
- package/dist/weight-field.js +4 -4
- package/dist/weight-field.js.map +1 -1
- package/dist/youtube.css +90 -96
- package/dist/youtube.js +87 -86
- package/dist/youtube.js.map +1 -1
- package/package.json +3 -1
- package/skills/zyncat-ui/SKILL.md +5 -3
- package/skills/zyncat-ui/references/components.md +4 -4
- package/skills/zyncat-ui/references/theming.md +105 -34
- package/src/components/composites/alert/Alert.tsx +9 -10
- package/src/components/composites/alert/alert.css +26 -33
- package/src/components/composites/date-picker/DateField.tsx +1 -1
- package/src/components/composites/date-picker/DateRangeField.tsx +1 -1
- package/src/components/composites/date-picker/DateTimeField.tsx +4 -4
- package/src/components/composites/date-picker/TimeField.tsx +8 -5
- package/src/components/composites/date-picker/calendar-panel.tsx +25 -20
- package/src/components/composites/date-picker/date-picker.css +131 -154
- package/src/components/composites/date-picker/field-shell.tsx +7 -7
- package/src/components/composites/date-picker/range-panel.tsx +34 -34
- package/src/components/composites/date-picker/time-core.tsx +4 -6
- package/src/components/composites/date-picker/use-day-focus.ts +1 -1
- package/src/components/composites/dialog/Dialog.tsx +11 -11
- package/src/components/composites/dialog/dialog.css +31 -41
- package/src/components/composites/dropdown/Dropdown.tsx +15 -2
- package/src/components/composites/dropdown/Dropdown.usage.md +7 -4
- package/src/components/composites/dropdown/dropdown.css +36 -27
- package/src/components/composites/dropdown/menu-panel.tsx +56 -27
- package/src/components/composites/dropdown/types.ts +28 -6
- package/src/components/composites/emoji-picker/EmojiPickerPanel.tsx +5 -4
- package/src/components/composites/emoji-picker/EmojiPickerPanel.usage.md +4 -4
- package/src/components/composites/emoji-picker/data.ts +2 -5
- package/src/components/composites/emoji-picker/dom.ts +6 -6
- package/src/components/composites/emoji-picker/react/category-bar.tsx +6 -6
- package/src/components/composites/emoji-picker/react/useEmojiPicker.ts +0 -11
- package/src/components/composites/emoji-picker/scaffold.ts +7 -7
- package/src/components/composites/emoji-picker/search.ts +0 -7
- package/src/components/composites/emoji-picker/styles.css +34 -34
- package/src/components/composites/emoji-picker/types.ts +3 -8
- package/src/components/composites/modal/Modal.tsx +2 -2
- package/src/components/composites/modal/modal.css +2 -4
- package/src/components/composites/pagination/Pagination.tsx +7 -7
- package/src/components/composites/pagination/pagination.css +10 -15
- package/src/components/composites/popover/Popover.tsx +2 -2
- package/src/components/composites/popover/popover.css +13 -15
- package/src/components/composites/select/MultiSelect.tsx +11 -2
- package/src/components/composites/select/MultiSelect.usage.md +2 -1
- package/src/components/composites/select/Select.tsx +10 -1
- package/src/components/composites/select/Select.usage.md +2 -1
- package/src/components/composites/select/core/index.ts +1 -1
- package/src/components/composites/select/core/menu.tsx +19 -4
- package/src/components/composites/select/core/panel.tsx +19 -15
- package/src/components/composites/select/core/trigger.tsx +5 -5
- package/src/components/composites/select/select.css +66 -75
- package/src/components/composites/sheet/Sheet.tsx +2 -2
- package/src/components/composites/sheet/sheet.css +12 -14
- package/src/components/composites/sheet/use-sheet-drag.ts +1 -1
- package/src/components/composites/table/Table.tsx +35 -35
- package/src/components/composites/table/table.css +76 -84
- package/src/components/composites/tabs/Tabs.tsx +20 -21
- package/src/components/composites/tabs/Tabs.usage.md +3 -2
- package/src/components/composites/tabs/tabs.css +82 -90
- package/src/components/composites/toast/Toast.tsx +23 -18
- package/src/components/composites/toast/toast-store.ts +8 -6
- package/src/components/composites/toast/toast.css +49 -65
- package/src/components/composites/tooltip/Tooltip.tsx +40 -19
- package/src/components/composites/tooltip/Tooltip.usage.md +9 -1
- package/src/components/composites/tooltip/tooltip-host.tsx +55 -23
- package/src/components/composites/tooltip/tooltip-store.ts +36 -53
- package/src/components/composites/tooltip/tooltip.css +16 -23
- package/src/components/compound/support-rail/SupportRail.tsx +33 -33
- package/src/components/compound/support-rail/support-rail.css +116 -100
- package/src/components/dev/MotionDevtools.tsx +28 -17
- package/src/components/dev/MotionDevtools.usage.md +2 -2
- package/src/components/dev/motion-devtools.css +42 -68
- package/src/components/dev/slowmo-engine.ts +16 -15
- package/src/components/expressive/confetti/Confetti.tsx +4 -4
- package/src/components/expressive/confetti/confetti.css +19 -12
- package/src/components/expressive/facebook-feed/chrome.tsx +2 -2
- package/src/components/expressive/facebook-feed/facebook-feed.css +145 -148
- package/src/components/expressive/facebook-feed/post.tsx +39 -39
- package/src/components/expressive/facebook-feed/reel.tsx +41 -37
- package/src/components/expressive/facebook-feed/story.tsx +27 -27
- package/src/components/expressive/flow-field/FlowField.tsx +4 -4
- package/src/components/expressive/flow-field/flow-field.css +8 -4
- package/src/components/expressive/instagram-feed/InstagramFeed.tsx +52 -44
- package/src/components/expressive/instagram-feed/instagram-feed.css +65 -66
- package/src/components/expressive/lens/Lens.tsx +14 -14
- package/src/components/expressive/lens/lens.css +42 -38
- package/src/components/expressive/morphing-text/MorphingText.tsx +12 -13
- package/src/components/expressive/morphing-text/morphing-text.css +26 -16
- package/src/components/expressive/odometer/Odometer.tsx +9 -9
- package/src/components/expressive/odometer/odometer.css +22 -16
- package/src/components/expressive/tiktok/TikTok.tsx +54 -54
- package/src/components/expressive/tiktok/tiktok.css +113 -117
- package/src/components/expressive/typing-lines/TypingLines.tsx +0 -0
- package/src/components/expressive/typing-lines/typing-lines.css +17 -10
- package/src/components/expressive/weight-field/WeightField.tsx +4 -4
- package/src/components/expressive/weight-field/weight-field.css +31 -17
- package/src/components/expressive/youtube/YouTube.tsx +4 -4
- package/src/components/expressive/youtube/glyphs.tsx +16 -16
- package/src/components/expressive/youtube/media.tsx +3 -3
- package/src/components/expressive/youtube/post.tsx +28 -28
- package/src/components/expressive/youtube/short.tsx +25 -25
- package/src/components/expressive/youtube/video.tsx +13 -13
- package/src/components/expressive/youtube/youtube.css +90 -96
- package/src/components/internal/glass/glass.css +19 -22
- package/src/components/internal/glass/glint.ts +3 -3
- package/src/components/internal/hooks/use-host-election.ts +46 -0
- package/src/components/internal/icon/Icon.tsx +1 -5
- package/src/components/internal/icon/IconSlot.tsx +1 -1
- package/src/components/internal/icon/icon.css +7 -10
- package/src/components/internal/menu/highlight.ts +12 -0
- package/src/components/internal/menu/menu-row.tsx +5 -5
- package/src/components/internal/menu/menu-surface.css +54 -34
- package/src/components/internal/overlay/layer.tsx +2 -1
- package/src/components/internal/overlay/modal.tsx +5 -4
- package/src/components/internal/overlay/overlay.css +4 -9
- package/src/components/internal/overlay/trigger.css +3 -3
- package/src/components/internal/utils/activation.ts +0 -4
- package/src/components/primitives/avatar/Avatar.tsx +24 -8
- package/src/components/primitives/avatar/AvatarGroup.tsx +4 -4
- package/src/components/primitives/avatar/avatar.css +51 -50
- package/src/components/primitives/badge/Badge.tsx +9 -9
- package/src/components/primitives/badge/StatusBadge.tsx +7 -7
- package/src/components/primitives/badge/badge.css +30 -36
- package/src/components/primitives/badge/digit-strip.css +16 -16
- package/src/components/primitives/badge/digit-strip.tsx +4 -4
- package/src/components/primitives/button/Button.tsx +8 -8
- package/src/components/primitives/button/button.css +80 -96
- package/src/components/primitives/checkbox/Checkbox.tsx +10 -4
- package/src/components/primitives/checkbox/check-glyph.tsx +5 -5
- package/src/components/primitives/checkbox/checkbox.css +27 -32
- package/src/components/primitives/collapse/Collapse.tsx +2 -2
- package/src/components/primitives/collapse/collapse.css +15 -30
- package/src/components/primitives/collapse/collapse.typecheck.tsx +1 -1
- package/src/components/primitives/input/NumberField.tsx +11 -11
- package/src/components/primitives/input/OtpField.tsx +3 -3
- package/src/components/primitives/input/TextField.tsx +9 -10
- package/src/components/primitives/input/field-chrome.tsx +6 -6
- package/src/components/primitives/input/input.css +76 -84
- package/src/components/primitives/radio-group/RadioGroup.tsx +23 -23
- package/src/components/primitives/radio-group/radio-group.css +60 -73
- package/src/components/primitives/tag/Tag.tsx +5 -5
- package/src/components/primitives/tag/ToggleTag.tsx +11 -6
- package/src/components/primitives/tag/tag.css +48 -53
- package/src/components/primitives/textarea/Textarea.tsx +13 -14
- package/src/components/primitives/textarea/textarea.css +46 -49
- package/src/components/primitives/toggle/Toggle.tsx +7 -7
- package/src/components/primitives/toggle/toggle.css +26 -31
- package/src/engine/animate.ts +2 -1
- package/src/engine/flip.ts +2 -1
- package/src/mcp/server.ts +3 -1
- package/src/motion/flip.ts +7 -8
- package/src/motion/glide.tsx +41 -26
- package/src/shared-slot.ts +10 -0
- package/src/styles.css +7 -15
- package/src/tokens/base.css +15 -0
- package/src/tokens/color.css +19 -59
- package/src/tokens/component-styles.generated.ts +79 -151
- package/src/tokens/dark.css +63 -0
- package/src/tokens/decisions.css +26 -0
- package/src/tokens/elevation.css +71 -21
- package/src/tokens/fonts.css +0 -2
- package/src/tokens/glass.css +15 -9
- package/src/tokens/motion-defaults.generated.ts +21 -0
- package/src/tokens/motion-scale.ts +2 -2
- package/src/tokens/motion-tokens.ts +65 -40
- package/src/tokens/motion-tokens.usage.md +5 -2
- package/src/tokens/motion.css +12 -22
- package/src/tokens/radius.css +10 -9
- package/src/tokens/semantic.css +57 -37
- package/src/tokens/spacing.css +5 -6
- package/src/tokens/theme-sync.tsx +15 -0
- package/src/tokens/theme-tokens.generated.ts +682 -1109
- package/src/tokens/theme.tsx +22 -16
- package/src/tokens/theme.usage.md +19 -13
- package/src/tokens/typography.css +16 -19
- package/tailwind.css +193 -0
- package/dist/chunk-227ZW4V7.js.map +0 -1
- package/dist/chunk-43M6GQ4Q.js.map +0 -1
- package/dist/chunk-4BSHB7R3.js.map +0 -1
- package/dist/chunk-4C5RZXBT.js.map +0 -1
- package/dist/chunk-5PZ43DCG.js.map +0 -1
- package/dist/chunk-7IZJERGA.js +0 -80
- package/dist/chunk-7IZJERGA.js.map +0 -1
- package/dist/chunk-AADAJL7D.js.map +0 -1
- package/dist/chunk-CNWTIMIP.js +0 -39
- package/dist/chunk-CNWTIMIP.js.map +0 -1
- package/dist/chunk-EAI4POPB.js.map +0 -1
- package/dist/chunk-EF6RPXU7.js.map +0 -1
- package/dist/chunk-FONOS5RN.js.map +0 -1
- package/dist/chunk-FQEHSKEI.js +0 -38
- package/dist/chunk-FQEHSKEI.js.map +0 -1
- package/dist/chunk-HY5MPISE.js.map +0 -1
- package/dist/chunk-I45AU6KH.js.map +0 -1
- package/dist/chunk-IJS7TPGV.js.map +0 -1
- package/dist/chunk-OWNMRMPN.js +0 -14
- package/dist/chunk-OWNMRMPN.js.map +0 -1
- package/dist/chunk-RJFGWJ4W.js.map +0 -1
- package/dist/chunk-TVYH4AN7.js.map +0 -1
- package/dist/chunk-TYHR4VNM.js.map +0 -1
- package/dist/chunk-VAXCXZ53.js.map +0 -1
- package/dist/chunk-XNIYSAMJ.js.map +0 -1
- package/dist/chunk-Y2YA7QRF.js +0 -17
- package/dist/chunk-Y2YA7QRF.js.map +0 -1
- package/src/tokens/avatar.css +0 -24
- package/src/tokens/icons.css +0 -11
- 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
|
|
2
|
-
Fonts,
|
|
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
|
-
/*
|
|
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
|
+
}
|
package/src/tokens/color.css
CHANGED
|
@@ -1,69 +1,29 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
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-
|
|
16
|
-
--gray-
|
|
17
|
-
--gray-
|
|
18
|
-
--gray-
|
|
19
|
-
--gray-
|
|
20
|
-
--gray-
|
|
21
|
-
--gray-
|
|
22
|
-
--gray-
|
|
23
|
-
--gray-
|
|
24
|
-
--gray-
|
|
25
|
-
--gray-
|
|
26
|
-
--gray-
|
|
27
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
28
|
+
/** `--confetti-shade` - How far the reverse side leans toward the ink. Default: `42%`. */
|
|
29
29
|
'--confetti-shade'?: string | number;
|
|
30
|
-
/** `--confetti-gloss
|
|
30
|
+
/** `--confetti-gloss` - How far the glossy face leans toward the light. Default: `66%`. */
|
|
31
31
|
'--confetti-gloss'?: string | number;
|
|
32
|
-
/** `--confetti-layer
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
74
|
+
/** `--lens-surface` - The surface behind the glass. Default: `var(--bg-surface)`. */
|
|
95
75
|
'--lens-surface'?: string | number;
|
|
96
|
-
/** `--lens-edge
|
|
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
|
|
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
|
|
84
|
+
/** `--morphing-text-ink` - Letter ink. Default: `var(--text-strong)`. */
|
|
117
85
|
'--morphing-text-ink'?: string | number;
|
|
118
|
-
/** `--morphing-text-size
|
|
86
|
+
/** `--morphing-text-size` - Letter size. Default: `var(--size-display-lg)`. */
|
|
119
87
|
'--morphing-text-size'?: string | number;
|
|
120
|
-
/** `--morphing-text-weight
|
|
88
|
+
/** `--morphing-text-weight` - Letter weight. Default: `var(--weight-medium)`. */
|
|
121
89
|
'--morphing-text-weight'?: string | number;
|
|
122
|
-
/** `--morphing-text-leading
|
|
90
|
+
/** `--morphing-text-leading` - Line height, unitless. Default: `1.2`. */
|
|
123
91
|
'--morphing-text-leading'?: string | number;
|
|
124
|
-
/** `--morphing-text-tracking
|
|
92
|
+
/** `--morphing-text-tracking` - Letter spacing. Default: `var(--tracking-display)`. */
|
|
125
93
|
'--morphing-text-tracking'?: string | number;
|
|
126
|
-
/** `--morphing-text-smear
|
|
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
|
|
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
|
|
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
|
|
100
|
+
/** `--morphing-text-rule-height` - The rule's thickness. Default: `1px`. */
|
|
133
101
|
'--morphing-text-rule-height'?: string | number;
|
|
134
|
-
/** `--morphing-text-rule-gap
|
|
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-
|
|
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
|
|
110
|
+
/** `--odometer-ink` - Digit ink. Default: `var(--text-strong)`. */
|
|
151
111
|
'--odometer-ink'?: string | number;
|
|
152
|
-
/** `--odometer-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
|
|
114
|
+
/** `--odometer-separator-ink` - The thousands separator. Default: `var(--text-muted)`. */
|
|
155
115
|
'--odometer-separator-ink'?: string | number;
|
|
156
|
-
/** `--odometer-size
|
|
116
|
+
/** `--odometer-size` - Digit size. Default: `var(--size-display)`. */
|
|
157
117
|
'--odometer-size'?: string | number;
|
|
158
|
-
/** `--odometer-weight
|
|
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
|
|
124
|
+
/** `--typing-lines-ink` - Letter ink. Default: `var(--text-strong)`. */
|
|
165
125
|
'--typing-lines-ink'?: string | number;
|
|
166
|
-
/** `--typing-lines-caret-ink
|
|
126
|
+
/** `--typing-lines-caret-ink` - The caret. Default: `var(--accent)`. */
|
|
167
127
|
'--typing-lines-caret-ink'?: string | number;
|
|
168
|
-
/** `--typing-lines-size
|
|
128
|
+
/** `--typing-lines-size` - Letter size. Default: `var(--size-title)`. */
|
|
169
129
|
'--typing-lines-size'?: string | number;
|
|
170
|
-
/** `--typing-lines-weight
|
|
130
|
+
/** `--typing-lines-weight` - Letter weight. Default: `var(--weight-regular)`. */
|
|
171
131
|
'--typing-lines-weight'?: string | number;
|
|
172
|
-
/** `--typing-lines-leading
|
|
132
|
+
/** `--typing-lines-leading` - Line height, unitless. Default: `1.4`. */
|
|
173
133
|
'--typing-lines-leading'?: string | number;
|
|
174
|
-
/** `--typing-lines-blink
|
|
134
|
+
/** `--typing-lines-blink` - The caret's blink period. Default: `1080ms`. */
|
|
175
135
|
'--typing-lines-blink'?: string | number;
|
|
176
|
-
/** `--typing-lines-caret-gap
|
|
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
|
|
142
|
+
/** `--weight-field-ink` - Letter ink. Default: `var(--text-strong)`. */
|
|
183
143
|
'--weight-field-ink'?: string | number;
|
|
184
|
-
/** `--weight-field-size
|
|
144
|
+
/** `--weight-field-size` - Letter size. Default: `6rem`. */
|
|
185
145
|
'--weight-field-size'?: string | number;
|
|
186
|
-
/** `--weight-field-leading
|
|
146
|
+
/** `--weight-field-leading` - Line height, unitless. Default: `1`. */
|
|
187
147
|
'--weight-field-leading'?: string | number;
|
|
188
|
-
/** `--weight-field-align
|
|
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
|
|
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
|
|
152
|
+
/** `--weight-field-tracking` - Letter spacing. Default: `-0.05em`. */
|
|
193
153
|
'--weight-field-tracking'?: string | number;
|
|
194
|
-
/** `--weight-field-rest-weight
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
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
|
|
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
|
|
174
|
+
/** `--support-rail-width` - Panel width; the rail never exceeds its container. Default: `318px`. */
|
|
219
175
|
'--support-rail-width'?: string | number;
|
|
220
|
-
/** `--support-rail-
|
|
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
|
|
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-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
188
|
+
/** `--support-rail-accent` - The needle's rule. Default: `var(--accent)`. */
|
|
257
189
|
'--support-rail-accent'?: string | number;
|
|
258
|
-
/** `--support-rail-live-color
|
|
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
|
|
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
|
|
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
|
|
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
|
+
}
|