@redis-ui/styles 15.0.0 → 16.1.2
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/commonStyles.js +71 -0
- package/dist/focus-indicator.js +14 -0
- package/dist/hooks/ThemeModeSwitching/SwitchableModeThemeProvider.js +14 -0
- package/dist/hooks/ThemeModeSwitching/ThemeModeSwitching.context.js +15 -0
- package/dist/hooks/ThemeModeSwitching/ThemeModeSwitching.types.js +5 -0
- package/dist/hooks/ThemeModeSwitching/index.js +4 -0
- package/dist/hooks/ThemeModeSwitching/useThemeModeSwitchingManager.js +86 -0
- package/dist/hooks/usePrefersReducedMotion.js +28 -0
- package/dist/hooks/useStorage.js +59 -0
- package/dist/hooks/useTheme.js +6 -0
- package/dist/index.js +12664 -14398
- package/dist/index.umd.cjs +29 -58
- package/dist/themes/index.js +9 -0
- package/dist/themes/themeDark/theme/components/actionIconButton.js +56 -0
- package/dist/themes/themeDark/theme/components/appBar.js +25 -0
- package/dist/themes/themeDark/theme/components/appSelectionMenu.js +46 -0
- package/dist/themes/themeDark/theme/components/autoComplete.js +7 -0
- package/dist/themes/themeDark/theme/components/badge.js +73 -0
- package/dist/themes/themeDark/theme/components/banner.js +14 -0
- package/dist/themes/themeDark/theme/components/boxSelectionGroup.js +49 -0
- package/dist/themes/themeDark/theme/components/breadcrumbs.js +28 -0
- package/dist/themes/themeDark/theme/components/button.js +185 -0
- package/dist/themes/themeDark/theme/components/buttonGroup.js +46 -0
- package/dist/themes/themeDark/theme/components/card.js +40 -0
- package/dist/themes/themeDark/theme/components/checkbox.js +67 -0
- package/dist/themes/themeDark/theme/components/chip.js +60 -0
- package/dist/themes/themeDark/theme/components/chipList.js +21 -0
- package/dist/themes/themeDark/theme/components/countryFlag.js +9 -0
- package/dist/themes/themeDark/theme/components/datePicker.js +67 -0
- package/dist/themes/themeDark/theme/components/drawer.js +28 -0
- package/dist/themes/themeDark/theme/components/filters.js +36 -0
- package/dist/themes/themeDark/theme/components/formField.js +17 -0
- package/dist/themes/themeDark/theme/components/highlightedIcon.js +42 -0
- package/dist/themes/themeDark/theme/components/icon.d.ts +3 -0
- package/dist/themes/themeDark/theme/components/icon.js +14 -0
- package/dist/themes/themeDark/theme/components/iconButton.js +47 -0
- package/dist/themes/themeDark/theme/components/input.js +94 -0
- package/dist/themes/themeDark/theme/components/keyValueList.js +30 -0
- package/dist/themes/themeDark/theme/components/label.js +24 -0
- package/dist/themes/themeDark/theme/components/layouts.js +39 -0
- package/dist/themes/themeDark/theme/components/link.js +73 -0
- package/dist/themes/themeDark/theme/components/loader.js +29 -0
- package/dist/themes/themeDark/theme/components/menu.js +79 -0
- package/dist/themes/themeDark/theme/components/midBar.js +14 -0
- package/dist/themes/themeDark/theme/components/modal.js +31 -0
- package/dist/themes/themeDark/theme/components/moreInfoIcon.js +5 -0
- package/dist/themes/themeDark/theme/components/popover.js +16 -0
- package/dist/themes/themeDark/theme/components/popupCard.js +22 -0
- package/dist/themes/themeDark/theme/components/profileIcon.js +19 -0
- package/dist/themes/themeDark/theme/components/progressBar.js +57 -0
- package/dist/themes/themeDark/theme/components/radio.js +51 -0
- package/dist/themes/themeDark/theme/components/searchBar.js +23 -0
- package/dist/themes/themeDark/theme/components/section.js +48 -0
- package/dist/themes/themeDark/theme/components/select.js +103 -0
- package/dist/themes/themeDark/theme/components/semanticButton.js +203 -0
- package/dist/themes/themeDark/theme/components/semanticContainer.js +43 -0
- package/dist/themes/themeDark/theme/components/semanticIcon.js +11 -0
- package/dist/themes/themeDark/theme/components/sideBar.js +108 -0
- package/dist/themes/themeDark/theme/components/skeleton.js +30 -0
- package/dist/themes/themeDark/theme/components/slider.js +68 -0
- package/dist/themes/themeDark/theme/components/stepper.js +62 -0
- package/dist/themes/themeDark/theme/components/switch.js +55 -0
- package/dist/themes/themeDark/theme/components/table.js +91 -0
- package/dist/themes/themeDark/theme/components/tableHeading.js +26 -0
- package/dist/themes/themeDark/theme/components/tabs.js +89 -0
- package/dist/themes/themeDark/theme/components/textButton.js +195 -0
- package/dist/themes/themeDark/theme/components/themeModeSwitch.js +18 -0
- package/dist/themes/themeDark/theme/components/toast.js +9 -0
- package/dist/themes/themeDark/theme/components/toggleButton.js +59 -0
- package/dist/themes/themeDark/theme/components/tooltip.js +17 -0
- package/dist/themes/themeDark/theme/components/treeView.js +16 -0
- package/dist/themes/themeDark/theme/components/typography.js +79 -0
- package/dist/themes/themeDark/theme/components/windowBar.js +55 -0
- package/dist/themes/themeDark/theme/globals/body.js +9 -0
- package/dist/themes/themeDark/theme/globals/scrollbar.js +12 -0
- package/dist/themes/themeDark/theme.js +134 -0
- package/dist/themes/themeDark/tokens.js +200 -0
- package/dist/themes/themeDark2/theme/components/actionIconButton.js +56 -0
- package/dist/themes/themeDark2/theme/components/appBar.js +25 -0
- package/dist/themes/themeDark2/theme/components/appSelectionMenu.js +46 -0
- package/dist/themes/themeDark2/theme/components/autoComplete.js +7 -0
- package/dist/themes/themeDark2/theme/components/badge.js +73 -0
- package/dist/themes/themeDark2/theme/components/banner.js +14 -0
- package/dist/themes/themeDark2/theme/components/boxSelectionGroup.js +58 -0
- package/dist/themes/themeDark2/theme/components/breadcrumbs.js +28 -0
- package/dist/themes/themeDark2/theme/components/button.js +202 -0
- package/dist/themes/themeDark2/theme/components/buttonGroup.js +46 -0
- package/dist/themes/themeDark2/theme/components/card.js +40 -0
- package/dist/themes/themeDark2/theme/components/checkbox.js +67 -0
- package/dist/themes/themeDark2/theme/components/chip.js +60 -0
- package/dist/themes/themeDark2/theme/components/chipList.js +21 -0
- package/dist/themes/themeDark2/theme/components/countryFlag.js +9 -0
- package/dist/themes/themeDark2/theme/components/datePicker.js +67 -0
- package/dist/themes/themeDark2/theme/components/drawer.js +30 -0
- package/dist/themes/themeDark2/theme/components/filters.js +36 -0
- package/dist/themes/themeDark2/theme/components/formField.js +17 -0
- package/dist/themes/themeDark2/theme/components/highlightedIcon.js +42 -0
- package/dist/themes/themeDark2/theme/components/icon.d.ts +3 -0
- package/dist/themes/themeDark2/theme/components/icon.js +14 -0
- package/dist/themes/themeDark2/theme/components/iconButton.js +49 -0
- package/dist/themes/themeDark2/theme/components/input.js +97 -0
- package/dist/themes/themeDark2/theme/components/keyValueList.js +30 -0
- package/dist/themes/themeDark2/theme/components/label.js +24 -0
- package/dist/themes/themeDark2/theme/components/layouts.js +39 -0
- package/dist/themes/themeDark2/theme/components/link.js +72 -0
- package/dist/themes/themeDark2/theme/components/loader.js +30 -0
- package/dist/themes/themeDark2/theme/components/menu.js +79 -0
- package/dist/themes/themeDark2/theme/components/midBar.js +14 -0
- package/dist/themes/themeDark2/theme/components/modal.js +34 -0
- package/dist/themes/themeDark2/theme/components/moreInfoIcon.js +5 -0
- package/dist/themes/themeDark2/theme/components/popover.js +16 -0
- package/dist/themes/themeDark2/theme/components/popupCard.js +22 -0
- package/dist/themes/themeDark2/theme/components/profileIcon.js +39 -0
- package/dist/themes/themeDark2/theme/components/progressBar.js +57 -0
- package/dist/themes/themeDark2/theme/components/radio.js +51 -0
- package/dist/themes/themeDark2/theme/components/searchBar.js +25 -0
- package/dist/themes/themeDark2/theme/components/section.js +52 -0
- package/dist/themes/themeDark2/theme/components/select.js +104 -0
- package/dist/themes/themeDark2/theme/components/semanticButton.js +250 -0
- package/dist/themes/themeDark2/theme/components/semanticContainer.js +43 -0
- package/dist/themes/themeDark2/theme/components/semanticIcon.js +11 -0
- package/dist/themes/themeDark2/theme/components/sideBar.js +108 -0
- package/dist/themes/themeDark2/theme/components/skeleton.js +30 -0
- package/dist/themes/themeDark2/theme/components/slider.js +68 -0
- package/dist/themes/themeDark2/theme/components/stepper.js +62 -0
- package/dist/themes/themeDark2/theme/components/switch.js +55 -0
- package/dist/themes/themeDark2/theme/components/table.js +91 -0
- package/dist/themes/themeDark2/theme/components/tableHeading.js +26 -0
- package/dist/themes/themeDark2/theme/components/tabs.js +89 -0
- package/dist/themes/themeDark2/theme/components/textButton.js +202 -0
- package/dist/themes/themeDark2/theme/components/themeModeSwitch.js +18 -0
- package/dist/themes/themeDark2/theme/components/toast.js +9 -0
- package/dist/themes/themeDark2/theme/components/toggleButton.js +57 -0
- package/dist/themes/themeDark2/theme/components/tooltip.js +17 -0
- package/dist/themes/themeDark2/theme/components/treeView.js +16 -0
- package/dist/themes/themeDark2/theme/components/typography.js +79 -0
- package/dist/themes/themeDark2/theme/components/windowBar.js +55 -0
- package/dist/themes/themeDark2/theme/globals/body.js +9 -0
- package/dist/themes/themeDark2/theme/globals/scrollbar.js +12 -0
- package/dist/themes/themeDark2/theme.js +134 -0
- package/dist/themes/themeDark2/tokens.js +200 -0
- package/dist/themes/themeLight/theme/components/actionIconButton.js +56 -0
- package/dist/themes/themeLight/theme/components/appBar.js +25 -0
- package/dist/themes/themeLight/theme/components/appSelectionMenu.js +46 -0
- package/dist/themes/themeLight/theme/components/autoComplete.js +7 -0
- package/dist/themes/themeLight/theme/components/badge.js +73 -0
- package/dist/themes/themeLight/theme/components/banner.js +14 -0
- package/dist/themes/themeLight/theme/components/boxSelectionGroup.js +49 -0
- package/dist/themes/themeLight/theme/components/breadcrumbs.js +28 -0
- package/dist/themes/themeLight/theme/components/button.js +182 -0
- package/dist/themes/themeLight/theme/components/buttonGroup.js +46 -0
- package/dist/themes/themeLight/theme/components/card.js +40 -0
- package/dist/themes/themeLight/theme/components/checkbox.js +67 -0
- package/dist/themes/themeLight/theme/components/chip.js +60 -0
- package/dist/themes/themeLight/theme/components/chipList.js +21 -0
- package/dist/themes/themeLight/theme/components/countryFlag.js +9 -0
- package/dist/themes/themeLight/theme/components/datePicker.js +67 -0
- package/dist/themes/themeLight/theme/components/drawer.js +28 -0
- package/dist/themes/themeLight/theme/components/filters.js +36 -0
- package/dist/themes/themeLight/theme/components/formField.js +17 -0
- package/dist/themes/themeLight/theme/components/highlightedIcon.js +42 -0
- package/dist/themes/themeLight/theme/components/icon.d.ts +3 -0
- package/dist/themes/themeLight/theme/components/icon.js +14 -0
- package/dist/themes/themeLight/theme/components/iconButton.js +47 -0
- package/dist/themes/themeLight/theme/components/input.js +94 -0
- package/dist/themes/themeLight/theme/components/keyValueList.js +30 -0
- package/dist/themes/themeLight/theme/components/label.js +24 -0
- package/dist/themes/themeLight/theme/components/layouts.js +39 -0
- package/dist/themes/themeLight/theme/components/link.js +74 -0
- package/dist/themes/themeLight/theme/components/loader.js +29 -0
- package/dist/themes/themeLight/theme/components/menu.js +79 -0
- package/dist/themes/themeLight/theme/components/midBar.js +14 -0
- package/dist/themes/themeLight/theme/components/modal.js +31 -0
- package/dist/themes/themeLight/theme/components/moreInfoIcon.js +5 -0
- package/dist/themes/themeLight/theme/components/popover.js +16 -0
- package/dist/themes/themeLight/theme/components/popupCard.js +22 -0
- package/dist/themes/themeLight/theme/components/profileIcon.js +39 -0
- package/dist/themes/themeLight/theme/components/progressBar.js +57 -0
- package/dist/themes/themeLight/theme/components/radio.js +51 -0
- package/dist/themes/themeLight/theme/components/searchBar.js +23 -0
- package/dist/themes/themeLight/theme/components/section.js +48 -0
- package/dist/themes/themeLight/theme/components/select.js +103 -0
- package/dist/themes/themeLight/theme/components/semanticButton.js +203 -0
- package/dist/themes/themeLight/theme/components/semanticContainer.js +43 -0
- package/dist/themes/themeLight/theme/components/semanticIcon.js +11 -0
- package/dist/themes/themeLight/theme/components/sideBar.js +108 -0
- package/dist/themes/themeLight/theme/components/skeleton.js +30 -0
- package/dist/themes/themeLight/theme/components/slider.js +68 -0
- package/dist/themes/themeLight/theme/components/stepper.js +62 -0
- package/dist/themes/themeLight/theme/components/switch.js +55 -0
- package/dist/themes/themeLight/theme/components/table.js +91 -0
- package/dist/themes/themeLight/theme/components/tableHeading.js +26 -0
- package/dist/themes/themeLight/theme/components/tabs.js +86 -0
- package/dist/themes/themeLight/theme/components/textButton.js +196 -0
- package/dist/themes/themeLight/theme/components/themeModeSwitch.js +18 -0
- package/dist/themes/themeLight/theme/components/toast.js +9 -0
- package/dist/themes/themeLight/theme/components/toggleButton.js +59 -0
- package/dist/themes/themeLight/theme/components/tooltip.js +17 -0
- package/dist/themes/themeLight/theme/components/treeView.js +16 -0
- package/dist/themes/themeLight/theme/components/typography.js +79 -0
- package/dist/themes/themeLight/theme/components/windowBar.js +55 -0
- package/dist/themes/themeLight/theme/globals/body.js +9 -0
- package/dist/themes/themeLight/theme/globals/scrollbar.js +12 -0
- package/dist/themes/themeLight/theme.js +134 -0
- package/dist/themes/themeLight/tokens.js +200 -0
- package/dist/themes/themeLight2/theme/components/actionIconButton.js +56 -0
- package/dist/themes/themeLight2/theme/components/appBar.js +25 -0
- package/dist/themes/themeLight2/theme/components/appSelectionMenu.js +46 -0
- package/dist/themes/themeLight2/theme/components/autoComplete.js +7 -0
- package/dist/themes/themeLight2/theme/components/badge.js +73 -0
- package/dist/themes/themeLight2/theme/components/banner.js +14 -0
- package/dist/themes/themeLight2/theme/components/boxSelectionGroup.js +58 -0
- package/dist/themes/themeLight2/theme/components/breadcrumbs.js +28 -0
- package/dist/themes/themeLight2/theme/components/button.js +202 -0
- package/dist/themes/themeLight2/theme/components/buttonGroup.js +46 -0
- package/dist/themes/themeLight2/theme/components/card.js +40 -0
- package/dist/themes/themeLight2/theme/components/checkbox.js +67 -0
- package/dist/themes/themeLight2/theme/components/chip.js +60 -0
- package/dist/themes/themeLight2/theme/components/chipList.js +21 -0
- package/dist/themes/themeLight2/theme/components/countryFlag.js +9 -0
- package/dist/themes/themeLight2/theme/components/datePicker.js +67 -0
- package/dist/themes/themeLight2/theme/components/drawer.js +30 -0
- package/dist/themes/themeLight2/theme/components/filters.js +36 -0
- package/dist/themes/themeLight2/theme/components/formField.js +17 -0
- package/dist/themes/themeLight2/theme/components/highlightedIcon.js +42 -0
- package/dist/themes/themeLight2/theme/components/icon.d.ts +3 -0
- package/dist/themes/themeLight2/theme/components/icon.js +14 -0
- package/dist/themes/themeLight2/theme/components/iconButton.js +49 -0
- package/dist/themes/themeLight2/theme/components/input.js +97 -0
- package/dist/themes/themeLight2/theme/components/keyValueList.js +30 -0
- package/dist/themes/themeLight2/theme/components/label.js +24 -0
- package/dist/themes/themeLight2/theme/components/layouts.js +39 -0
- package/dist/themes/themeLight2/theme/components/link.js +72 -0
- package/dist/themes/themeLight2/theme/components/loader.js +30 -0
- package/dist/themes/themeLight2/theme/components/menu.js +79 -0
- package/dist/themes/themeLight2/theme/components/midBar.js +14 -0
- package/dist/themes/themeLight2/theme/components/modal.js +34 -0
- package/dist/themes/themeLight2/theme/components/moreInfoIcon.js +5 -0
- package/dist/themes/themeLight2/theme/components/popover.js +16 -0
- package/dist/themes/themeLight2/theme/components/popupCard.js +22 -0
- package/dist/themes/themeLight2/theme/components/profileIcon.js +39 -0
- package/dist/themes/themeLight2/theme/components/progressBar.js +57 -0
- package/dist/themes/themeLight2/theme/components/radio.js +51 -0
- package/dist/themes/themeLight2/theme/components/searchBar.js +25 -0
- package/dist/themes/themeLight2/theme/components/section.js +52 -0
- package/dist/themes/themeLight2/theme/components/select.js +103 -0
- package/dist/themes/themeLight2/theme/components/semanticButton.js +250 -0
- package/dist/themes/themeLight2/theme/components/semanticContainer.js +43 -0
- package/dist/themes/themeLight2/theme/components/semanticIcon.js +11 -0
- package/dist/themes/themeLight2/theme/components/sideBar.js +108 -0
- package/dist/themes/themeLight2/theme/components/skeleton.js +30 -0
- package/dist/themes/themeLight2/theme/components/slider.js +68 -0
- package/dist/themes/themeLight2/theme/components/stepper.js +62 -0
- package/dist/themes/themeLight2/theme/components/switch.js +55 -0
- package/dist/themes/themeLight2/theme/components/table.js +91 -0
- package/dist/themes/themeLight2/theme/components/tableHeading.js +26 -0
- package/dist/themes/themeLight2/theme/components/tabs.js +86 -0
- package/dist/themes/themeLight2/theme/components/textButton.js +203 -0
- package/dist/themes/themeLight2/theme/components/themeModeSwitch.js +18 -0
- package/dist/themes/themeLight2/theme/components/toast.js +9 -0
- package/dist/themes/themeLight2/theme/components/toggleButton.js +57 -0
- package/dist/themes/themeLight2/theme/components/tooltip.js +17 -0
- package/dist/themes/themeLight2/theme/components/treeView.js +16 -0
- package/dist/themes/themeLight2/theme/components/typography.js +79 -0
- package/dist/themes/themeLight2/theme/components/windowBar.js +55 -0
- package/dist/themes/themeLight2/theme/globals/body.js +9 -0
- package/dist/themes/themeLight2/theme/globals/scrollbar.js +12 -0
- package/dist/themes/themeLight2/theme.js +134 -0
- package/dist/themes/themeLight2/tokens.js +200 -0
- package/dist/themes/types/index.js +3 -0
- package/dist/themes/types/theme/components/actionIconButton.types.js +1 -0
- package/dist/themes/types/theme/components/appBar.types.js +1 -0
- package/dist/themes/types/theme/components/appSelectionMenu.types.js +1 -0
- package/dist/themes/types/theme/components/autoComplete.types.js +1 -0
- package/dist/themes/types/theme/components/badge.types.js +1 -0
- package/dist/themes/types/theme/components/banner.types.js +1 -0
- package/dist/themes/types/theme/components/boxSelectionGroup.types.js +1 -0
- package/dist/themes/types/theme/components/breadcrumbs.types.js +1 -0
- package/dist/themes/types/theme/components/button.types.js +1 -0
- package/dist/themes/types/theme/components/buttonGroup.types.js +1 -0
- package/dist/themes/types/theme/components/card.types.d.ts +6 -3
- package/dist/themes/types/theme/components/card.types.js +10 -0
- package/dist/themes/types/theme/components/checkbox.types.js +1 -0
- package/dist/themes/types/theme/components/chip.types.js +1 -0
- package/dist/themes/types/theme/components/chipList.types.js +1 -0
- package/dist/themes/types/theme/components/countryFlag.types.js +1 -0
- package/dist/themes/types/theme/components/datePicker.types.js +1 -0
- package/dist/themes/types/theme/components/drawer.types.js +1 -0
- package/dist/themes/types/theme/components/filters.types.js +1 -0
- package/dist/themes/types/theme/components/formField.types.js +1 -0
- package/dist/themes/types/theme/components/global.types.js +1 -0
- package/dist/themes/types/theme/components/highlightedIcon.types.js +11 -0
- package/dist/themes/types/theme/components/icon.types.d.ts +5 -0
- package/dist/themes/types/theme/components/icon.types.js +10 -0
- package/dist/themes/types/theme/components/iconButton.types.js +1 -0
- package/dist/themes/types/theme/components/index.d.ts +1 -0
- package/dist/themes/types/theme/components/index.js +60 -0
- package/dist/themes/types/theme/components/input.types.js +1 -0
- package/dist/themes/types/theme/components/keyValueList.types.js +1 -0
- package/dist/themes/types/theme/components/label.types.js +1 -0
- package/dist/themes/types/theme/components/layouts.types.js +1 -0
- package/dist/themes/types/theme/components/link.types.js +1 -0
- package/dist/themes/types/theme/components/loader.types.js +1 -0
- package/dist/themes/types/theme/components/menu.types.js +1 -0
- package/dist/themes/types/theme/components/midBar.types.js +1 -0
- package/dist/themes/types/theme/components/modal.types.js +1 -0
- package/dist/themes/types/theme/components/moreInfoIcon.types.js +1 -0
- package/dist/themes/types/theme/components/popover.types.js +1 -0
- package/dist/themes/types/theme/components/popupCard.types.js +1 -0
- package/dist/themes/types/theme/components/profileIcon.types.js +1 -0
- package/dist/themes/types/theme/components/progressBar.types.js +1 -0
- package/dist/themes/types/theme/components/radio.types.js +1 -0
- package/dist/themes/types/theme/components/searchBar.types.js +1 -0
- package/dist/themes/types/theme/components/section.types.js +1 -0
- package/dist/themes/types/theme/components/select.types.js +1 -0
- package/dist/themes/types/theme/components/semanticButton.types.js +1 -0
- package/dist/themes/types/theme/components/semanticContainer.types.js +1 -0
- package/dist/themes/types/theme/components/semanticIcon.types.js +1 -0
- package/dist/themes/types/theme/components/sideBar.types.js +1 -0
- package/dist/themes/types/theme/components/skeleton.types.js +1 -0
- package/dist/themes/types/theme/components/slider.types.js +1 -0
- package/dist/themes/types/theme/components/stepper.types.js +1 -0
- package/dist/themes/types/theme/components/switch.types.js +1 -0
- package/dist/themes/types/theme/components/table.types.js +1 -0
- package/dist/themes/types/theme/components/tableHeading.types.js +1 -0
- package/dist/themes/types/theme/components/tabs.types.js +1 -0
- package/dist/themes/types/theme/components/textButton.types.js +1 -0
- package/dist/themes/types/theme/components/themeModeSwitch.types.js +1 -0
- package/dist/themes/types/theme/components/toast.types.js +1 -0
- package/dist/themes/types/theme/components/toggleButton.types.js +1 -0
- package/dist/themes/types/theme/components/tooltip.types.js +1 -0
- package/dist/themes/types/theme/components/treeView.types.js +1 -0
- package/dist/themes/types/theme/components/typography.types.js +1 -0
- package/dist/themes/types/theme/components/windowBar.types.js +1 -0
- package/dist/themes/types/theme/globals/body.types.js +1 -0
- package/dist/themes/types/theme/globals/index.js +2 -0
- package/dist/themes/types/theme/globals/scrollbar.types.js +1 -0
- package/dist/themes/types/theme/theme.types.d.ts +2 -1
- package/dist/themes/types/theme/theme.types.js +1 -0
- package/dist/themes/types/theme/themeCore.types.js +1 -0
- package/dist/themes/types/theme/tokens.types.js +1 -0
- package/dist/utils.js +76 -0
- package/package.json +6 -5
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const transparent = 'transparent';
|
|
3
|
+
const theme = {
|
|
4
|
+
gap: '0.4rem',
|
|
5
|
+
height: '2.7rem',
|
|
6
|
+
lineHeight: '1.9rem',
|
|
7
|
+
padding: '0.4rem 0.6rem',
|
|
8
|
+
borderRadius: '0.4rem',
|
|
9
|
+
toggleStates: {
|
|
10
|
+
on: {
|
|
11
|
+
normal: {
|
|
12
|
+
bgColor: tokens.semantic.color.background.primary100,
|
|
13
|
+
textColor: tokens.semantic.color.text.primary600
|
|
14
|
+
},
|
|
15
|
+
hover: {
|
|
16
|
+
bgColor: tokens.semantic.color.background.neutral400,
|
|
17
|
+
textColor: tokens.semantic.color.text.primary600,
|
|
18
|
+
borderColor: tokens.semantic.color.text.primary100
|
|
19
|
+
},
|
|
20
|
+
active: {
|
|
21
|
+
bgColor: transparent,
|
|
22
|
+
textColor: tokens.semantic.color.text.primary600
|
|
23
|
+
},
|
|
24
|
+
disabled: {
|
|
25
|
+
bgColor: transparent,
|
|
26
|
+
textColor: tokens.semantic.color.text.neutral600
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
off: {
|
|
30
|
+
normal: {
|
|
31
|
+
bgColor: transparent,
|
|
32
|
+
textColor: tokens.semantic.color.text.primary600
|
|
33
|
+
},
|
|
34
|
+
hover: {
|
|
35
|
+
bgColor: tokens.semantic.color.background.neutral400,
|
|
36
|
+
textColor: tokens.semantic.color.text.primary600,
|
|
37
|
+
borderColor: tokens.semantic.color.text.primary100
|
|
38
|
+
},
|
|
39
|
+
active: {
|
|
40
|
+
bgColor: tokens.semantic.color.background.primary100,
|
|
41
|
+
textColor: tokens.semantic.color.text.primary600
|
|
42
|
+
},
|
|
43
|
+
disabled: {
|
|
44
|
+
bgColor: transparent,
|
|
45
|
+
textColor: tokens.semantic.color.text.neutral600
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
counter: {
|
|
50
|
+
bgColor: tokens.semantic.color.background.primary500,
|
|
51
|
+
textColor: tokens.semantic.color.text.neutral100,
|
|
52
|
+
disabledOpacity: '0.3',
|
|
53
|
+
padding: '0.1rem 0.4rem',
|
|
54
|
+
height: '2rem',
|
|
55
|
+
minWidth: '2rem',
|
|
56
|
+
borderRadius: '99rem'
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
export default theme;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
textColor: tokens.semantic.color.text.neutral800,
|
|
4
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
5
|
+
shadow: tokens.core.shadow.shadow400,
|
|
6
|
+
borderRadius: '0.8rem',
|
|
7
|
+
minWidth: 'initial',
|
|
8
|
+
maxWidth: '30rem',
|
|
9
|
+
blockPadding: '1.6rem',
|
|
10
|
+
inlinePadding: '1.6rem',
|
|
11
|
+
arrow: {
|
|
12
|
+
width: '16px',
|
|
13
|
+
height: '8px',
|
|
14
|
+
shadow: 'rgba(0, 0, 0, 0.03) 0px 2px 1px'
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default theme;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
levelOffset: '1.8rem',
|
|
4
|
+
item: {
|
|
5
|
+
inlinePadding: '0.8rem 1.6rem',
|
|
6
|
+
blockPadding: '0.5rem',
|
|
7
|
+
checkboxGap: '0.8rem',
|
|
8
|
+
selectedBgColor: tokens.semantic.color.background.neutral400,
|
|
9
|
+
height: '3rem'
|
|
10
|
+
},
|
|
11
|
+
arrow: {
|
|
12
|
+
iconColor: tokens.semantic.color.icon.neutral800,
|
|
13
|
+
gap: '0.4rem'
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export default theme;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
colors: {
|
|
4
|
+
primary: tokens.semantic.color.text.neutral800,
|
|
5
|
+
secondary: tokens.semantic.color.text.neutral700,
|
|
6
|
+
notice: tokens.semantic.color.text.notice500,
|
|
7
|
+
success: tokens.semantic.color.text.success500,
|
|
8
|
+
attention: tokens.semantic.color.text.attention500,
|
|
9
|
+
danger: tokens.semantic.color.text.danger500,
|
|
10
|
+
upsell: tokens.semantic.color.text.discovery500,
|
|
11
|
+
informative: tokens.semantic.color.text.informative500
|
|
12
|
+
},
|
|
13
|
+
heading: {
|
|
14
|
+
fontFamily: tokens.core.font.fontFamily.regular,
|
|
15
|
+
sizes: {
|
|
16
|
+
XXL: {
|
|
17
|
+
fontSize: tokens.core.font.fontSize.s40,
|
|
18
|
+
fontWeight: tokens.core.font.fontWeight.bold
|
|
19
|
+
},
|
|
20
|
+
XL: {
|
|
21
|
+
fontSize: tokens.core.font.fontSize.s28,
|
|
22
|
+
fontWeight: tokens.core.font.fontWeight.bold
|
|
23
|
+
},
|
|
24
|
+
L: {
|
|
25
|
+
fontSize: tokens.core.font.fontSize.s20,
|
|
26
|
+
fontWeight: tokens.core.font.fontWeight.semiBold
|
|
27
|
+
},
|
|
28
|
+
M: {
|
|
29
|
+
fontSize: tokens.core.font.fontSize.s18,
|
|
30
|
+
fontWeight: tokens.core.font.fontWeight.semiBold
|
|
31
|
+
},
|
|
32
|
+
S: {
|
|
33
|
+
fontSize: tokens.core.font.fontSize.s16,
|
|
34
|
+
fontWeight: tokens.core.font.fontWeight.semiBold
|
|
35
|
+
},
|
|
36
|
+
XS: {
|
|
37
|
+
fontSize: tokens.core.font.fontSize.s14,
|
|
38
|
+
fontWeight: tokens.core.font.fontWeight.semiBold
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
fontWeight: {
|
|
42
|
+
bold: tokens.core.font.fontWeight.bold,
|
|
43
|
+
semiBold: tokens.core.font.fontWeight.semiBold
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
body: {
|
|
47
|
+
fontFamily: tokens.core.font.fontFamily.regular,
|
|
48
|
+
fontSizes: {
|
|
49
|
+
XL: tokens.core.font.fontSize.s18,
|
|
50
|
+
L: tokens.core.font.fontSize.s16,
|
|
51
|
+
M: tokens.core.font.fontSize.s14,
|
|
52
|
+
S: tokens.core.font.fontSize.s12,
|
|
53
|
+
XS: tokens.core.font.fontSize.s10
|
|
54
|
+
},
|
|
55
|
+
fontWeight: {
|
|
56
|
+
regular: 'inherit',
|
|
57
|
+
semiBold: tokens.core.font.fontWeight.semiBold,
|
|
58
|
+
italic: 'inherit'
|
|
59
|
+
},
|
|
60
|
+
fontStyle: {
|
|
61
|
+
regular: 'inherit',
|
|
62
|
+
semiBold: 'inherit',
|
|
63
|
+
italic: 'italic'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
code: {
|
|
67
|
+
fontFamily: tokens.core.font.fontFamily.sourceCodeProRegular,
|
|
68
|
+
fontSizes: {
|
|
69
|
+
L: tokens.core.font.fontSize.s14,
|
|
70
|
+
M: tokens.core.font.fontSize.s12,
|
|
71
|
+
S: tokens.core.font.fontSize.s10
|
|
72
|
+
},
|
|
73
|
+
fontWeight: {
|
|
74
|
+
regular: tokens.core.font.fontWeight.normal,
|
|
75
|
+
semiBold: tokens.core.font.fontWeight.semiBold
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
export default theme;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
gap: '1.6rem',
|
|
4
|
+
header: {
|
|
5
|
+
gap: '0.8rem'
|
|
6
|
+
},
|
|
7
|
+
variants: {
|
|
8
|
+
white: {
|
|
9
|
+
backgroundColor: tokens.semantic.color.background.neutral100,
|
|
10
|
+
color: tokens.semantic.color.text.neutral700,
|
|
11
|
+
borderColor: tokens.semantic.color.border.neutral400
|
|
12
|
+
},
|
|
13
|
+
light: {
|
|
14
|
+
backgroundColor: tokens.semantic.color.background.neutral200,
|
|
15
|
+
color: tokens.semantic.color.text.neutral700,
|
|
16
|
+
borderColor: tokens.semantic.color.border.neutral400
|
|
17
|
+
},
|
|
18
|
+
default: {
|
|
19
|
+
backgroundColor: tokens.semantic.color.background.neutral300,
|
|
20
|
+
color: tokens.semantic.color.text.neutral700,
|
|
21
|
+
borderColor: tokens.semantic.color.border.neutral500
|
|
22
|
+
},
|
|
23
|
+
informative: {
|
|
24
|
+
backgroundColor: tokens.semantic.color.background.informative50,
|
|
25
|
+
color: tokens.semantic.color.text.informative600,
|
|
26
|
+
borderColor: tokens.semantic.color.border.informative300
|
|
27
|
+
},
|
|
28
|
+
success: {
|
|
29
|
+
backgroundColor: tokens.semantic.color.background.success100,
|
|
30
|
+
color: tokens.semantic.color.text.success700,
|
|
31
|
+
borderColor: tokens.semantic.color.border.success300
|
|
32
|
+
},
|
|
33
|
+
notice: {
|
|
34
|
+
backgroundColor: tokens.semantic.color.background.notice100,
|
|
35
|
+
color: tokens.semantic.color.text.notice700,
|
|
36
|
+
borderColor: tokens.semantic.color.border.notice200
|
|
37
|
+
},
|
|
38
|
+
danger: {
|
|
39
|
+
backgroundColor: tokens.semantic.color.background.danger100,
|
|
40
|
+
color: tokens.semantic.color.text.danger700,
|
|
41
|
+
borderColor: tokens.semantic.color.border.danger200
|
|
42
|
+
},
|
|
43
|
+
attention: {
|
|
44
|
+
backgroundColor: tokens.semantic.color.background.attention100,
|
|
45
|
+
color: tokens.semantic.color.text.attention700,
|
|
46
|
+
borderColor: tokens.semantic.color.border.attention300
|
|
47
|
+
},
|
|
48
|
+
disabled: {
|
|
49
|
+
backgroundColor: tokens.semantic.color.background.neutral200,
|
|
50
|
+
color: tokens.semantic.color.text.neutral500,
|
|
51
|
+
borderColor: tokens.semantic.color.border.neutral300
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export default theme;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
4
|
+
textColor: tokens.semantic.color.background.neutral700,
|
|
5
|
+
fontFamily: tokens.core.font.fontFamily.regular,
|
|
6
|
+
fontSize: tokens.core.font.fontSize.s14,
|
|
7
|
+
lineHeight: '1.4'
|
|
8
|
+
};
|
|
9
|
+
export default theme;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
width: '0.5rem',
|
|
4
|
+
height: '0.5rem',
|
|
5
|
+
bgColor: tokens.semantic.color.background.secondary100,
|
|
6
|
+
padding: '0.1rem',
|
|
7
|
+
thumb: {
|
|
8
|
+
bgColor: tokens.semantic.color.background.secondary600,
|
|
9
|
+
borderRadius: '99rem'
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export default theme;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { tokens } from './tokens';
|
|
2
|
+
// components:
|
|
3
|
+
import actionIconButton from './theme/components/actionIconButton';
|
|
4
|
+
import appBar from './theme/components/appBar';
|
|
5
|
+
import appSelectionMenu from './theme/components/appSelectionMenu';
|
|
6
|
+
import autoComplete from './theme/components/autoComplete';
|
|
7
|
+
import badge from './theme/components/badge';
|
|
8
|
+
import banner from './theme/components/banner';
|
|
9
|
+
import boxSelectionGroup from './theme/components/boxSelectionGroup';
|
|
10
|
+
import breadcrumbs from './theme/components/breadcrumbs';
|
|
11
|
+
import button from './theme/components/button';
|
|
12
|
+
import buttonGroup from './theme/components/buttonGroup';
|
|
13
|
+
import card from './theme/components/card';
|
|
14
|
+
import checkbox from './theme/components/checkbox';
|
|
15
|
+
import chip from './theme/components/chip';
|
|
16
|
+
import chipList from './theme/components/chipList';
|
|
17
|
+
import countryFlag from './theme/components/countryFlag';
|
|
18
|
+
import datePicker from './theme/components/datePicker';
|
|
19
|
+
import drawer from './theme/components/drawer';
|
|
20
|
+
import filters from './theme/components/filters';
|
|
21
|
+
import formField from './theme/components/formField';
|
|
22
|
+
import highlightedIcon from './theme/components/highlightedIcon';
|
|
23
|
+
import icon from './theme/components/icon';
|
|
24
|
+
import iconButton from './theme/components/iconButton';
|
|
25
|
+
import input from './theme/components/input';
|
|
26
|
+
import keyValueList from './theme/components/keyValueList';
|
|
27
|
+
import label from './theme/components/label';
|
|
28
|
+
import layouts from './theme/components/layouts';
|
|
29
|
+
import link from './theme/components/link';
|
|
30
|
+
import loader from './theme/components/loader';
|
|
31
|
+
import menu from './theme/components/menu';
|
|
32
|
+
import midBar from './theme/components/midBar';
|
|
33
|
+
import modal from './theme/components/modal';
|
|
34
|
+
import moreInfoIcon from './theme/components/moreInfoIcon';
|
|
35
|
+
import popover from './theme/components/popover';
|
|
36
|
+
import popupCard from './theme/components/popupCard';
|
|
37
|
+
import profileIcon from './theme/components/profileIcon';
|
|
38
|
+
import progressBar from './theme/components/progressBar';
|
|
39
|
+
import radio from './theme/components/radio';
|
|
40
|
+
import searchBar from './theme/components/searchBar';
|
|
41
|
+
import section from './theme/components/section';
|
|
42
|
+
import select from './theme/components/select';
|
|
43
|
+
import semanticButton from './theme/components/semanticButton';
|
|
44
|
+
import semanticContainer from './theme/components/semanticContainer';
|
|
45
|
+
import semanticIcon from './theme/components/semanticIcon';
|
|
46
|
+
import sideBar from './theme/components/sideBar';
|
|
47
|
+
import skeleton from './theme/components/skeleton';
|
|
48
|
+
import slider from './theme/components/slider';
|
|
49
|
+
import stepper from './theme/components/stepper';
|
|
50
|
+
import switchButton from './theme/components/switch';
|
|
51
|
+
import table from './theme/components/table';
|
|
52
|
+
import tableHeading from './theme/components/tableHeading';
|
|
53
|
+
import tabs from './theme/components/tabs';
|
|
54
|
+
import textButton from './theme/components/textButton';
|
|
55
|
+
import themeModeSwitch from './theme/components/themeModeSwitch';
|
|
56
|
+
import toast from './theme/components/toast';
|
|
57
|
+
import toggleButton from './theme/components/toggleButton';
|
|
58
|
+
import tooltip from './theme/components/tooltip';
|
|
59
|
+
import treeView from './theme/components/treeView';
|
|
60
|
+
import typography from './theme/components/typography';
|
|
61
|
+
import windowBar from './theme/components/windowBar';
|
|
62
|
+
// globals:
|
|
63
|
+
import body from './theme/globals/body';
|
|
64
|
+
import scrollbar from './theme/globals/scrollbar';
|
|
65
|
+
export const theme = {
|
|
66
|
+
name: 'light',
|
|
67
|
+
mode: 'light',
|
|
68
|
+
...tokens,
|
|
69
|
+
components: {
|
|
70
|
+
actionIconButton,
|
|
71
|
+
appBar,
|
|
72
|
+
appSelectionMenu,
|
|
73
|
+
autoComplete,
|
|
74
|
+
badge,
|
|
75
|
+
banner,
|
|
76
|
+
boxSelectionGroup,
|
|
77
|
+
breadcrumbs,
|
|
78
|
+
button,
|
|
79
|
+
buttonGroup,
|
|
80
|
+
card,
|
|
81
|
+
checkbox,
|
|
82
|
+
chip,
|
|
83
|
+
chipList,
|
|
84
|
+
countryFlag,
|
|
85
|
+
datePicker,
|
|
86
|
+
drawer,
|
|
87
|
+
filters,
|
|
88
|
+
formField,
|
|
89
|
+
highlightedIcon,
|
|
90
|
+
icon,
|
|
91
|
+
iconButton,
|
|
92
|
+
input,
|
|
93
|
+
keyValueList,
|
|
94
|
+
label,
|
|
95
|
+
layouts,
|
|
96
|
+
link,
|
|
97
|
+
loader,
|
|
98
|
+
menu,
|
|
99
|
+
midBar,
|
|
100
|
+
modal,
|
|
101
|
+
moreInfoIcon,
|
|
102
|
+
popover,
|
|
103
|
+
popupCard,
|
|
104
|
+
profileIcon,
|
|
105
|
+
progressBar,
|
|
106
|
+
radio,
|
|
107
|
+
searchBar,
|
|
108
|
+
section,
|
|
109
|
+
select,
|
|
110
|
+
semanticButton,
|
|
111
|
+
semanticContainer,
|
|
112
|
+
semanticIcon,
|
|
113
|
+
sideBar,
|
|
114
|
+
skeleton,
|
|
115
|
+
slider,
|
|
116
|
+
stepper,
|
|
117
|
+
switchButton,
|
|
118
|
+
table,
|
|
119
|
+
tableHeading,
|
|
120
|
+
tabs,
|
|
121
|
+
textButton,
|
|
122
|
+
themeModeSwitch,
|
|
123
|
+
toast,
|
|
124
|
+
toggleButton,
|
|
125
|
+
tooltip,
|
|
126
|
+
treeView,
|
|
127
|
+
typography,
|
|
128
|
+
windowBar
|
|
129
|
+
},
|
|
130
|
+
globals: {
|
|
131
|
+
body,
|
|
132
|
+
scrollbar
|
|
133
|
+
}
|
|
134
|
+
};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
export const semanticColors = {
|
|
2
|
+
transparent: '#00000000',
|
|
3
|
+
neutral0: '#00000000',
|
|
4
|
+
neutral50: '#00000000',
|
|
5
|
+
neutral100: '#ffffff',
|
|
6
|
+
neutral200: '#fafbfb',
|
|
7
|
+
neutral300: '#f4f6f7',
|
|
8
|
+
neutral400: '#eaedf2',
|
|
9
|
+
neutral500: '#c1cbd9',
|
|
10
|
+
neutral600: '#8094b1',
|
|
11
|
+
neutral700: '#4d6992',
|
|
12
|
+
neutral800: '#01112a',
|
|
13
|
+
neutral900: '#121212',
|
|
14
|
+
neutral950: '#0a0a0a',
|
|
15
|
+
primary0: '#00000000',
|
|
16
|
+
primary50: '#f5f8ff',
|
|
17
|
+
primary100: '#e8ebec',
|
|
18
|
+
primary200: '#d0f1ff',
|
|
19
|
+
primary300: '#40a5cd',
|
|
20
|
+
primary400: '#006e9b',
|
|
21
|
+
primary500: '#163341',
|
|
22
|
+
primary600: '#091a23',
|
|
23
|
+
primary700: '#061457',
|
|
24
|
+
primary800: '#00000000',
|
|
25
|
+
primary900: '#00000000',
|
|
26
|
+
primary950: '#00000000',
|
|
27
|
+
secondary0: '#00000000',
|
|
28
|
+
secondary50: '#f9fafa',
|
|
29
|
+
secondary100: '#f4f5f6',
|
|
30
|
+
secondary200: '#e8ebec',
|
|
31
|
+
secondary300: '#b9c2c6',
|
|
32
|
+
secondary400: '#8a99a0',
|
|
33
|
+
secondary500: '#5c707a',
|
|
34
|
+
secondary600: '#2d4754',
|
|
35
|
+
secondary700: '#163341',
|
|
36
|
+
secondary800: '#091a23',
|
|
37
|
+
secondary900: '#00000000',
|
|
38
|
+
secondary950: '#00000000',
|
|
39
|
+
secondary990: '#00000000',
|
|
40
|
+
success0: '#00000000',
|
|
41
|
+
success50: '#00000000',
|
|
42
|
+
success100: '#eff9f5',
|
|
43
|
+
success200: '#bde8d7',
|
|
44
|
+
success300: '#8cd7b9',
|
|
45
|
+
success400: '#000000',
|
|
46
|
+
success500: '#5bc69b',
|
|
47
|
+
success600: '#3a8365',
|
|
48
|
+
success700: '#244f3e',
|
|
49
|
+
success800: '#12281f',
|
|
50
|
+
success900: '#00000000',
|
|
51
|
+
notice0: '#00000000',
|
|
52
|
+
notice50: '#00000000',
|
|
53
|
+
notice100: '#f1edfc',
|
|
54
|
+
notice200: '#c8b5f2',
|
|
55
|
+
notice300: '#9e7ee8',
|
|
56
|
+
notice400: '#00000000',
|
|
57
|
+
notice500: '#7547de',
|
|
58
|
+
notice600: '#52329b',
|
|
59
|
+
notice700: '#2f1c59',
|
|
60
|
+
notice800: '#170e2c',
|
|
61
|
+
notice900: '#00000000',
|
|
62
|
+
informative0: '#00000000',
|
|
63
|
+
informative50: '#f5f8ff',
|
|
64
|
+
informative100: '#e8ebec',
|
|
65
|
+
informative200: '#f2fbff',
|
|
66
|
+
informative300: '#40a5cd',
|
|
67
|
+
informative400: '#006e9b',
|
|
68
|
+
informative500: '#163341',
|
|
69
|
+
informative600: '#091a23',
|
|
70
|
+
informative700: '#061457',
|
|
71
|
+
informative800: '#00000000',
|
|
72
|
+
informative900: '#00000000',
|
|
73
|
+
attention0: '#00000000',
|
|
74
|
+
attention50: '#00000000',
|
|
75
|
+
attention100: '#fff7ea',
|
|
76
|
+
attention200: '#ffdfaa',
|
|
77
|
+
attention300: '#ffc76b',
|
|
78
|
+
attention400: '#00000000',
|
|
79
|
+
attention500: '#ffaf2b',
|
|
80
|
+
attention600: '#a06c18',
|
|
81
|
+
attention700: '#664611',
|
|
82
|
+
attention800: '#332309',
|
|
83
|
+
attention900: '#00000000',
|
|
84
|
+
discovery0: '#FEE1F1',
|
|
85
|
+
discovery50: '#FCCAE4',
|
|
86
|
+
discovery100: '#FA94CA',
|
|
87
|
+
discovery200: '#F75FAF',
|
|
88
|
+
discovery300: '#F42995',
|
|
89
|
+
discovery400: '#D90B78',
|
|
90
|
+
discovery500: '#AF0961',
|
|
91
|
+
discovery600: '#830748',
|
|
92
|
+
discovery700: '#570430',
|
|
93
|
+
discovery800: '#2C0218',
|
|
94
|
+
discovery900: '#13010B',
|
|
95
|
+
danger0: '#00000000',
|
|
96
|
+
danger50: '#00000000',
|
|
97
|
+
danger100: '#fcebec',
|
|
98
|
+
danger200: '#f5c3c5',
|
|
99
|
+
danger300: '#ea878a',
|
|
100
|
+
danger400: '#00000000',
|
|
101
|
+
danger500: '#dc373c',
|
|
102
|
+
danger600: '#b02c30',
|
|
103
|
+
danger700: '#6e1c1e',
|
|
104
|
+
danger800: '#2c0b0c',
|
|
105
|
+
danger900: '#00000000'
|
|
106
|
+
};
|
|
107
|
+
export const tokens = {
|
|
108
|
+
semantic: {
|
|
109
|
+
color: {
|
|
110
|
+
text: { ...semanticColors },
|
|
111
|
+
background: { ...semanticColors },
|
|
112
|
+
border: { ...semanticColors },
|
|
113
|
+
icon: { ...semanticColors }
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
core: {
|
|
117
|
+
space: {
|
|
118
|
+
space000: '0',
|
|
119
|
+
space010: '0.1rem',
|
|
120
|
+
space025: '0.2rem',
|
|
121
|
+
space050: '0.4rem',
|
|
122
|
+
space100: '0.8rem',
|
|
123
|
+
space150: '1.2rem',
|
|
124
|
+
space200: '1.6rem',
|
|
125
|
+
space250: '2rem',
|
|
126
|
+
space300: '2.4rem',
|
|
127
|
+
space400: '3.2rem',
|
|
128
|
+
space500: '4rem',
|
|
129
|
+
space550: '4.4rem',
|
|
130
|
+
space600: '4.8rem',
|
|
131
|
+
space800: '6.4rem'
|
|
132
|
+
},
|
|
133
|
+
shadow: {
|
|
134
|
+
shadow1: `0 0 20px #00000033`,
|
|
135
|
+
shadow2: `0 0 20px #0000001A`,
|
|
136
|
+
shadow3: `0 0 1.6rem #0000000f`,
|
|
137
|
+
shadow4: `0px 0px 0px 1px #bcbec0 `,
|
|
138
|
+
shadow100: '1px 0px 6px 0px #0000001f',
|
|
139
|
+
shadow200: '0px 0px 12px 0px #0000000f, 0px 0px 0px 1px #00000008',
|
|
140
|
+
shadow300: '0px -4px 8px 0px #0000000f, 0px 4px 8px 0px #0000000f, 0px 0px 0px 1px #00000005',
|
|
141
|
+
shadow400: '0px 4px 24px 0px #00000029, 0px 0px 0px 1px #00000008',
|
|
142
|
+
shadow500: '0px 0px 32px 0px #00000029, -1px 0px 0px 0px #00000008',
|
|
143
|
+
shadow600: '0px 0px 44px 6px #0000001f, 0px 0px 0px 1px #00000008',
|
|
144
|
+
shadow700: '0px 0px 0px 1px #00000008, 0px 0px 44px 0px #0000001c, 0px 0px 8px 0px #0000001c'
|
|
145
|
+
},
|
|
146
|
+
zIndex: {
|
|
147
|
+
zIndex5: 5,
|
|
148
|
+
zIndex9998: 9998,
|
|
149
|
+
zIndex9999: 9999
|
|
150
|
+
},
|
|
151
|
+
icon: {
|
|
152
|
+
size: {
|
|
153
|
+
XS: '0.8rem',
|
|
154
|
+
S: '1.2rem',
|
|
155
|
+
M: '1.6rem',
|
|
156
|
+
L: '2rem',
|
|
157
|
+
XL: '2.4rem',
|
|
158
|
+
XXL: '3rem',
|
|
159
|
+
'for-text': '1.25em',
|
|
160
|
+
'by-font': '1em'
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
font: {
|
|
164
|
+
fontFamily: {
|
|
165
|
+
regular: 'Nunito Sans, sans-serif',
|
|
166
|
+
sourceCodeProRegular: 'Source Code Pro, monospace'
|
|
167
|
+
},
|
|
168
|
+
fontSize: {
|
|
169
|
+
s8: '0.80rem',
|
|
170
|
+
s10: '1.00rem',
|
|
171
|
+
s12: '1.20rem',
|
|
172
|
+
s13: '1.30rem',
|
|
173
|
+
s14: '1.40rem',
|
|
174
|
+
s15: '1.50rem',
|
|
175
|
+
s16: '1.60rem',
|
|
176
|
+
s18: '1.80rem',
|
|
177
|
+
s20: '2.00rem',
|
|
178
|
+
s22: '2.20rem',
|
|
179
|
+
s24: '2.40rem',
|
|
180
|
+
s26: '2.60rem',
|
|
181
|
+
s27: '2.70rem',
|
|
182
|
+
s28: '2.80rem',
|
|
183
|
+
s32: '3.20rem',
|
|
184
|
+
s40: '4.00rem',
|
|
185
|
+
s44: '4.40rem',
|
|
186
|
+
s52: '5.20rem'
|
|
187
|
+
},
|
|
188
|
+
fontWeight: {
|
|
189
|
+
normal: '400',
|
|
190
|
+
semiBold: '600',
|
|
191
|
+
bold: '700'
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
focus: {
|
|
195
|
+
margin: '2px',
|
|
196
|
+
size: '2px',
|
|
197
|
+
color: semanticColors.primary600
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
sizes: {
|
|
4
|
+
L: {
|
|
5
|
+
size: '3rem',
|
|
6
|
+
iconSize: '2rem'
|
|
7
|
+
},
|
|
8
|
+
M: {
|
|
9
|
+
size: '2.4rem',
|
|
10
|
+
iconSize: '1.6rem'
|
|
11
|
+
},
|
|
12
|
+
S: {
|
|
13
|
+
size: '2rem',
|
|
14
|
+
iconSize: '1.2rem'
|
|
15
|
+
},
|
|
16
|
+
XS: {
|
|
17
|
+
size: '1.6rem',
|
|
18
|
+
iconSize: '1rem'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
variants: {
|
|
22
|
+
primary: {
|
|
23
|
+
normal: {
|
|
24
|
+
bgColor: tokens.semantic.color.background.primary400,
|
|
25
|
+
textColor: tokens.semantic.color.text.secondary0
|
|
26
|
+
},
|
|
27
|
+
hover: {
|
|
28
|
+
bgColor: tokens.semantic.color.background.primary500
|
|
29
|
+
},
|
|
30
|
+
active: {
|
|
31
|
+
bgColor: tokens.semantic.color.background.primary600
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
35
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
secondary: {
|
|
39
|
+
normal: {
|
|
40
|
+
bgColor: tokens.semantic.color.background.primary0,
|
|
41
|
+
textColor: tokens.semantic.color.text.primary600
|
|
42
|
+
},
|
|
43
|
+
hover: {
|
|
44
|
+
bgColor: tokens.semantic.color.background.primary50
|
|
45
|
+
},
|
|
46
|
+
active: {
|
|
47
|
+
bgColor: tokens.semantic.color.background.primary100
|
|
48
|
+
},
|
|
49
|
+
disabled: {
|
|
50
|
+
bgColor: tokens.semantic.color.background.neutral100,
|
|
51
|
+
textColor: tokens.semantic.color.text.neutral400
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export default theme;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { tokens } from '../../tokens';
|
|
2
|
+
const theme = {
|
|
3
|
+
height: '7rem',
|
|
4
|
+
padding: '1.4rem 1.4rem 1.4rem 2.4rem',
|
|
5
|
+
separator: `1px solid ${tokens.semantic.color.border.secondary200}`,
|
|
6
|
+
boxShadow: `0px 1px 0px 0px ${tokens.semantic.color.border.secondary200}`,
|
|
7
|
+
group: {
|
|
8
|
+
gap: '1.6rem'
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
default: {
|
|
12
|
+
bgColor: tokens.semantic.color.background.secondary0,
|
|
13
|
+
color: tokens.semantic.color.background.primary400,
|
|
14
|
+
userNameColor: tokens.semantic.color.background.secondary700,
|
|
15
|
+
accountNameColor: tokens.semantic.color.background.secondary950
|
|
16
|
+
},
|
|
17
|
+
alert: {
|
|
18
|
+
bgColor: tokens.semantic.color.background.danger200,
|
|
19
|
+
color: tokens.semantic.color.text.secondary950,
|
|
20
|
+
userNameColor: tokens.semantic.color.text.secondary950,
|
|
21
|
+
accountNameColor: tokens.semantic.color.text.secondary950
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export default theme;
|