@tenerife.music/ui 1.0.8 → 1.0.12
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/dist/{tokens/colors.d.ts → colors-DPNI96bB.d.cts} +21 -19
- package/dist/colors-DPNI96bB.d.ts +289 -0
- package/dist/index.cjs +15605 -2
- package/dist/index.d.cts +3726 -0
- package/dist/index.d.ts +3726 -39
- package/dist/index.mjs +12883 -5567
- package/dist/preset.cjs +1264 -2
- package/dist/preset.d.cts +21 -0
- package/dist/preset.d.ts +3 -1
- package/dist/preset.mjs +1165 -95
- package/dist/styles.cjs +2 -2
- package/dist/styles.css +87 -1
- package/dist/styles.d.cts +2 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.mjs +1 -1
- package/dist/theme/index.cjs +2647 -2
- package/dist/theme/index.d.cts +528 -0
- package/dist/theme/index.d.ts +528 -8
- package/dist/theme/index.mjs +1610 -575
- package/dist/tokens/index.cjs +5678 -5
- package/dist/tokens/index.d.cts +5488 -0
- package/dist/tokens/index.d.ts +5488 -9
- package/dist/tokens/index.mjs +2076 -154
- package/package.json +3 -3
- package/dist/animation/index.d.ts +0 -8
- package/dist/animation/presets.d.ts +0 -301
- package/dist/animation/tas.d.ts +0 -24
- package/dist/animation/types.d.ts +0 -67
- package/dist/animation/useInView.d.ts +0 -36
- package/dist/animation/utils.d.ts +0 -6
- package/dist/brand-C5R2semX.js +0 -45
- package/dist/brand-DQb18Frh.cjs +0 -2
- package/dist/components/SectionBuilder.d.ts +0 -36
- package/dist/components/SectionBuilder.presets.d.ts +0 -228
- package/dist/components/SectionBuilder.types.d.ts +0 -326
- package/dist/components/admin/Dashboard.d.ts +0 -8
- package/dist/components/admin/UserManagement.d.ts +0 -8
- package/dist/components/auth/LoginForm.d.ts +0 -11
- package/dist/components/auth/ProfileCard.d.ts +0 -9
- package/dist/components/auth/RegisterForm.d.ts +0 -13
- package/dist/components/cards/ArtistCard/ArtistCard.d.ts +0 -22
- package/dist/components/cards/ArtistCard/ArtistCard.types.d.ts +0 -46
- package/dist/components/cards/ArtistCard/ArtistCard.variants.d.ts +0 -83
- package/dist/components/cards/ArtistCard/index.d.ts +0 -8
- package/dist/components/cards/CardBase/CardBase.d.ts +0 -45
- package/dist/components/cards/CardBase/CardBase.types.d.ts +0 -70
- package/dist/components/cards/CardBase/CardBase.variants.d.ts +0 -38
- package/dist/components/cards/CardBase/index.d.ts +0 -8
- package/dist/components/cards/CategoryCard/CategoryCard.d.ts +0 -18
- package/dist/components/cards/CategoryCard/CategoryCard.types.d.ts +0 -38
- package/dist/components/cards/CategoryCard/CategoryCard.variants.d.ts +0 -21
- package/dist/components/cards/CategoryCard/index.d.ts +0 -7
- package/dist/components/cards/EventCard/EventCard.d.ts +0 -19
- package/dist/components/cards/EventCard/EventCard.types.d.ts +0 -47
- package/dist/components/cards/EventCard/EventCard.variants.d.ts +0 -70
- package/dist/components/cards/EventCard/index.d.ts +0 -7
- package/dist/components/cards/PromoCard/PromoCard.d.ts +0 -20
- package/dist/components/cards/PromoCard/PromoCard.types.d.ts +0 -42
- package/dist/components/cards/PromoCard/PromoCard.variants.d.ts +0 -35
- package/dist/components/cards/PromoCard/index.d.ts +0 -7
- package/dist/components/cards/TicketCard/TicketCard.d.ts +0 -19
- package/dist/components/cards/TicketCard/TicketCard.types.d.ts +0 -55
- package/dist/components/cards/TicketCard/TicketCard.variants.d.ts +0 -71
- package/dist/components/cards/TicketCard/index.d.ts +0 -7
- package/dist/components/cards/VenueCard/VenueCard.d.ts +0 -21
- package/dist/components/cards/VenueCard/VenueCard.types.d.ts +0 -46
- package/dist/components/cards/VenueCard/VenueCard.variants.d.ts +0 -60
- package/dist/components/cards/VenueCard/index.d.ts +0 -8
- package/dist/components/cards/index.d.ts +0 -19
- package/dist/components/checkbox/Checkbox.d.ts +0 -22
- package/dist/components/checkbox/Checkbox.types.d.ts +0 -68
- package/dist/components/checkbox/checkbox-variants.d.ts +0 -13
- package/dist/components/checkbox/index.d.ts +0 -3
- package/dist/components/containers/Card.d.ts +0 -75
- package/dist/components/containers/Section.d.ts +0 -31
- package/dist/components/containers/Surface.d.ts +0 -28
- package/dist/components/containers/index.d.ts +0 -9
- package/dist/components/controls/LanguageSelector.d.ts +0 -17
- package/dist/components/data/List.d.ts +0 -12
- package/dist/components/data/Table.d.ts +0 -14
- package/dist/components/data/Timeline.d.ts +0 -13
- package/dist/components/data/data-list/DataList.d.ts +0 -29
- package/dist/components/data/data-list/DataList.types.d.ts +0 -43
- package/dist/components/data/data-list/DataListItem.d.ts +0 -20
- package/dist/components/data/data-list/DataListLabel.d.ts +0 -19
- package/dist/components/data/data-list/DataListValue.d.ts +0 -18
- package/dist/components/data/data-list/index.d.ts +0 -10
- package/dist/components/data/empty-state/EmptyState.d.ts +0 -31
- package/dist/components/data/empty-state/EmptyState.types.d.ts +0 -51
- package/dist/components/data/empty-state/EmptyStateAction.d.ts +0 -17
- package/dist/components/data/empty-state/EmptyStateDescription.d.ts +0 -17
- package/dist/components/data/empty-state/EmptyStateIcon.d.ts +0 -22
- package/dist/components/data/empty-state/EmptyStateTitle.d.ts +0 -17
- package/dist/components/data/empty-state/index.d.ts +0 -10
- package/dist/components/data/index.d.ts +0 -9
- package/dist/components/data/skeleton/Skeleton.d.ts +0 -24
- package/dist/components/data/skeleton/Skeleton.types.d.ts +0 -12
- package/dist/components/data/skeleton/index.d.ts +0 -6
- package/dist/components/data/table/Table.d.ts +0 -33
- package/dist/components/data/table/Table.types.d.ts +0 -264
- package/dist/components/data/table/TableBody.d.ts +0 -13
- package/dist/components/data/table/TableCell.d.ts +0 -13
- package/dist/components/data/table/TableEmpty.d.ts +0 -13
- package/dist/components/data/table/TableExpandableContent.d.ts +0 -14
- package/dist/components/data/table/TableHead.d.ts +0 -13
- package/dist/components/data/table/TableHeader.d.ts +0 -13
- package/dist/components/data/table/TableLoadingState.d.ts +0 -13
- package/dist/components/data/table/TableRow.d.ts +0 -13
- package/dist/components/data/table/TableSortIcon.d.ts +0 -14
- package/dist/components/data/table/index.d.ts +0 -17
- package/dist/components/drawer/Drawer.d.ts +0 -41
- package/dist/components/drawer/Drawer.types.d.ts +0 -75
- package/dist/components/drawer/drawer-variants.d.ts +0 -17
- package/dist/components/drawer/index.d.ts +0 -8
- package/dist/components/dropdown/Dropdown.d.ts +0 -38
- package/dist/components/dropdown/Dropdown.types.d.ts +0 -82
- package/dist/components/dropdown/dropdown-variants.d.ts +0 -33
- package/dist/components/feedback/ConsentBanner.d.ts +0 -8
- package/dist/components/feedback/Progress.d.ts +0 -8
- package/dist/components/feedback/Skeleton.d.ts +0 -6
- package/dist/components/filters/DateRangePicker.d.ts +0 -21
- package/dist/components/filters/FilterBar.d.ts +0 -55
- package/dist/components/filters/FilterSelect.d.ts +0 -23
- package/dist/components/filters/PriceRangeSlider.d.ts +0 -27
- package/dist/components/filters/SearchFilters.d.ts +0 -32
- package/dist/components/filters/SearchInput.d.ts +0 -16
- package/dist/components/filters/types.d.ts +0 -48
- package/dist/components/icon/Icon.d.ts +0 -32
- package/dist/components/icon/Icon.types.d.ts +0 -7
- package/dist/components/icon/index.d.ts +0 -4
- package/dist/components/icons/TrendingIcon.d.ts +0 -6
- package/dist/components/image/Image.d.ts +0 -48
- package/dist/components/input/Input.d.ts +0 -20
- package/dist/components/input/Input.types.d.ts +0 -38
- package/dist/components/input/index.d.ts +0 -3
- package/dist/components/input/input-variants.d.ts +0 -14
- package/dist/components/input/legacy/input.d.ts +0 -11
- package/dist/components/layout/Box.d.ts +0 -111
- package/dist/components/layout/Column.d.ts +0 -6
- package/dist/components/layout/Container.d.ts +0 -31
- package/dist/components/layout/Flex.d.ts +0 -50
- package/dist/components/layout/Footer.d.ts +0 -9
- package/dist/components/layout/Grid.d.ts +0 -60
- package/dist/components/layout/ModeHero.d.ts +0 -10
- package/dist/components/layout/Navbar.d.ts +0 -9
- package/dist/components/layout/Row.d.ts +0 -28
- package/dist/components/layout/Section.d.ts +0 -10
- package/dist/components/layout/Stack.d.ts +0 -38
- package/dist/components/layout/Surface.d.ts +0 -21
- package/dist/components/layout/index.d.ts +0 -22
- package/dist/components/layout/layout.types.d.ts +0 -107
- package/dist/components/menus/DropdownMenu.d.ts +0 -27
- package/dist/components/menus/NavigationMenu.d.ts +0 -12
- package/dist/components/menus/Tabs.d.ts +0 -7
- package/dist/components/menus/context-menu/ContextMenuContent.d.ts +0 -22
- package/dist/components/menus/context-menu/ContextMenuGroup.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuItem.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuLabel.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuRoot.d.ts +0 -47
- package/dist/components/menus/context-menu/ContextMenuSeparator.d.ts +0 -14
- package/dist/components/menus/context-menu/ContextMenuTrigger.d.ts +0 -16
- package/dist/components/menus/context-menu/index.d.ts +0 -12
- package/dist/components/menus/dropdown/DropdownMenuCheckItem.d.ts +0 -18
- package/dist/components/menus/dropdown/DropdownMenuContent.d.ts +0 -15
- package/dist/components/menus/dropdown/DropdownMenuGroup.d.ts +0 -12
- package/dist/components/menus/dropdown/DropdownMenuItem.d.ts +0 -30
- package/dist/components/menus/dropdown/DropdownMenuLabel.d.ts +0 -17
- package/dist/components/menus/dropdown/DropdownMenuRadioGroup.d.ts +0 -24
- package/dist/components/menus/dropdown/DropdownMenuRadioItem.d.ts +0 -18
- package/dist/components/menus/dropdown/DropdownMenuRoot.d.ts +0 -33
- package/dist/components/menus/dropdown/DropdownMenuSeparator.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuSub.d.ts +0 -10
- package/dist/components/menus/dropdown/DropdownMenuSubContent.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuSubTrigger.d.ts +0 -13
- package/dist/components/menus/dropdown/DropdownMenuTrigger.d.ts +0 -14
- package/dist/components/menus/dropdown/index.d.ts +0 -18
- package/dist/components/menus/hover-card/HoverCardContent.d.ts +0 -14
- package/dist/components/menus/hover-card/HoverCardRoot.d.ts +0 -20
- package/dist/components/menus/hover-card/HoverCardTrigger.d.ts +0 -13
- package/dist/components/menus/hover-card/index.d.ts +0 -8
- package/dist/components/menus/index.d.ts +0 -9
- package/dist/components/menus/popover/PopoverArrow.d.ts +0 -17
- package/dist/components/menus/popover/PopoverContent.d.ts +0 -24
- package/dist/components/menus/popover/PopoverRoot.d.ts +0 -43
- package/dist/components/menus/popover/PopoverTrigger.d.ts +0 -17
- package/dist/components/menus/popover/index.d.ts +0 -9
- package/dist/components/modal/Modal.d.ts +0 -70
- package/dist/components/modal/modal-variants.d.ts +0 -26
- package/dist/components/modals/ConfirmDialog.d.ts +0 -27
- package/dist/components/modals/CustomDialog.d.ts +0 -10
- package/dist/components/modals/Modal.d.ts +0 -19
- package/dist/components/modals/ModalProvider.d.ts +0 -16
- package/dist/components/modals/SimpleModal.d.ts +0 -11
- package/dist/components/navigation/Breadcrumbs.d.ts +0 -12
- package/dist/components/navigation/Pagination.d.ts +0 -10
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +0 -52
- package/dist/components/navigation/breadcrumbs/index.d.ts +0 -5
- package/dist/components/navigation/index.d.ts +0 -10
- package/dist/components/navigation/pagination/Pagination.d.ts +0 -60
- package/dist/components/navigation/pagination/index.d.ts +0 -5
- package/dist/components/navigation/segmented-control/SegmentedControl.d.ts +0 -43
- package/dist/components/navigation/segmented-control/index.d.ts +0 -5
- package/dist/components/navigation/stepper/Stepper.d.ts +0 -129
- package/dist/components/navigation/stepper/index.d.ts +0 -5
- package/dist/components/navigation/tabs/Tabs.d.ts +0 -73
- package/dist/components/navigation/tabs/index.d.ts +0 -5
- package/dist/components/notifications/NotificationCenter.DismissAll.d.ts +0 -21
- package/dist/components/notifications/NotificationCenter.GroupHeader.d.ts +0 -23
- package/dist/components/notifications/NotificationCenter.Item.d.ts +0 -24
- package/dist/components/notifications/NotificationCenter.List.d.ts +0 -22
- package/dist/components/notifications/NotificationCenter.Panel.d.ts +0 -32
- package/dist/components/notifications/NotificationCenter.Provider.d.ts +0 -31
- package/dist/components/notifications/NotificationCenter.Trigger.d.ts +0 -15
- package/dist/components/notifications/NotificationCenter.d.ts +0 -27
- package/dist/components/notifications/NotificationCenter.types.d.ts +0 -89
- package/dist/components/notifications/index.d.ts +0 -23
- package/dist/components/notifications/useNotificationCenter.d.ts +0 -47
- package/dist/components/overlays/Backdrop.d.ts +0 -24
- package/dist/components/overlays/Dialog.d.ts +0 -66
- package/dist/components/overlays/Modal.d.ts +0 -60
- package/dist/components/overlays/OverlayPortal.d.ts +0 -22
- package/dist/components/overlays/Popover.d.ts +0 -30
- package/dist/components/overlays/Portal.d.ts +0 -29
- package/dist/components/overlays/Toast.d.ts +0 -36
- package/dist/components/overlays/ToastProvider.d.ts +0 -58
- package/dist/components/overlays/ToastViewport.d.ts +0 -27
- package/dist/components/overlays/Tooltip.d.ts +0 -28
- package/dist/components/overlays/index.d.ts +0 -13
- package/dist/components/overlays/utils/FocusLock.d.ts +0 -30
- package/dist/components/overlays/utils/ScrollLock.d.ts +0 -11
- package/dist/components/overlays/utils/positioning.d.ts +0 -68
- package/dist/components/primitives/Badge.d.ts +0 -9
- package/dist/components/primitives/Button.d.ts +0 -1
- package/dist/components/primitives/Card.d.ts +0 -1
- package/dist/components/primitives/Divider.d.ts +0 -7
- package/dist/components/primitives/Input.d.ts +0 -4
- package/dist/components/primitives/Label.d.ts +0 -1
- package/dist/components/primitives/Link.d.ts +0 -13
- package/dist/components/primitives/ThemeSwitch.d.ts +0 -9
- package/dist/components/radio/Radio.d.ts +0 -23
- package/dist/components/radio/Radio.types.d.ts +0 -63
- package/dist/components/radio/RadioGroup.d.ts +0 -20
- package/dist/components/radio/RadioGroup.types.d.ts +0 -61
- package/dist/components/radio/index.d.ts +0 -5
- package/dist/components/radio/radio-variants.d.ts +0 -13
- package/dist/components/search/SearchBar.d.ts +0 -10
- package/dist/components/sections/ArticlesSection.d.ts +0 -25
- package/dist/components/sections/CTASection.d.ts +0 -37
- package/dist/components/sections/FeatureSection.d.ts +0 -33
- package/dist/components/sections/HeroSection.d.ts +0 -27
- package/dist/components/sections/TrendingSection.d.ts +0 -28
- package/dist/components/select/Select.d.ts +0 -38
- package/dist/components/select/Select.types.d.ts +0 -107
- package/dist/components/select/index.d.ts +0 -5
- package/dist/components/select/legacy/select.d.ts +0 -11
- package/dist/components/select/select-variants.d.ts +0 -32
- package/dist/components/skeletons/EventCardSkeleton.d.ts +0 -6
- package/dist/components/skeletons/VenueCardSkeleton.d.ts +0 -6
- package/dist/components/switch/Switch.d.ts +0 -24
- package/dist/components/switch/Switch.types.d.ts +0 -53
- package/dist/components/switch/index.d.ts +0 -3
- package/dist/components/switch/switch-variants.d.ts +0 -34
- package/dist/components/textarea/Textarea.d.ts +0 -21
- package/dist/components/textarea/Textarea.types.d.ts +0 -40
- package/dist/components/textarea/index.d.ts +0 -3
- package/dist/components/textarea/legacy/textarea.d.ts +0 -11
- package/dist/components/textarea/textarea-variants.d.ts +0 -14
- package/dist/components/toasts/Toast.d.ts +0 -12
- package/dist/components/toasts/ToastProvider.d.ts +0 -26
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/body.d.ts +0 -12
- package/dist/components/ui/button.d.ts +0 -13
- package/dist/components/ui/caption.d.ts +0 -11
- package/dist/components/ui/card.d.ts +0 -8
- package/dist/components/ui/code.d.ts +0 -11
- package/dist/components/ui/dialog.d.ts +0 -19
- package/dist/components/ui/display.d.ts +0 -12
- package/dist/components/ui/field.d.ts +0 -45
- package/dist/components/ui/heading.d.ts +0 -12
- package/dist/components/ui/label.d.ts +0 -12
- package/dist/components/ui/lead.d.ts +0 -11
- package/dist/components/ui/text.d.ts +0 -18
- package/dist/components/ui/toast.d.ts +0 -15
- package/dist/components/ui/toaster.d.ts +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -7
- package/dist/dark-Cvoy1uFT.js +0 -30
- package/dist/dark-OOhiqt1q.cjs +0 -2
- package/dist/default-BKgH1D9-.js +0 -8
- package/dist/default-Ddg7Haf2.cjs +0 -2
- package/dist/hooks/use-toast.d.ts +0 -44
- package/dist/hooks/useDebounce.d.ts +0 -19
- package/dist/hooks/useModal.d.ts +0 -19
- package/dist/hooks/useToast.d.ts +0 -26
- package/dist/icons/IconArrowRight.d.ts +0 -6
- package/dist/icons/IconCalendar.d.ts +0 -6
- package/dist/icons/IconCheck.d.ts +0 -6
- package/dist/icons/IconChevronDown.d.ts +0 -6
- package/dist/icons/IconChevronRight.d.ts +0 -6
- package/dist/icons/IconClose.d.ts +0 -6
- package/dist/icons/IconError.d.ts +0 -6
- package/dist/icons/IconInfo.d.ts +0 -6
- package/dist/icons/IconLocation.d.ts +0 -6
- package/dist/icons/IconMenu.d.ts +0 -6
- package/dist/icons/IconSearch.d.ts +0 -6
- package/dist/icons/IconSuccess.d.ts +0 -6
- package/dist/icons/IconWarning.d.ts +0 -6
- package/dist/icons/icon.types.d.ts +0 -25
- package/dist/icons/index.d.ts +0 -34
- package/dist/lib/a11y.d.ts +0 -15
- package/dist/lib/responsive-props.d.ts +0 -63
- package/dist/lib/utils.d.ts +0 -8
- package/dist/motion-CzQhSEqk.js +0 -738
- package/dist/motion-DJx1TbXJ.cjs +0 -2
- package/dist/theme/ThemeProvider.d.ts +0 -55
- package/dist/theme/applyMode.d.ts +0 -42
- package/dist/theme/colors.d.ts +0 -6
- package/dist/theme/loader.d.ts +0 -63
- package/dist/theme/motion/gestures.d.ts +0 -76
- package/dist/theme/motion/useReducedMotion.d.ts +0 -11
- package/dist/theme/motion.d.ts +0 -127
- package/dist/theme/registry.d.ts +0 -70
- package/dist/theme/schema.d.ts +0 -124
- package/dist/theme/spacing.d.ts +0 -34
- package/dist/theme/typography.d.ts +0 -45
- package/dist/themes/brand.d.ts +0 -6
- package/dist/themes/brand_engine.d.ts +0 -108
- package/dist/themes/dark.d.ts +0 -6
- package/dist/themes/default.d.ts +0 -6
- package/dist/themes/index.d.ts +0 -24
- package/dist/themes/minimal.d.ts +0 -6
- package/dist/themes/neon.d.ts +0 -6
- package/dist/themes/types.d.ts +0 -278
- package/dist/tokens/components/alert.d.ts +0 -74
- package/dist/tokens/components/button.d.ts +0 -130
- package/dist/tokens/components/card.d.ts +0 -91
- package/dist/tokens/components/checkbox.d.ts +0 -161
- package/dist/tokens/components/data.d.ts +0 -227
- package/dist/tokens/components/domain.d.ts +0 -379
- package/dist/tokens/components/dropdown.d.ts +0 -146
- package/dist/tokens/components/icon.d.ts +0 -57
- package/dist/tokens/components/index.d.ts +0 -31
- package/dist/tokens/components/input.d.ts +0 -284
- package/dist/tokens/components/menu.d.ts +0 -114
- package/dist/tokens/components/motion.d.ts +0 -103
- package/dist/tokens/components/navigation.d.ts +0 -181
- package/dist/tokens/components/notifications.d.ts +0 -159
- package/dist/tokens/components/overlay.d.ts +0 -227
- package/dist/tokens/components/popover.d.ts +0 -84
- package/dist/tokens/components/radio.d.ts +0 -149
- package/dist/tokens/components/section.d.ts +0 -41
- package/dist/tokens/components/surface.d.ts +0 -94
- package/dist/tokens/components/switch.d.ts +0 -208
- package/dist/tokens/components/text.d.ts +0 -68
- package/dist/tokens/components/toast.d.ts +0 -146
- package/dist/tokens/components/tooltip.d.ts +0 -52
- package/dist/tokens/css-variables.d.ts +0 -251
- package/dist/tokens/motion/v2.d.ts +0 -342
- package/dist/tokens/motion.d.ts +0 -485
- package/dist/tokens/opacity.d.ts +0 -22
- package/dist/tokens/radius.d.ts +0 -161
- package/dist/tokens/shadows.d.ts +0 -230
- package/dist/tokens/spacing.d.ts +0 -238
- package/dist/tokens/theme.d.ts +0 -119
- package/dist/tokens/typography.d.ts +0 -460
- package/dist/typography-C-Nb4y0o.cjs +0 -2
- package/dist/typography-DHym9KAP.js +0 -1196
package/dist/tokens/index.mjs
CHANGED
|
@@ -1,9 +1,396 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
// src/tokens/colors.ts
|
|
2
|
+
var primaryColors = {
|
|
3
|
+
50: "210 40% 98%",
|
|
4
|
+
// Lightest blue
|
|
5
|
+
100: "210 40% 96%",
|
|
6
|
+
200: "217 32.6% 17.5%",
|
|
7
|
+
300: "216 28% 26%",
|
|
8
|
+
400: "215 25% 27%",
|
|
9
|
+
500: "215 20% 35%",
|
|
10
|
+
// Base primary
|
|
11
|
+
600: "215 16% 47%",
|
|
12
|
+
700: "216 12% 54%",
|
|
13
|
+
800: "217 10% 62%",
|
|
14
|
+
900: "222 47.4% 11.2%",
|
|
15
|
+
950: "222 84% 4.9%"
|
|
16
|
+
// Darkest blue
|
|
17
|
+
};
|
|
18
|
+
var accentColors = {
|
|
19
|
+
50: "280 100% 98%",
|
|
20
|
+
100: "280 65% 96%",
|
|
21
|
+
200: "280 60% 85%",
|
|
22
|
+
300: "280 55% 75%",
|
|
23
|
+
400: "280 50% 65%",
|
|
24
|
+
500: "280 70% 67%",
|
|
25
|
+
// Base accent (night mode primary)
|
|
26
|
+
600: "259 65% 58%",
|
|
27
|
+
700: "259 60% 50%",
|
|
28
|
+
800: "259 55% 45%",
|
|
29
|
+
900: "259 50% 40%",
|
|
30
|
+
950: "259 45% 30%"
|
|
31
|
+
};
|
|
32
|
+
var secondaryColors = {
|
|
33
|
+
50: "173 100% 98%",
|
|
34
|
+
100: "173 100% 95%",
|
|
35
|
+
200: "173 100% 85%",
|
|
36
|
+
300: "173 100% 70%",
|
|
37
|
+
400: "173 100% 55%",
|
|
38
|
+
500: "173 100% 37%",
|
|
39
|
+
// Base secondary (Tenerife #00bfa6)
|
|
40
|
+
600: "173 100% 32%",
|
|
41
|
+
700: "173 95% 27%",
|
|
42
|
+
800: "173 90% 22%",
|
|
43
|
+
900: "173 85% 17%",
|
|
44
|
+
950: "173 80% 12%"
|
|
45
|
+
};
|
|
46
|
+
var surfaceColors = {
|
|
47
|
+
day: {
|
|
48
|
+
base: "0 0% 100%",
|
|
49
|
+
// White background
|
|
50
|
+
elevated1: "0 0% 98%",
|
|
51
|
+
// Slightly elevated
|
|
52
|
+
elevated2: "0 0% 96%",
|
|
53
|
+
// More elevated
|
|
54
|
+
elevated3: "0 0% 94%",
|
|
55
|
+
// Most elevated
|
|
56
|
+
overlay: "0 0% 0% / 0.5",
|
|
57
|
+
// Overlay backdrop
|
|
58
|
+
glass: "0 0% 100% / 0.8"
|
|
59
|
+
// Glass effect
|
|
60
|
+
},
|
|
61
|
+
night: {
|
|
62
|
+
base: "240 10% 3.9%",
|
|
63
|
+
// Dark background (#0b0b10)
|
|
64
|
+
elevated1: "240 10% 5.1%",
|
|
65
|
+
// #0e1016
|
|
66
|
+
elevated2: "240 10% 6.3%",
|
|
67
|
+
// Slightly lighter
|
|
68
|
+
elevated3: "240 10% 7.5%",
|
|
69
|
+
// Even lighter
|
|
70
|
+
overlay: "0 0% 0% / 0.7",
|
|
71
|
+
// Darker overlay
|
|
72
|
+
glass: "240 10% 10% / 0.9"
|
|
73
|
+
// Dark glass effect
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var semanticColors = {
|
|
77
|
+
day: {
|
|
78
|
+
success: "142 70% 28%",
|
|
79
|
+
// Darker green for better contrast
|
|
80
|
+
successForeground: "0 0% 100%",
|
|
81
|
+
error: "0 80% 40%",
|
|
82
|
+
// Richer red for contrast
|
|
83
|
+
errorForeground: "0 0% 100%",
|
|
84
|
+
warning: "38 92% 50%",
|
|
85
|
+
// Orange
|
|
86
|
+
warningForeground: "0 0% 9%",
|
|
87
|
+
info: "199 89% 48%",
|
|
88
|
+
// Blue
|
|
89
|
+
infoForeground: "0 0% 100%"
|
|
90
|
+
},
|
|
91
|
+
night: {
|
|
92
|
+
success: "142 70% 45%",
|
|
93
|
+
successForeground: "0 0% 100%",
|
|
94
|
+
error: "0 62.8% 30.6%",
|
|
95
|
+
// Darker red
|
|
96
|
+
errorForeground: "0 0% 98%",
|
|
97
|
+
warning: "38 92% 33%",
|
|
98
|
+
// Darker orange for WCAG AA contrast with white text
|
|
99
|
+
warningForeground: "0 0% 100%",
|
|
100
|
+
// Light foreground for dark theme readability
|
|
101
|
+
info: "199 89% 35%",
|
|
102
|
+
// Darker blue for WCAG AA contrast with white text
|
|
103
|
+
infoForeground: "0 0% 100%"
|
|
104
|
+
// Light foreground for dark theme readability
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
var chartColors = {
|
|
108
|
+
day: {
|
|
109
|
+
chart1: "12 76% 61%",
|
|
110
|
+
// Orange-red
|
|
111
|
+
chart2: "173 58% 39%",
|
|
112
|
+
// Teal-cyan
|
|
113
|
+
chart3: "197 37% 24%",
|
|
114
|
+
// Dark blue
|
|
115
|
+
chart4: "43 74% 66%",
|
|
116
|
+
// Yellow
|
|
117
|
+
chart5: "27 87% 67%"
|
|
118
|
+
// Orange
|
|
119
|
+
},
|
|
120
|
+
night: {
|
|
121
|
+
chart1: "220 70% 50%",
|
|
122
|
+
// Blue
|
|
123
|
+
chart2: "160 60% 45%",
|
|
124
|
+
// Teal
|
|
125
|
+
chart3: "30 80% 55%",
|
|
126
|
+
// Orange
|
|
127
|
+
chart4: "280 65% 60%",
|
|
128
|
+
// Purple
|
|
129
|
+
chart5: "340 75% 55%"
|
|
130
|
+
// Pink
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
var textColors = {
|
|
134
|
+
day: {
|
|
135
|
+
primary: "0 0% 9%",
|
|
136
|
+
// Almost black
|
|
137
|
+
secondary: "0 0% 45%",
|
|
138
|
+
// Medium gray
|
|
139
|
+
tertiary: "0 0% 65%",
|
|
140
|
+
// Light gray
|
|
141
|
+
muted: "0 0% 38%",
|
|
142
|
+
// Muted gray with stronger contrast
|
|
143
|
+
inverse: "0 0% 100%"
|
|
144
|
+
// White (for dark backgrounds)
|
|
145
|
+
},
|
|
146
|
+
night: {
|
|
147
|
+
primary: "0 0% 89.8%",
|
|
148
|
+
// Light gray (#e5e7eb)
|
|
149
|
+
secondary: "240 5% 64.9%",
|
|
150
|
+
// Medium gray
|
|
151
|
+
tertiary: "240 5% 50%",
|
|
152
|
+
// Darker gray
|
|
153
|
+
muted: "240 5% 64.9%",
|
|
154
|
+
// Muted gray
|
|
155
|
+
inverse: "0 0% 9%"
|
|
156
|
+
// Almost black (for light backgrounds)
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
var baseColors = {
|
|
160
|
+
day: {
|
|
161
|
+
background: "0 0% 100%",
|
|
162
|
+
foreground: "0 0% 9%",
|
|
163
|
+
card: "0 0% 100%",
|
|
164
|
+
cardForeground: "0 0% 9%",
|
|
165
|
+
popover: "0 0% 100%",
|
|
166
|
+
popoverForeground: "0 0% 9%",
|
|
167
|
+
border: "0 0% 89.8%",
|
|
168
|
+
input: "0 0% 89.8%",
|
|
169
|
+
ring: "0 0% 3.9%"
|
|
170
|
+
},
|
|
171
|
+
night: {
|
|
172
|
+
background: "240 10% 3.9%",
|
|
173
|
+
// #0b0b10
|
|
174
|
+
foreground: "0 0% 89.8%",
|
|
175
|
+
// #e5e7eb
|
|
176
|
+
card: "240 10% 3.9%",
|
|
177
|
+
cardForeground: "0 0% 89.8%",
|
|
178
|
+
popover: "240 10% 5.1%",
|
|
179
|
+
// #0e1016
|
|
180
|
+
popoverForeground: "0 0% 89.8%",
|
|
181
|
+
border: "240 3.7% 15.9%",
|
|
182
|
+
input: "240 3.7% 15.9%",
|
|
183
|
+
ring: "240 4.9% 83.9%"
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
var cssVariableColorTokens = {
|
|
187
|
+
day: {
|
|
188
|
+
...baseColors.day,
|
|
189
|
+
primary: "hsl(var(--tm-primary))",
|
|
190
|
+
primaryForeground: "hsl(var(--tm-primary-foreground))",
|
|
191
|
+
secondary: "hsl(var(--tm-secondary))",
|
|
192
|
+
secondaryForeground: "hsl(var(--tm-secondary-foreground))",
|
|
193
|
+
muted: "hsl(var(--muted))",
|
|
194
|
+
mutedForeground: "hsl(var(--muted-foreground))",
|
|
195
|
+
accent: "hsl(var(--tm-accent))",
|
|
196
|
+
accentForeground: "hsl(var(--tm-accent-foreground))",
|
|
197
|
+
destructive: `hsl(${semanticColors.day.error})`,
|
|
198
|
+
destructiveForeground: semanticColors.day.errorForeground,
|
|
199
|
+
chart1: `hsl(${chartColors.day.chart1})`,
|
|
200
|
+
chart2: `hsl(${chartColors.day.chart2})`,
|
|
201
|
+
chart3: `hsl(${chartColors.day.chart3})`,
|
|
202
|
+
chart4: `hsl(${chartColors.day.chart4})`,
|
|
203
|
+
chart5: `hsl(${chartColors.day.chart5})`
|
|
204
|
+
},
|
|
205
|
+
night: {
|
|
206
|
+
...baseColors.night,
|
|
207
|
+
primary: "hsl(var(--tm-primary))",
|
|
208
|
+
primaryForeground: "hsl(var(--tm-primary-foreground))",
|
|
209
|
+
secondary: "hsl(var(--tm-secondary))",
|
|
210
|
+
secondaryForeground: "hsl(var(--tm-secondary-foreground))",
|
|
211
|
+
muted: "hsl(var(--muted))",
|
|
212
|
+
mutedForeground: "hsl(var(--muted-foreground))",
|
|
213
|
+
accent: "hsl(var(--tm-accent))",
|
|
214
|
+
accentForeground: "hsl(var(--tm-accent-foreground))",
|
|
215
|
+
destructive: `hsl(${semanticColors.night.error})`,
|
|
216
|
+
destructiveForeground: semanticColors.night.errorForeground,
|
|
217
|
+
chart1: `hsl(${chartColors.night.chart1})`,
|
|
218
|
+
chart2: `hsl(${chartColors.night.chart2})`,
|
|
219
|
+
chart3: `hsl(${chartColors.night.chart3})`,
|
|
220
|
+
chart4: `hsl(${chartColors.night.chart4})`,
|
|
221
|
+
chart5: `hsl(${chartColors.night.chart5})`
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
var colorCSSVariables = {
|
|
225
|
+
// Primary scale
|
|
226
|
+
"--primary-50": primaryColors[50],
|
|
227
|
+
"--primary-100": primaryColors[100],
|
|
228
|
+
"--primary-200": primaryColors[200],
|
|
229
|
+
"--primary-300": primaryColors[300],
|
|
230
|
+
"--primary-400": primaryColors[400],
|
|
231
|
+
"--primary-500": primaryColors[500],
|
|
232
|
+
"--primary-600": primaryColors[600],
|
|
233
|
+
"--primary-700": primaryColors[700],
|
|
234
|
+
"--primary-800": primaryColors[800],
|
|
235
|
+
"--primary-900": primaryColors[900],
|
|
236
|
+
"--primary-950": primaryColors[950],
|
|
237
|
+
// Accent scale
|
|
238
|
+
"--accent-50": accentColors[50],
|
|
239
|
+
"--accent-100": accentColors[100],
|
|
240
|
+
"--accent-200": accentColors[200],
|
|
241
|
+
"--accent-300": accentColors[300],
|
|
242
|
+
"--accent-400": accentColors[400],
|
|
243
|
+
"--accent-500": accentColors[500],
|
|
244
|
+
"--accent-600": accentColors[600],
|
|
245
|
+
"--accent-700": accentColors[700],
|
|
246
|
+
"--accent-800": accentColors[800],
|
|
247
|
+
"--accent-900": accentColors[900],
|
|
248
|
+
"--accent-950": accentColors[950],
|
|
249
|
+
// Secondary scale
|
|
250
|
+
"--secondary-50": secondaryColors[50],
|
|
251
|
+
"--secondary-100": secondaryColors[100],
|
|
252
|
+
"--secondary-200": secondaryColors[200],
|
|
253
|
+
"--secondary-300": secondaryColors[300],
|
|
254
|
+
"--secondary-400": secondaryColors[400],
|
|
255
|
+
"--secondary-500": secondaryColors[500],
|
|
256
|
+
"--secondary-600": secondaryColors[600],
|
|
257
|
+
"--secondary-700": secondaryColors[700],
|
|
258
|
+
"--secondary-800": secondaryColors[800],
|
|
259
|
+
"--secondary-900": secondaryColors[900],
|
|
260
|
+
"--secondary-950": secondaryColors[950]
|
|
261
|
+
// Surface colors (mode-dependent, set dynamically by theme system)
|
|
262
|
+
// Note: These are set via updateCSSVariablesFromTokens() in applyMode.ts
|
|
263
|
+
// Semantic colors (mode-dependent, set dynamically by theme system)
|
|
264
|
+
// Note: These are set via updateCSSVariablesFromTokens() in applyMode.ts
|
|
265
|
+
// Text colors (mode-dependent, set dynamically by theme system)
|
|
266
|
+
// Note: These are set via updateCSSVariablesFromTokens() in applyMode.ts
|
|
267
|
+
// Chart colors (mode-dependent, set dynamically by theme system)
|
|
268
|
+
// Note: These are set via updateCSSVariablesFromTokens() in applyMode.ts
|
|
269
|
+
};
|
|
270
|
+
var tailwindThemeColors = {
|
|
271
|
+
// Base colors
|
|
272
|
+
background: "hsl(var(--background))",
|
|
273
|
+
foreground: "hsl(var(--foreground))",
|
|
274
|
+
// Card colors
|
|
275
|
+
card: {
|
|
276
|
+
DEFAULT: "hsl(var(--card))",
|
|
277
|
+
foreground: "hsl(var(--card-foreground))"
|
|
278
|
+
},
|
|
279
|
+
// Popover colors
|
|
280
|
+
popover: {
|
|
281
|
+
DEFAULT: "hsl(var(--popover))",
|
|
282
|
+
foreground: "hsl(var(--popover-foreground))"
|
|
283
|
+
},
|
|
284
|
+
// Primary colors (using CSS variables)
|
|
285
|
+
primary: {
|
|
286
|
+
DEFAULT: "hsl(var(--tm-primary))",
|
|
287
|
+
foreground: "hsl(var(--tm-primary-foreground))",
|
|
288
|
+
50: `hsl(var(--primary-50))`,
|
|
289
|
+
100: `hsl(var(--primary-100))`,
|
|
290
|
+
200: `hsl(var(--primary-200))`,
|
|
291
|
+
300: `hsl(var(--primary-300))`,
|
|
292
|
+
400: `hsl(var(--primary-400))`,
|
|
293
|
+
500: `hsl(var(--primary-500))`,
|
|
294
|
+
600: `hsl(var(--primary-600))`,
|
|
295
|
+
700: `hsl(var(--primary-700))`,
|
|
296
|
+
800: `hsl(var(--primary-800))`,
|
|
297
|
+
900: `hsl(var(--primary-900))`,
|
|
298
|
+
950: `hsl(var(--primary-950))`
|
|
299
|
+
},
|
|
300
|
+
// Secondary colors
|
|
301
|
+
secondary: {
|
|
302
|
+
DEFAULT: "hsl(var(--tm-secondary))",
|
|
303
|
+
foreground: "hsl(var(--tm-secondary-foreground))",
|
|
304
|
+
50: `hsl(var(--secondary-50))`,
|
|
305
|
+
100: `hsl(var(--secondary-100))`,
|
|
306
|
+
200: `hsl(var(--secondary-200))`,
|
|
307
|
+
300: `hsl(var(--secondary-300))`,
|
|
308
|
+
400: `hsl(var(--secondary-400))`,
|
|
309
|
+
500: `hsl(var(--secondary-500))`,
|
|
310
|
+
600: `hsl(var(--secondary-600))`,
|
|
311
|
+
700: `hsl(var(--secondary-700))`,
|
|
312
|
+
800: `hsl(var(--secondary-800))`,
|
|
313
|
+
900: `hsl(var(--secondary-900))`,
|
|
314
|
+
950: `hsl(var(--secondary-950))`
|
|
315
|
+
},
|
|
316
|
+
// Accent colors
|
|
317
|
+
accent: {
|
|
318
|
+
DEFAULT: "hsl(var(--tm-accent))",
|
|
319
|
+
foreground: "hsl(var(--tm-accent-foreground))",
|
|
320
|
+
50: `hsl(var(--accent-50))`,
|
|
321
|
+
100: `hsl(var(--accent-100))`,
|
|
322
|
+
200: `hsl(var(--accent-200))`,
|
|
323
|
+
300: `hsl(var(--accent-300))`,
|
|
324
|
+
400: `hsl(var(--accent-400))`,
|
|
325
|
+
500: `hsl(var(--accent-500))`,
|
|
326
|
+
600: `hsl(var(--accent-600))`,
|
|
327
|
+
700: `hsl(var(--accent-700))`,
|
|
328
|
+
800: `hsl(var(--accent-800))`,
|
|
329
|
+
900: `hsl(var(--accent-900))`,
|
|
330
|
+
950: `hsl(var(--accent-950))`
|
|
331
|
+
},
|
|
332
|
+
// Muted colors
|
|
333
|
+
muted: {
|
|
334
|
+
DEFAULT: "hsl(var(--muted))",
|
|
335
|
+
foreground: "hsl(var(--muted-foreground))"
|
|
336
|
+
},
|
|
337
|
+
// Destructive colors (semantic error)
|
|
338
|
+
destructive: {
|
|
339
|
+
DEFAULT: "hsl(var(--destructive))",
|
|
340
|
+
foreground: "hsl(var(--destructive-foreground))"
|
|
341
|
+
},
|
|
342
|
+
// Semantic colors
|
|
343
|
+
success: {
|
|
344
|
+
DEFAULT: `hsl(var(--semantic-success))`,
|
|
345
|
+
foreground: `hsl(var(--semantic-success-foreground))`
|
|
346
|
+
},
|
|
347
|
+
error: {
|
|
348
|
+
DEFAULT: `hsl(var(--semantic-error))`,
|
|
349
|
+
foreground: `hsl(var(--semantic-error-foreground))`
|
|
350
|
+
},
|
|
351
|
+
warning: {
|
|
352
|
+
DEFAULT: `hsl(var(--semantic-warning))`,
|
|
353
|
+
foreground: `hsl(var(--semantic-warning-foreground))`
|
|
354
|
+
},
|
|
355
|
+
info: {
|
|
356
|
+
DEFAULT: `hsl(var(--semantic-info))`,
|
|
357
|
+
foreground: `hsl(var(--semantic-info-foreground))`
|
|
358
|
+
},
|
|
359
|
+
// Surface colors
|
|
360
|
+
surface: {
|
|
361
|
+
base: `hsl(var(--surface-base))`,
|
|
362
|
+
elevated1: `hsl(var(--surface-elevated1))`,
|
|
363
|
+
elevated2: `hsl(var(--surface-elevated2))`,
|
|
364
|
+
elevated3: `hsl(var(--surface-elevated3))`,
|
|
365
|
+
overlay: `hsl(var(--surface-overlay))`,
|
|
366
|
+
glass: `hsl(var(--surface-glass))`
|
|
367
|
+
},
|
|
368
|
+
// Text colors
|
|
369
|
+
text: {
|
|
370
|
+
primary: `hsl(var(--text-primary))`,
|
|
371
|
+
secondary: `hsl(var(--text-secondary))`,
|
|
372
|
+
tertiary: `hsl(var(--text-tertiary))`,
|
|
373
|
+
muted: `hsl(var(--text-muted))`,
|
|
374
|
+
destructive: `hsl(var(--destructive))`,
|
|
375
|
+
accent: `hsl(var(--tm-accent))`,
|
|
376
|
+
inverse: `hsl(var(--text-inverse))`
|
|
377
|
+
},
|
|
378
|
+
// Border and input
|
|
379
|
+
border: "hsl(var(--border))",
|
|
380
|
+
input: "hsl(var(--input))",
|
|
381
|
+
ring: "hsl(var(--ring))",
|
|
382
|
+
// Chart colors (using CSS variables)
|
|
383
|
+
chart: {
|
|
384
|
+
1: `hsl(var(--chart-1))`,
|
|
385
|
+
2: `hsl(var(--chart-2))`,
|
|
386
|
+
3: `hsl(var(--chart-3))`,
|
|
387
|
+
4: `hsl(var(--chart-4))`,
|
|
388
|
+
5: `hsl(var(--chart-5))`
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
// src/tokens/components/alert.ts
|
|
393
|
+
var ALERT_TOKENS = {
|
|
7
394
|
/**
|
|
8
395
|
* Padding for alert content
|
|
9
396
|
*/
|
|
@@ -62,7 +449,10 @@ const v = {
|
|
|
62
449
|
radius: "rounded-lg"
|
|
63
450
|
}
|
|
64
451
|
}
|
|
65
|
-
}
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
// src/tokens/components/button.ts
|
|
455
|
+
var BUTTON_TOKENS = {
|
|
66
456
|
/**
|
|
67
457
|
* Button heights by size
|
|
68
458
|
* Maps to Tailwind height utilities: h-8, h-9, h-10
|
|
@@ -206,7 +596,10 @@ const v = {
|
|
|
206
596
|
colors: "transition-colors"
|
|
207
597
|
// Color transition using motion tokens
|
|
208
598
|
}
|
|
209
|
-
}
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
// src/tokens/components/card.ts
|
|
602
|
+
var CARD_TOKENS = {
|
|
210
603
|
/**
|
|
211
604
|
* Padding for card sections (CardHeader, CardContent, CardFooter)
|
|
212
605
|
*/
|
|
@@ -287,7 +680,270 @@ const v = {
|
|
|
287
680
|
}
|
|
288
681
|
}
|
|
289
682
|
}
|
|
290
|
-
}
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
// src/tokens/spacing.ts
|
|
686
|
+
var spacing = {
|
|
687
|
+
// Zero spacing
|
|
688
|
+
0: "0",
|
|
689
|
+
px: "1px",
|
|
690
|
+
// Half unit (4px)
|
|
691
|
+
0.5: "0.125rem",
|
|
692
|
+
// 4px
|
|
693
|
+
// Base unit multiples (8px increments)
|
|
694
|
+
1: "0.25rem",
|
|
695
|
+
// 4px (half unit, common)
|
|
696
|
+
1.5: "0.375rem",
|
|
697
|
+
// 6px (rare, for fine adjustments)
|
|
698
|
+
2: "0.5rem",
|
|
699
|
+
// 8px (base unit)
|
|
700
|
+
2.5: "0.625rem",
|
|
701
|
+
// 10px (rare)
|
|
702
|
+
3: "0.75rem",
|
|
703
|
+
// 12px (1.5 × base)
|
|
704
|
+
3.5: "0.875rem",
|
|
705
|
+
// 14px (rare)
|
|
706
|
+
4: "1rem",
|
|
707
|
+
// 16px (2 × base)
|
|
708
|
+
5: "1.25rem",
|
|
709
|
+
// 20px (2.5 × base)
|
|
710
|
+
6: "1.5rem",
|
|
711
|
+
// 24px (3 × base)
|
|
712
|
+
7: "1.75rem",
|
|
713
|
+
// 28px (3.5 × base)
|
|
714
|
+
8: "2rem",
|
|
715
|
+
// 32px (4 × base)
|
|
716
|
+
9: "2.25rem",
|
|
717
|
+
// 36px (4.5 × base)
|
|
718
|
+
10: "2.5rem",
|
|
719
|
+
// 40px (5 × base)
|
|
720
|
+
11: "2.75rem",
|
|
721
|
+
// 44px (5.5 × base)
|
|
722
|
+
12: "3rem",
|
|
723
|
+
// 48px (6 × base)
|
|
724
|
+
14: "3.5rem",
|
|
725
|
+
// 56px (7 × base)
|
|
726
|
+
16: "4rem",
|
|
727
|
+
// 64px (8 × base)
|
|
728
|
+
20: "5rem",
|
|
729
|
+
// 80px (10 × base)
|
|
730
|
+
24: "6rem",
|
|
731
|
+
// 96px (12 × base)
|
|
732
|
+
// Extended scale for larger spacing
|
|
733
|
+
28: "7rem",
|
|
734
|
+
// 112px (14 × base)
|
|
735
|
+
32: "8rem",
|
|
736
|
+
// 128px (16 × base)
|
|
737
|
+
36: "9rem",
|
|
738
|
+
// 144px (18 × base)
|
|
739
|
+
40: "10rem",
|
|
740
|
+
// 160px (20 × base)
|
|
741
|
+
44: "11rem",
|
|
742
|
+
// 176px (22 × base)
|
|
743
|
+
48: "12rem",
|
|
744
|
+
// 192px (24 × base)
|
|
745
|
+
52: "13rem",
|
|
746
|
+
// 208px (26 × base)
|
|
747
|
+
56: "14rem",
|
|
748
|
+
// 224px (28 × base)
|
|
749
|
+
60: "15rem",
|
|
750
|
+
// 240px (30 × base)
|
|
751
|
+
64: "16rem",
|
|
752
|
+
// 256px (32 × base)
|
|
753
|
+
72: "18rem",
|
|
754
|
+
// 288px (36 × base)
|
|
755
|
+
80: "20rem",
|
|
756
|
+
// 320px (40 × base)
|
|
757
|
+
96: "24rem"
|
|
758
|
+
// 384px (48 × base)
|
|
759
|
+
};
|
|
760
|
+
var semanticSpacing = {
|
|
761
|
+
// Extra small spacing (tight, minimal)
|
|
762
|
+
xs: spacing[1],
|
|
763
|
+
// 4px (0.25rem)
|
|
764
|
+
// Small spacing (compact)
|
|
765
|
+
sm: spacing[2],
|
|
766
|
+
// 8px (0.5rem)
|
|
767
|
+
// Medium spacing (default)
|
|
768
|
+
md: spacing[4],
|
|
769
|
+
// 16px (1rem)
|
|
770
|
+
// Large spacing (spacious)
|
|
771
|
+
lg: spacing[6],
|
|
772
|
+
// 24px (1.5rem)
|
|
773
|
+
// Extra large spacing (very spacious)
|
|
774
|
+
xl: spacing[8],
|
|
775
|
+
// 32px (2rem)
|
|
776
|
+
// 2XL spacing (section-level)
|
|
777
|
+
"2xl": spacing[12],
|
|
778
|
+
// 48px (3rem)
|
|
779
|
+
// 3XL spacing (major sections)
|
|
780
|
+
"3xl": spacing[16],
|
|
781
|
+
// 64px (4rem)
|
|
782
|
+
// 4XL spacing (page sections)
|
|
783
|
+
"4xl": spacing[20],
|
|
784
|
+
// 80px (5rem)
|
|
785
|
+
// 5XL spacing (hero sections)
|
|
786
|
+
"5xl": spacing[24],
|
|
787
|
+
// 96px (6rem)
|
|
788
|
+
// None (no spacing)
|
|
789
|
+
none: spacing[0]
|
|
790
|
+
// 0
|
|
791
|
+
};
|
|
792
|
+
var layoutSpacing = {
|
|
793
|
+
// Section spacing (vertical spacing between major sections)
|
|
794
|
+
section: {
|
|
795
|
+
xs: spacing[6],
|
|
796
|
+
// 24px (compact sections)
|
|
797
|
+
sm: spacing[8],
|
|
798
|
+
// 32px (small sections)
|
|
799
|
+
md: spacing[12],
|
|
800
|
+
// 48px (default sections)
|
|
801
|
+
lg: spacing[16],
|
|
802
|
+
// 64px (large sections)
|
|
803
|
+
xl: spacing[20],
|
|
804
|
+
// 80px (extra large sections)
|
|
805
|
+
"2xl": spacing[24]
|
|
806
|
+
// 96px (hero sections)
|
|
807
|
+
},
|
|
808
|
+
// Container spacing (padding inside containers)
|
|
809
|
+
container: {
|
|
810
|
+
xs: spacing[2],
|
|
811
|
+
// 8px (tight containers)
|
|
812
|
+
sm: spacing[4],
|
|
813
|
+
// 16px (compact containers)
|
|
814
|
+
md: spacing[6],
|
|
815
|
+
// 24px (default containers)
|
|
816
|
+
lg: spacing[8],
|
|
817
|
+
// 32px (spacious containers)
|
|
818
|
+
xl: spacing[12]
|
|
819
|
+
// 48px (very spacious containers)
|
|
820
|
+
},
|
|
821
|
+
// Grid spacing (gap between grid items)
|
|
822
|
+
grid: {
|
|
823
|
+
xs: spacing[2],
|
|
824
|
+
// 8px (tight grids)
|
|
825
|
+
sm: spacing[4],
|
|
826
|
+
// 16px (compact grids)
|
|
827
|
+
md: spacing[6],
|
|
828
|
+
// 24px (default grids)
|
|
829
|
+
lg: spacing[8],
|
|
830
|
+
// 32px (spacious grids)
|
|
831
|
+
xl: spacing[12]
|
|
832
|
+
// 48px (very spacious grids)
|
|
833
|
+
},
|
|
834
|
+
// Stack spacing (gap between stacked items)
|
|
835
|
+
stack: {
|
|
836
|
+
xs: spacing[1],
|
|
837
|
+
// 4px (tight stacks)
|
|
838
|
+
sm: spacing[2],
|
|
839
|
+
// 8px (compact stacks)
|
|
840
|
+
md: spacing[4],
|
|
841
|
+
// 16px (default stacks)
|
|
842
|
+
lg: spacing[6],
|
|
843
|
+
// 24px (spacious stacks)
|
|
844
|
+
xl: spacing[8]
|
|
845
|
+
// 32px (very spacious stacks)
|
|
846
|
+
},
|
|
847
|
+
// Component internal spacing (padding inside components)
|
|
848
|
+
component: {
|
|
849
|
+
xs: spacing[1],
|
|
850
|
+
// 4px (tight components)
|
|
851
|
+
sm: spacing[2],
|
|
852
|
+
// 8px (compact components)
|
|
853
|
+
md: spacing[4],
|
|
854
|
+
// 16px (default components)
|
|
855
|
+
lg: spacing[6],
|
|
856
|
+
// 24px (spacious components)
|
|
857
|
+
xl: spacing[8]
|
|
858
|
+
// 32px (extra spacious components)
|
|
859
|
+
}
|
|
860
|
+
};
|
|
861
|
+
var spacingCSSVariables = {
|
|
862
|
+
// Base spacing scale
|
|
863
|
+
"--spacing-0": spacing[0],
|
|
864
|
+
"--spacing-px": spacing.px,
|
|
865
|
+
"--spacing-0-5": spacing[0.5],
|
|
866
|
+
"--spacing-1": spacing[1],
|
|
867
|
+
"--spacing-1-5": spacing[1.5],
|
|
868
|
+
"--spacing-2": spacing[2],
|
|
869
|
+
"--spacing-2-5": spacing[2.5],
|
|
870
|
+
"--spacing-3": spacing[3],
|
|
871
|
+
"--spacing-3-5": spacing[3.5],
|
|
872
|
+
"--spacing-4": spacing[4],
|
|
873
|
+
"--spacing-5": spacing[5],
|
|
874
|
+
"--spacing-6": spacing[6],
|
|
875
|
+
"--spacing-7": spacing[7],
|
|
876
|
+
"--spacing-8": spacing[8],
|
|
877
|
+
"--spacing-9": spacing[9],
|
|
878
|
+
"--spacing-10": spacing[10],
|
|
879
|
+
"--spacing-11": spacing[11],
|
|
880
|
+
"--spacing-12": spacing[12],
|
|
881
|
+
"--spacing-14": spacing[14],
|
|
882
|
+
"--spacing-16": spacing[16],
|
|
883
|
+
"--spacing-20": spacing[20],
|
|
884
|
+
"--spacing-24": spacing[24],
|
|
885
|
+
// Semantic spacing
|
|
886
|
+
"--spacing-xs": semanticSpacing.xs,
|
|
887
|
+
"--spacing-sm": semanticSpacing.sm,
|
|
888
|
+
"--spacing-md": semanticSpacing.md,
|
|
889
|
+
"--spacing-lg": semanticSpacing.lg,
|
|
890
|
+
"--spacing-xl": semanticSpacing.xl,
|
|
891
|
+
"--spacing-2xl": semanticSpacing["2xl"],
|
|
892
|
+
"--spacing-3xl": semanticSpacing["3xl"],
|
|
893
|
+
"--spacing-4xl": semanticSpacing["4xl"],
|
|
894
|
+
"--spacing-5xl": semanticSpacing["5xl"],
|
|
895
|
+
"--spacing-none": semanticSpacing.none,
|
|
896
|
+
// Layout spacing - sections
|
|
897
|
+
"--layout-section-xs": layoutSpacing.section.xs,
|
|
898
|
+
"--layout-section-sm": layoutSpacing.section.sm,
|
|
899
|
+
"--layout-section-md": layoutSpacing.section.md,
|
|
900
|
+
"--layout-section-lg": layoutSpacing.section.lg,
|
|
901
|
+
"--layout-section-xl": layoutSpacing.section.xl,
|
|
902
|
+
"--layout-section-2xl": layoutSpacing.section["2xl"],
|
|
903
|
+
// Layout spacing - containers
|
|
904
|
+
"--layout-container-xs": layoutSpacing.container.xs,
|
|
905
|
+
"--layout-container-sm": layoutSpacing.container.sm,
|
|
906
|
+
"--layout-container-md": layoutSpacing.container.md,
|
|
907
|
+
"--layout-container-lg": layoutSpacing.container.lg,
|
|
908
|
+
"--layout-container-xl": layoutSpacing.container.xl,
|
|
909
|
+
// Layout spacing - grids
|
|
910
|
+
"--layout-grid-xs": layoutSpacing.grid.xs,
|
|
911
|
+
"--layout-grid-sm": layoutSpacing.grid.sm,
|
|
912
|
+
"--layout-grid-md": layoutSpacing.grid.md,
|
|
913
|
+
"--layout-grid-lg": layoutSpacing.grid.lg,
|
|
914
|
+
"--layout-grid-xl": layoutSpacing.grid.xl,
|
|
915
|
+
// Layout spacing - stacks
|
|
916
|
+
"--layout-stack-xs": layoutSpacing.stack.xs,
|
|
917
|
+
"--layout-stack-sm": layoutSpacing.stack.sm,
|
|
918
|
+
"--layout-stack-md": layoutSpacing.stack.md,
|
|
919
|
+
"--layout-stack-lg": layoutSpacing.stack.lg,
|
|
920
|
+
"--layout-stack-xl": layoutSpacing.stack.xl,
|
|
921
|
+
// Layout spacing - components
|
|
922
|
+
"--layout-component-xs": layoutSpacing.component.xs,
|
|
923
|
+
"--layout-component-sm": layoutSpacing.component.sm,
|
|
924
|
+
"--layout-component-md": layoutSpacing.component.md,
|
|
925
|
+
"--layout-component-lg": layoutSpacing.component.lg,
|
|
926
|
+
"--layout-component-xl": layoutSpacing.component.xl
|
|
927
|
+
};
|
|
928
|
+
var tailwindSpacingConfig = {
|
|
929
|
+
spacing: {
|
|
930
|
+
...spacing,
|
|
931
|
+
// Add semantic tokens as aliases
|
|
932
|
+
xs: semanticSpacing.xs,
|
|
933
|
+
sm: semanticSpacing.sm,
|
|
934
|
+
md: semanticSpacing.md,
|
|
935
|
+
lg: semanticSpacing.lg,
|
|
936
|
+
xl: semanticSpacing.xl,
|
|
937
|
+
"2xl": semanticSpacing["2xl"],
|
|
938
|
+
"3xl": semanticSpacing["3xl"],
|
|
939
|
+
"4xl": semanticSpacing["4xl"],
|
|
940
|
+
"5xl": semanticSpacing["5xl"],
|
|
941
|
+
none: semanticSpacing.none
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
// src/tokens/components/data.ts
|
|
946
|
+
var DATA_TOKENS = {
|
|
291
947
|
/**
|
|
292
948
|
* Table Component Tokens
|
|
293
949
|
*/
|
|
@@ -540,7 +1196,10 @@ const v = {
|
|
|
540
1196
|
// 16px (1rem) - maps to semanticSpacing.md
|
|
541
1197
|
}
|
|
542
1198
|
}
|
|
543
|
-
}
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
// src/tokens/components/icon.ts
|
|
1202
|
+
var ICON_TOKENS = {
|
|
544
1203
|
/**
|
|
545
1204
|
* Icon sizes
|
|
546
1205
|
* Maps to Tailwind size utilities for consistent icon sizing
|
|
@@ -593,7 +1252,10 @@ const v = {
|
|
|
593
1252
|
info: "text-info"
|
|
594
1253
|
// Semantic info color
|
|
595
1254
|
}
|
|
596
|
-
}
|
|
1255
|
+
};
|
|
1256
|
+
|
|
1257
|
+
// src/tokens/components/motion.ts
|
|
1258
|
+
var MOTION_TOKENS = {
|
|
597
1259
|
/**
|
|
598
1260
|
* Transition property tokens
|
|
599
1261
|
* Maps to Tailwind transition utilities
|
|
@@ -630,27 +1292,27 @@ const v = {
|
|
|
630
1292
|
slowest: "duration-slowest",
|
|
631
1293
|
// 1000ms - maps to motion.durations.slowest
|
|
632
1294
|
// Granular durations
|
|
633
|
-
75: "duration-75",
|
|
1295
|
+
"75": "duration-75",
|
|
634
1296
|
// 75ms
|
|
635
|
-
100: "duration-100",
|
|
1297
|
+
"100": "duration-100",
|
|
636
1298
|
// 100ms
|
|
637
|
-
200: "duration-200",
|
|
1299
|
+
"200": "duration-200",
|
|
638
1300
|
// 200ms
|
|
639
|
-
250: "duration-250",
|
|
1301
|
+
"250": "duration-250",
|
|
640
1302
|
// 250ms
|
|
641
|
-
300: "duration-300",
|
|
1303
|
+
"300": "duration-300",
|
|
642
1304
|
// 300ms
|
|
643
|
-
400: "duration-400",
|
|
1305
|
+
"400": "duration-400",
|
|
644
1306
|
// 400ms
|
|
645
|
-
500: "duration-500",
|
|
1307
|
+
"500": "duration-500",
|
|
646
1308
|
// 500ms
|
|
647
|
-
600: "duration-600",
|
|
1309
|
+
"600": "duration-600",
|
|
648
1310
|
// 600ms
|
|
649
|
-
700: "duration-700",
|
|
1311
|
+
"700": "duration-700",
|
|
650
1312
|
// 700ms
|
|
651
|
-
800: "duration-800",
|
|
1313
|
+
"800": "duration-800",
|
|
652
1314
|
// 800ms
|
|
653
|
-
|
|
1315
|
+
"1000": "duration-1000"
|
|
654
1316
|
// 1000ms
|
|
655
1317
|
},
|
|
656
1318
|
/**
|
|
@@ -723,7 +1385,10 @@ const v = {
|
|
|
723
1385
|
scaleOut: "animate-scaleOut"
|
|
724
1386
|
// Scale out
|
|
725
1387
|
}
|
|
726
|
-
}
|
|
1388
|
+
};
|
|
1389
|
+
|
|
1390
|
+
// src/tokens/components/domain.ts
|
|
1391
|
+
var DOMAIN_TOKENS = {
|
|
727
1392
|
/**
|
|
728
1393
|
* Surface tokens for card containers
|
|
729
1394
|
* Defines background, border, radius, and shadow for card surfaces
|
|
@@ -796,30 +1461,30 @@ const v = {
|
|
|
796
1461
|
* Badge spacing offsets
|
|
797
1462
|
*/
|
|
798
1463
|
badges: {
|
|
799
|
-
offsetX:
|
|
1464
|
+
offsetX: semanticSpacing.md,
|
|
800
1465
|
// Horizontal offset for badges (16px)
|
|
801
|
-
offsetY:
|
|
1466
|
+
offsetY: semanticSpacing.md
|
|
802
1467
|
// Vertical offset for badges (16px)
|
|
803
1468
|
},
|
|
804
1469
|
/**
|
|
805
1470
|
* Image spacing
|
|
806
1471
|
*/
|
|
807
1472
|
image: {
|
|
808
|
-
bottomMargin:
|
|
1473
|
+
bottomMargin: semanticSpacing.none
|
|
809
1474
|
// Margin below image (0px)
|
|
810
1475
|
},
|
|
811
1476
|
/**
|
|
812
1477
|
* Card vertical gap
|
|
813
1478
|
*/
|
|
814
1479
|
card: {
|
|
815
|
-
verticalGap:
|
|
1480
|
+
verticalGap: semanticSpacing.md
|
|
816
1481
|
// Vertical gap in card content (16px)
|
|
817
1482
|
},
|
|
818
1483
|
/**
|
|
819
1484
|
* Metadata item gap
|
|
820
1485
|
*/
|
|
821
1486
|
metadata: {
|
|
822
|
-
itemGap:
|
|
1487
|
+
itemGap: semanticSpacing.xs
|
|
823
1488
|
// Gap between metadata items (4px)
|
|
824
1489
|
},
|
|
825
1490
|
/**
|
|
@@ -922,7 +1587,7 @@ const v = {
|
|
|
922
1587
|
icon: {
|
|
923
1588
|
default: "text-muted-foreground",
|
|
924
1589
|
// Default icon color - maps to ICON_TOKENS.colors.muted
|
|
925
|
-
sizeSm:
|
|
1590
|
+
sizeSm: ICON_TOKENS.sizes.md
|
|
926
1591
|
// Small icon size - references ICON_TOKENS.sizes.md (16px)
|
|
927
1592
|
},
|
|
928
1593
|
/**
|
|
@@ -1043,7 +1708,7 @@ const v = {
|
|
|
1043
1708
|
* References MOTION_TOKENS and elevationShadows
|
|
1044
1709
|
*/
|
|
1045
1710
|
hover: {
|
|
1046
|
-
transition:
|
|
1711
|
+
transition: MOTION_TOKENS.transitionPreset.normal,
|
|
1047
1712
|
// References MOTION_TOKENS.transitionPreset.normal
|
|
1048
1713
|
scale: "hover:scale-110",
|
|
1049
1714
|
// Hover scale transform (110% scale) - domain-specific value
|
|
@@ -1065,17 +1730,17 @@ const v = {
|
|
|
1065
1730
|
* Default border radius for skeleton wrapper
|
|
1066
1731
|
* References DATA_TOKENS.skeleton.radius.text
|
|
1067
1732
|
*/
|
|
1068
|
-
radius:
|
|
1733
|
+
radius: DATA_TOKENS.skeleton.radius.text,
|
|
1069
1734
|
/**
|
|
1070
1735
|
* Default animation for skeleton wrapper
|
|
1071
1736
|
* References DATA_TOKENS.skeleton.animation.pulse
|
|
1072
1737
|
*/
|
|
1073
|
-
animation:
|
|
1738
|
+
animation: DATA_TOKENS.skeleton.animation.pulse,
|
|
1074
1739
|
/**
|
|
1075
1740
|
* Default background for skeleton wrapper
|
|
1076
1741
|
* References DATA_TOKENS.skeleton.background.default
|
|
1077
1742
|
*/
|
|
1078
|
-
background:
|
|
1743
|
+
background: DATA_TOKENS.skeleton.background.default
|
|
1079
1744
|
},
|
|
1080
1745
|
/**
|
|
1081
1746
|
* Image skeleton height
|
|
@@ -1100,7 +1765,7 @@ const v = {
|
|
|
1100
1765
|
* References DATA_TOKENS where available, uses Tailwind fraction classes for domain-specific values
|
|
1101
1766
|
*/
|
|
1102
1767
|
width: {
|
|
1103
|
-
full:
|
|
1768
|
+
full: DATA_TOKENS.skeleton.width.full,
|
|
1104
1769
|
// References DATA_TOKENS.skeleton.width.full
|
|
1105
1770
|
threeQuarters: "w-3/4",
|
|
1106
1771
|
// Three quarters width (75%) - domain-specific, using Tailwind fraction
|
|
@@ -1120,7 +1785,10 @@ const v = {
|
|
|
1120
1785
|
// References spacing[6] (1.5rem / 24px) via Tailwind
|
|
1121
1786
|
}
|
|
1122
1787
|
}
|
|
1123
|
-
}
|
|
1788
|
+
};
|
|
1789
|
+
|
|
1790
|
+
// src/tokens/components/input.ts
|
|
1791
|
+
var INPUT_TOKENS = {
|
|
1124
1792
|
/**
|
|
1125
1793
|
* Input heights by size
|
|
1126
1794
|
* Supports xs, sm, md, lg, xl sizes
|
|
@@ -1464,7 +2132,10 @@ const v = {
|
|
|
1464
2132
|
shadow: "shadow-sm"
|
|
1465
2133
|
}
|
|
1466
2134
|
}
|
|
1467
|
-
}
|
|
2135
|
+
};
|
|
2136
|
+
|
|
2137
|
+
// src/tokens/components/checkbox.ts
|
|
2138
|
+
var CHECKBOX_TOKENS = {
|
|
1468
2139
|
/**
|
|
1469
2140
|
* Checkbox sizes by size variant
|
|
1470
2141
|
* Supports xs, sm, md, lg, xl sizes
|
|
@@ -1672,7 +2343,10 @@ const v = {
|
|
|
1672
2343
|
*/
|
|
1673
2344
|
transition: "transition-all duration-200 ease-in-out"
|
|
1674
2345
|
// Smooth transitions
|
|
1675
|
-
}
|
|
2346
|
+
};
|
|
2347
|
+
|
|
2348
|
+
// src/tokens/components/switch.ts
|
|
2349
|
+
var SWITCH_TOKENS = {
|
|
1676
2350
|
/**
|
|
1677
2351
|
* Track sizes by size variant
|
|
1678
2352
|
* Supports xs, sm, md, lg, xl sizes
|
|
@@ -1936,7 +2610,10 @@ const v = {
|
|
|
1936
2610
|
*/
|
|
1937
2611
|
padding: "p-0.5"
|
|
1938
2612
|
// 2px padding around handle
|
|
1939
|
-
}
|
|
2613
|
+
};
|
|
2614
|
+
|
|
2615
|
+
// src/tokens/components/radio.ts
|
|
2616
|
+
var RADIO_TOKENS = {
|
|
1940
2617
|
/**
|
|
1941
2618
|
* Radio sizes by size variant
|
|
1942
2619
|
* Supports xs, sm, md, lg, xl sizes
|
|
@@ -2126,7 +2803,10 @@ const v = {
|
|
|
2126
2803
|
*/
|
|
2127
2804
|
transition: "transition-all duration-200 ease-in-out"
|
|
2128
2805
|
// Smooth transitions
|
|
2129
|
-
}
|
|
2806
|
+
};
|
|
2807
|
+
|
|
2808
|
+
// src/tokens/components/surface.ts
|
|
2809
|
+
var SURFACE_TOKENS = {
|
|
2130
2810
|
/**
|
|
2131
2811
|
* Padding values for surface variants
|
|
2132
2812
|
* Can be customized per variant if needed
|
|
@@ -2211,7 +2891,10 @@ const v = {
|
|
|
2211
2891
|
border: "border border-border/50"
|
|
2212
2892
|
}
|
|
2213
2893
|
}
|
|
2214
|
-
}
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
// src/tokens/components/text.ts
|
|
2897
|
+
var TEXT_TOKENS = {
|
|
2215
2898
|
/**
|
|
2216
2899
|
* Font sizes by text size variant
|
|
2217
2900
|
* Maps to foundation fontSize tokens
|
|
@@ -2276,7 +2959,10 @@ const v = {
|
|
|
2276
2959
|
widest: "tracking-widest"
|
|
2277
2960
|
// Maps to letterSpacing.widest
|
|
2278
2961
|
}
|
|
2279
|
-
}
|
|
2962
|
+
};
|
|
2963
|
+
|
|
2964
|
+
// src/tokens/components/section.ts
|
|
2965
|
+
var SECTION_TOKENS = {
|
|
2280
2966
|
/**
|
|
2281
2967
|
* Vertical padding for sections
|
|
2282
2968
|
* Used for spacing between major page sections
|
|
@@ -2305,7 +2991,10 @@ const v = {
|
|
|
2305
2991
|
xl: "gap-xl"
|
|
2306
2992
|
// 32px (2rem) - maps to semanticSpacing.xl
|
|
2307
2993
|
}
|
|
2308
|
-
}
|
|
2994
|
+
};
|
|
2995
|
+
|
|
2996
|
+
// src/tokens/components/overlay.ts
|
|
2997
|
+
var OVERLAY_TOKENS = {
|
|
2309
2998
|
/**
|
|
2310
2999
|
* Backdrop tokens by variant
|
|
2311
3000
|
* Maps to SURFACE_TOKENS for background colors
|
|
@@ -2587,7 +3276,10 @@ const v = {
|
|
|
2587
3276
|
}
|
|
2588
3277
|
}
|
|
2589
3278
|
}
|
|
2590
|
-
}
|
|
3279
|
+
};
|
|
3280
|
+
|
|
3281
|
+
// src/tokens/components/toast.ts
|
|
3282
|
+
var TOAST_TOKENS = {
|
|
2591
3283
|
/**
|
|
2592
3284
|
* Spacing tokens for toast layout
|
|
2593
3285
|
* Maps to semanticSpacing tokens
|
|
@@ -2752,7 +3444,10 @@ const v = {
|
|
|
2752
3444
|
// Focus ring styling
|
|
2753
3445
|
}
|
|
2754
3446
|
}
|
|
2755
|
-
}
|
|
3447
|
+
};
|
|
3448
|
+
|
|
3449
|
+
// src/tokens/components/notifications.ts
|
|
3450
|
+
var NOTIFICATION_TOKENS = {
|
|
2756
3451
|
/**
|
|
2757
3452
|
* Spacing tokens for notification layout
|
|
2758
3453
|
* Maps to semanticSpacing tokens
|
|
@@ -2942,7 +3637,10 @@ const v = {
|
|
|
2942
3637
|
// Backdrop blur
|
|
2943
3638
|
}
|
|
2944
3639
|
}
|
|
2945
|
-
}
|
|
3640
|
+
};
|
|
3641
|
+
|
|
3642
|
+
// src/tokens/components/navigation.ts
|
|
3643
|
+
var NAVIGATION_TOKENS = {
|
|
2946
3644
|
/**
|
|
2947
3645
|
* Navigation item heights by size
|
|
2948
3646
|
* Maps to Tailwind height utilities: h-8, h-9, h-10
|
|
@@ -3144,7 +3842,10 @@ const v = {
|
|
|
3144
3842
|
muted: "border-muted-foreground"
|
|
3145
3843
|
// Muted border color
|
|
3146
3844
|
}
|
|
3147
|
-
}
|
|
3845
|
+
};
|
|
3846
|
+
|
|
3847
|
+
// src/tokens/components/menu.ts
|
|
3848
|
+
var MENU_TOKENS = {
|
|
3148
3849
|
/**
|
|
3149
3850
|
* Menu item tokens by size
|
|
3150
3851
|
* Maps to foundation spacing and radius tokens
|
|
@@ -3257,7 +3958,10 @@ const v = {
|
|
|
3257
3958
|
// 8px - maps to semanticSpacing.sm
|
|
3258
3959
|
}
|
|
3259
3960
|
}
|
|
3260
|
-
}
|
|
3961
|
+
};
|
|
3962
|
+
|
|
3963
|
+
// src/tokens/components/popover.ts
|
|
3964
|
+
var POPOVER_TOKENS = {
|
|
3261
3965
|
/**
|
|
3262
3966
|
* Popover content tokens by size
|
|
3263
3967
|
* Maps to foundation spacing, radius, and shadow tokens
|
|
@@ -3339,7 +4043,10 @@ const v = {
|
|
|
3339
4043
|
exit: "tm-motion-fade-scale-out"
|
|
3340
4044
|
// Motion V2 fade + scale exit animation
|
|
3341
4045
|
}
|
|
3342
|
-
}
|
|
4046
|
+
};
|
|
4047
|
+
|
|
4048
|
+
// src/tokens/components/dropdown.ts
|
|
4049
|
+
var DROPDOWN_TOKENS = {
|
|
3343
4050
|
/**
|
|
3344
4051
|
* Trigger tokens by size
|
|
3345
4052
|
* Button element that opens/closes the dropdown
|
|
@@ -3517,7 +4224,10 @@ const v = {
|
|
|
3517
4224
|
// Maps to fontSize.base
|
|
3518
4225
|
}
|
|
3519
4226
|
}
|
|
3520
|
-
}
|
|
4227
|
+
};
|
|
4228
|
+
|
|
4229
|
+
// src/tokens/components/tooltip.ts
|
|
4230
|
+
var TOOLTIP_TOKENS = {
|
|
3521
4231
|
/**
|
|
3522
4232
|
* Tooltip content tokens
|
|
3523
4233
|
* Maps to foundation spacing, radius, shadow, and typography tokens
|
|
@@ -3560,112 +4270,1324 @@ const v = {
|
|
|
3560
4270
|
// Maps to fontSize.sm (default)
|
|
3561
4271
|
}
|
|
3562
4272
|
}
|
|
3563
|
-
}
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
4273
|
+
};
|
|
4274
|
+
|
|
4275
|
+
// src/tokens/motion/v2.ts
|
|
4276
|
+
var motionV2Durations = {
|
|
4277
|
+
fast: "150ms",
|
|
4278
|
+
// Quick interactions
|
|
4279
|
+
normal: "250ms",
|
|
4280
|
+
// Default transitions
|
|
4281
|
+
slow: "350ms",
|
|
4282
|
+
// Emphasized animations
|
|
4283
|
+
reduced: "0ms"
|
|
4284
|
+
// For prefers-reduced-motion
|
|
4285
|
+
};
|
|
4286
|
+
var motionV2Easings = {
|
|
4287
|
+
soft: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
4288
|
+
// Gentle, smooth
|
|
4289
|
+
standard: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
4290
|
+
// Material Design standard
|
|
4291
|
+
emphasized: "cubic-bezier(0.2, 0, 0, 1)"
|
|
4292
|
+
// Strong, decisive
|
|
4293
|
+
};
|
|
4294
|
+
var motionV2Transitions = {
|
|
4295
|
+
fast: `${motionV2Durations.fast} ${motionV2Easings.standard}`,
|
|
4296
|
+
normal: `${motionV2Durations.normal} ${motionV2Easings.standard}`,
|
|
4297
|
+
slow: `${motionV2Durations.slow} ${motionV2Easings.emphasized}`,
|
|
4298
|
+
soft: `${motionV2Durations.normal} ${motionV2Easings.soft}`,
|
|
4299
|
+
reduced: `${motionV2Durations.reduced} linear`
|
|
4300
|
+
};
|
|
4301
|
+
var motionV2Fade = {
|
|
4302
|
+
in: {
|
|
4303
|
+
from: { opacity: 0 },
|
|
4304
|
+
to: { opacity: 1 }
|
|
4305
|
+
},
|
|
4306
|
+
out: {
|
|
4307
|
+
from: { opacity: 1 },
|
|
4308
|
+
to: { opacity: 0 }
|
|
4309
|
+
}
|
|
4310
|
+
};
|
|
4311
|
+
var motionV2Scale = {
|
|
4312
|
+
in: {
|
|
4313
|
+
from: { transform: "scale(0.95)", opacity: 0 },
|
|
4314
|
+
to: { transform: "scale(1)", opacity: 1 }
|
|
4315
|
+
},
|
|
4316
|
+
out: {
|
|
4317
|
+
from: { transform: "scale(1)", opacity: 1 },
|
|
4318
|
+
to: { transform: "scale(0.95)", opacity: 0 }
|
|
4319
|
+
}
|
|
4320
|
+
};
|
|
4321
|
+
var motionV2Slide = {
|
|
4322
|
+
up: {
|
|
4323
|
+
in: {
|
|
4324
|
+
from: { transform: "translateY(100%)", opacity: 0 },
|
|
4325
|
+
to: { transform: "translateY(0)", opacity: 1 }
|
|
4326
|
+
},
|
|
4327
|
+
out: {
|
|
4328
|
+
from: { transform: "translateY(0)", opacity: 1 },
|
|
4329
|
+
to: { transform: "translateY(100%)", opacity: 0 }
|
|
4330
|
+
}
|
|
4331
|
+
},
|
|
4332
|
+
down: {
|
|
4333
|
+
in: {
|
|
4334
|
+
from: { transform: "translateY(-100%)", opacity: 0 },
|
|
4335
|
+
to: { transform: "translateY(0)", opacity: 1 }
|
|
4336
|
+
},
|
|
4337
|
+
out: {
|
|
4338
|
+
from: { transform: "translateY(0)", opacity: 1 },
|
|
4339
|
+
to: { transform: "translateY(-100%)", opacity: 0 }
|
|
4340
|
+
}
|
|
4341
|
+
},
|
|
4342
|
+
left: {
|
|
4343
|
+
in: {
|
|
4344
|
+
from: { transform: "translateX(100%)", opacity: 0 },
|
|
4345
|
+
to: { transform: "translateX(0)", opacity: 1 }
|
|
4346
|
+
},
|
|
4347
|
+
out: {
|
|
4348
|
+
from: { transform: "translateX(0)", opacity: 1 },
|
|
4349
|
+
to: { transform: "translateX(100%)", opacity: 0 }
|
|
4350
|
+
}
|
|
4351
|
+
},
|
|
4352
|
+
right: {
|
|
4353
|
+
in: {
|
|
4354
|
+
from: { transform: "translateX(-100%)", opacity: 0 },
|
|
4355
|
+
to: { transform: "translateX(0)", opacity: 1 }
|
|
4356
|
+
},
|
|
4357
|
+
out: {
|
|
4358
|
+
from: { transform: "translateX(0)", opacity: 1 },
|
|
4359
|
+
to: { transform: "translateX(-100%)", opacity: 0 }
|
|
4360
|
+
}
|
|
4361
|
+
}
|
|
4362
|
+
};
|
|
4363
|
+
var motionV2Combined = {
|
|
4364
|
+
fadeScale: {
|
|
4365
|
+
in: {
|
|
4366
|
+
from: { transform: "scale(0.95)", opacity: 0 },
|
|
4367
|
+
to: { transform: "scale(1)", opacity: 1 }
|
|
4368
|
+
},
|
|
4369
|
+
out: {
|
|
4370
|
+
from: { transform: "scale(1)", opacity: 1 },
|
|
4371
|
+
to: { transform: "scale(0.95)", opacity: 0 }
|
|
4372
|
+
}
|
|
4373
|
+
},
|
|
4374
|
+
fadeSlideUp: {
|
|
4375
|
+
in: {
|
|
4376
|
+
from: { transform: "translateY(100%)", opacity: 0 },
|
|
4377
|
+
to: { transform: "translateY(0)", opacity: 1 }
|
|
4378
|
+
},
|
|
4379
|
+
out: {
|
|
4380
|
+
from: { transform: "translateY(0)", opacity: 1 },
|
|
4381
|
+
to: { transform: "translateY(100%)", opacity: 0 }
|
|
4382
|
+
}
|
|
4383
|
+
},
|
|
4384
|
+
fadeSlideDown: {
|
|
4385
|
+
in: {
|
|
4386
|
+
from: { transform: "translateY(-100%)", opacity: 0 },
|
|
4387
|
+
to: { transform: "translateY(0)", opacity: 1 }
|
|
4388
|
+
},
|
|
4389
|
+
out: {
|
|
4390
|
+
from: { transform: "translateY(0)", opacity: 1 },
|
|
4391
|
+
to: { transform: "translateY(-100%)", opacity: 0 }
|
|
4392
|
+
}
|
|
4393
|
+
},
|
|
4394
|
+
fadeSlideLeft: {
|
|
4395
|
+
in: {
|
|
4396
|
+
from: { transform: "translateX(100%)", opacity: 0 },
|
|
4397
|
+
to: { transform: "translateX(0)", opacity: 1 }
|
|
4398
|
+
},
|
|
4399
|
+
out: {
|
|
4400
|
+
from: { transform: "translateX(0)", opacity: 1 },
|
|
4401
|
+
to: { transform: "translateX(100%)", opacity: 0 }
|
|
4402
|
+
}
|
|
4403
|
+
},
|
|
4404
|
+
fadeSlideRight: {
|
|
4405
|
+
in: {
|
|
4406
|
+
from: { transform: "translateX(-100%)", opacity: 0 },
|
|
4407
|
+
to: { transform: "translateX(0)", opacity: 1 }
|
|
4408
|
+
},
|
|
4409
|
+
out: {
|
|
4410
|
+
from: { transform: "translateX(0)", opacity: 1 },
|
|
4411
|
+
to: { transform: "translateX(-100%)", opacity: 0 }
|
|
4412
|
+
}
|
|
4413
|
+
}
|
|
4414
|
+
};
|
|
4415
|
+
var motionV2CSSVariables = {
|
|
4416
|
+
// Durations
|
|
4417
|
+
"--motion-duration-fast": motionV2Durations.fast,
|
|
4418
|
+
"--motion-duration-normal": motionV2Durations.normal,
|
|
4419
|
+
"--motion-duration-slow": motionV2Durations.slow,
|
|
4420
|
+
"--motion-duration-reduced": motionV2Durations.reduced,
|
|
4421
|
+
// Easings
|
|
4422
|
+
"--motion-easing-soft": motionV2Easings.soft,
|
|
4423
|
+
"--motion-easing-standard": motionV2Easings.standard,
|
|
4424
|
+
"--motion-easing-emphasized": motionV2Easings.emphasized,
|
|
4425
|
+
// Transitions
|
|
4426
|
+
"--motion-transition-fast": motionV2Transitions.fast,
|
|
4427
|
+
"--motion-transition-normal": motionV2Transitions.normal,
|
|
4428
|
+
"--motion-transition-slow": motionV2Transitions.slow,
|
|
4429
|
+
"--motion-transition-soft": motionV2Transitions.soft,
|
|
4430
|
+
"--motion-transition-reduced": motionV2Transitions.reduced
|
|
4431
|
+
};
|
|
4432
|
+
var motionV2TailwindConfig = {
|
|
4433
|
+
transitionDuration: {
|
|
4434
|
+
...motionV2Durations
|
|
4435
|
+
},
|
|
4436
|
+
transitionTimingFunction: {
|
|
4437
|
+
...motionV2Easings
|
|
4438
|
+
},
|
|
4439
|
+
keyframes: {
|
|
4440
|
+
// Fade
|
|
4441
|
+
"fade-in": motionV2Fade.in,
|
|
4442
|
+
"fade-out": motionV2Fade.out,
|
|
4443
|
+
// Scale
|
|
4444
|
+
"scale-in": motionV2Scale.in,
|
|
4445
|
+
"scale-out": motionV2Scale.out,
|
|
4446
|
+
// Slide
|
|
4447
|
+
"slide-up-in": motionV2Slide.up.in,
|
|
4448
|
+
"slide-up-out": motionV2Slide.up.out,
|
|
4449
|
+
"slide-down-in": motionV2Slide.down.in,
|
|
4450
|
+
"slide-down-out": motionV2Slide.down.out,
|
|
4451
|
+
"slide-left-in": motionV2Slide.left.in,
|
|
4452
|
+
"slide-left-out": motionV2Slide.left.out,
|
|
4453
|
+
"slide-right-in": motionV2Slide.right.in,
|
|
4454
|
+
"slide-right-out": motionV2Slide.right.out,
|
|
4455
|
+
// Combined
|
|
4456
|
+
"fade-scale-in": motionV2Combined.fadeScale.in,
|
|
4457
|
+
"fade-scale-out": motionV2Combined.fadeScale.out,
|
|
4458
|
+
"fade-slide-up-in": motionV2Combined.fadeSlideUp.in,
|
|
4459
|
+
"fade-slide-up-out": motionV2Combined.fadeSlideUp.out,
|
|
4460
|
+
"fade-slide-down-in": motionV2Combined.fadeSlideDown.in,
|
|
4461
|
+
"fade-slide-down-out": motionV2Combined.fadeSlideDown.out,
|
|
4462
|
+
"fade-slide-left-in": motionV2Combined.fadeSlideLeft.in,
|
|
4463
|
+
"fade-slide-left-out": motionV2Combined.fadeSlideLeft.out,
|
|
4464
|
+
"fade-slide-right-in": motionV2Combined.fadeSlideRight.in,
|
|
4465
|
+
"fade-slide-right-out": motionV2Combined.fadeSlideRight.out
|
|
4466
|
+
}
|
|
4467
|
+
};
|
|
4468
|
+
|
|
4469
|
+
// src/tokens/motion.ts
|
|
4470
|
+
var durations = {
|
|
4471
|
+
instant: "0ms",
|
|
4472
|
+
fast: "150ms",
|
|
4473
|
+
// 1.5 × base (quick interactions)
|
|
4474
|
+
normal: "300ms",
|
|
4475
|
+
// 3 × base (default)
|
|
4476
|
+
slow: "500ms",
|
|
4477
|
+
// 5 × base (emphasized)
|
|
4478
|
+
slower: "700ms",
|
|
4479
|
+
// 7 × base (very emphasized)
|
|
4480
|
+
slowest: "1000ms",
|
|
4481
|
+
// 10 × base (maximum emphasis)
|
|
4482
|
+
// Additional granular durations
|
|
4483
|
+
"75": "75ms",
|
|
4484
|
+
// Ultra-fast
|
|
4485
|
+
"100": "100ms",
|
|
4486
|
+
// Base unit
|
|
4487
|
+
"200": "200ms",
|
|
4488
|
+
// Fast-normal
|
|
4489
|
+
"250": "250ms",
|
|
4490
|
+
// Between fast and normal
|
|
4491
|
+
"400": "400ms",
|
|
4492
|
+
// Between normal and slow
|
|
4493
|
+
"600": "600ms",
|
|
4494
|
+
// Between slow and slower
|
|
4495
|
+
"800": "800ms"
|
|
4496
|
+
// Between slower and slowest
|
|
4497
|
+
};
|
|
4498
|
+
var easings = {
|
|
4499
|
+
// Linear (no easing)
|
|
4500
|
+
linear: "linear",
|
|
4501
|
+
// Ease-in (accelerate) - cubic-bezier
|
|
4502
|
+
"ease-in": "cubic-bezier(0.4, 0, 1, 1)",
|
|
4503
|
+
// Ease-out (decelerate) - recommended for most UI - cubic-bezier
|
|
4504
|
+
"ease-out": "cubic-bezier(0, 0, 0.2, 1)",
|
|
4505
|
+
// Ease-in-out (accelerate and decelerate)
|
|
4506
|
+
"ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
4507
|
+
// Standard easing functions
|
|
4508
|
+
ease: "ease",
|
|
4509
|
+
// Advanced easing functions
|
|
4510
|
+
bounce: "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
|
|
4511
|
+
elastic: "cubic-bezier(0.175, 0.885, 0.32, 1.275)",
|
|
4512
|
+
// Material Design easing
|
|
4513
|
+
"ease-out-cubic": "cubic-bezier(0.215, 0.61, 0.355, 1)",
|
|
4514
|
+
"ease-in-cubic": "cubic-bezier(0.55, 0.055, 0.675, 0.19)",
|
|
4515
|
+
"ease-in-out-cubic": "cubic-bezier(0.645, 0.045, 0.355, 1)"
|
|
4516
|
+
};
|
|
4517
|
+
var transitions = {
|
|
4518
|
+
// Fast transitions (quick interactions)
|
|
4519
|
+
fast: `${durations.fast} ${easings["ease-out"]}`,
|
|
4520
|
+
"fast-in": `${durations.fast} ${easings["ease-in"]}`,
|
|
4521
|
+
"fast-out": `${durations.fast} ${easings["ease-out"]}`,
|
|
4522
|
+
"fast-in-out": `${durations.fast} ${easings["ease-in-out"]}`,
|
|
4523
|
+
// Normal transitions (default)
|
|
4524
|
+
normal: `${durations.normal} ${easings["ease-in-out"]}`,
|
|
4525
|
+
"normal-in": `${durations.normal} ${easings["ease-in"]}`,
|
|
4526
|
+
"normal-out": `${durations.normal} ${easings["ease-out"]}`,
|
|
4527
|
+
"normal-in-out": `${durations.normal} ${easings["ease-in-out"]}`,
|
|
4528
|
+
// Slow transitions (emphasized)
|
|
4529
|
+
slow: `${durations.slow} ${easings["ease-in-out"]}`,
|
|
4530
|
+
"slow-in": `${durations.slow} ${easings["ease-in"]}`,
|
|
4531
|
+
"slow-out": `${durations.slow} ${easings["ease-out"]}`,
|
|
4532
|
+
"slow-in-out": `${durations.slow} ${easings["ease-in-out"]}`,
|
|
4533
|
+
// Special transitions
|
|
4534
|
+
bounce: `${durations.normal} ${easings.bounce}`,
|
|
4535
|
+
elastic: `${durations.slow} ${easings.elastic}`,
|
|
4536
|
+
// Default (normal)
|
|
4537
|
+
DEFAULT: `${durations.normal} ${easings["ease-in-out"]}`
|
|
4538
|
+
};
|
|
4539
|
+
var keyframes = {
|
|
4540
|
+
// Fade animations
|
|
4541
|
+
fadeIn: {
|
|
4542
|
+
from: { opacity: 0 },
|
|
4543
|
+
to: { opacity: 1 }
|
|
4544
|
+
},
|
|
4545
|
+
fadeOut: {
|
|
4546
|
+
from: { opacity: 1 },
|
|
4547
|
+
to: { opacity: 0 }
|
|
4548
|
+
},
|
|
4549
|
+
// Slide animations
|
|
4550
|
+
slideInUp: {
|
|
4551
|
+
from: { transform: "translateY(100%)", opacity: 0 },
|
|
4552
|
+
to: { transform: "translateY(0)", opacity: 1 }
|
|
4553
|
+
},
|
|
4554
|
+
slideInDown: {
|
|
4555
|
+
from: { transform: "translateY(-100%)", opacity: 0 },
|
|
4556
|
+
to: { transform: "translateY(0)", opacity: 1 }
|
|
4557
|
+
},
|
|
4558
|
+
slideInLeft: {
|
|
4559
|
+
from: { transform: "translateX(-100%)", opacity: 0 },
|
|
4560
|
+
to: { transform: "translateX(0)", opacity: 1 }
|
|
4561
|
+
},
|
|
4562
|
+
slideInRight: {
|
|
4563
|
+
from: { transform: "translateX(100%)", opacity: 0 },
|
|
4564
|
+
to: { transform: "translateX(0)", opacity: 1 }
|
|
4565
|
+
},
|
|
4566
|
+
slideOutUp: {
|
|
4567
|
+
from: { transform: "translateY(0)", opacity: 1 },
|
|
4568
|
+
to: { transform: "translateY(-100%)", opacity: 0 }
|
|
4569
|
+
},
|
|
4570
|
+
slideOutDown: {
|
|
4571
|
+
from: { transform: "translateY(0)", opacity: 1 },
|
|
4572
|
+
to: { transform: "translateY(100%)", opacity: 0 }
|
|
4573
|
+
},
|
|
4574
|
+
slideOutLeft: {
|
|
4575
|
+
from: { transform: "translateX(0)", opacity: 1 },
|
|
4576
|
+
to: { transform: "translateX(-100%)", opacity: 0 }
|
|
4577
|
+
},
|
|
4578
|
+
slideOutRight: {
|
|
4579
|
+
from: { transform: "translateX(0)", opacity: 1 },
|
|
4580
|
+
to: { transform: "translateX(100%)", opacity: 0 }
|
|
4581
|
+
},
|
|
4582
|
+
// Scale animations
|
|
4583
|
+
scaleIn: {
|
|
4584
|
+
from: { transform: "scale(0.95)", opacity: 0 },
|
|
4585
|
+
to: { transform: "scale(1)", opacity: 1 }
|
|
4586
|
+
},
|
|
4587
|
+
scaleOut: {
|
|
4588
|
+
from: { transform: "scale(1)", opacity: 1 },
|
|
4589
|
+
to: { transform: "scale(0.95)", opacity: 0 }
|
|
4590
|
+
},
|
|
4591
|
+
scaleUp: {
|
|
4592
|
+
from: { transform: "scale(1)" },
|
|
4593
|
+
to: { transform: "scale(1.05)" }
|
|
4594
|
+
},
|
|
4595
|
+
scaleDown: {
|
|
4596
|
+
from: { transform: "scale(1.05)" },
|
|
4597
|
+
to: { transform: "scale(1)" }
|
|
4598
|
+
},
|
|
4599
|
+
// Rotation animations
|
|
4600
|
+
spin: {
|
|
4601
|
+
from: { transform: "rotate(0deg)" },
|
|
4602
|
+
to: { transform: "rotate(360deg)" }
|
|
4603
|
+
},
|
|
4604
|
+
spinReverse: {
|
|
4605
|
+
from: { transform: "rotate(360deg)" },
|
|
4606
|
+
to: { transform: "rotate(0deg)" }
|
|
4607
|
+
},
|
|
4608
|
+
// Pulse and bounce
|
|
4609
|
+
pulse: {
|
|
4610
|
+
"0%, 100%": { opacity: 1 },
|
|
4611
|
+
"50%": { opacity: 0.5 }
|
|
4612
|
+
},
|
|
4613
|
+
bounce: {
|
|
4614
|
+
"0%, 100%": {
|
|
4615
|
+
transform: "translateY(-25%)",
|
|
4616
|
+
animationTimingFunction: "cubic-bezier(0.8, 0, 1, 1)"
|
|
4617
|
+
},
|
|
4618
|
+
"50%": {
|
|
4619
|
+
transform: "translateY(0)",
|
|
4620
|
+
animationTimingFunction: "cubic-bezier(0, 0, 0.2, 1)"
|
|
4621
|
+
}
|
|
4622
|
+
},
|
|
4623
|
+
// Shake animation
|
|
4624
|
+
shake: {
|
|
4625
|
+
"0%, 100%": { transform: "translateX(0)" },
|
|
4626
|
+
"10%, 30%, 50%, 70%, 90%": { transform: "translateX(-4px)" },
|
|
4627
|
+
"20%, 40%, 60%, 80%": { transform: "translateX(4px)" }
|
|
4628
|
+
},
|
|
4629
|
+
// Ping animation
|
|
4630
|
+
ping: {
|
|
4631
|
+
"75%, 100%": {
|
|
4632
|
+
transform: "scale(2)",
|
|
4633
|
+
opacity: 0
|
|
4634
|
+
}
|
|
4635
|
+
},
|
|
4636
|
+
// Accordion animations (for Radix UI)
|
|
4637
|
+
"accordion-down": {
|
|
4638
|
+
from: { height: "0" },
|
|
4639
|
+
to: { height: "var(--radix-accordion-content-height)" }
|
|
4640
|
+
},
|
|
4641
|
+
"accordion-up": {
|
|
4642
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
4643
|
+
to: { height: "0" }
|
|
4644
|
+
}
|
|
4645
|
+
};
|
|
4646
|
+
var animations = {
|
|
4647
|
+
// Fade animations
|
|
4648
|
+
fadeIn: `fadeIn ${durations.normal} ${easings["ease-out"]}`,
|
|
4649
|
+
fadeOut: `fadeOut ${durations.fast} ${easings["ease-in"]}`,
|
|
4650
|
+
// Slide animations
|
|
4651
|
+
slideInUp: `slideInUp ${durations.normal} ${easings["ease-out"]}`,
|
|
4652
|
+
slideInDown: `slideInDown ${durations.normal} ${easings["ease-out"]}`,
|
|
4653
|
+
slideInLeft: `slideInLeft ${durations.normal} ${easings["ease-out"]}`,
|
|
4654
|
+
slideInRight: `slideInRight ${durations.normal} ${easings["ease-out"]}`,
|
|
4655
|
+
slideOutUp: `slideOutUp ${durations.fast} ${easings["ease-in"]}`,
|
|
4656
|
+
slideOutDown: `slideOutDown ${durations.fast} ${easings["ease-in"]}`,
|
|
4657
|
+
slideOutLeft: `slideOutLeft ${durations.fast} ${easings["ease-in"]}`,
|
|
4658
|
+
slideOutRight: `slideOutRight ${durations.fast} ${easings["ease-in"]}`,
|
|
4659
|
+
// Scale animations
|
|
4660
|
+
scaleIn: `scaleIn ${durations.normal} ${easings["ease-out"]}`,
|
|
4661
|
+
scaleOut: `scaleOut ${durations.fast} ${easings["ease-in"]}`,
|
|
4662
|
+
// Continuous animations
|
|
4663
|
+
spin: `spin 1s ${easings.linear} infinite`,
|
|
4664
|
+
pulse: `pulse 2s ${easings["ease-in-out"]} infinite`,
|
|
4665
|
+
bounce: `bounce 1s ${easings.linear} infinite`,
|
|
4666
|
+
ping: `ping 1s ${easings["ease-out"]} cubic-bezier(0, 0, 0.2, 1) infinite`,
|
|
4667
|
+
shake: `shake 0.5s ${easings["ease-in-out"]}`,
|
|
4668
|
+
// Accordion animations
|
|
4669
|
+
"accordion-down": `accordion-down ${durations.normal} ${easings["ease-out"]}`,
|
|
4670
|
+
"accordion-up": `accordion-up ${durations.normal} ${easings["ease-out"]}`
|
|
4671
|
+
};
|
|
4672
|
+
var springs = {
|
|
4673
|
+
// Gentle spring (subtle, smooth)
|
|
4674
|
+
gentle: {
|
|
4675
|
+
type: "spring",
|
|
4676
|
+
stiffness: 120,
|
|
4677
|
+
damping: 14,
|
|
4678
|
+
mass: 1
|
|
4679
|
+
},
|
|
4680
|
+
// Default spring (balanced)
|
|
4681
|
+
default: {
|
|
4682
|
+
type: "spring",
|
|
4683
|
+
stiffness: 300,
|
|
4684
|
+
damping: 30,
|
|
4685
|
+
mass: 1
|
|
4686
|
+
},
|
|
4687
|
+
// Wobbly spring (bouncy, playful)
|
|
4688
|
+
wobbly: {
|
|
4689
|
+
type: "spring",
|
|
4690
|
+
stiffness: 180,
|
|
4691
|
+
damping: 12,
|
|
4692
|
+
mass: 1
|
|
4693
|
+
},
|
|
4694
|
+
// Stiff spring (quick, precise)
|
|
4695
|
+
stiff: {
|
|
4696
|
+
type: "spring",
|
|
4697
|
+
stiffness: 400,
|
|
4698
|
+
damping: 30,
|
|
4699
|
+
mass: 1
|
|
4700
|
+
},
|
|
4701
|
+
// Slow spring (smooth, deliberate)
|
|
4702
|
+
slow: {
|
|
4703
|
+
type: "spring",
|
|
4704
|
+
stiffness: 200,
|
|
4705
|
+
damping: 25,
|
|
4706
|
+
mass: 1
|
|
4707
|
+
},
|
|
4708
|
+
// Bouncy spring (energetic, fun)
|
|
4709
|
+
bouncy: {
|
|
4710
|
+
type: "spring",
|
|
4711
|
+
stiffness: 400,
|
|
4712
|
+
damping: 10,
|
|
4713
|
+
mass: 1
|
|
4714
|
+
},
|
|
4715
|
+
// No bounce (damped, controlled)
|
|
4716
|
+
noBounce: {
|
|
4717
|
+
type: "spring",
|
|
4718
|
+
stiffness: 300,
|
|
4719
|
+
damping: 35,
|
|
4720
|
+
mass: 1
|
|
4721
|
+
}
|
|
4722
|
+
};
|
|
4723
|
+
var reducedMotion = {
|
|
4724
|
+
// Reduced motion duration (instant or minimal)
|
|
4725
|
+
duration: "0ms",
|
|
4726
|
+
// Reduced motion easing (linear for instant)
|
|
4727
|
+
easing: "linear",
|
|
4728
|
+
// Reduced motion transition (instant)
|
|
4729
|
+
transition: "0ms linear",
|
|
4730
|
+
// CSS media query for reduced motion
|
|
4731
|
+
mediaQuery: "@media (prefers-reduced-motion: reduce)",
|
|
4732
|
+
// Utility class to disable animations
|
|
4733
|
+
disableAnimations: "animation: none !important; transition: none !important;",
|
|
4734
|
+
// Reduced motion spring (instant, no animation)
|
|
4735
|
+
spring: {
|
|
4736
|
+
type: "spring",
|
|
4737
|
+
stiffness: 1e3,
|
|
4738
|
+
damping: 100,
|
|
4739
|
+
mass: 1
|
|
4740
|
+
}
|
|
4741
|
+
};
|
|
4742
|
+
var motionCSSVariables = {
|
|
4743
|
+
// Durations
|
|
4744
|
+
"--duration-instant": durations.instant,
|
|
4745
|
+
"--duration-fast": durations.fast,
|
|
4746
|
+
"--duration-normal": durations.normal,
|
|
4747
|
+
"--duration-slow": durations.slow,
|
|
4748
|
+
"--duration-slower": durations.slower,
|
|
4749
|
+
"--duration-slowest": durations.slowest,
|
|
4750
|
+
// Additional granular durations
|
|
4751
|
+
"--duration-75": durations["75"],
|
|
4752
|
+
"--duration-100": durations["100"],
|
|
4753
|
+
"--duration-200": durations["200"],
|
|
4754
|
+
"--duration-250": durations["250"],
|
|
4755
|
+
"--duration-400": durations["400"],
|
|
4756
|
+
"--duration-600": durations["600"],
|
|
4757
|
+
"--duration-800": durations["800"],
|
|
4758
|
+
// Easings
|
|
4759
|
+
"--ease-linear": easings.linear,
|
|
4760
|
+
"--ease-in": easings["ease-in"],
|
|
4761
|
+
"--ease-out": easings["ease-out"],
|
|
4762
|
+
"--ease-in-out": easings["ease-in-out"],
|
|
4763
|
+
"--ease-bounce": easings.bounce,
|
|
4764
|
+
"--ease-elastic": easings.elastic,
|
|
4765
|
+
"--ease-out-cubic": easings["ease-out-cubic"],
|
|
4766
|
+
"--ease-in-cubic": easings["ease-in-cubic"],
|
|
4767
|
+
"--ease-in-out-cubic": easings["ease-in-out-cubic"],
|
|
4768
|
+
// Transitions
|
|
4769
|
+
"--transition-fast": transitions.fast,
|
|
4770
|
+
"--transition-normal": transitions.normal,
|
|
4771
|
+
"--transition-slow": transitions.slow,
|
|
4772
|
+
"--transition-default": transitions.DEFAULT,
|
|
4773
|
+
"--transition-fast-in": transitions["fast-in"],
|
|
4774
|
+
"--transition-fast-out": transitions["fast-out"],
|
|
4775
|
+
"--transition-fast-in-out": transitions["fast-in-out"],
|
|
4776
|
+
"--transition-normal-in": transitions["normal-in"],
|
|
4777
|
+
"--transition-normal-out": transitions["normal-out"],
|
|
4778
|
+
"--transition-normal-in-out": transitions["normal-in-out"],
|
|
4779
|
+
"--transition-slow-in": transitions["slow-in"],
|
|
4780
|
+
"--transition-slow-out": transitions["slow-out"],
|
|
4781
|
+
"--transition-slow-in-out": transitions["slow-in-out"],
|
|
4782
|
+
"--transition-bounce": transitions.bounce,
|
|
4783
|
+
"--transition-elastic": transitions.elastic
|
|
4784
|
+
};
|
|
4785
|
+
var tailwindMotionConfig = {
|
|
4786
|
+
transitionDuration: {
|
|
4787
|
+
...durations
|
|
4788
|
+
},
|
|
4789
|
+
transitionTimingFunction: {
|
|
4790
|
+
...easings
|
|
4791
|
+
},
|
|
4792
|
+
transitionProperty: {
|
|
4793
|
+
DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
|
|
4794
|
+
colors: "color, background-color, border-color, text-decoration-color, fill, stroke",
|
|
4795
|
+
opacity: "opacity",
|
|
4796
|
+
shadow: "box-shadow",
|
|
4797
|
+
transform: "transform",
|
|
4798
|
+
all: "all",
|
|
4799
|
+
none: "none"
|
|
4800
|
+
},
|
|
4801
|
+
keyframes: {
|
|
4802
|
+
...keyframes
|
|
4803
|
+
},
|
|
4804
|
+
animation: {
|
|
4805
|
+
...animations,
|
|
4806
|
+
// Additional animation utilities
|
|
4807
|
+
none: "none",
|
|
4808
|
+
spin: animations.spin,
|
|
4809
|
+
pulse: animations.pulse,
|
|
4810
|
+
bounce: animations.bounce,
|
|
4811
|
+
ping: animations.ping,
|
|
4812
|
+
shake: animations.shake
|
|
4813
|
+
}
|
|
4814
|
+
};
|
|
4815
|
+
|
|
4816
|
+
// src/tokens/radius.ts
|
|
4817
|
+
var borderRadius = {
|
|
4818
|
+
// No radius
|
|
4819
|
+
none: "0",
|
|
4820
|
+
// Extra small radius
|
|
4821
|
+
xs: "0.125rem",
|
|
4822
|
+
// 2px
|
|
4823
|
+
// Small radius
|
|
4824
|
+
sm: "0.25rem",
|
|
4825
|
+
// 4px (base unit)
|
|
4826
|
+
// Default radius (base)
|
|
4827
|
+
DEFAULT: "0.25rem",
|
|
4828
|
+
// 4px (same as sm)
|
|
4829
|
+
base: "0.25rem",
|
|
4830
|
+
// 4px (alias)
|
|
4831
|
+
// Medium radius
|
|
4832
|
+
md: "0.375rem",
|
|
4833
|
+
// 6px
|
|
4834
|
+
// Large radius
|
|
4835
|
+
lg: "0.5rem",
|
|
4836
|
+
// 8px (2 × base)
|
|
4837
|
+
// Extra large radius
|
|
4838
|
+
xl: "0.75rem",
|
|
4839
|
+
// 12px (3 × base)
|
|
4840
|
+
// 2XL radius
|
|
4841
|
+
"2xl": "1rem",
|
|
4842
|
+
// 16px (4 × base)
|
|
4843
|
+
// 3XL radius
|
|
4844
|
+
"3xl": "1.5rem",
|
|
4845
|
+
// 24px (6 × base)
|
|
4846
|
+
// Full radius (circular)
|
|
4847
|
+
full: "9999px"
|
|
4848
|
+
};
|
|
4849
|
+
var componentRadius = {
|
|
4850
|
+
// Button radius standards
|
|
4851
|
+
button: {
|
|
4852
|
+
sm: borderRadius.sm,
|
|
4853
|
+
// 4px (compact buttons)
|
|
4854
|
+
md: borderRadius.md,
|
|
4855
|
+
// 6px (default buttons)
|
|
4856
|
+
lg: borderRadius.lg,
|
|
4857
|
+
// 8px (large buttons)
|
|
4858
|
+
pill: borderRadius.full
|
|
4859
|
+
// Full (pill buttons)
|
|
4860
|
+
},
|
|
4861
|
+
// Card radius standards
|
|
4862
|
+
card: {
|
|
4863
|
+
sm: borderRadius.sm,
|
|
4864
|
+
// 4px (compact cards)
|
|
4865
|
+
md: borderRadius.md,
|
|
4866
|
+
// 6px (default cards)
|
|
4867
|
+
lg: borderRadius.lg,
|
|
4868
|
+
// 8px (large cards)
|
|
4869
|
+
xl: borderRadius.xl
|
|
4870
|
+
// 12px (feature cards)
|
|
4871
|
+
},
|
|
4872
|
+
// Input/Form field radius standards
|
|
4873
|
+
input: {
|
|
4874
|
+
sm: borderRadius.sm,
|
|
4875
|
+
// 4px (compact inputs)
|
|
4876
|
+
md: borderRadius.md,
|
|
4877
|
+
// 6px (default inputs)
|
|
4878
|
+
lg: borderRadius.lg
|
|
4879
|
+
// 8px (large inputs)
|
|
4880
|
+
},
|
|
4881
|
+
// Badge/Status radius standards
|
|
4882
|
+
badge: {
|
|
4883
|
+
sm: borderRadius.xs,
|
|
4884
|
+
// 2px (compact badges)
|
|
4885
|
+
md: borderRadius.sm,
|
|
4886
|
+
// 4px (default badges)
|
|
4887
|
+
lg: borderRadius.md,
|
|
4888
|
+
// 6px (large badges)
|
|
4889
|
+
pill: borderRadius.full
|
|
4890
|
+
// Full (pill badges)
|
|
4891
|
+
},
|
|
4892
|
+
// Avatar radius standards
|
|
4893
|
+
avatar: {
|
|
4894
|
+
sm: borderRadius.full,
|
|
4895
|
+
// Full (small avatars)
|
|
4896
|
+
md: borderRadius.full,
|
|
4897
|
+
// Full (default avatars)
|
|
4898
|
+
lg: borderRadius.full,
|
|
4899
|
+
// Full (large avatars)
|
|
4900
|
+
square: borderRadius.md
|
|
4901
|
+
// 6px (square avatars)
|
|
4902
|
+
},
|
|
4903
|
+
// Modal/Dialog radius standards
|
|
4904
|
+
modal: {
|
|
4905
|
+
sm: borderRadius.md,
|
|
4906
|
+
// 6px (small modals)
|
|
4907
|
+
md: borderRadius.lg,
|
|
4908
|
+
// 8px (default modals)
|
|
4909
|
+
lg: borderRadius.xl,
|
|
4910
|
+
// 12px (large modals)
|
|
4911
|
+
xl: borderRadius["2xl"]
|
|
4912
|
+
// 16px (extra large modals)
|
|
4913
|
+
},
|
|
4914
|
+
// Tooltip radius standards
|
|
4915
|
+
tooltip: {
|
|
4916
|
+
sm: borderRadius.sm,
|
|
4917
|
+
// 4px (default tooltips)
|
|
4918
|
+
md: borderRadius.md
|
|
4919
|
+
// 6px (large tooltips)
|
|
4920
|
+
},
|
|
4921
|
+
// Toast/Notification radius standards
|
|
4922
|
+
toast: {
|
|
4923
|
+
sm: borderRadius.md,
|
|
4924
|
+
// 6px (compact toasts)
|
|
4925
|
+
md: borderRadius.lg,
|
|
4926
|
+
// 8px (default toasts)
|
|
4927
|
+
lg: borderRadius.xl
|
|
4928
|
+
// 12px (large toasts)
|
|
4929
|
+
},
|
|
4930
|
+
// Chip/Tag radius standards
|
|
4931
|
+
chip: {
|
|
4932
|
+
sm: borderRadius.xs,
|
|
4933
|
+
// 2px (compact chips)
|
|
4934
|
+
md: borderRadius.sm,
|
|
4935
|
+
// 4px (default chips)
|
|
4936
|
+
lg: borderRadius.md,
|
|
4937
|
+
// 6px (large chips)
|
|
4938
|
+
pill: borderRadius.full
|
|
4939
|
+
// Full (pill chips)
|
|
4940
|
+
},
|
|
4941
|
+
// Image/Media radius standards
|
|
4942
|
+
image: {
|
|
4943
|
+
none: borderRadius.none,
|
|
4944
|
+
// 0 (sharp images)
|
|
4945
|
+
sm: borderRadius.sm,
|
|
4946
|
+
// 4px (subtle rounding)
|
|
4947
|
+
md: borderRadius.md,
|
|
4948
|
+
// 6px (default)
|
|
4949
|
+
lg: borderRadius.lg,
|
|
4950
|
+
// 8px (rounded)
|
|
4951
|
+
xl: borderRadius.xl,
|
|
4952
|
+
// 12px (very rounded)
|
|
4953
|
+
full: borderRadius.full
|
|
4954
|
+
// Full (circular images)
|
|
4955
|
+
}
|
|
4956
|
+
};
|
|
4957
|
+
var radiusCSSVariables = {
|
|
4958
|
+
// Border radius scale
|
|
4959
|
+
"--radius-none": borderRadius.none,
|
|
4960
|
+
"--radius-xs": borderRadius.xs,
|
|
4961
|
+
"--radius-sm": borderRadius.sm,
|
|
4962
|
+
"--radius-base": borderRadius.base,
|
|
4963
|
+
"--radius-md": borderRadius.md,
|
|
4964
|
+
"--radius-lg": borderRadius.lg,
|
|
4965
|
+
"--radius-xl": borderRadius.xl,
|
|
4966
|
+
"--radius-2xl": borderRadius["2xl"],
|
|
4967
|
+
"--radius-3xl": borderRadius["3xl"],
|
|
4968
|
+
"--radius-full": borderRadius.full,
|
|
4969
|
+
// Default radius variable (commonly used)
|
|
4970
|
+
"--radius": borderRadius.md,
|
|
4971
|
+
// Default to medium (6px)
|
|
4972
|
+
// Component-specific radius variables
|
|
4973
|
+
"--radius-button": componentRadius.button.md,
|
|
4974
|
+
"--radius-card": componentRadius.card.md,
|
|
4975
|
+
"--radius-input": componentRadius.input.md,
|
|
4976
|
+
"--radius-badge": componentRadius.badge.md,
|
|
4977
|
+
"--radius-modal": componentRadius.modal.md,
|
|
4978
|
+
"--radius-tooltip": componentRadius.tooltip.sm,
|
|
4979
|
+
"--radius-toast": componentRadius.toast.md,
|
|
4980
|
+
"--radius-chip": componentRadius.chip.md,
|
|
4981
|
+
"--radius-image": componentRadius.image.md
|
|
4982
|
+
};
|
|
4983
|
+
var tailwindRadiusConfig = {
|
|
4984
|
+
borderRadius: {
|
|
4985
|
+
...borderRadius,
|
|
4986
|
+
// Add component-specific aliases
|
|
4987
|
+
button: componentRadius.button.md,
|
|
4988
|
+
card: componentRadius.card.md,
|
|
4989
|
+
input: componentRadius.input.md,
|
|
4990
|
+
badge: componentRadius.badge.md,
|
|
4991
|
+
modal: componentRadius.modal.md,
|
|
4992
|
+
tooltip: componentRadius.tooltip.sm,
|
|
4993
|
+
toast: componentRadius.toast.md,
|
|
4994
|
+
chip: componentRadius.chip.md,
|
|
4995
|
+
image: componentRadius.image.md
|
|
4996
|
+
}
|
|
4997
|
+
};
|
|
4998
|
+
|
|
4999
|
+
// src/tokens/shadows.ts
|
|
5000
|
+
var shadowBase = {
|
|
5001
|
+
black: "0 0 0",
|
|
5002
|
+
// Black color for shadows (rgb format)
|
|
5003
|
+
overlay: "0 0 0"
|
|
5004
|
+
// Black color for overlays (rgba format)
|
|
5005
|
+
};
|
|
5006
|
+
var shadowOpacity = {
|
|
5007
|
+
xs: "0.05",
|
|
5008
|
+
sm: "0.1",
|
|
5009
|
+
md: "0.1",
|
|
5010
|
+
lg: "0.1",
|
|
5011
|
+
xl: "0.1",
|
|
5012
|
+
"2xl": "0.25",
|
|
5013
|
+
overlay: "0.5",
|
|
5014
|
+
backdrop: "0.5"
|
|
5015
|
+
};
|
|
5016
|
+
var elevationShadows = {
|
|
5017
|
+
none: "none",
|
|
5018
|
+
xs: `0 1px 2px 0 rgb(${shadowBase.black} / ${shadowOpacity.xs})`,
|
|
5019
|
+
sm: `0 1px 3px 0 rgb(${shadowBase.black} / ${shadowOpacity.sm}), 0 1px 2px -1px rgb(${shadowBase.black} / ${shadowOpacity.sm})`,
|
|
5020
|
+
md: `0 4px 6px -1px rgb(${shadowBase.black} / ${shadowOpacity.md}), 0 2px 4px -2px rgb(${shadowBase.black} / ${shadowOpacity.md})`,
|
|
5021
|
+
lg: `0 10px 15px -3px rgb(${shadowBase.black} / ${shadowOpacity.lg}), 0 4px 6px -4px rgb(${shadowBase.black} / ${shadowOpacity.lg})`,
|
|
5022
|
+
xl: `0 20px 25px -5px rgb(${shadowBase.black} / ${shadowOpacity.xl}), 0 8px 10px -6px rgb(${shadowBase.black} / ${shadowOpacity.xl})`,
|
|
5023
|
+
"2xl": `0 25px 50px -12px rgb(${shadowBase.black} / ${shadowOpacity["2xl"]})`
|
|
5024
|
+
};
|
|
5025
|
+
var primaryColoredShadows = {
|
|
5026
|
+
xs: "0 1px 2px 0 hsl(var(--primary-500) / 0.15)",
|
|
5027
|
+
sm: "0 2px 4px 0 hsl(var(--primary-500) / 0.2)",
|
|
5028
|
+
md: "0 4px 8px 0 hsl(var(--primary-500) / 0.3)",
|
|
5029
|
+
lg: "0 8px 16px 0 hsl(var(--primary-500) / 0.4)",
|
|
5030
|
+
xl: "0 12px 24px 0 hsl(var(--primary-500) / 0.5)",
|
|
5031
|
+
"2xl": "0 16px 32px 0 hsl(var(--primary-500) / 0.6)"
|
|
5032
|
+
};
|
|
5033
|
+
var accentColoredShadows = {
|
|
5034
|
+
xs: "0 1px 2px 0 hsl(var(--accent-500) / 0.15)",
|
|
5035
|
+
sm: "0 2px 4px 0 hsl(var(--accent-500) / 0.2)",
|
|
5036
|
+
md: "0 4px 8px 0 hsl(var(--accent-500) / 0.3)",
|
|
5037
|
+
lg: "0 8px 16px 0 hsl(var(--accent-500) / 0.4)",
|
|
5038
|
+
xl: "0 12px 24px 0 hsl(var(--accent-500) / 0.5)",
|
|
5039
|
+
"2xl": "0 16px 32px 0 hsl(var(--accent-500) / 0.6)"
|
|
5040
|
+
};
|
|
5041
|
+
var glowEffects = {
|
|
5042
|
+
// Primary glow effects
|
|
5043
|
+
"glow-primary": "0 0 20px 0 hsl(var(--primary-500) / 0.5), 0 0 40px 0 hsl(var(--primary-500) / 0.3)",
|
|
5044
|
+
"glow-primary-subtle": "0 0 8px 0 hsl(var(--primary-500) / 0.3)",
|
|
5045
|
+
"glow-primary-medium": "0 0 16px 0 hsl(var(--primary-500) / 0.5)",
|
|
5046
|
+
"glow-primary-strong": "0 0 24px 0 hsl(var(--primary-500) / 0.6)",
|
|
5047
|
+
// Accent glow effects
|
|
5048
|
+
"glow-accent": "0 0 20px 0 hsl(var(--accent-500) / 0.5), 0 0 40px 0 hsl(var(--accent-500) / 0.3)",
|
|
5049
|
+
"glow-accent-subtle": "0 0 8px 0 hsl(var(--accent-500) / 0.3)",
|
|
5050
|
+
"glow-accent-medium": "0 0 16px 0 hsl(var(--accent-500) / 0.5)",
|
|
5051
|
+
"glow-accent-strong": "0 0 24px 0 hsl(var(--accent-500) / 0.6)"
|
|
5052
|
+
};
|
|
5053
|
+
var focusRings = {
|
|
5054
|
+
default: "0 0 0 3px hsl(var(--ring) / 0.5)",
|
|
5055
|
+
primary: "0 0 0 3px hsl(var(--primary-500) / 0.3)",
|
|
5056
|
+
accent: "0 0 0 3px hsl(var(--accent-500) / 0.3)",
|
|
5057
|
+
"focus-primary": "0 0 0 3px hsl(var(--primary-500) / 0.3)",
|
|
5058
|
+
"focus-accent": "0 0 0 3px hsl(var(--accent-500) / 0.3)"
|
|
5059
|
+
};
|
|
5060
|
+
var shadowCSSVariables = {
|
|
5061
|
+
// Elevation shadows
|
|
5062
|
+
"--shadow-none": elevationShadows.none,
|
|
5063
|
+
"--shadow-xs": elevationShadows.xs,
|
|
5064
|
+
"--shadow-sm": elevationShadows.sm,
|
|
5065
|
+
"--shadow-md": elevationShadows.md,
|
|
5066
|
+
"--shadow-lg": elevationShadows.lg,
|
|
5067
|
+
"--shadow-xl": elevationShadows.xl,
|
|
5068
|
+
"--shadow-2xl": elevationShadows["2xl"],
|
|
5069
|
+
// Primary colored shadows
|
|
5070
|
+
"--shadow-primary-xs": primaryColoredShadows.xs,
|
|
5071
|
+
"--shadow-primary-sm": primaryColoredShadows.sm,
|
|
5072
|
+
"--shadow-primary-md": primaryColoredShadows.md,
|
|
5073
|
+
"--shadow-primary-lg": primaryColoredShadows.lg,
|
|
5074
|
+
"--shadow-primary-xl": primaryColoredShadows.xl,
|
|
5075
|
+
"--shadow-primary-2xl": primaryColoredShadows["2xl"],
|
|
5076
|
+
// Accent colored shadows
|
|
5077
|
+
"--shadow-accent-xs": accentColoredShadows.xs,
|
|
5078
|
+
"--shadow-accent-sm": accentColoredShadows.sm,
|
|
5079
|
+
"--shadow-accent-md": accentColoredShadows.md,
|
|
5080
|
+
"--shadow-accent-lg": accentColoredShadows.lg,
|
|
5081
|
+
"--shadow-accent-xl": accentColoredShadows.xl,
|
|
5082
|
+
"--shadow-accent-2xl": accentColoredShadows["2xl"],
|
|
5083
|
+
// Glow effects
|
|
5084
|
+
"--glow-primary": glowEffects["glow-primary"],
|
|
5085
|
+
"--glow-primary-subtle": glowEffects["glow-primary-subtle"],
|
|
5086
|
+
"--glow-primary-medium": glowEffects["glow-primary-medium"],
|
|
5087
|
+
"--glow-primary-strong": glowEffects["glow-primary-strong"],
|
|
5088
|
+
"--glow-accent": glowEffects["glow-accent"],
|
|
5089
|
+
"--glow-accent-subtle": glowEffects["glow-accent-subtle"],
|
|
5090
|
+
"--glow-accent-medium": glowEffects["glow-accent-medium"],
|
|
5091
|
+
"--glow-accent-strong": glowEffects["glow-accent-strong"],
|
|
5092
|
+
// Focus rings
|
|
5093
|
+
"--focus-ring-default": focusRings.default,
|
|
5094
|
+
"--focus-ring-primary": focusRings.primary,
|
|
5095
|
+
"--focus-ring-accent": focusRings.accent,
|
|
5096
|
+
"--focus-primary": focusRings["focus-primary"],
|
|
5097
|
+
"--focus-accent": focusRings["focus-accent"]
|
|
5098
|
+
};
|
|
5099
|
+
var componentShadowMapping = {
|
|
5100
|
+
card: {
|
|
5101
|
+
default: elevationShadows.sm,
|
|
5102
|
+
hover: elevationShadows.md,
|
|
5103
|
+
active: elevationShadows.xs,
|
|
5104
|
+
selected: primaryColoredShadows.sm
|
|
5105
|
+
},
|
|
5106
|
+
button: {
|
|
5107
|
+
default: elevationShadows.xs,
|
|
5108
|
+
hover: elevationShadows.sm,
|
|
5109
|
+
active: elevationShadows.none,
|
|
5110
|
+
focus: focusRings.primary
|
|
5111
|
+
},
|
|
5112
|
+
"button-accent": {
|
|
5113
|
+
default: accentColoredShadows.xs,
|
|
5114
|
+
hover: accentColoredShadows.sm,
|
|
5115
|
+
active: elevationShadows.none,
|
|
5116
|
+
focus: focusRings.accent
|
|
5117
|
+
},
|
|
5118
|
+
modal: {
|
|
5119
|
+
default: elevationShadows.xl,
|
|
5120
|
+
backdrop: `rgba(${shadowBase.overlay}, ${shadowOpacity.backdrop})`
|
|
5121
|
+
},
|
|
5122
|
+
dropdown: {
|
|
5123
|
+
default: elevationShadows.md,
|
|
5124
|
+
hover: elevationShadows.lg
|
|
5125
|
+
},
|
|
5126
|
+
tooltip: {
|
|
5127
|
+
default: elevationShadows.sm
|
|
5128
|
+
},
|
|
5129
|
+
toast: {
|
|
5130
|
+
default: elevationShadows.lg,
|
|
5131
|
+
success: "0 10px 15px -3px hsl(var(--semantic-success) / 0.3)",
|
|
5132
|
+
error: "0 10px 15px -3px hsl(var(--semantic-error) / 0.3)"
|
|
5133
|
+
}
|
|
5134
|
+
};
|
|
5135
|
+
var tailwindShadowConfig = {
|
|
5136
|
+
boxShadow: {
|
|
5137
|
+
// Elevation shadows
|
|
5138
|
+
none: elevationShadows.none,
|
|
5139
|
+
xs: elevationShadows.xs,
|
|
5140
|
+
sm: elevationShadows.sm,
|
|
5141
|
+
md: elevationShadows.md,
|
|
5142
|
+
lg: elevationShadows.lg,
|
|
5143
|
+
xl: elevationShadows.xl,
|
|
5144
|
+
"2xl": elevationShadows["2xl"],
|
|
5145
|
+
// Primary colored shadows
|
|
5146
|
+
"primary-xs": primaryColoredShadows.xs,
|
|
5147
|
+
"primary-sm": primaryColoredShadows.sm,
|
|
5148
|
+
"primary-md": primaryColoredShadows.md,
|
|
5149
|
+
"primary-lg": primaryColoredShadows.lg,
|
|
5150
|
+
"primary-xl": primaryColoredShadows.xl,
|
|
5151
|
+
"primary-2xl": primaryColoredShadows["2xl"],
|
|
5152
|
+
// Accent colored shadows
|
|
5153
|
+
"accent-xs": accentColoredShadows.xs,
|
|
5154
|
+
"accent-sm": accentColoredShadows.sm,
|
|
5155
|
+
"accent-md": accentColoredShadows.md,
|
|
5156
|
+
"accent-lg": accentColoredShadows.lg,
|
|
5157
|
+
"accent-xl": accentColoredShadows.xl,
|
|
5158
|
+
"accent-2xl": accentColoredShadows["2xl"],
|
|
5159
|
+
// Glow effects
|
|
5160
|
+
"glow-primary": glowEffects["glow-primary"],
|
|
5161
|
+
"glow-primary-subtle": glowEffects["glow-primary-subtle"],
|
|
5162
|
+
"glow-primary-medium": glowEffects["glow-primary-medium"],
|
|
5163
|
+
"glow-primary-strong": glowEffects["glow-primary-strong"],
|
|
5164
|
+
"glow-accent": glowEffects["glow-accent"],
|
|
5165
|
+
"glow-accent-subtle": glowEffects["glow-accent-subtle"],
|
|
5166
|
+
"glow-accent-medium": glowEffects["glow-accent-medium"],
|
|
5167
|
+
"glow-accent-strong": glowEffects["glow-accent-strong"],
|
|
5168
|
+
// Focus rings (using box-shadow for focus states)
|
|
5169
|
+
"focus-ring": focusRings.default,
|
|
5170
|
+
"focus-primary": focusRings["focus-primary"],
|
|
5171
|
+
"focus-accent": focusRings["focus-accent"]
|
|
5172
|
+
},
|
|
5173
|
+
// Ring width (for focus rings using ring utilities)
|
|
5174
|
+
ringWidth: {
|
|
5175
|
+
DEFAULT: "3px",
|
|
5176
|
+
sm: "2px",
|
|
5177
|
+
md: "3px",
|
|
5178
|
+
lg: "4px"
|
|
5179
|
+
},
|
|
5180
|
+
// Ring color (for focus rings)
|
|
5181
|
+
ringColor: {
|
|
5182
|
+
DEFAULT: "hsl(var(--ring) / 0.5)",
|
|
5183
|
+
primary: "hsl(var(--primary-500) / 0.3)",
|
|
5184
|
+
accent: "hsl(var(--accent-500) / 0.3)",
|
|
5185
|
+
"focus-primary": "hsl(var(--primary-500) / 0.3)",
|
|
5186
|
+
"focus-accent": "hsl(var(--accent-500) / 0.3)"
|
|
5187
|
+
}
|
|
5188
|
+
};
|
|
5189
|
+
|
|
5190
|
+
// src/tokens/typography.ts
|
|
5191
|
+
var fontFamily = {
|
|
5192
|
+
// Primary font - Inter (default sans)
|
|
5193
|
+
sans: [
|
|
5194
|
+
"Inter",
|
|
5195
|
+
"ui-sans-serif",
|
|
5196
|
+
"system-ui",
|
|
5197
|
+
"-apple-system",
|
|
5198
|
+
"BlinkMacSystemFont",
|
|
5199
|
+
"Segoe UI",
|
|
5200
|
+
"Roboto",
|
|
5201
|
+
"Helvetica Neue",
|
|
5202
|
+
"Arial",
|
|
5203
|
+
"Noto Sans",
|
|
5204
|
+
"sans-serif",
|
|
5205
|
+
"Apple Color Emoji",
|
|
5206
|
+
"Segoe UI Emoji",
|
|
5207
|
+
"Segoe UI Symbol",
|
|
5208
|
+
"Noto Color Emoji"
|
|
5209
|
+
],
|
|
5210
|
+
// Optional font - Satoshi
|
|
5211
|
+
satoshi: [
|
|
5212
|
+
"Satoshi",
|
|
5213
|
+
"Inter",
|
|
5214
|
+
"ui-sans-serif",
|
|
5215
|
+
"system-ui",
|
|
5216
|
+
"-apple-system",
|
|
5217
|
+
"BlinkMacSystemFont",
|
|
5218
|
+
"Segoe UI",
|
|
5219
|
+
"Roboto",
|
|
5220
|
+
"sans-serif"
|
|
5221
|
+
],
|
|
5222
|
+
// Display font - Clash Display (for headings and hero sections)
|
|
5223
|
+
display: [
|
|
5224
|
+
"Clash Display",
|
|
5225
|
+
"Inter",
|
|
5226
|
+
"ui-sans-serif",
|
|
5227
|
+
"system-ui",
|
|
5228
|
+
"-apple-system",
|
|
5229
|
+
"BlinkMacSystemFont",
|
|
5230
|
+
"Segoe UI",
|
|
5231
|
+
"Roboto",
|
|
5232
|
+
"sans-serif"
|
|
5233
|
+
],
|
|
5234
|
+
// Serif font family
|
|
5235
|
+
serif: ["ui-serif", "Georgia", "Cambria", "Times New Roman", "Times", "serif"],
|
|
5236
|
+
// Monospace font family
|
|
5237
|
+
mono: [
|
|
5238
|
+
"ui-monospace",
|
|
5239
|
+
"SFMono-Regular",
|
|
5240
|
+
"Menlo",
|
|
5241
|
+
"Monaco",
|
|
5242
|
+
"Consolas",
|
|
5243
|
+
"Liberation Mono",
|
|
5244
|
+
"Courier New",
|
|
5245
|
+
"monospace"
|
|
5246
|
+
]
|
|
5247
|
+
};
|
|
5248
|
+
var fontSize = {
|
|
5249
|
+
// text-xs: 12px base, scales from 0.75rem to 0.875rem
|
|
5250
|
+
xs: [
|
|
5251
|
+
"clamp(0.75rem, 0.7rem + 0.125vw, 0.875rem)",
|
|
5252
|
+
{ lineHeight: "1rem", letterSpacing: "0.05em" }
|
|
5253
|
+
],
|
|
5254
|
+
// text-sm: 14px base, scales from 0.875rem to 1rem
|
|
5255
|
+
sm: [
|
|
5256
|
+
"clamp(0.875rem, 0.8rem + 0.25vw, 1rem)",
|
|
5257
|
+
{ lineHeight: "1.25rem", letterSpacing: "0.025em" }
|
|
5258
|
+
],
|
|
5259
|
+
// text-base: 16px base, scales from 1rem to 1.125rem
|
|
5260
|
+
base: ["clamp(1rem, 0.95rem + 0.25vw, 1.125rem)", { lineHeight: "1.5rem", letterSpacing: "0em" }],
|
|
5261
|
+
// text-lg: 18px base, scales from 1.125rem to 1.25rem
|
|
5262
|
+
lg: [
|
|
5263
|
+
"clamp(1.125rem, 1rem + 0.5vw, 1.25rem)",
|
|
5264
|
+
{ lineHeight: "1.75rem", letterSpacing: "-0.025em" }
|
|
5265
|
+
],
|
|
5266
|
+
// text-xl: 20px base, scales from 1.25rem to 1.5rem
|
|
5267
|
+
xl: [
|
|
5268
|
+
"clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem)",
|
|
5269
|
+
{ lineHeight: "1.75rem", letterSpacing: "-0.025em" }
|
|
5270
|
+
],
|
|
5271
|
+
// text-2xl: 24px base, scales from 1.5rem to 2rem
|
|
5272
|
+
"2xl": [
|
|
5273
|
+
"clamp(1.5rem, 1.25rem + 1.25vw, 2rem)",
|
|
5274
|
+
{ lineHeight: "2rem", letterSpacing: "-0.05em" }
|
|
5275
|
+
],
|
|
5276
|
+
// text-3xl: 30px base, scales from 1.875rem to 2.5rem
|
|
5277
|
+
"3xl": [
|
|
5278
|
+
"clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem)",
|
|
5279
|
+
{ lineHeight: "2.25rem", letterSpacing: "-0.05em" }
|
|
5280
|
+
],
|
|
5281
|
+
// text-4xl: 36px base, scales from 2.25rem to 3rem
|
|
5282
|
+
"4xl": [
|
|
5283
|
+
"clamp(2.25rem, 1.75rem + 2.5vw, 3rem)",
|
|
5284
|
+
{ lineHeight: "2.5rem", letterSpacing: "-0.025em" }
|
|
5285
|
+
],
|
|
5286
|
+
// text-5xl: 48px base, scales from 3rem to 4rem
|
|
5287
|
+
"5xl": ["clamp(3rem, 2rem + 5vw, 4rem)", { lineHeight: "1", letterSpacing: "-0.025em" }],
|
|
5288
|
+
// text-6xl: 60px base, scales from 3.75rem to 5rem
|
|
5289
|
+
"6xl": ["clamp(3.75rem, 2.5rem + 6.25vw, 5rem)", { lineHeight: "1", letterSpacing: "-0.05em" }],
|
|
5290
|
+
// text-7xl: 72px base (optional, for hero sections)
|
|
5291
|
+
"7xl": ["clamp(4.5rem, 3rem + 7.5vw, 6rem)", { lineHeight: "1", letterSpacing: "-0.05em" }],
|
|
5292
|
+
// text-8xl: 96px base (optional, for hero sections)
|
|
5293
|
+
"8xl": ["clamp(6rem, 4rem + 10vw, 8rem)", { lineHeight: "1", letterSpacing: "-0.05em" }],
|
|
5294
|
+
// text-9xl: 128px base (optional, for hero sections)
|
|
5295
|
+
"9xl": ["clamp(8rem, 5rem + 15vw, 12rem)", { lineHeight: "1", letterSpacing: "-0.05em" }]
|
|
5296
|
+
};
|
|
5297
|
+
var fontWeight = {
|
|
5298
|
+
thin: "100",
|
|
5299
|
+
extralight: "200",
|
|
5300
|
+
light: "300",
|
|
5301
|
+
normal: "400",
|
|
5302
|
+
medium: "500",
|
|
5303
|
+
semibold: "600",
|
|
5304
|
+
bold: "700",
|
|
5305
|
+
extrabold: "800",
|
|
5306
|
+
black: "900"
|
|
5307
|
+
};
|
|
5308
|
+
var lineHeight = {
|
|
5309
|
+
none: "1",
|
|
5310
|
+
tight: "1.25",
|
|
5311
|
+
snug: "1.375",
|
|
5312
|
+
normal: "1.5",
|
|
5313
|
+
relaxed: "1.625",
|
|
5314
|
+
loose: "2"
|
|
5315
|
+
};
|
|
5316
|
+
var letterSpacing = {
|
|
5317
|
+
tighter: "-0.05em",
|
|
5318
|
+
tight: "-0.025em",
|
|
5319
|
+
normal: "0em",
|
|
5320
|
+
wide: "0.025em",
|
|
5321
|
+
wider: "0.05em",
|
|
5322
|
+
widest: "0.1em"
|
|
5323
|
+
};
|
|
5324
|
+
var typographyCSSVariables = {
|
|
5325
|
+
// Font families
|
|
5326
|
+
"--font-sans": fontFamily.sans.join(", "),
|
|
5327
|
+
"--font-satoshi": fontFamily.satoshi.join(", "),
|
|
5328
|
+
"--font-display": fontFamily.display.join(", "),
|
|
5329
|
+
"--font-serif": fontFamily.serif.join(", "),
|
|
5330
|
+
"--font-mono": fontFamily.mono.join(", "),
|
|
5331
|
+
// Font sizes (using clamp values)
|
|
5332
|
+
"--font-size-xs": fontSize.xs[0],
|
|
5333
|
+
"--font-size-sm": fontSize.sm[0],
|
|
5334
|
+
"--font-size-base": fontSize.base[0],
|
|
5335
|
+
"--font-size-lg": fontSize.lg[0],
|
|
5336
|
+
"--font-size-xl": fontSize.xl[0],
|
|
5337
|
+
"--font-size-2xl": fontSize["2xl"][0],
|
|
5338
|
+
"--font-size-3xl": fontSize["3xl"][0],
|
|
5339
|
+
"--font-size-4xl": fontSize["4xl"][0],
|
|
5340
|
+
"--font-size-5xl": fontSize["5xl"][0],
|
|
5341
|
+
"--font-size-6xl": fontSize["6xl"][0],
|
|
5342
|
+
// Font weights
|
|
5343
|
+
"--font-weight-thin": fontWeight.thin,
|
|
5344
|
+
"--font-weight-extralight": fontWeight.extralight,
|
|
5345
|
+
"--font-weight-light": fontWeight.light,
|
|
5346
|
+
"--font-weight-normal": fontWeight.normal,
|
|
5347
|
+
"--font-weight-medium": fontWeight.medium,
|
|
5348
|
+
"--font-weight-semibold": fontWeight.semibold,
|
|
5349
|
+
"--font-weight-bold": fontWeight.bold,
|
|
5350
|
+
"--font-weight-extrabold": fontWeight.extrabold,
|
|
5351
|
+
"--font-weight-black": fontWeight.black,
|
|
5352
|
+
// Line heights
|
|
5353
|
+
"--line-height-none": lineHeight.none,
|
|
5354
|
+
"--line-height-tight": lineHeight.tight,
|
|
5355
|
+
"--line-height-snug": lineHeight.snug,
|
|
5356
|
+
"--line-height-normal": lineHeight.normal,
|
|
5357
|
+
"--line-height-relaxed": lineHeight.relaxed,
|
|
5358
|
+
"--line-height-loose": lineHeight.loose,
|
|
5359
|
+
// Letter spacing
|
|
5360
|
+
"--letter-spacing-tighter": letterSpacing.tighter,
|
|
5361
|
+
"--letter-spacing-tight": letterSpacing.tight,
|
|
5362
|
+
"--letter-spacing-normal": letterSpacing.normal,
|
|
5363
|
+
"--letter-spacing-wide": letterSpacing.wide,
|
|
5364
|
+
"--letter-spacing-wider": letterSpacing.wider,
|
|
5365
|
+
"--letter-spacing-widest": letterSpacing.widest
|
|
5366
|
+
};
|
|
5367
|
+
var textStyles = {
|
|
5368
|
+
// Display styles (for hero sections)
|
|
5369
|
+
display: {
|
|
5370
|
+
fontFamily: fontFamily.display.join(", "),
|
|
5371
|
+
fontSize: fontSize["6xl"][0],
|
|
5372
|
+
fontWeight: fontWeight.bold,
|
|
5373
|
+
lineHeight: lineHeight.none,
|
|
5374
|
+
letterSpacing: letterSpacing.tight
|
|
5375
|
+
},
|
|
5376
|
+
// Heading styles
|
|
5377
|
+
h1: {
|
|
5378
|
+
fontFamily: fontFamily.display.join(", "),
|
|
5379
|
+
fontSize: fontSize["5xl"][0],
|
|
5380
|
+
fontWeight: fontWeight.bold,
|
|
5381
|
+
lineHeight: lineHeight.tight,
|
|
5382
|
+
letterSpacing: letterSpacing.tight
|
|
5383
|
+
},
|
|
5384
|
+
h2: {
|
|
5385
|
+
fontFamily: fontFamily.display.join(", "),
|
|
5386
|
+
fontSize: fontSize["4xl"][0],
|
|
5387
|
+
fontWeight: fontWeight.bold,
|
|
5388
|
+
lineHeight: lineHeight.tight,
|
|
5389
|
+
letterSpacing: letterSpacing.tight
|
|
5390
|
+
},
|
|
5391
|
+
h3: {
|
|
5392
|
+
fontFamily: fontFamily.sans.join(", "),
|
|
5393
|
+
fontSize: fontSize["3xl"][0],
|
|
5394
|
+
fontWeight: fontWeight.semibold,
|
|
5395
|
+
lineHeight: lineHeight.snug,
|
|
5396
|
+
letterSpacing: letterSpacing.normal
|
|
5397
|
+
},
|
|
5398
|
+
h4: {
|
|
5399
|
+
fontFamily: fontFamily.sans.join(", "),
|
|
5400
|
+
fontSize: fontSize["2xl"][0],
|
|
5401
|
+
fontWeight: fontWeight.semibold,
|
|
5402
|
+
lineHeight: lineHeight.snug,
|
|
5403
|
+
letterSpacing: letterSpacing.normal
|
|
5404
|
+
},
|
|
5405
|
+
h5: {
|
|
5406
|
+
fontFamily: fontFamily.sans.join(", "),
|
|
5407
|
+
fontSize: fontSize.xl[0],
|
|
5408
|
+
fontWeight: fontWeight.medium,
|
|
5409
|
+
lineHeight: lineHeight.normal,
|
|
5410
|
+
letterSpacing: letterSpacing.normal
|
|
5411
|
+
},
|
|
5412
|
+
h6: {
|
|
5413
|
+
fontFamily: fontFamily.sans.join(", "),
|
|
5414
|
+
fontSize: fontSize.lg[0],
|
|
5415
|
+
fontWeight: fontWeight.medium,
|
|
5416
|
+
lineHeight: lineHeight.normal,
|
|
5417
|
+
letterSpacing: letterSpacing.normal
|
|
5418
|
+
},
|
|
5419
|
+
// Body text styles
|
|
5420
|
+
body: {
|
|
5421
|
+
fontFamily: fontFamily.sans.join(", "),
|
|
5422
|
+
fontSize: fontSize.base[0],
|
|
5423
|
+
fontWeight: fontWeight.normal,
|
|
5424
|
+
lineHeight: lineHeight.relaxed,
|
|
5425
|
+
letterSpacing: letterSpacing.normal
|
|
5426
|
+
},
|
|
5427
|
+
"body-sm": {
|
|
5428
|
+
fontFamily: fontFamily.sans.join(", "),
|
|
5429
|
+
fontSize: fontSize.sm[0],
|
|
5430
|
+
fontWeight: fontWeight.normal,
|
|
5431
|
+
lineHeight: lineHeight.normal,
|
|
5432
|
+
letterSpacing: letterSpacing.normal
|
|
5433
|
+
},
|
|
5434
|
+
"body-xs": {
|
|
5435
|
+
fontFamily: fontFamily.sans.join(", "),
|
|
5436
|
+
fontSize: fontSize.xs[0],
|
|
5437
|
+
fontWeight: fontWeight.normal,
|
|
5438
|
+
lineHeight: lineHeight.normal,
|
|
5439
|
+
letterSpacing: letterSpacing.wide
|
|
5440
|
+
},
|
|
5441
|
+
// Label styles
|
|
5442
|
+
label: {
|
|
5443
|
+
fontFamily: fontFamily.sans.join(", "),
|
|
5444
|
+
fontSize: fontSize.sm[0],
|
|
5445
|
+
fontWeight: fontWeight.medium,
|
|
5446
|
+
lineHeight: lineHeight.normal,
|
|
5447
|
+
letterSpacing: letterSpacing.wide
|
|
5448
|
+
},
|
|
5449
|
+
"label-sm": {
|
|
5450
|
+
fontFamily: fontFamily.sans.join(", "),
|
|
5451
|
+
fontSize: fontSize.xs[0],
|
|
5452
|
+
fontWeight: fontWeight.medium,
|
|
5453
|
+
lineHeight: lineHeight.normal,
|
|
5454
|
+
letterSpacing: letterSpacing.wider
|
|
5455
|
+
},
|
|
5456
|
+
// Caption styles
|
|
5457
|
+
caption: {
|
|
5458
|
+
fontFamily: fontFamily.sans.join(", "),
|
|
5459
|
+
fontSize: fontSize.xs[0],
|
|
5460
|
+
fontWeight: fontWeight.normal,
|
|
5461
|
+
lineHeight: lineHeight.normal,
|
|
5462
|
+
letterSpacing: letterSpacing.wide
|
|
5463
|
+
}
|
|
5464
|
+
};
|
|
5465
|
+
var tailwindTypographyConfig = {
|
|
5466
|
+
fontFamily: {
|
|
5467
|
+
sans: [...fontFamily.sans],
|
|
5468
|
+
satoshi: [...fontFamily.satoshi],
|
|
5469
|
+
display: [...fontFamily.display],
|
|
5470
|
+
serif: [...fontFamily.serif],
|
|
5471
|
+
mono: [...fontFamily.mono]
|
|
5472
|
+
},
|
|
5473
|
+
fontSize: {
|
|
5474
|
+
xs: [
|
|
5475
|
+
fontSize.xs[0],
|
|
5476
|
+
{ lineHeight: fontSize.xs[1].lineHeight, letterSpacing: fontSize.xs[1].letterSpacing }
|
|
5477
|
+
],
|
|
5478
|
+
sm: [
|
|
5479
|
+
fontSize.sm[0],
|
|
5480
|
+
{ lineHeight: fontSize.sm[1].lineHeight, letterSpacing: fontSize.sm[1].letterSpacing }
|
|
5481
|
+
],
|
|
5482
|
+
md: [
|
|
5483
|
+
fontSize.base[0],
|
|
5484
|
+
{ lineHeight: fontSize.base[1].lineHeight, letterSpacing: fontSize.base[1].letterSpacing }
|
|
5485
|
+
],
|
|
5486
|
+
base: [
|
|
5487
|
+
fontSize.base[0],
|
|
5488
|
+
{ lineHeight: fontSize.base[1].lineHeight, letterSpacing: fontSize.base[1].letterSpacing }
|
|
5489
|
+
],
|
|
5490
|
+
lg: [
|
|
5491
|
+
fontSize.lg[0],
|
|
5492
|
+
{ lineHeight: fontSize.lg[1].lineHeight, letterSpacing: fontSize.lg[1].letterSpacing }
|
|
5493
|
+
],
|
|
5494
|
+
xl: [
|
|
5495
|
+
fontSize.xl[0],
|
|
5496
|
+
{ lineHeight: fontSize.xl[1].lineHeight, letterSpacing: fontSize.xl[1].letterSpacing }
|
|
5497
|
+
],
|
|
5498
|
+
"2xl": [
|
|
5499
|
+
fontSize["2xl"][0],
|
|
5500
|
+
{
|
|
5501
|
+
lineHeight: fontSize["2xl"][1].lineHeight,
|
|
5502
|
+
letterSpacing: fontSize["2xl"][1].letterSpacing
|
|
5503
|
+
}
|
|
5504
|
+
],
|
|
5505
|
+
"3xl": [
|
|
5506
|
+
fontSize["3xl"][0],
|
|
5507
|
+
{
|
|
5508
|
+
lineHeight: fontSize["3xl"][1].lineHeight,
|
|
5509
|
+
letterSpacing: fontSize["3xl"][1].letterSpacing
|
|
5510
|
+
}
|
|
5511
|
+
],
|
|
5512
|
+
"4xl": [
|
|
5513
|
+
fontSize["4xl"][0],
|
|
5514
|
+
{
|
|
5515
|
+
lineHeight: fontSize["4xl"][1].lineHeight,
|
|
5516
|
+
letterSpacing: fontSize["4xl"][1].letterSpacing
|
|
5517
|
+
}
|
|
5518
|
+
],
|
|
5519
|
+
"5xl": [
|
|
5520
|
+
fontSize["5xl"][0],
|
|
5521
|
+
{
|
|
5522
|
+
lineHeight: fontSize["5xl"][1].lineHeight,
|
|
5523
|
+
letterSpacing: fontSize["5xl"][1].letterSpacing
|
|
5524
|
+
}
|
|
5525
|
+
],
|
|
5526
|
+
"6xl": [
|
|
5527
|
+
fontSize["6xl"][0],
|
|
5528
|
+
{
|
|
5529
|
+
lineHeight: fontSize["6xl"][1].lineHeight,
|
|
5530
|
+
letterSpacing: fontSize["6xl"][1].letterSpacing
|
|
5531
|
+
}
|
|
5532
|
+
],
|
|
5533
|
+
"7xl": [
|
|
5534
|
+
fontSize["7xl"][0],
|
|
5535
|
+
{
|
|
5536
|
+
lineHeight: fontSize["7xl"][1].lineHeight,
|
|
5537
|
+
letterSpacing: fontSize["7xl"][1].letterSpacing
|
|
5538
|
+
}
|
|
5539
|
+
],
|
|
5540
|
+
"8xl": [
|
|
5541
|
+
fontSize["8xl"][0],
|
|
5542
|
+
{
|
|
5543
|
+
lineHeight: fontSize["8xl"][1].lineHeight,
|
|
5544
|
+
letterSpacing: fontSize["8xl"][1].letterSpacing
|
|
5545
|
+
}
|
|
5546
|
+
],
|
|
5547
|
+
"9xl": [
|
|
5548
|
+
fontSize["9xl"][0],
|
|
5549
|
+
{
|
|
5550
|
+
lineHeight: fontSize["9xl"][1].lineHeight,
|
|
5551
|
+
letterSpacing: fontSize["9xl"][1].letterSpacing
|
|
5552
|
+
}
|
|
5553
|
+
]
|
|
5554
|
+
},
|
|
5555
|
+
fontWeight: { ...fontWeight },
|
|
5556
|
+
lineHeight: { ...lineHeight },
|
|
5557
|
+
letterSpacing: { ...letterSpacing }
|
|
5558
|
+
};
|
|
5559
|
+
var fontSizeWithMd = {
|
|
5560
|
+
...fontSize,
|
|
5561
|
+
md: fontSize.base
|
|
5562
|
+
};
|
|
5563
|
+
|
|
5564
|
+
// src/tokens/css-variables.ts
|
|
5565
|
+
var allCSSVariables = {
|
|
5566
|
+
...colorCSSVariables,
|
|
5567
|
+
...typographyCSSVariables,
|
|
5568
|
+
...spacingCSSVariables,
|
|
5569
|
+
...shadowCSSVariables,
|
|
5570
|
+
...radiusCSSVariables,
|
|
5571
|
+
...motionCSSVariables
|
|
5572
|
+
};
|
|
5573
|
+
function generateCSSVariablesCSS(variables) {
|
|
5574
|
+
const cssLines = Object.entries(variables).map(([key, value]) => ` ${key}: ${value};`).join("\n");
|
|
3572
5575
|
return `:root {
|
|
3573
|
-
${
|
|
3574
|
-
`)}
|
|
5576
|
+
${cssLines}
|
|
3575
5577
|
}`;
|
|
3576
5578
|
}
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
export {
|
|
3587
|
-
v as ALERT_TOKENS,
|
|
3588
|
-
w as BUTTON_TOKENS,
|
|
3589
|
-
y as CARD_TOKENS,
|
|
3590
|
-
z as CHECKBOX_TOKENS,
|
|
3591
|
-
d as DATA_TOKENS,
|
|
3592
|
-
k as DOMAIN_TOKENS,
|
|
3593
|
-
L as DROPDOWN_TOKENS,
|
|
3594
|
-
c as ICON_TOKENS,
|
|
3595
|
-
S as INPUT_TOKENS,
|
|
3596
|
-
_ as MENU_TOKENS,
|
|
3597
|
-
h as MOTION_TOKENS,
|
|
3598
|
-
K as NAVIGATION_TOKENS,
|
|
3599
|
-
V as NOTIFICATION_TOKENS,
|
|
3600
|
-
I as OVERLAY_TOKENS,
|
|
3601
|
-
W as POPOVER_TOKENS,
|
|
3602
|
-
T as RADIO_TOKENS,
|
|
3603
|
-
E as SECTION_TOKENS,
|
|
3604
|
-
C as SURFACE_TOKENS,
|
|
3605
|
-
O as SWITCH_TOKENS,
|
|
3606
|
-
N as TEXT_TOKENS,
|
|
3607
|
-
R as TOAST_TOKENS,
|
|
3608
|
-
M as TOOLTIP_TOKENS,
|
|
3609
|
-
j as UI_COLORS,
|
|
3610
|
-
ie as accentColoredShadows,
|
|
3611
|
-
U as accentColors,
|
|
3612
|
-
n as allCSSVariables,
|
|
3613
|
-
A as allCSSVariablesCSS,
|
|
3614
|
-
B as animations,
|
|
3615
|
-
F as baseColors,
|
|
3616
|
-
ne as borderRadius,
|
|
3617
|
-
G as chartColors,
|
|
3618
|
-
t as colorCSSVariables,
|
|
3619
|
-
le as componentRadius,
|
|
3620
|
-
me as componentShadowMapping,
|
|
3621
|
-
q as cssVariableColorTokens,
|
|
3622
|
-
X as durations,
|
|
3623
|
-
Y as easings,
|
|
3624
|
-
ue as elevationShadows,
|
|
3625
|
-
ge as focusRings,
|
|
3626
|
-
ce as fontFamily,
|
|
3627
|
-
he as fontSize,
|
|
3628
|
-
pe as fontSizeWithMd,
|
|
3629
|
-
be as fontWeight,
|
|
3630
|
-
p as generateCSSVariablesCSS,
|
|
3631
|
-
fe as glowEffects,
|
|
3632
|
-
$ as keyframes,
|
|
3633
|
-
xe as layoutSpacing,
|
|
3634
|
-
ve as letterSpacing,
|
|
3635
|
-
we as lineHeight,
|
|
3636
|
-
r as motionCSSVariables,
|
|
3637
|
-
ye as motionV2CSSVariables,
|
|
3638
|
-
ke as motionV2Combined,
|
|
3639
|
-
Se as motionV2Durations,
|
|
3640
|
-
ze as motionV2Easings,
|
|
3641
|
-
Oe as motionV2Fade,
|
|
3642
|
-
Te as motionV2Scale,
|
|
3643
|
-
Ce as motionV2Slide,
|
|
3644
|
-
Ne as motionV2TailwindConfig,
|
|
3645
|
-
Ee as motionV2Transitions,
|
|
3646
|
-
Ie as primaryColoredShadows,
|
|
3647
|
-
J as primaryColors,
|
|
3648
|
-
o as radiusCSSVariables,
|
|
3649
|
-
Q as reducedMotion,
|
|
3650
|
-
Z as secondaryColors,
|
|
3651
|
-
ee as semanticColors,
|
|
3652
|
-
e as semanticSpacing,
|
|
3653
|
-
Re as shadowBase,
|
|
3654
|
-
a as shadowCSSVariables,
|
|
3655
|
-
Ve as shadowOpacity,
|
|
3656
|
-
Ke as spacing,
|
|
3657
|
-
s as spacingCSSVariables,
|
|
3658
|
-
de as springs,
|
|
3659
|
-
re as surfaceColors,
|
|
3660
|
-
te as tailwindMotionConfig,
|
|
3661
|
-
_e as tailwindRadiusConfig,
|
|
3662
|
-
We as tailwindShadowConfig,
|
|
3663
|
-
Le as tailwindSpacingConfig,
|
|
3664
|
-
g as tailwindThemeColors,
|
|
3665
|
-
Me as tailwindTypographyConfig,
|
|
3666
|
-
oe as textColors,
|
|
3667
|
-
Ae as textStyles,
|
|
3668
|
-
H as tokenSystemSummary,
|
|
3669
|
-
ae as transitions,
|
|
3670
|
-
i as typographyCSSVariables
|
|
5579
|
+
var allCSSVariablesCSS = generateCSSVariablesCSS(allCSSVariables);
|
|
5580
|
+
var tokenSystemSummary = {
|
|
5581
|
+
colors: Object.keys(colorCSSVariables).length,
|
|
5582
|
+
typography: Object.keys(typographyCSSVariables).length,
|
|
5583
|
+
spacing: Object.keys(spacingCSSVariables).length,
|
|
5584
|
+
shadows: Object.keys(shadowCSSVariables).length,
|
|
5585
|
+
radius: Object.keys(radiusCSSVariables).length,
|
|
5586
|
+
motion: Object.keys(motionCSSVariables).length,
|
|
5587
|
+
total: Object.keys(allCSSVariables).length
|
|
3671
5588
|
};
|
|
5589
|
+
|
|
5590
|
+
// src/tokens/theme.ts
|
|
5591
|
+
var UI_COLORS = tailwindThemeColors;
|
|
5592
|
+
|
|
5593
|
+
export { ALERT_TOKENS, BUTTON_TOKENS, CARD_TOKENS, CHECKBOX_TOKENS, DATA_TOKENS, DOMAIN_TOKENS, DROPDOWN_TOKENS, ICON_TOKENS, INPUT_TOKENS, MENU_TOKENS, MOTION_TOKENS, NAVIGATION_TOKENS, NOTIFICATION_TOKENS, OVERLAY_TOKENS, POPOVER_TOKENS, RADIO_TOKENS, SECTION_TOKENS, SURFACE_TOKENS, SWITCH_TOKENS, TEXT_TOKENS, TOAST_TOKENS, TOOLTIP_TOKENS, UI_COLORS, accentColoredShadows, accentColors, allCSSVariables, allCSSVariablesCSS, animations, baseColors, borderRadius, chartColors, colorCSSVariables, componentRadius, componentShadowMapping, cssVariableColorTokens, durations, easings, elevationShadows, focusRings, fontFamily, fontSize, fontSizeWithMd, fontWeight, generateCSSVariablesCSS, glowEffects, keyframes, layoutSpacing, letterSpacing, lineHeight, motionCSSVariables, motionV2CSSVariables, motionV2Combined, motionV2Durations, motionV2Easings, motionV2Fade, motionV2Scale, motionV2Slide, motionV2TailwindConfig, motionV2Transitions, primaryColoredShadows, primaryColors, radiusCSSVariables, reducedMotion, secondaryColors, semanticColors, semanticSpacing, shadowBase, shadowCSSVariables, shadowOpacity, spacing, spacingCSSVariables, springs, surfaceColors, tailwindMotionConfig, tailwindRadiusConfig, tailwindShadowConfig, tailwindSpacingConfig, tailwindThemeColors, tailwindTypographyConfig, textColors, textStyles, tokenSystemSummary, transitions, typographyCSSVariables };
|