@chotot/clad-ui 3.0.0-next.3 → 3.0.0-next.5
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/CHANGELOG.md +675 -0
- package/README.md +156 -156
- package/dist/brand/ChototLogoText.d.ts +5 -0
- package/dist/brand/CtC2C.d.ts +5 -0
- package/dist/brand/CtProperty.d.ts +5 -0
- package/dist/brand/CtVehicle.d.ts +5 -0
- package/dist/brand/Tot.d.ts +5 -0
- package/dist/brand/index.d.ts +5 -0
- package/dist/chunk-Bmb41Sf3.cjs +1 -0
- package/dist/clad-ui.cjs +2 -0
- package/dist/clad-ui.d.ts +2 -0
- package/dist/clad-ui.es.js +9127 -4278
- package/dist/components/Announcer/Announcer.d.ts +3 -54
- package/dist/components/Announcer/announcer.styles.d.ts +39 -0
- package/dist/components/Announcer/index.d.ts +2 -0
- package/dist/components/Announcer/types.d.ts +41 -0
- package/dist/components/Badge/Badge.d.ts +2 -44
- package/dist/components/Badge/badge.styles.d.ts +57 -0
- package/dist/components/Badge/index.d.ts +4 -0
- package/dist/components/Badge/types.d.ts +33 -0
- package/dist/components/Box/Box.d.ts +7 -99
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Box/types.d.ts +89 -0
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +3 -5
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -17
- package/dist/components/Breadcrumbs/breadcrumbs.styles.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/Breadcrumbs/types.d.ts +18 -0
- package/dist/components/Button/Button.d.ts +3 -76
- package/dist/components/Button/ButtonLink.d.ts +2 -3
- package/dist/components/Button/GhostButton.d.ts +3 -47
- package/dist/components/Button/IconButton.d.ts +2 -10
- package/dist/components/Button/button.styles.d.ts +242 -0
- package/dist/components/Button/constant.d.ts +1 -2
- package/dist/components/Button/index.d.ts +5 -0
- package/dist/components/Button/types.d.ts +72 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -46
- package/dist/components/Checkbox/checkbox.styles.d.ts +27 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/types.d.ts +40 -0
- package/dist/components/Chip/Chip.d.ts +3 -70
- package/dist/components/Chip/chip.styles.d.ts +66 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/types.d.ts +22 -0
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +3 -39
- package/dist/components/CurrencyInput/currency-input.styles.d.ts +21 -0
- package/dist/components/CurrencyInput/index.d.ts +5 -0
- package/dist/components/CurrencyInput/types.d.ts +96 -0
- package/dist/components/CurrencyInput/utils.d.ts +18 -0
- package/dist/components/DatePicker/DatePicker.d.ts +2 -138
- package/dist/components/DatePicker/DateTimePicker.d.ts +2 -137
- package/dist/components/DatePicker/date-picker.styles.d.ts +9 -0
- package/dist/components/DatePicker/date-time-picker.styles.d.ts +10 -0
- package/dist/components/DatePicker/index.d.ts +4 -0
- package/dist/components/DatePicker/types.d.ts +294 -0
- package/dist/components/Drawer/Drawer.d.ts +36 -0
- package/dist/components/Drawer/Drawer.pw.fixtures.d.ts +9 -0
- package/dist/components/Drawer/index.d.ts +3 -0
- package/dist/components/Drawer/types.d.ts +196 -0
- package/dist/components/Dropdown/Dropdown.d.ts +3 -94
- package/dist/components/Dropdown/dropdown.styles.d.ts +18 -0
- package/dist/components/Dropdown/index.d.ts +4 -0
- package/dist/components/Dropdown/types.d.ts +89 -0
- package/dist/components/EmptyState/EmptyState.d.ts +4 -0
- package/dist/components/EmptyState/empty-state.styles.d.ts +3 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/EmptyState/types.d.ts +55 -0
- package/dist/components/Grid/Col.d.ts +4 -35
- package/dist/components/Grid/Grid.d.ts +8 -55
- package/dist/components/Grid/Grid.pw.fixtures.d.ts +3 -0
- package/dist/components/Grid/index.d.ts +3 -0
- package/dist/components/Grid/types.d.ts +66 -0
- package/dist/components/Input/Input.d.ts +3 -116
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/input.styles.d.ts +24 -0
- package/dist/components/Input/types.d.ts +55 -0
- package/dist/components/InputGroup/InputGroup.d.ts +4 -0
- package/dist/components/InputGroup/index.d.ts +4 -0
- package/dist/components/InputGroup/input-group.styles.d.ts +18 -0
- package/dist/components/InputGroup/types.d.ts +20 -0
- package/dist/components/LegacyDialog/DialogMainIcon.d.ts +3 -0
- package/dist/components/LegacyDialog/LegacyDialog.d.ts +5 -0
- package/dist/components/LegacyDialog/index.d.ts +3 -0
- package/dist/{patterns/LegacyDialog/LegacyDialog.d.ts → components/LegacyDialog/types.d.ts} +3 -11
- package/dist/components/LegacyPopup/LegacyPopup.d.ts +6 -0
- package/dist/components/LegacyPopup/index.d.ts +2 -0
- package/dist/{patterns/LegacyPopup/LegacyPopup.d.ts → components/LegacyPopup/types.d.ts} +5 -16
- package/dist/components/MultiSearchDropdown/MultiSearchDropdown.d.ts +10 -0
- package/dist/components/MultiSearchDropdown/index.d.ts +4 -0
- package/dist/components/MultiSearchDropdown/multi-search-dropdown.styles.d.ts +18 -0
- package/dist/{patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts → components/MultiSearchDropdown/types.d.ts} +6 -19
- package/dist/components/Pagination/PageItem.d.ts +3 -21
- package/dist/components/Pagination/Pagination.d.ts +2 -46
- package/dist/components/Pagination/index.d.ts +5 -0
- package/dist/components/Pagination/pagination.styles.d.ts +37 -0
- package/dist/components/Pagination/types.d.ts +66 -0
- package/dist/components/Popover/Popover.d.ts +4 -44
- package/dist/components/Popover/Popover.pw.fixtures.d.ts +6 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/popover.styles.d.ts +1 -0
- package/dist/components/Popover/types.d.ts +44 -0
- package/dist/components/Popup/Popup.d.ts +31 -0
- package/dist/components/Popup/Popup.pw.fixtures.d.ts +5 -0
- package/dist/components/Popup/index.d.ts +3 -0
- package/dist/components/Popup/types.d.ts +145 -0
- package/dist/components/RadioButton/RadioButton.d.ts +3 -51
- package/dist/components/RadioButton/index.d.ts +4 -0
- package/dist/components/RadioButton/radio-button.styles.d.ts +27 -0
- package/dist/components/RadioButton/types.d.ts +46 -0
- package/dist/components/RangeInput/RangeInput.d.ts +4 -0
- package/dist/components/RangeInput/index.d.ts +3 -0
- package/dist/components/RangeInput/range-input.styles.d.ts +1 -0
- package/dist/{patterns/RangeInput/RangeInput.d.ts → components/RangeInput/types.d.ts} +2 -5
- package/dist/components/RowItem/RowItem.d.ts +8 -76
- package/dist/components/RowItem/index.d.ts +2 -0
- package/dist/components/RowItem/rowitem.styles.d.ts +36 -0
- package/dist/components/RowItem/types.d.ts +66 -0
- package/dist/components/SearchInput/SearchInput.d.ts +5 -0
- package/dist/components/SearchInput/index.d.ts +3 -0
- package/dist/components/SearchInput/search-input.styles.d.ts +18 -0
- package/dist/{patterns/SearchInput/SearchInput.d.ts → components/SearchInput/types.d.ts} +19 -25
- package/dist/components/Searchbar/Searchbar.d.ts +3 -0
- package/dist/components/Searchbar/index.d.ts +3 -0
- package/dist/components/Searchbar/searchbar.styles.d.ts +1 -0
- package/dist/{patterns/Searchbar/Searchbar.d.ts → components/Searchbar/types.d.ts} +6 -9
- package/dist/components/ShapeIcon/ShapeIcon.d.ts +3 -53
- package/dist/components/ShapeIcon/index.d.ts +2 -0
- package/dist/components/ShapeIcon/shape-icon.styles.d.ts +156 -0
- package/dist/components/ShapeIcon/types.d.ts +5 -0
- package/dist/components/Slider/Slider.d.ts +3 -57
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Slider/slider.styles.d.ts +1 -0
- package/dist/components/Slider/types.d.ts +59 -0
- package/dist/components/Snack/Snack.d.ts +4 -48
- package/dist/components/Snack/index.d.ts +3 -0
- package/dist/components/Snack/snack.styles.d.ts +21 -0
- package/dist/components/Snack/types.d.ts +48 -0
- package/dist/components/Tabs/Tab.d.ts +3 -67
- package/dist/components/Tabs/Tabs.d.ts +5 -61
- package/dist/components/Tabs/index.d.ts +4 -0
- package/dist/components/Tabs/tabs.styles.d.ts +59 -0
- package/dist/components/Tabs/types.d.ts +97 -0
- package/dist/components/TagCloud/TagCloud.d.ts +275 -0
- package/dist/components/TagCloud/index.d.ts +2 -0
- package/dist/components/TagCloud/tagcloud.styles.d.ts +18 -0
- package/dist/components/TagCloud/types.d.ts +26 -0
- package/dist/components/TextArea/TextArea.d.ts +3 -100
- package/dist/components/TextArea/index.d.ts +4 -0
- package/dist/components/TextArea/text-area.styles.d.ts +21 -0
- package/dist/components/TextArea/types.d.ts +98 -0
- package/dist/components/TextLabel/TextLabel.d.ts +3 -35
- package/dist/components/TextLabel/index.d.ts +2 -0
- package/dist/components/TextLabel/textlabel.styles.d.ts +51 -0
- package/dist/components/TextLabel/types.d.ts +32 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -41
- package/dist/components/ToggleSwitch/index.d.ts +4 -0
- package/dist/components/ToggleSwitch/toggle-switch.styles.d.ts +39 -0
- package/dist/components/ToggleSwitch/types.d.ts +33 -0
- package/dist/components/Tooltip/Tooltip.d.ts +4 -98
- package/dist/components/Tooltip/Tooltip.pw.fixtures.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/tooltip.styles.d.ts +18 -0
- package/dist/components/Tooltip/types.d.ts +24 -0
- package/dist/forge/index.cjs +0 -0
- package/dist/forge/index.d.ts +8 -0
- package/dist/forge/index.es.js +0 -0
- package/dist/icons.cjs +1 -0
- package/dist/icons.d.ts +1 -0
- package/dist/icons.es.js +1 -0
- package/dist/index.d.ts +82 -71
- package/dist/styles.css +2 -0
- package/dist/{utils/types.d.ts → types/index.d.ts} +0 -1
- package/dist/typography/BodyAnnotation.d.ts +8 -6
- package/dist/typography/BodyCaption.d.ts +8 -6
- package/dist/typography/BodyPage.d.ts +8 -6
- package/dist/typography/BodySection.d.ts +8 -6
- package/dist/typography/DisplayAnnotation.d.ts +8 -6
- package/dist/typography/DisplayCaption.d.ts +8 -6
- package/dist/typography/DisplayPage.d.ts +8 -6
- package/dist/typography/DisplayPrice.d.ts +21 -0
- package/dist/typography/DisplaySection.d.ts +8 -6
- package/dist/typography/HeaderAnnotation.d.ts +8 -6
- package/dist/typography/HeaderCaption.d.ts +8 -6
- package/dist/typography/HeaderPage.d.ts +8 -6
- package/dist/typography/HeaderSection.d.ts +8 -6
- package/dist/typography/LabelAnnotation.d.ts +8 -6
- package/dist/typography/LabelCaption.d.ts +8 -6
- package/dist/typography/LabelPage.d.ts +8 -6
- package/dist/typography/LabelSection.d.ts +8 -6
- package/dist/typography/NoteCaption.d.ts +8 -6
- package/dist/typography/NotePage.d.ts +8 -6
- package/dist/typography/NoteSection.d.ts +8 -6
- package/dist/typography/TaglineAnnotation.d.ts +8 -6
- package/dist/typography/TaglineCaption.d.ts +8 -6
- package/dist/typography/TaglineFootext.d.ts +8 -6
- package/dist/typography/TaglineSection.d.ts +8 -6
- package/dist/typography/index.d.ts +25 -24
- package/dist/utils/_inlineCreatePortal.d.ts +0 -1
- package/dist/utils/bundleCss.cjs +1 -0
- package/dist/utils/bundleCss.d.ts +6 -0
- package/dist/utils/bundleCss.es.js +18 -0
- package/dist/utils/cleanHtml.d.ts +4 -7
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/createUniversalPortal.d.ts +4 -14
- package/dist/utils/floating.d.ts +52 -0
- package/dist/utils/getBreakpointsValues.d.ts +4 -9
- package/dist/utils/sizes.d.ts +28 -0
- package/dist/utils/storyStyles.d.ts +21 -0
- package/dist/utils/themeTokens.d.ts +327 -0
- package/dist/utils/{scrollLock/useBodyScrollLock.d.ts → useBodyScrollLock.d.ts} +0 -1
- package/dist/utils/useScrollTop.d.ts +8 -0
- package/package.json +98 -104
- package/scripts/postinstall.cjs +180 -0
- package/skills/clad-ui/SKILL.md +109 -0
- package/skills/clad-ui/agents/openai.yaml +4 -0
- package/skills/clad-ui/references/components-display-layout.md +297 -0
- package/skills/clad-ui/references/components-inputs.md +451 -0
- package/skills/clad-ui/references/components-overlays-nav.md +314 -0
- package/skills/clad-ui/references/tokens.md +134 -0
- package/skills/clad-ui-feedback/SKILL.md +128 -0
- package/skills/migrate-clad-ui-v3/SKILL.md +124 -0
- package/skills/migrate-clad-ui-v3/agents/openai.yaml +4 -0
- package/skills/migrate-clad-ui-v3/references/component-api-changes.md +145 -0
- package/skills/migrate-clad-ui-v3/references/token-and-linaria-mapping.md +194 -0
- package/src/styles/base/base.css +440 -0
- package/src/styles/components/announcer.css +182 -0
- package/src/styles/components/badge.css +102 -0
- package/src/styles/components/box.css +61 -0
- package/src/styles/components/breadcrumbs.css +75 -0
- package/src/styles/components/button.css +527 -0
- package/src/styles/components/checkbox.css +115 -0
- package/src/styles/components/chip.css +155 -0
- package/src/styles/components/currency-input.css +146 -0
- package/src/styles/components/date-picker.css +305 -0
- package/src/styles/components/date-time-picker.css +64 -0
- package/src/styles/components/drawer.css +496 -0
- package/src/styles/components/dropdown.css +186 -0
- package/src/styles/components/empty-state.css +30 -0
- package/src/styles/components/grid.css +212 -0
- package/src/styles/components/index.css +36 -0
- package/src/styles/components/input-group.css +85 -0
- package/src/styles/components/input.css +255 -0
- package/src/styles/components/legacy-dialog.css +129 -0
- package/src/styles/components/legacy-popup.css +209 -0
- package/src/styles/components/multi-search-dropdown.css +240 -0
- package/src/styles/components/pagination.css +68 -0
- package/src/styles/components/popover.css +8 -0
- package/src/styles/components/popup.css +331 -0
- package/src/styles/components/radio-button.css +130 -0
- package/src/styles/components/range-input.css +40 -0
- package/src/styles/components/rowitem.css +75 -0
- package/src/styles/components/search-input.css +89 -0
- package/src/styles/components/searchbar.css +46 -0
- package/src/styles/components/shape-icon.css +199 -0
- package/src/styles/components/slider.css +232 -0
- package/src/styles/components/snack.css +144 -0
- package/src/styles/components/tabs.css +128 -0
- package/src/styles/components/tagcloud.css +50 -0
- package/src/styles/components/text-area.css +176 -0
- package/src/styles/components/textlabel.css +75 -0
- package/src/styles/components/toggle-switch.css +147 -0
- package/src/styles/components/tooltip.css +93 -0
- package/src/styles/index.css +10 -0
- package/src/styles/preset.css +6 -0
- package/src/styles/theme/colors/base.css +108 -0
- package/src/styles/theme/colors/semantic.css +135 -0
- package/src/styles/theme/index.css +57 -0
- package/src/styles/theme/typography/base.css +53 -0
- package/src/styles/theme/typography/semantic.css +176 -0
- package/src/styles/theme/variables.css +83 -0
- package/ai/clad-ui-helper.js +0 -267
- package/ai/knowledge-base/README.md +0 -154
- package/ai/knowledge-base/clad-ui-database.json +0 -9378
- package/ai/knowledge-base/component-categories.json +0 -616
- package/ai/knowledge-base/components/metadata/charts-axis.json +0 -31
- package/ai/knowledge-base/components/metadata/charts-barchart.json +0 -57
- package/ai/knowledge-base/components/metadata/charts-basechart.tsx.json +0 -31
- package/ai/knowledge-base/components/metadata/charts-chartshared.json +0 -31
- package/ai/knowledge-base/components/metadata/charts-linechart.json +0 -189
- package/ai/knowledge-base/components/metadata/charts-piechart.json +0 -57
- package/ai/knowledge-base/components/metadata/components-announcer.json +0 -215
- package/ai/knowledge-base/components/metadata/components-badge.json +0 -168
- package/ai/knowledge-base/components/metadata/components-box.json +0 -348
- package/ai/knowledge-base/components/metadata/components-breadcrumbs.json +0 -75
- package/ai/knowledge-base/components/metadata/components-button.json +0 -187
- package/ai/knowledge-base/components/metadata/components-checkbox.json +0 -161
- package/ai/knowledge-base/components/metadata/components-chip.json +0 -266
- package/ai/knowledge-base/components/metadata/components-currencyinput.json +0 -136
- package/ai/knowledge-base/components/metadata/components-datepicker.json +0 -87
- package/ai/knowledge-base/components/metadata/components-dropdown.json +0 -282
- package/ai/knowledge-base/components/metadata/components-grid.json +0 -92
- package/ai/knowledge-base/components/metadata/components-input.json +0 -432
- package/ai/knowledge-base/components/metadata/components-pagination.json +0 -111
- package/ai/knowledge-base/components/metadata/components-popover.json +0 -63
- package/ai/knowledge-base/components/metadata/components-radiobutton.json +0 -170
- package/ai/knowledge-base/components/metadata/components-rowitem.json +0 -281
- package/ai/knowledge-base/components/metadata/components-shapeicon.json +0 -139
- package/ai/knowledge-base/components/metadata/components-slider.json +0 -177
- package/ai/knowledge-base/components/metadata/components-snack.json +0 -181
- package/ai/knowledge-base/components/metadata/components-tabs.json +0 -169
- package/ai/knowledge-base/components/metadata/components-textarea.json +0 -285
- package/ai/knowledge-base/components/metadata/components-textlabel.json +0 -129
- package/ai/knowledge-base/components/metadata/components-toggleswitch.json +0 -134
- package/ai/knowledge-base/components/metadata/components-tooltip.json +0 -291
- package/ai/knowledge-base/components/metadata/patterns-drawer.json +0 -310
- package/ai/knowledge-base/components/metadata/patterns-emptystate.json +0 -106
- package/ai/knowledge-base/components/metadata/patterns-inputgroup.json +0 -105
- package/ai/knowledge-base/components/metadata/patterns-legacydialog.json +0 -177
- package/ai/knowledge-base/components/metadata/patterns-legacypopup.json +0 -236
- package/ai/knowledge-base/components/metadata/patterns-multisearchdropdown.json +0 -249
- package/ai/knowledge-base/components/metadata/patterns-popup.json +0 -268
- package/ai/knowledge-base/components/metadata/patterns-rangeinput.json +0 -105
- package/ai/knowledge-base/components/metadata/patterns-searchbar.json +0 -150
- package/ai/knowledge-base/components/metadata/patterns-searchinput.json +0 -312
- package/ai/knowledge-base/components/metadata/patterns-tagcloud.json +0 -244
- package/ai/knowledge-base/components/metadata/summaries.json +0 -610
- package/ai/knowledge-base/design-tokens/tokens.json +0 -483
- package/ai/knowledge-base/patterns/documentation.json +0 -131
- package/ai/knowledge-base/prompts/common-system-prompt.md +0 -592
- package/ai/knowledge-base/prompts/figma-system-prompt.md +0 -396
- package/ai/knowledge-base/search-index/icons/asset-icons.json +0 -1
- package/ai/knowledge-base/search-index/icons/collection.json +0 -5
- package/ai/knowledge-base/search-index/icons/system-icons.json +0 -1
- package/ai/knowledge-base/search-index/search-index.json +0 -899
- package/ai/knowledge-base/validation-rules/component-rules.json +0 -658
- package/ai/skill/SKILL.md +0 -103
- package/dist/components/Announcer/Announcer.d.ts.map +0 -1
- package/dist/components/Announcer/Announcer.styles.d.ts +0 -30
- package/dist/components/Announcer/Announcer.styles.d.ts.map +0 -1
- package/dist/components/Badge/Badge.d.ts.map +0 -1
- package/dist/components/Badge/Badge.styles.d.ts +0 -26
- package/dist/components/Badge/Badge.styles.d.ts.map +0 -1
- package/dist/components/Box/Box.d.ts.map +0 -1
- package/dist/components/Box/Box.styles.d.ts +0 -21
- package/dist/components/Box/Box.styles.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.styles.d.ts +0 -3
- package/dist/components/Button/Button.styles.d.ts.map +0 -1
- package/dist/components/Button/ButtonLink.d.ts.map +0 -1
- package/dist/components/Button/GhostButton.d.ts.map +0 -1
- package/dist/components/Button/GhostButton.styles.d.ts +0 -3
- package/dist/components/Button/GhostButton.styles.d.ts.map +0 -1
- package/dist/components/Button/IconButton.d.ts.map +0 -1
- package/dist/components/Button/constant.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.styles.d.ts +0 -5
- package/dist/components/Checkbox/Checkbox.styles.d.ts.map +0 -1
- package/dist/components/Chip/Chip.d.ts.map +0 -1
- package/dist/components/Chip/Chip.styles.d.ts +0 -13
- package/dist/components/Chip/Chip.styles.d.ts.map +0 -1
- package/dist/components/CurrencyInput/CurrencyInput.d.ts.map +0 -1
- package/dist/components/CurrencyInput/CurrencyInput.styles.d.ts +0 -27
- package/dist/components/CurrencyInput/CurrencyInput.styles.d.ts.map +0 -1
- package/dist/components/CurrencyInput/utils/_cleanValue.d.ts +0 -12
- package/dist/components/CurrencyInput/utils/_cleanValue.d.ts.map +0 -1
- package/dist/components/CurrencyInput/utils/_formatValue.d.ts +0 -6
- package/dist/components/CurrencyInput/utils/_formatValue.d.ts.map +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts.map +0 -1
- package/dist/components/DatePicker/DateTimePicker.d.ts.map +0 -1
- package/dist/components/DatePicker/DateTimePicker.styles.d.ts +0 -61
- package/dist/components/DatePicker/DateTimePicker.styles.d.ts.map +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/components/Dropdown/Dropdown.styles.d.ts +0 -11
- package/dist/components/Dropdown/Dropdown.styles.d.ts.map +0 -1
- package/dist/components/Grid/Col.d.ts.map +0 -1
- package/dist/components/Grid/Grid.d.ts.map +0 -1
- package/dist/components/Grid/Grid.styles.d.ts +0 -33
- package/dist/components/Grid/Grid.styles.d.ts.map +0 -1
- package/dist/components/Input/Input.d.ts.map +0 -1
- package/dist/components/Input/Input.styles.d.ts +0 -36
- package/dist/components/Input/Input.styles.d.ts.map +0 -1
- package/dist/components/Pagination/PageItem.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.style.d.ts +0 -7
- package/dist/components/Pagination/Pagination.style.d.ts.map +0 -1
- package/dist/components/Popover/Popover.d.ts.map +0 -1
- package/dist/components/Popover/Popover.styles.d.ts +0 -4
- package/dist/components/Popover/Popover.styles.d.ts.map +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts.map +0 -1
- package/dist/components/RadioButton/RadioButton.styles.d.ts +0 -12
- package/dist/components/RadioButton/RadioButton.styles.d.ts.map +0 -1
- package/dist/components/RowItem/RowItem.d.ts.map +0 -1
- package/dist/components/RowItem/RowItem.styles.d.ts +0 -33
- package/dist/components/RowItem/RowItem.styles.d.ts.map +0 -1
- package/dist/components/ShapeIcon/ShapeIcon.d.ts.map +0 -1
- package/dist/components/ShapeIcon/ShapeIcon.styles.d.ts +0 -15
- package/dist/components/ShapeIcon/ShapeIcon.styles.d.ts.map +0 -1
- package/dist/components/Slider/Slider.d.ts.map +0 -1
- package/dist/components/Slider/Slider.styles.d.ts +0 -24
- package/dist/components/Slider/Slider.styles.d.ts.map +0 -1
- package/dist/components/Snack/Snack.d.ts.map +0 -1
- package/dist/components/Snack/Snack.styles.d.ts +0 -20
- package/dist/components/Snack/Snack.styles.d.ts.map +0 -1
- package/dist/components/Tabs/Tab.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.styles.d.ts +0 -43
- package/dist/components/Tabs/Tabs.styles.d.ts.map +0 -1
- package/dist/components/TextArea/TextArea.d.ts.map +0 -1
- package/dist/components/TextArea/TextArea.styles.d.ts +0 -19
- package/dist/components/TextArea/TextArea.styles.d.ts.map +0 -1
- package/dist/components/TextLabel/TextLabel.d.ts.map +0 -1
- package/dist/components/TextLabel/TextLabel.styles.d.ts +0 -10
- package/dist/components/TextLabel/TextLabel.styles.d.ts.map +0 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +0 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.styles.d.ts +0 -22
- package/dist/components/ToggleSwitch/ToggleSwitch.styles.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.styles.d.ts +0 -33
- package/dist/components/Tooltip/Tooltip.styles.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -62
- package/dist/components/index.d.ts.map +0 -1
- package/dist/css/baseline.d.ts +0 -15
- package/dist/css/baseline.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/patterns/Drawer/Drawer.d.ts +0 -110
- package/dist/patterns/Drawer/Drawer.d.ts.map +0 -1
- package/dist/patterns/Drawer/Drawer.styles.d.ts +0 -39
- package/dist/patterns/Drawer/Drawer.styles.d.ts.map +0 -1
- package/dist/patterns/EmptyState/EmptyState.d.ts +0 -36
- package/dist/patterns/EmptyState/EmptyState.d.ts.map +0 -1
- package/dist/patterns/EmptyState/EmptyState.styles.d.ts +0 -4
- package/dist/patterns/EmptyState/EmptyState.styles.d.ts.map +0 -1
- package/dist/patterns/InputGroup/InputGroup.d.ts +0 -26
- package/dist/patterns/InputGroup/InputGroup.d.ts.map +0 -1
- package/dist/patterns/InputGroup/InputGroup.styles.d.ts +0 -8
- package/dist/patterns/InputGroup/InputGroup.styles.d.ts.map +0 -1
- package/dist/patterns/LegacyDialog/DialogMainIcon.d.ts +0 -2
- package/dist/patterns/LegacyDialog/DialogMainIcon.d.ts.map +0 -1
- package/dist/patterns/LegacyDialog/LegacyDialog.d.ts.map +0 -1
- package/dist/patterns/LegacyDialog/LegacyDialog.styles.d.ts +0 -13
- package/dist/patterns/LegacyDialog/LegacyDialog.styles.d.ts.map +0 -1
- package/dist/patterns/LegacyPopup/LegacyPopup.d.ts.map +0 -1
- package/dist/patterns/LegacyPopup/LegacyPopup.styles.d.ts +0 -27
- package/dist/patterns/LegacyPopup/LegacyPopup.styles.d.ts.map +0 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts.map +0 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts +0 -26
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts.map +0 -1
- package/dist/patterns/Popup/Popup.d.ts +0 -92
- package/dist/patterns/Popup/Popup.d.ts.map +0 -1
- package/dist/patterns/Popup/Popup.styles.d.ts +0 -41
- package/dist/patterns/Popup/Popup.styles.d.ts.map +0 -1
- package/dist/patterns/RangeInput/RangeInput.d.ts.map +0 -1
- package/dist/patterns/RangeInput/RangeInput.styles.d.ts +0 -5
- package/dist/patterns/RangeInput/RangeInput.styles.d.ts.map +0 -1
- package/dist/patterns/SearchInput/SearchInput.d.ts.map +0 -1
- package/dist/patterns/SearchInput/SearchInput.styles.d.ts +0 -10
- package/dist/patterns/SearchInput/SearchInput.styles.d.ts.map +0 -1
- package/dist/patterns/Searchbar/Searchbar.d.ts.map +0 -1
- package/dist/patterns/Searchbar/Searchbar.styles.d.ts +0 -3
- package/dist/patterns/Searchbar/Searchbar.styles.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloud.d.ts +0 -76
- package/dist/patterns/TagCloud/TagCloud.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloud.styles.d.ts +0 -15
- package/dist/patterns/TagCloud/TagCloud.styles.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloudMultiActive.d.ts +0 -25
- package/dist/patterns/TagCloud/TagCloudMultiActive.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloudSingleActive.d.ts +0 -22
- package/dist/patterns/TagCloud/TagCloudSingleActive.d.ts.map +0 -1
- package/dist/patterns/index.d.ts +0 -23
- package/dist/patterns/index.d.ts.map +0 -1
- package/dist/theme/chotot.d.ts +0 -1371
- package/dist/theme/chotot.d.ts.map +0 -1
- package/dist/theme/ct-job.d.ts +0 -826
- package/dist/theme/ct-job.d.ts.map +0 -1
- package/dist/theme/ct-pty.d.ts +0 -826
- package/dist/theme/ct-pty.d.ts.map +0 -1
- package/dist/theme/ct-veh.d.ts +0 -591
- package/dist/theme/ct-veh.d.ts.map +0 -1
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/mudah.d.ts +0 -248
- package/dist/theme/mudah.d.ts.map +0 -1
- package/dist/theme/types.d.ts +0 -58
- package/dist/theme/types.d.ts.map +0 -1
- package/dist/theme-chotot.css +0 -2
- package/dist/theme-job.css +0 -2
- package/dist/theme-pty.css +0 -2
- package/dist/theme-veh.css +0 -2
- package/dist/typography/BodyAnnotation.d.ts.map +0 -1
- package/dist/typography/BodyCaption.d.ts.map +0 -1
- package/dist/typography/BodyPage.d.ts.map +0 -1
- package/dist/typography/BodySection.d.ts.map +0 -1
- package/dist/typography/DisplayAnnotation.d.ts.map +0 -1
- package/dist/typography/DisplayCaption.d.ts.map +0 -1
- package/dist/typography/DisplayPage.d.ts.map +0 -1
- package/dist/typography/DisplaySection.d.ts.map +0 -1
- package/dist/typography/HeaderAnnotation.d.ts.map +0 -1
- package/dist/typography/HeaderCaption.d.ts.map +0 -1
- package/dist/typography/HeaderPage.d.ts.map +0 -1
- package/dist/typography/HeaderSection.d.ts.map +0 -1
- package/dist/typography/LabelAnnotation.d.ts.map +0 -1
- package/dist/typography/LabelCaption.d.ts.map +0 -1
- package/dist/typography/LabelPage.d.ts.map +0 -1
- package/dist/typography/LabelSection.d.ts.map +0 -1
- package/dist/typography/NoteCaption.d.ts.map +0 -1
- package/dist/typography/NotePage.d.ts.map +0 -1
- package/dist/typography/NoteSection.d.ts.map +0 -1
- package/dist/typography/TaglineAnnotation.d.ts.map +0 -1
- package/dist/typography/TaglineCaption.d.ts.map +0 -1
- package/dist/typography/TaglineFootext.d.ts.map +0 -1
- package/dist/typography/TaglineSection.d.ts.map +0 -1
- package/dist/typography/index.d.ts.map +0 -1
- package/dist/utils/_inlineCreatePortal.d.ts.map +0 -1
- package/dist/utils/_normalizeArrowKey.d.ts +0 -10
- package/dist/utils/_normalizeArrowKey.d.ts.map +0 -1
- package/dist/utils/_simulateChangeEvent.d.ts +0 -25
- package/dist/utils/_simulateChangeEvent.d.ts.map +0 -1
- package/dist/utils/cleanHtml.d.ts.map +0 -1
- package/dist/utils/createUniversalPortal.d.ts.map +0 -1
- package/dist/utils/cx.d.ts +0 -22
- package/dist/utils/cx.d.ts.map +0 -1
- package/dist/utils/getBreakpointsValues.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/noop.d.ts +0 -9
- package/dist/utils/noop.d.ts.map +0 -1
- package/dist/utils/scrollLock/index.d.ts +0 -7
- package/dist/utils/scrollLock/index.d.ts.map +0 -1
- package/dist/utils/scrollLock/scrollLock.styles.d.ts +0 -6
- package/dist/utils/scrollLock/scrollLock.styles.d.ts.map +0 -1
- package/dist/utils/scrollLock/useBodyScrollLock.d.ts.map +0 -1
- package/dist/utils/scrollTop.d.ts +0 -8
- package/dist/utils/scrollTop.d.ts.map +0 -1
- package/dist/utils/sx.d.ts +0 -174
- package/dist/utils/sx.d.ts.map +0 -1
- package/dist/utils/types.d.ts.map +0 -1
- package/theme/__snapshots__/chotot.spec.js.snap +0 -519
- package/theme/__snapshots__/mudah.spec.js.snap +0 -161
- package/theme/chotot.js +0 -1336
- package/theme/chotot.spec.js +0 -72
- package/theme/ct-job.js +0 -92
- package/theme/ct-pty.js +0 -92
- package/theme/ct-veh.js +0 -92
- package/theme/index.ts +0 -10
- package/theme/mudah.js +0 -333
- package/theme/mudah.spec.js +0 -9
- package/theme/types.ts +0 -61
package/theme/chotot.js
DELETED
|
@@ -1,1336 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* chotot.com theme
|
|
3
|
-
* @author Thanh Tran
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* theme.breakpoints
|
|
8
|
-
*
|
|
9
|
-
* When used with `sx` helper, 0 index means for all viewports (mobile first):
|
|
10
|
-
*
|
|
11
|
-
* ```
|
|
12
|
-
* sx({
|
|
13
|
-
* // applies font size small to all viewport widths,
|
|
14
|
-
* // font size medium above the first breakpoint,
|
|
15
|
-
* // font size large above the next breakpoint
|
|
16
|
-
* fontSize: [ 'small', 'medium', 'large' ]
|
|
17
|
-
* })
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @type {{
|
|
21
|
-
* 0: '576px'
|
|
22
|
-
* 1: '768px'
|
|
23
|
-
* 2: '992px'
|
|
24
|
-
* 3: '1280px'
|
|
25
|
-
* 4: '1440px'
|
|
26
|
-
* sm: '576px'
|
|
27
|
-
* md: '768px'
|
|
28
|
-
* lg: '992px'
|
|
29
|
-
* xl: '1280px'
|
|
30
|
-
* xxl: '1440px'
|
|
31
|
-
* }}
|
|
32
|
-
*/
|
|
33
|
-
// @ts-ignore breakpoints must be array, but we want to use sm, md keys for easier reference
|
|
34
|
-
const breakpoints = ['576px', '768px', '992px', '1280px', '1440px'];
|
|
35
|
-
// index in sx: 1, 2, 3, 4, 5 (not a mistake, 0 is smallest viewport)
|
|
36
|
-
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
[breakpoints.sm, breakpoints.md, breakpoints.lg, breakpoints.xl, breakpoints.xxl] = breakpoints;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* theme.mediaQueries
|
|
42
|
-
*
|
|
43
|
-
* Example:
|
|
44
|
-
* ```
|
|
45
|
-
* @media ${theme.mediaQueries.tablet} {
|
|
46
|
-
* font-size: ${theme.fontSize.small}
|
|
47
|
-
* }
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
const mediaQueries = {
|
|
51
|
-
/**
|
|
52
|
-
* Special media query for occational iPhone 5 (320px) edge casess
|
|
53
|
-
* @type {`screen and (max-width: 320px)` | string}
|
|
54
|
-
*/
|
|
55
|
-
ip5: 'screen and (max-width: 320px)',
|
|
56
|
-
/**
|
|
57
|
-
* @type {`screen and (min-width: {breakpoints.md})` | string}
|
|
58
|
-
*/
|
|
59
|
-
tablet: `screen and (min-width: ${breakpoints.md})`,
|
|
60
|
-
/**
|
|
61
|
-
* @type {`screen and (min-width: {breakpoints.lg})` | string}
|
|
62
|
-
*/
|
|
63
|
-
desktop: `screen and (min-width: ${breakpoints.lg})`,
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* theme.space
|
|
68
|
-
*
|
|
69
|
-
* margin, margin-top, margin-right, margin-bottom, margin-left, padding, padding-top, padding-right,
|
|
70
|
-
* padding-bottom, padding-left, grid-gap, grid-column-gap, grid-row-gap
|
|
71
|
-
*/
|
|
72
|
-
const space = /** @type {const} */ ({
|
|
73
|
-
none: '0px',
|
|
74
|
-
xxxs: '2px',
|
|
75
|
-
xxs: '4px',
|
|
76
|
-
xs: '8px',
|
|
77
|
-
sm: '12px',
|
|
78
|
-
md: '16px',
|
|
79
|
-
mdl: '20px',
|
|
80
|
-
lg: '24px',
|
|
81
|
-
xl: '32px',
|
|
82
|
-
xxl: '48px',
|
|
83
|
-
xxxl: '64px',
|
|
84
|
-
xxxxl: '96px',
|
|
85
|
-
xxxxxl: '128px',
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* theme.sizes
|
|
90
|
-
*
|
|
91
|
-
* width, height, min-width, max-width, min-height, max-height
|
|
92
|
-
*/
|
|
93
|
-
const sizes = /** @type {const} */ ({
|
|
94
|
-
// percentage
|
|
95
|
-
vW: '100vw',
|
|
96
|
-
vH: '100vh',
|
|
97
|
-
quarter: '25%',
|
|
98
|
-
third: '33.33%',
|
|
99
|
-
half: '50%',
|
|
100
|
-
twoThird: '66.66%',
|
|
101
|
-
threeQuarter: '75%',
|
|
102
|
-
full: '100%',
|
|
103
|
-
// absolute
|
|
104
|
-
xxxs: '12px',
|
|
105
|
-
xxs: '16px',
|
|
106
|
-
xs: '20px',
|
|
107
|
-
sm: '24px',
|
|
108
|
-
md: '28px',
|
|
109
|
-
lg: '32px',
|
|
110
|
-
lxl: '40px',
|
|
111
|
-
xl: '48px',
|
|
112
|
-
xxl: '64px',
|
|
113
|
-
xxxl: '80px',
|
|
114
|
-
xxxxl: '96px',
|
|
115
|
-
xxxxxl: '128px',
|
|
116
|
-
buttonMaxWidth: '352px',
|
|
117
|
-
$sm: '236px',
|
|
118
|
-
$md: '480px',
|
|
119
|
-
$lg: '636px',
|
|
120
|
-
$xl: '864px',
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* theme.fonts
|
|
125
|
-
*
|
|
126
|
-
* font-family
|
|
127
|
-
*/
|
|
128
|
-
const fonts = /** @type {const} */ ({
|
|
129
|
-
body: 'Reddit Sans, Helvetica, Arial, Roboto, sans-serif',
|
|
130
|
-
heading: 'Reddit Sans, Helvetica, Arial, Roboto, sans-serif',
|
|
131
|
-
monospace: 'SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace',
|
|
132
|
-
// Allow design system consumers to access font settings but control how and where they load the font.
|
|
133
|
-
urls: {
|
|
134
|
-
body: 'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap',
|
|
135
|
-
redditSans:
|
|
136
|
-
'https://fonts.googleapis.com/css2?family=Reddit+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap',
|
|
137
|
-
},
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Map px values to rem values with assumption root's font size of 16px
|
|
142
|
-
* @template {number} T
|
|
143
|
-
* @param {T} v
|
|
144
|
-
* @return {`${T}px`}
|
|
145
|
-
*/
|
|
146
|
-
// @ts-ignore we only need the @return to match with tuple below
|
|
147
|
-
const rem = (v) => `${v / 16}rem`;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Note: because we convert pixel to rem, we need an augmented tuple type
|
|
151
|
-
* without the rem() function
|
|
152
|
-
*/
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* theme.fontSizes
|
|
156
|
-
*
|
|
157
|
-
* font-size
|
|
158
|
-
*/
|
|
159
|
-
const fontSizes = /** @type {const} */ ({
|
|
160
|
-
h1: rem(32),
|
|
161
|
-
h2: rem(24),
|
|
162
|
-
h3: rem(20),
|
|
163
|
-
h4: rem(18),
|
|
164
|
-
h5: rem(16),
|
|
165
|
-
h6: rem(14),
|
|
166
|
-
subtitle: rem(12),
|
|
167
|
-
body: rem(14),
|
|
168
|
-
xxs: rem(10),
|
|
169
|
-
xs: rem(12),
|
|
170
|
-
sm: rem(14),
|
|
171
|
-
md: rem(16),
|
|
172
|
-
lg: rem(18),
|
|
173
|
-
xl: rem(20),
|
|
174
|
-
xxl: rem(24),
|
|
175
|
-
xxxl: rem(32),
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
// cú pháp responsive [mobile, tablet, desktop]
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* theme.lineHeights
|
|
182
|
-
*
|
|
183
|
-
* line-height
|
|
184
|
-
*/
|
|
185
|
-
const lineHeights = /** @type {const} */ ({
|
|
186
|
-
// new typography 2.0 scale
|
|
187
|
-
$xs: '1rem',
|
|
188
|
-
$xsm: '1.125rem',
|
|
189
|
-
$sm: '1.25rem',
|
|
190
|
-
$md: '1.5rem',
|
|
191
|
-
$mdl: '1.75rem',
|
|
192
|
-
$lg: '2rem',
|
|
193
|
-
$xl: '2.5rem',
|
|
194
|
-
// new semantic
|
|
195
|
-
heading: '1.25',
|
|
196
|
-
paragraph: '1.5',
|
|
197
|
-
// legacy, font size relative
|
|
198
|
-
xs: '1.5',
|
|
199
|
-
xxs: '1.5',
|
|
200
|
-
sm: '1.5',
|
|
201
|
-
md: '1.5',
|
|
202
|
-
lg: '1.5',
|
|
203
|
-
xl: '1.5',
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* theme.fontWeights
|
|
208
|
-
*
|
|
209
|
-
* font-weight
|
|
210
|
-
*/
|
|
211
|
-
const fontWeights = /** @type {const} */ ({
|
|
212
|
-
regular: 400,
|
|
213
|
-
medium: 500,
|
|
214
|
-
semiBold: 600,
|
|
215
|
-
body: 400,
|
|
216
|
-
heading: 700,
|
|
217
|
-
normal: 400,
|
|
218
|
-
bold: 700,
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
const grays = /** @type {const} */ ({
|
|
222
|
-
gray0: '#FFFFFF',
|
|
223
|
-
gray25: '#F7F7F7',
|
|
224
|
-
gray50: '#F4F4F4',
|
|
225
|
-
gray75: '#E8E8E8',
|
|
226
|
-
gray100: '#DADADA',
|
|
227
|
-
gray200: '#C0C0C0',
|
|
228
|
-
gray300: '#A7A7A7',
|
|
229
|
-
gray400: '#8C8C8C',
|
|
230
|
-
gray500: '#737373',
|
|
231
|
-
gray600: '#595959',
|
|
232
|
-
gray700: '#404040',
|
|
233
|
-
gray800: '#2E2E2E',
|
|
234
|
-
gray900: '#222222',
|
|
235
|
-
});
|
|
236
|
-
|
|
237
|
-
const reds = /** @type {const} */ ({
|
|
238
|
-
red50: '#FEEBEF',
|
|
239
|
-
red75: '#FCD6DF',
|
|
240
|
-
red100: '#FBC2CF',
|
|
241
|
-
red200: '#F9ADBF',
|
|
242
|
-
red300: '#F6849E',
|
|
243
|
-
red400: '#F35B7E',
|
|
244
|
-
red500: '#F0325E',
|
|
245
|
-
red600: '#CB294E',
|
|
246
|
-
red700: '#A6203F',
|
|
247
|
-
red800: '#82162F',
|
|
248
|
-
red900: '#5D0D20',
|
|
249
|
-
});
|
|
250
|
-
|
|
251
|
-
const oranges = /** @type {const} */ ({
|
|
252
|
-
orange50: '#FFF4EC',
|
|
253
|
-
orange75: '#FFE4D5',
|
|
254
|
-
orange100: '#FFCEB4',
|
|
255
|
-
orange200: '#FFA97B',
|
|
256
|
-
orange300: '#FB7328',
|
|
257
|
-
orange400: '#E16725',
|
|
258
|
-
orange500: '#C44E0E',
|
|
259
|
-
orange600: '#993600',
|
|
260
|
-
orange700: '#6D2600',
|
|
261
|
-
orange800: '#591F00',
|
|
262
|
-
orange900: '#471900',
|
|
263
|
-
});
|
|
264
|
-
|
|
265
|
-
const yellows = /** @type {const} */ ({
|
|
266
|
-
yellow50: '#FFF8D6',
|
|
267
|
-
yellow75: '#FFE884',
|
|
268
|
-
yellow100: '#FFD400',
|
|
269
|
-
yellow200: '#FFC800',
|
|
270
|
-
yellow300: '#FFBA00',
|
|
271
|
-
yellow400: '#CC8F00',
|
|
272
|
-
yellow500: '#9E6C00',
|
|
273
|
-
yellow600: '#7F5500',
|
|
274
|
-
yellow700: '#603F00',
|
|
275
|
-
yellow800: '#4F3200',
|
|
276
|
-
yellow900: '#432900',
|
|
277
|
-
});
|
|
278
|
-
|
|
279
|
-
const greens = /** @type {const} */ ({
|
|
280
|
-
green50: '#ECF9F1',
|
|
281
|
-
green75: '#D9F2E4',
|
|
282
|
-
green100: '#ABE7C5',
|
|
283
|
-
green200: '#6ED498',
|
|
284
|
-
green300: '#26C06E',
|
|
285
|
-
green400: '#12A154',
|
|
286
|
-
green500: '#108446',
|
|
287
|
-
green600: '#0F6638',
|
|
288
|
-
green700: '#0D4A29',
|
|
289
|
-
green800: '#0E3A22',
|
|
290
|
-
green900: '#082B18',
|
|
291
|
-
});
|
|
292
|
-
|
|
293
|
-
const blues = /** @type {const} */ ({
|
|
294
|
-
blue50: '#F2F6FC',
|
|
295
|
-
blue75: '#E4ECFB',
|
|
296
|
-
blue100: '#CADBF7',
|
|
297
|
-
blue200: '#A3C0F5',
|
|
298
|
-
blue300: '#7FA7F0',
|
|
299
|
-
blue400: '#548AF0',
|
|
300
|
-
blue500: '#306BD9',
|
|
301
|
-
blue600: '#1952BA',
|
|
302
|
-
blue700: '#113B8A',
|
|
303
|
-
blue800: '#0B2F70',
|
|
304
|
-
blue900: '#0B234F',
|
|
305
|
-
});
|
|
306
|
-
|
|
307
|
-
const verticals = /** @type {const} */ ({
|
|
308
|
-
vertical50: '#FFF8D6',
|
|
309
|
-
vertical75: '#FFE884',
|
|
310
|
-
vertical100: '#FFD400',
|
|
311
|
-
vertical200: '#FFC800',
|
|
312
|
-
vertical300: '#FFBA00',
|
|
313
|
-
vertical400: '#CC8F00',
|
|
314
|
-
vertical500: '#9E6C00',
|
|
315
|
-
vertical600: '#7F5500',
|
|
316
|
-
vertical700: '#603F00',
|
|
317
|
-
vertical800: '#4F3200',
|
|
318
|
-
vertical900: '#432900',
|
|
319
|
-
});
|
|
320
|
-
|
|
321
|
-
const semantics = {
|
|
322
|
-
/**
|
|
323
|
-
* Legacy: Main body text color
|
|
324
|
-
* @deprecated
|
|
325
|
-
*/
|
|
326
|
-
text: grays.gray900,
|
|
327
|
-
/**
|
|
328
|
-
* Legacy: De-emphasized / footer text color
|
|
329
|
-
* @deprecated
|
|
330
|
-
*/
|
|
331
|
-
textLighter: grays.gray400,
|
|
332
|
-
/**
|
|
333
|
-
* Legacy: Regular hyperlinks color
|
|
334
|
-
* @deprecated
|
|
335
|
-
*/
|
|
336
|
-
link: blues.blue500,
|
|
337
|
-
/**
|
|
338
|
-
* Legacy: Regular hyperlinks hover color
|
|
339
|
-
* @deprecated
|
|
340
|
-
*/
|
|
341
|
-
linkHover: blues.blue400,
|
|
342
|
-
/**
|
|
343
|
-
* Legacy: Regular hyperlinks active color
|
|
344
|
-
* @deprecated
|
|
345
|
-
*/
|
|
346
|
-
linkActive: blues.blue600,
|
|
347
|
-
/**
|
|
348
|
-
* Legacy: Color for borders
|
|
349
|
-
* @deprecated
|
|
350
|
-
*/
|
|
351
|
-
border: grays.gray200,
|
|
352
|
-
/**
|
|
353
|
-
* Legacy: Color for lines, visual separators
|
|
354
|
-
* @deprecated
|
|
355
|
-
*/
|
|
356
|
-
line: grays.gray75,
|
|
357
|
-
/**
|
|
358
|
-
* Legacy: Body background color
|
|
359
|
-
* @deprecated
|
|
360
|
-
*/
|
|
361
|
-
background: grays.gray50,
|
|
362
|
-
/**
|
|
363
|
-
* Legacy: A background color for highlighting text
|
|
364
|
-
* @deprecated
|
|
365
|
-
*/
|
|
366
|
-
highlight: yellows.yellow75,
|
|
367
|
-
/**
|
|
368
|
-
* Legacy: A faint color for backgrounds, borders, and accents that do not require high contrast with the background color
|
|
369
|
-
* @deprecated
|
|
370
|
-
*/
|
|
371
|
-
muted: grays.gray200,
|
|
372
|
-
/**
|
|
373
|
-
* Legacy: Primary brand color for links, buttons, etc.
|
|
374
|
-
* @deprecated
|
|
375
|
-
*/
|
|
376
|
-
primary: oranges.orange300,
|
|
377
|
-
/**
|
|
378
|
-
* Legacy: Primary brand color for links, buttons, etc.
|
|
379
|
-
* @deprecated
|
|
380
|
-
*/
|
|
381
|
-
primaryDark: oranges.orange400,
|
|
382
|
-
/**
|
|
383
|
-
* Legacy: Primary brand color for links, buttons, etc.
|
|
384
|
-
* @deprecated
|
|
385
|
-
*/
|
|
386
|
-
primaryLight: oranges.orange200,
|
|
387
|
-
/**
|
|
388
|
-
* Legacy: Background color. Primary brand color for links, buttons, etc.
|
|
389
|
-
* @deprecated
|
|
390
|
-
*/
|
|
391
|
-
primaryBG: oranges.orange75,
|
|
392
|
-
/**
|
|
393
|
-
* Legacy: Alternative lighter background color to primaryBG.
|
|
394
|
-
* @deprecated
|
|
395
|
-
*/
|
|
396
|
-
primaryBGLight: oranges.orange50,
|
|
397
|
-
/**
|
|
398
|
-
* Legacy: A secondary brand color for alternative styling
|
|
399
|
-
* @deprecated
|
|
400
|
-
*/
|
|
401
|
-
secondary: greens.green400,
|
|
402
|
-
/**
|
|
403
|
-
* Legacy: A secondary brand color for alternative styling
|
|
404
|
-
* @deprecated
|
|
405
|
-
*/
|
|
406
|
-
secondaryDark: greens.green500,
|
|
407
|
-
/**
|
|
408
|
-
* Legacy: A secondary brand color for alternative styling
|
|
409
|
-
* @deprecated
|
|
410
|
-
*/
|
|
411
|
-
secondaryLight: greens.green300,
|
|
412
|
-
/**
|
|
413
|
-
* Legacy: Background color. A secondary brand color for alternative styling
|
|
414
|
-
* @deprecated
|
|
415
|
-
*/
|
|
416
|
-
secondaryBG: greens.green75,
|
|
417
|
-
/**
|
|
418
|
-
* Legacy: Alternative lighter background color to secondaryBG.
|
|
419
|
-
* @deprecated
|
|
420
|
-
*/
|
|
421
|
-
secondaryBGLight: greens.green50,
|
|
422
|
-
/**
|
|
423
|
-
* Legacy: A contrast color for emphasizing UI
|
|
424
|
-
* @deprecated
|
|
425
|
-
*/
|
|
426
|
-
accent: oranges.orange300,
|
|
427
|
-
/**
|
|
428
|
-
* Legacy: A contrast color for emphasizing UI
|
|
429
|
-
* @deprecated
|
|
430
|
-
*/
|
|
431
|
-
accentDark: oranges.orange400,
|
|
432
|
-
/**
|
|
433
|
-
* Legacy: A contrast color for emphasizing UI
|
|
434
|
-
* @deprecated
|
|
435
|
-
*/
|
|
436
|
-
accentLight: oranges.orange200,
|
|
437
|
-
/**
|
|
438
|
-
* Legacy: Background color. A contrast color for emphasizing UI
|
|
439
|
-
* @deprecated
|
|
440
|
-
*/
|
|
441
|
-
accentBG: oranges.orange75,
|
|
442
|
-
/**
|
|
443
|
-
* Legacy: Alternative lighter background color to accentBG.
|
|
444
|
-
* @deprecated
|
|
445
|
-
*/
|
|
446
|
-
accentBGLight: oranges.orange50,
|
|
447
|
-
/**
|
|
448
|
-
* Legacy: Subtle information or details historic in nature. Often already actioned & in the past. No priority required due to the lack of importance or change.
|
|
449
|
-
* @deprecated
|
|
450
|
-
*/
|
|
451
|
-
neutral: grays.gray200,
|
|
452
|
-
/**
|
|
453
|
-
* Legacy: Subtle information or details historic in nature. Often already actioned & in the past. No priority required due to the lack of importance or change.
|
|
454
|
-
* @deprecated
|
|
455
|
-
*/
|
|
456
|
-
neutralDark: grays.gray400,
|
|
457
|
-
/**
|
|
458
|
-
* Legacy: Subtle information or details historic in nature. Often already actioned & in the past. No priority required due to the lack of importance or change.
|
|
459
|
-
* @deprecated
|
|
460
|
-
*/
|
|
461
|
-
neutralLight: grays.gray75,
|
|
462
|
-
/**
|
|
463
|
-
* Legacy: Background color. Subtle information or details historic in nature. Often already actioned & in the past. No priority required due to the lack of importance or change.
|
|
464
|
-
* @deprecated
|
|
465
|
-
*/
|
|
466
|
-
neutralBG: grays.gray50,
|
|
467
|
-
/**
|
|
468
|
-
* Legacy: Alternative lighter background color to neutralBG.
|
|
469
|
-
* @deprecated
|
|
470
|
-
*/
|
|
471
|
-
neutralBGLight: grays.gray50,
|
|
472
|
-
/**
|
|
473
|
-
* Legacy: Super important, high urgency, high risk, errors...
|
|
474
|
-
* @deprecated
|
|
475
|
-
*/
|
|
476
|
-
critical: reds.red500,
|
|
477
|
-
/**
|
|
478
|
-
* Legacy: Super important, high urgency, high risk, errors...
|
|
479
|
-
* @deprecated
|
|
480
|
-
*/
|
|
481
|
-
criticalDark: reds.red400,
|
|
482
|
-
/**
|
|
483
|
-
* Legacy: Super important, high urgency, high risk, errors...
|
|
484
|
-
* @deprecated
|
|
485
|
-
*/
|
|
486
|
-
criticalLight: reds.red600,
|
|
487
|
-
/**
|
|
488
|
-
* Legacy: Background color. Super important, high urgency, high risk, errors...
|
|
489
|
-
* @deprecated
|
|
490
|
-
*/
|
|
491
|
-
criticalBG: reds.red75,
|
|
492
|
-
/**
|
|
493
|
-
* Legacy: Alternative lighter background color to criticalBG.
|
|
494
|
-
* @deprecated
|
|
495
|
-
*/
|
|
496
|
-
criticalBGLight: reds.red50,
|
|
497
|
-
/**
|
|
498
|
-
* Legacy: Guidance & advice. Generally from the UI or business. Functional, calm and non urgent.
|
|
499
|
-
* @deprecated
|
|
500
|
-
*/
|
|
501
|
-
info: blues.blue400,
|
|
502
|
-
/**
|
|
503
|
-
* Legacy: Guidance & advice. Generally from the UI or business. Functional, calm and non urgent.
|
|
504
|
-
* @deprecated
|
|
505
|
-
*/
|
|
506
|
-
infoDark: blues.blue500,
|
|
507
|
-
/**
|
|
508
|
-
* Legacy: Guidance & advice. Generally from the UI or business. Functional, calm and non urgent.
|
|
509
|
-
* @deprecated
|
|
510
|
-
*/
|
|
511
|
-
infoLight: blues.blue300,
|
|
512
|
-
/**
|
|
513
|
-
* Legacy: Background color. Guidance & advice. Generally from the UI or business. Functional, calm and non urgent.
|
|
514
|
-
* @deprecated
|
|
515
|
-
*/
|
|
516
|
-
infoBG: blues.blue75,
|
|
517
|
-
/**
|
|
518
|
-
* Legacy: Alternative lighter background to infoBG.
|
|
519
|
-
* @deprecated
|
|
520
|
-
*/
|
|
521
|
-
infoBGLight: blues.blue50,
|
|
522
|
-
/**
|
|
523
|
-
* Legacy: Good vibes & new things! Wants to get the user to act on something or be aware something good happened.
|
|
524
|
-
* @deprecated
|
|
525
|
-
*/
|
|
526
|
-
positive: greens.green400,
|
|
527
|
-
/**
|
|
528
|
-
* Legacy: Good vibes & new things! Wants to get the user to act on something or be aware something good happened.
|
|
529
|
-
* @deprecated
|
|
530
|
-
*/
|
|
531
|
-
positiveDark: greens.green500,
|
|
532
|
-
/**
|
|
533
|
-
* Legacy: Good vibes & new things! Wants to get the user to act on something or be aware something good happened.
|
|
534
|
-
* @deprecated
|
|
535
|
-
*/
|
|
536
|
-
positiveLight: greens.green300,
|
|
537
|
-
/**
|
|
538
|
-
* Legacy: Background color. Good vibes & new things! Wants to get the user to act on something or be aware something good happened.
|
|
539
|
-
* @deprecated
|
|
540
|
-
*/
|
|
541
|
-
positiveBG: greens.green75,
|
|
542
|
-
/**
|
|
543
|
-
* Legacy: Alternative lighter background color to positiveBG.
|
|
544
|
-
* @deprecated
|
|
545
|
-
*/
|
|
546
|
-
positiveBGLight: greens.green50,
|
|
547
|
-
/**
|
|
548
|
-
* Legacy: You should be aware something is happening or mid-way through a process. Could be a risk or an item that needs to be acted upon.
|
|
549
|
-
* @deprecated
|
|
550
|
-
*/
|
|
551
|
-
caution: yellows.yellow200,
|
|
552
|
-
/**
|
|
553
|
-
* Legacy: You should be aware something is happening or mid-way through a process. Could be a risk or an item that needs to be acted upon.
|
|
554
|
-
* @deprecated
|
|
555
|
-
*/
|
|
556
|
-
cautionDark: yellows.yellow300,
|
|
557
|
-
/**
|
|
558
|
-
* Legacy: You should be aware something is happening or mid-way through a process. Could be a risk or an item that needs to be acted upon.
|
|
559
|
-
* @deprecated
|
|
560
|
-
*/
|
|
561
|
-
cautionLight: yellows.yellow100,
|
|
562
|
-
/**
|
|
563
|
-
* Legacy: Background color. You should be aware something is happening or mid-way through a process. Could be a risk or an item that needs to be acted upon.
|
|
564
|
-
* @deprecated
|
|
565
|
-
*/
|
|
566
|
-
cautionBG: yellows.yellow75,
|
|
567
|
-
/**
|
|
568
|
-
* Legacy: Alternative lighter background color to cautionBG.
|
|
569
|
-
* @deprecated
|
|
570
|
-
*/
|
|
571
|
-
cautionBGLight: yellows.yellow50,
|
|
572
|
-
/**
|
|
573
|
-
* Legacy: Negative
|
|
574
|
-
* @deprecated
|
|
575
|
-
*/
|
|
576
|
-
negative: reds.red500,
|
|
577
|
-
/**
|
|
578
|
-
* Legacy: Notice
|
|
579
|
-
* @deprecated
|
|
580
|
-
*/
|
|
581
|
-
notice: yellows.red200,
|
|
582
|
-
};
|
|
583
|
-
|
|
584
|
-
export const alias = {
|
|
585
|
-
/**
|
|
586
|
-
* Brand color for decorations: banner, illustrations, tag...
|
|
587
|
-
*/
|
|
588
|
-
backgroundBrand: verticals.vertical100,
|
|
589
|
-
/**
|
|
590
|
-
* Highlight background for decorations; Highlighted announcer
|
|
591
|
-
*/
|
|
592
|
-
backgroundBrandLight: verticals.vertical50,
|
|
593
|
-
/**
|
|
594
|
-
* Info Snackbar
|
|
595
|
-
*/
|
|
596
|
-
backgroundInfo: blues.blue500,
|
|
597
|
-
/**
|
|
598
|
-
* Info Announcer
|
|
599
|
-
*/
|
|
600
|
-
backgroundInfoLight: blues.blue50,
|
|
601
|
-
/**
|
|
602
|
-
* Success Snackbar
|
|
603
|
-
*/
|
|
604
|
-
backgroundSuccess: greens.green400,
|
|
605
|
-
/**
|
|
606
|
-
* Success / Payment Announcer
|
|
607
|
-
*/
|
|
608
|
-
backgroundSuccessLight: greens.green50,
|
|
609
|
-
/**
|
|
610
|
-
* Critical error Snackbar
|
|
611
|
-
*/
|
|
612
|
-
backgroundError: reds.red500,
|
|
613
|
-
/**
|
|
614
|
-
* Critical error Announcer
|
|
615
|
-
*/
|
|
616
|
-
backgroundErrorLight: reds.red50,
|
|
617
|
-
/**
|
|
618
|
-
* Warning Snackbar
|
|
619
|
-
*/
|
|
620
|
-
backgroundWarning: oranges.orange300,
|
|
621
|
-
/**
|
|
622
|
-
* Warning Announcer
|
|
623
|
-
*/
|
|
624
|
-
backgroundWarningLight: oranges.orange50,
|
|
625
|
-
/**
|
|
626
|
-
* Appwrapper header, customized for verticals
|
|
627
|
-
*/
|
|
628
|
-
backgroundAppwrapper: verticals.vertical100,
|
|
629
|
-
/**
|
|
630
|
-
* Layer 1 (background) or layer 2 (container)
|
|
631
|
-
*/
|
|
632
|
-
backgroundPrimary: grays.gray0,
|
|
633
|
-
/**
|
|
634
|
-
* Background for default snackbar
|
|
635
|
-
*/
|
|
636
|
-
backgroundInverted: grays.gray900,
|
|
637
|
-
/**
|
|
638
|
-
* Layer 1 (background) or layer 2 (container). Often used for neutral announcer
|
|
639
|
-
*/
|
|
640
|
-
backgroundSecondary: grays.gray50,
|
|
641
|
-
/**
|
|
642
|
-
* Overlay layer: 50% black for popup/drawer
|
|
643
|
-
*/
|
|
644
|
-
backgroundOverlay: grays.gray900 + '80',
|
|
645
|
-
/**
|
|
646
|
-
* White background with 10% opacity
|
|
647
|
-
*/
|
|
648
|
-
backgroundOverlayInverted: grays.gray0 + '1A',
|
|
649
|
-
/**
|
|
650
|
-
* Layer 3 over secondary background
|
|
651
|
-
*/
|
|
652
|
-
backgroundTertiary: grays.gray75,
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* Chotot's original Yellow, used for banner or illustrations
|
|
656
|
-
*/
|
|
657
|
-
backgroundChotot: verticals.vertical100,
|
|
658
|
-
/**
|
|
659
|
-
* Background color for disabled elements
|
|
660
|
-
*/
|
|
661
|
-
backgroundDisabled: grays.gray400,
|
|
662
|
-
/**
|
|
663
|
-
* Brand text color
|
|
664
|
-
*/
|
|
665
|
-
textBrand: verticals.vertical400,
|
|
666
|
-
/**
|
|
667
|
-
* Primary body copy; Headers, text button
|
|
668
|
-
*/
|
|
669
|
-
textPrimary: grays.gray900,
|
|
670
|
-
/**
|
|
671
|
-
* Secondary copy / Help text, often used in conjunction with bold text-primary
|
|
672
|
-
*/
|
|
673
|
-
textSecondary: grays.gray600,
|
|
674
|
-
/**
|
|
675
|
-
* Tertiary copy; Help text
|
|
676
|
-
*/
|
|
677
|
-
textTertiary: grays.gray400,
|
|
678
|
-
/**
|
|
679
|
-
* Link button color
|
|
680
|
-
*/
|
|
681
|
-
textLink: blues.blue500,
|
|
682
|
-
/**
|
|
683
|
-
* Information messages. Used for small text with no interaction
|
|
684
|
-
*/
|
|
685
|
-
textInfo: blues.blue500,
|
|
686
|
-
/**
|
|
687
|
-
* Success message. Used for small text with no interaction
|
|
688
|
-
*/
|
|
689
|
-
textSuccess: greens.green400,
|
|
690
|
-
/**
|
|
691
|
-
* Error message
|
|
692
|
-
*/
|
|
693
|
-
textError: reds.red500,
|
|
694
|
-
/**
|
|
695
|
-
* Text color for critical messages. Used for small text with no interaction
|
|
696
|
-
*/
|
|
697
|
-
textWarning: oranges.orange400,
|
|
698
|
-
/**
|
|
699
|
-
* Disabled text color
|
|
700
|
-
*/
|
|
701
|
-
textDisabled: grays.gray200,
|
|
702
|
-
/**
|
|
703
|
-
* Text on color background
|
|
704
|
-
*/
|
|
705
|
-
textBlank: grays.gray0,
|
|
706
|
-
/**
|
|
707
|
-
* White text with 75% opacity
|
|
708
|
-
*/
|
|
709
|
-
textOverlay: grays.gray0 + 'BF',
|
|
710
|
-
/**
|
|
711
|
-
* White text with 50% opacity
|
|
712
|
-
*/
|
|
713
|
-
textOverlaySecondary: grays.gray0 + '80',
|
|
714
|
-
/**
|
|
715
|
-
* Primary button solid background color
|
|
716
|
-
*/
|
|
717
|
-
textOnBackground: grays.gray900,
|
|
718
|
-
/**
|
|
719
|
-
* Primary button solid background color
|
|
720
|
-
*/
|
|
721
|
-
textChotot: verticals.vertical100,
|
|
722
|
-
/**
|
|
723
|
-
* Primary button solid background color
|
|
724
|
-
*/
|
|
725
|
-
buttonPrimary: verticals.vertical100,
|
|
726
|
-
/**
|
|
727
|
-
* Primary info button background color
|
|
728
|
-
*/
|
|
729
|
-
buttonInfo: blues.blue500,
|
|
730
|
-
/**
|
|
731
|
-
* Primary success button background color
|
|
732
|
-
*/
|
|
733
|
-
buttonSuccess: greens.green400,
|
|
734
|
-
/**
|
|
735
|
-
* Primary danger button background color
|
|
736
|
-
*/
|
|
737
|
-
buttonError: reds.red500,
|
|
738
|
-
/**
|
|
739
|
-
* Chotot brand button background color
|
|
740
|
-
*/
|
|
741
|
-
buttonChotot: verticals.vertical100,
|
|
742
|
-
/**
|
|
743
|
-
* Tertiary button border and text color
|
|
744
|
-
*/
|
|
745
|
-
buttonBlank: grays.gray0,
|
|
746
|
-
/**
|
|
747
|
-
* Disabled state color for all buttons
|
|
748
|
-
*/
|
|
749
|
-
buttonDisabled: grays.gray200,
|
|
750
|
-
/**
|
|
751
|
-
* Primary button solid background color
|
|
752
|
-
*/
|
|
753
|
-
buttonAppwrapper: verticals.vertical100,
|
|
754
|
-
/**
|
|
755
|
-
* Secondary button tonal background color
|
|
756
|
-
*/
|
|
757
|
-
buttonSecondary: verticals.vertical50,
|
|
758
|
-
/**
|
|
759
|
-
* Secondary info button background color
|
|
760
|
-
*/
|
|
761
|
-
buttonTonalInfo: blues.blue50,
|
|
762
|
-
/**
|
|
763
|
-
* Secondary success button border and text color
|
|
764
|
-
*/
|
|
765
|
-
buttonTonalSuccess: greens.green50,
|
|
766
|
-
/**
|
|
767
|
-
* Secondary danger button background color
|
|
768
|
-
*/
|
|
769
|
-
buttonTonalError: reds.red50,
|
|
770
|
-
/**
|
|
771
|
-
* Secondary neutral button background color
|
|
772
|
-
*/
|
|
773
|
-
buttonTonalNeutral: grays.gray50,
|
|
774
|
-
/**
|
|
775
|
-
* Used for divider or card stroke
|
|
776
|
-
*/
|
|
777
|
-
borderThin: grays.gray75,
|
|
778
|
-
/**
|
|
779
|
-
* Border for inputs and buttons
|
|
780
|
-
*/
|
|
781
|
-
borderRegular: grays.gray100,
|
|
782
|
-
/**
|
|
783
|
-
* Hover border
|
|
784
|
-
*/
|
|
785
|
-
borderBold: grays.gray400,
|
|
786
|
-
/**
|
|
787
|
-
* Focus or selected state of inputs
|
|
788
|
-
*/
|
|
789
|
-
borderActive: verticals.vertical100,
|
|
790
|
-
/**
|
|
791
|
-
* White border for badge / labels
|
|
792
|
-
*/
|
|
793
|
-
borderBlank: grays.gray0,
|
|
794
|
-
/**
|
|
795
|
-
* Border customized by verticals
|
|
796
|
-
*/
|
|
797
|
-
borderBrand: verticals.vertical100,
|
|
798
|
-
/**
|
|
799
|
-
* Info state color for borders text
|
|
800
|
-
*/
|
|
801
|
-
borderInfo: blues.blue500,
|
|
802
|
-
/**
|
|
803
|
-
* Success state color for borders text
|
|
804
|
-
*/
|
|
805
|
-
borderSuccess: greens.green400,
|
|
806
|
-
/**
|
|
807
|
-
* Error state color for borders text
|
|
808
|
-
*/
|
|
809
|
-
borderError: reds.red500,
|
|
810
|
-
/**
|
|
811
|
-
* Disabled state color for borders
|
|
812
|
-
*/
|
|
813
|
-
borderDisabled: grays.gray200,
|
|
814
|
-
/**
|
|
815
|
-
* Border color
|
|
816
|
-
*/
|
|
817
|
-
borderBlack: grays.gray900,
|
|
818
|
-
/**
|
|
819
|
-
* Used for divider
|
|
820
|
-
*/
|
|
821
|
-
borderDivider: grays.gray50,
|
|
822
|
-
/**
|
|
823
|
-
* White border with 50% opacity
|
|
824
|
-
*/
|
|
825
|
-
borderOverlay: grays.gray0 + '80',
|
|
826
|
-
/**
|
|
827
|
-
* Backup color, currently not in used
|
|
828
|
-
*/
|
|
829
|
-
borderWarning: oranges.orange300,
|
|
830
|
-
/**
|
|
831
|
-
* Brand color for icons
|
|
832
|
-
*/
|
|
833
|
-
iconBrand: verticals.vertical300,
|
|
834
|
-
/**
|
|
835
|
-
* Primary icons, often used with primary text
|
|
836
|
-
*/
|
|
837
|
-
iconPrimary: grays.gray900,
|
|
838
|
-
/**
|
|
839
|
-
* Secondary icons, often used with secondary text
|
|
840
|
-
*/
|
|
841
|
-
iconSecondary: grays.gray600,
|
|
842
|
-
/**
|
|
843
|
-
* Tertiary icons, often used with tertiary text
|
|
844
|
-
*/
|
|
845
|
-
iconTertiary: grays.gray400,
|
|
846
|
-
/**
|
|
847
|
-
* Icons on interactive colors
|
|
848
|
-
*/
|
|
849
|
-
iconBlank: grays.gray0,
|
|
850
|
-
/**
|
|
851
|
-
* Icons on interactive colors
|
|
852
|
-
*/
|
|
853
|
-
iconInfo: blues.blue500,
|
|
854
|
-
/**
|
|
855
|
-
* Icons on interactive colors
|
|
856
|
-
*/
|
|
857
|
-
iconSuccess: greens.green400,
|
|
858
|
-
|
|
859
|
-
/**
|
|
860
|
-
* Icons on interactive colors
|
|
861
|
-
*/
|
|
862
|
-
iconError: reds.red500,
|
|
863
|
-
/**
|
|
864
|
-
* Icons for warning case
|
|
865
|
-
*/
|
|
866
|
-
iconWarning: oranges.orange300,
|
|
867
|
-
/**
|
|
868
|
-
* Icons on interactive colors
|
|
869
|
-
*/
|
|
870
|
-
iconChotot: verticals.vertical300,
|
|
871
|
-
/**
|
|
872
|
-
* Icons on interactive colors
|
|
873
|
-
*/
|
|
874
|
-
iconChototBold: verticals.vertical400,
|
|
875
|
-
/**
|
|
876
|
-
* Disabled state for icons
|
|
877
|
-
*/
|
|
878
|
-
iconDisabled: grays.gray200,
|
|
879
|
-
/**
|
|
880
|
-
* Dynamic brand icons color
|
|
881
|
-
*/
|
|
882
|
-
iconOnBackground: grays.gray900,
|
|
883
|
-
/**
|
|
884
|
-
* Hover color for “button-secondary”
|
|
885
|
-
*/
|
|
886
|
-
interactionBrandHover: verticals.vertical75,
|
|
887
|
-
/**
|
|
888
|
-
* Active color for “button-button-secondary”
|
|
889
|
-
*/
|
|
890
|
-
interactionBrandPressed: verticals.vertical200,
|
|
891
|
-
/**
|
|
892
|
-
* Active color for “button-button-secondary”
|
|
893
|
-
*/
|
|
894
|
-
interactionBrandLightHover: verticals.vertical50,
|
|
895
|
-
/**
|
|
896
|
-
* Active color for “button-button-secondary”
|
|
897
|
-
*/
|
|
898
|
-
interactionBrandLightPressed: verticals.vertical75,
|
|
899
|
-
/**
|
|
900
|
-
* Information
|
|
901
|
-
*/
|
|
902
|
-
interactionInfoHover: blues.blue400,
|
|
903
|
-
/**
|
|
904
|
-
* Information
|
|
905
|
-
*/
|
|
906
|
-
interactionInfoPressed: blues.blue600,
|
|
907
|
-
/**
|
|
908
|
-
* Subtle background color for “support-info”
|
|
909
|
-
*/
|
|
910
|
-
interactionInfoLightHover: blues.blue75,
|
|
911
|
-
/**
|
|
912
|
-
* Subtle background color for “support-info”
|
|
913
|
-
*/
|
|
914
|
-
interactionInfoLightPressed: blues.blue100,
|
|
915
|
-
/**
|
|
916
|
-
* Success
|
|
917
|
-
*/
|
|
918
|
-
interactionSuccessHover: greens.green300,
|
|
919
|
-
/**
|
|
920
|
-
* Success
|
|
921
|
-
*/
|
|
922
|
-
interactionSuccessPressed: greens.green500,
|
|
923
|
-
/**
|
|
924
|
-
* Success
|
|
925
|
-
*/
|
|
926
|
-
interactionSuccessLightHover: greens.green75,
|
|
927
|
-
/**
|
|
928
|
-
* Success
|
|
929
|
-
*/
|
|
930
|
-
interactionSuccessLightPressed: greens.green100,
|
|
931
|
-
/**
|
|
932
|
-
* Error
|
|
933
|
-
*/
|
|
934
|
-
interactionErrorHover: reds.red400,
|
|
935
|
-
/**
|
|
936
|
-
* Error
|
|
937
|
-
*/
|
|
938
|
-
interactionErrorPressed: reds.red600,
|
|
939
|
-
/**
|
|
940
|
-
* Subtle background color for “support-error”
|
|
941
|
-
*/
|
|
942
|
-
interactionErrorLightHover: reds.red75,
|
|
943
|
-
/**
|
|
944
|
-
* Subtle background color for “support-error”
|
|
945
|
-
*/
|
|
946
|
-
interactionErrorLightPressed: reds.red100,
|
|
947
|
-
/**
|
|
948
|
-
* Hover color for “button-tertiary”
|
|
949
|
-
*/
|
|
950
|
-
interactionNeutralHover: grays.gray600,
|
|
951
|
-
/**
|
|
952
|
-
* Pressed color for “button-tertiary”
|
|
953
|
-
*/
|
|
954
|
-
interactionNeutralPressed: grays.gray700,
|
|
955
|
-
/**
|
|
956
|
-
* Hover color for “button-tertiary”
|
|
957
|
-
*/
|
|
958
|
-
interactionNeutralLightHover: grays.gray75,
|
|
959
|
-
/**
|
|
960
|
-
* Active color for “button-tertiary”
|
|
961
|
-
*/
|
|
962
|
-
interactionNeutralLightPressed: grays.gray100,
|
|
963
|
-
/**
|
|
964
|
-
* For more flexibility in design
|
|
965
|
-
*/
|
|
966
|
-
interactionChototHover: yellows.yellow75,
|
|
967
|
-
/**
|
|
968
|
-
* For more flexibility in design
|
|
969
|
-
*/
|
|
970
|
-
interactionChototPressed: yellows.yellow200,
|
|
971
|
-
/**
|
|
972
|
-
* Hover color for primary color
|
|
973
|
-
*/
|
|
974
|
-
interactionPrimaryHover: grays.gray50,
|
|
975
|
-
/**
|
|
976
|
-
* Hover color for warning color
|
|
977
|
-
*/
|
|
978
|
-
interactionWarningHover: oranges.orange200,
|
|
979
|
-
/**
|
|
980
|
-
* Pressed color for warning color
|
|
981
|
-
*/
|
|
982
|
-
interactionWarningPressed: oranges.orange400,
|
|
983
|
-
/**
|
|
984
|
-
* Hover color for warning light color
|
|
985
|
-
*/
|
|
986
|
-
interactionWarningLightHover: oranges.orange75,
|
|
987
|
-
/**
|
|
988
|
-
* Pressed color for warning light color
|
|
989
|
-
*/
|
|
990
|
-
interactionWarningLightPressed: oranges.orange100,
|
|
991
|
-
};
|
|
992
|
-
|
|
993
|
-
/**
|
|
994
|
-
* theme.colors
|
|
995
|
-
*
|
|
996
|
-
* color, background-color, border-color
|
|
997
|
-
*/
|
|
998
|
-
const colors = {
|
|
999
|
-
...blues,
|
|
1000
|
-
...oranges,
|
|
1001
|
-
...greens,
|
|
1002
|
-
...reds,
|
|
1003
|
-
...grays,
|
|
1004
|
-
...yellows,
|
|
1005
|
-
...verticals,
|
|
1006
|
-
...semantics,
|
|
1007
|
-
...alias,
|
|
1008
|
-
};
|
|
1009
|
-
|
|
1010
|
-
/**
|
|
1011
|
-
* theme.borderWidths
|
|
1012
|
-
*
|
|
1013
|
-
* border-width
|
|
1014
|
-
*/
|
|
1015
|
-
const borderWidths = {
|
|
1016
|
-
none: '0px',
|
|
1017
|
-
sm: '1px',
|
|
1018
|
-
md: '2px',
|
|
1019
|
-
lg: '3px',
|
|
1020
|
-
xl: '4px',
|
|
1021
|
-
strokeDivider: '1px',
|
|
1022
|
-
strokeAction: '2px',
|
|
1023
|
-
strokeEmphasize: '3px',
|
|
1024
|
-
};
|
|
1025
|
-
|
|
1026
|
-
/**
|
|
1027
|
-
* theme.borderStyles
|
|
1028
|
-
*
|
|
1029
|
-
* border-style
|
|
1030
|
-
*/
|
|
1031
|
-
const borderStyles = {
|
|
1032
|
-
none: 'none',
|
|
1033
|
-
solid: 'solid',
|
|
1034
|
-
};
|
|
1035
|
-
|
|
1036
|
-
/**
|
|
1037
|
-
* theme.borders
|
|
1038
|
-
*
|
|
1039
|
-
* border, border-top, border-right, border-bottom, border-left
|
|
1040
|
-
*/
|
|
1041
|
-
const borders = {
|
|
1042
|
-
none: '0',
|
|
1043
|
-
sm: `${borderWidths.sm} ${borderStyles.solid} ${colors.borderThin}`,
|
|
1044
|
-
};
|
|
1045
|
-
|
|
1046
|
-
/**
|
|
1047
|
-
* theme.radii
|
|
1048
|
-
*
|
|
1049
|
-
* border-radius
|
|
1050
|
-
*/
|
|
1051
|
-
const radii = /** @type {const} */ ({
|
|
1052
|
-
// ...radiusScales,
|
|
1053
|
-
/**
|
|
1054
|
-
* No border radius
|
|
1055
|
-
*/
|
|
1056
|
-
none: '0',
|
|
1057
|
-
/**
|
|
1058
|
-
* Used for images, thumbnails
|
|
1059
|
-
*/
|
|
1060
|
-
xs: '2px',
|
|
1061
|
-
/**
|
|
1062
|
-
* Used for buttons
|
|
1063
|
-
*/
|
|
1064
|
-
sm: '4px',
|
|
1065
|
-
/**
|
|
1066
|
-
* Used for inputs, cards
|
|
1067
|
-
*/
|
|
1068
|
-
$sm: '6px',
|
|
1069
|
-
/**
|
|
1070
|
-
* Unused
|
|
1071
|
-
*/
|
|
1072
|
-
md: '8px',
|
|
1073
|
-
/**
|
|
1074
|
-
* Unused
|
|
1075
|
-
*/
|
|
1076
|
-
lg: '12px',
|
|
1077
|
-
/**
|
|
1078
|
-
* Used for c2c home page thumbnails
|
|
1079
|
-
*/
|
|
1080
|
-
xl: '20px',
|
|
1081
|
-
/**
|
|
1082
|
-
* Used for pill buttons
|
|
1083
|
-
*
|
|
1084
|
-
* '9999px'
|
|
1085
|
-
*/
|
|
1086
|
-
pill: '9999px',
|
|
1087
|
-
/**
|
|
1088
|
-
* Used for icons frames
|
|
1089
|
-
*
|
|
1090
|
-
* '100%'
|
|
1091
|
-
*/
|
|
1092
|
-
circle: '100%',
|
|
1093
|
-
});
|
|
1094
|
-
|
|
1095
|
-
/**
|
|
1096
|
-
* theme.shadows
|
|
1097
|
-
*
|
|
1098
|
-
* box-shadow, text-shadow
|
|
1099
|
-
* @type {{
|
|
1100
|
-
none: 'none',
|
|
1101
|
-
sm: '0px 2px 4px rgba(0,0,0,.5)',
|
|
1102
|
-
md: '0px 0px 8px rgba(0,0,0,.3)',
|
|
1103
|
-
lg: '2px 2px 14px rgba(0,0,0,.3)',
|
|
1104
|
-
}}
|
|
1105
|
-
*/
|
|
1106
|
-
const shadows = {
|
|
1107
|
-
none: 'none',
|
|
1108
|
-
sm: '0px 2px 4px rgba(0,0,0,.5)',
|
|
1109
|
-
md: '0px 0px 8px rgba(0,0,0,.3)',
|
|
1110
|
-
lg: '2px 2px 14px rgba(0,0,0,.3)',
|
|
1111
|
-
};
|
|
1112
|
-
|
|
1113
|
-
/**
|
|
1114
|
-
* theme.letterSpacings
|
|
1115
|
-
*
|
|
1116
|
-
* letter-spacing
|
|
1117
|
-
*/
|
|
1118
|
-
const letterSpacings = [];
|
|
1119
|
-
|
|
1120
|
-
/**
|
|
1121
|
-
* theme.zIndices
|
|
1122
|
-
*
|
|
1123
|
-
* z-index
|
|
1124
|
-
* @type {{
|
|
1125
|
-
initial: 'auto',
|
|
1126
|
-
neutral: 0,
|
|
1127
|
-
up: 1,
|
|
1128
|
-
down: -1,
|
|
1129
|
-
notification: 1900,
|
|
1130
|
-
tooltip: 1800,
|
|
1131
|
-
modal: 1600,
|
|
1132
|
-
dropdown: 1700,
|
|
1133
|
-
}}
|
|
1134
|
-
*/
|
|
1135
|
-
const zIndices = {
|
|
1136
|
-
initial: 'auto',
|
|
1137
|
-
neutral: 0,
|
|
1138
|
-
up: 1,
|
|
1139
|
-
down: -1,
|
|
1140
|
-
notification: 1900,
|
|
1141
|
-
tooltip: 1800,
|
|
1142
|
-
modal: 1600,
|
|
1143
|
-
dropdown: 1700,
|
|
1144
|
-
};
|
|
1145
|
-
|
|
1146
|
-
/**
|
|
1147
|
-
* theme.gradients
|
|
1148
|
-
*
|
|
1149
|
-
* background-image
|
|
1150
|
-
*
|
|
1151
|
-
* @beta This key is NOT standard styled-system's theme specs (hence not applicable for `sx()`)
|
|
1152
|
-
* @type {{
|
|
1153
|
-
toDark: 'linear-gradient(180deg, rgba(0, 0, 0, 0.00) 3%, #101426 100%)',
|
|
1154
|
-
toLight: 'linear-gradient(0deg, #FFFFFF 0%, rgba(255, 255, 255, 0.00) 100%)',
|
|
1155
|
-
}}
|
|
1156
|
-
*/
|
|
1157
|
-
const gradients = {
|
|
1158
|
-
toDark: 'linear-gradient(180deg, rgba(0, 0, 0, 0.00) 3%, #101426 100%)',
|
|
1159
|
-
toLight: 'linear-gradient(0deg, #FFFFFF 0%, rgba(255, 255, 255, 0.00) 100%)',
|
|
1160
|
-
};
|
|
1161
|
-
|
|
1162
|
-
/**
|
|
1163
|
-
* theme.durations
|
|
1164
|
-
*
|
|
1165
|
-
* transition-duration, animation-duration, (js) setTimeout, setInterval
|
|
1166
|
-
*
|
|
1167
|
-
* Unit-less value in ms
|
|
1168
|
-
*
|
|
1169
|
-
* @beta This key is NOT standard styled-system's theme specs (hence not applicable for `sx()`).
|
|
1170
|
-
*
|
|
1171
|
-
* @type {{
|
|
1172
|
-
none: 0,
|
|
1173
|
-
xxxs: 100,
|
|
1174
|
-
xxs: 150,
|
|
1175
|
-
xs: 300,
|
|
1176
|
-
sm: 500,
|
|
1177
|
-
md: 1000,
|
|
1178
|
-
lg: 2000,
|
|
1179
|
-
xl: 4000,
|
|
1180
|
-
xxl: 6000,
|
|
1181
|
-
xxxl: 8000,
|
|
1182
|
-
xxxxl: 10000,
|
|
1183
|
-
}}
|
|
1184
|
-
*/
|
|
1185
|
-
const durations = {
|
|
1186
|
-
none: 0,
|
|
1187
|
-
xxxs: 100,
|
|
1188
|
-
xxs: 150,
|
|
1189
|
-
xs: 300,
|
|
1190
|
-
sm: 500,
|
|
1191
|
-
md: 1000,
|
|
1192
|
-
lg: 2000,
|
|
1193
|
-
xl: 4000,
|
|
1194
|
-
xxl: 6000,
|
|
1195
|
-
xxxl: 8000,
|
|
1196
|
-
xxxxl: 10000,
|
|
1197
|
-
};
|
|
1198
|
-
|
|
1199
|
-
const typo = {
|
|
1200
|
-
display: {
|
|
1201
|
-
page: {
|
|
1202
|
-
font: `${fontSizes.xxxl}/${lineHeights.$xl} ${fonts.heading}`,
|
|
1203
|
-
fontWeight: fontWeights.bold,
|
|
1204
|
-
},
|
|
1205
|
-
section: {
|
|
1206
|
-
font: `${fontSizes.xxl}/${lineHeights.$lg} ${fonts.heading}`,
|
|
1207
|
-
fontWeight: fontWeights.bold,
|
|
1208
|
-
},
|
|
1209
|
-
caption: {
|
|
1210
|
-
font: `${fontSizes.xl}/${lineHeights.$mdl} ${fonts.heading}`,
|
|
1211
|
-
fontWeight: fontWeights.bold,
|
|
1212
|
-
},
|
|
1213
|
-
annotation: {
|
|
1214
|
-
font: `${fontSizes.lg}/1.625rem ${fonts.heading}`,
|
|
1215
|
-
fontWeight: fontWeights.bold,
|
|
1216
|
-
},
|
|
1217
|
-
},
|
|
1218
|
-
header: {
|
|
1219
|
-
page: {
|
|
1220
|
-
font: `${fontSizes.xl}/${lineHeights.$mdl} ${fonts.heading}`,
|
|
1221
|
-
fontWeight: fontWeights.semiBold,
|
|
1222
|
-
},
|
|
1223
|
-
section: {
|
|
1224
|
-
font: `${fontSizes.md}/${lineHeights.$md} ${fonts.heading}`,
|
|
1225
|
-
fontWeight: fontWeights.semiBold,
|
|
1226
|
-
},
|
|
1227
|
-
caption: {
|
|
1228
|
-
font: `${fontSizes.sm}/${lineHeights.$sm} ${fonts.heading}`,
|
|
1229
|
-
fontWeight: fontWeights.semiBold,
|
|
1230
|
-
},
|
|
1231
|
-
annotation: {
|
|
1232
|
-
font: `${fontSizes.xs}/${lineHeights.$xsm} ${fonts.heading}`,
|
|
1233
|
-
fontWeight: fontWeights.semiBold,
|
|
1234
|
-
},
|
|
1235
|
-
},
|
|
1236
|
-
label: {
|
|
1237
|
-
page: {
|
|
1238
|
-
font: `${fontSizes.md}/${lineHeights.$md} ${fonts.body}`,
|
|
1239
|
-
fontWeight: fontWeights.bold,
|
|
1240
|
-
},
|
|
1241
|
-
section: {
|
|
1242
|
-
font: `${fontSizes.sm}/${lineHeights.$sm} ${fonts.body}`,
|
|
1243
|
-
fontWeight: fontWeights.bold,
|
|
1244
|
-
},
|
|
1245
|
-
caption: {
|
|
1246
|
-
font: `${fontSizes.xs}/${lineHeights.$xsm} ${fonts.body}`,
|
|
1247
|
-
fontWeight: fontWeights.bold,
|
|
1248
|
-
},
|
|
1249
|
-
annotation: {
|
|
1250
|
-
font: `${fontSizes.xxs}/${lineHeights.$xs} ${fonts.body}`,
|
|
1251
|
-
fontWeight: fontWeights.bold,
|
|
1252
|
-
},
|
|
1253
|
-
},
|
|
1254
|
-
body: {
|
|
1255
|
-
page: {
|
|
1256
|
-
font: `${fontSizes.md}/${lineHeights.$md} ${fonts.body}`,
|
|
1257
|
-
fontWeight: fontWeights.normal,
|
|
1258
|
-
},
|
|
1259
|
-
section: {
|
|
1260
|
-
font: `${fontSizes.sm}/${lineHeights.$sm} ${fonts.body}`,
|
|
1261
|
-
fontWeight: fontWeights.normal,
|
|
1262
|
-
},
|
|
1263
|
-
caption: {
|
|
1264
|
-
font: `${fontSizes.xs}/${lineHeights.$xsm} ${fonts.body}`,
|
|
1265
|
-
fontWeight: fontWeights.normal,
|
|
1266
|
-
},
|
|
1267
|
-
annotation: {
|
|
1268
|
-
font: `${fontSizes.xxs}/${lineHeights.$xs} ${fonts.body}`,
|
|
1269
|
-
fontWeight: fontWeights.normal,
|
|
1270
|
-
},
|
|
1271
|
-
},
|
|
1272
|
-
note: {
|
|
1273
|
-
page: {
|
|
1274
|
-
font: `${fontSizes.sm}/${lineHeights.$sm} ${fonts.body}`,
|
|
1275
|
-
fontWeight: fontWeights.normal,
|
|
1276
|
-
fontStyle: 'italic',
|
|
1277
|
-
},
|
|
1278
|
-
section: {
|
|
1279
|
-
font: `${fontSizes.xs}/${lineHeights.$sm} ${fonts.body}`,
|
|
1280
|
-
fontWeight: fontWeights.normal,
|
|
1281
|
-
fontStyle: 'italic',
|
|
1282
|
-
},
|
|
1283
|
-
caption: {
|
|
1284
|
-
font: `${fontSizes.xxs}/${lineHeights.$xs} ${fonts.body}`,
|
|
1285
|
-
fontWeight: fontWeights.normal,
|
|
1286
|
-
fontStyle: 'italic',
|
|
1287
|
-
},
|
|
1288
|
-
},
|
|
1289
|
-
tagline: {
|
|
1290
|
-
section: {
|
|
1291
|
-
font: `${fontSizes.md}/${lineHeights.$sm} ${fonts.body}`,
|
|
1292
|
-
fontWeight: fontWeights.medium,
|
|
1293
|
-
},
|
|
1294
|
-
caption: {
|
|
1295
|
-
font: `${fontSizes.sm}/${lineHeights.$sm} ${fonts.body}`,
|
|
1296
|
-
fontWeight: fontWeights.medium,
|
|
1297
|
-
},
|
|
1298
|
-
annotation: {
|
|
1299
|
-
font: `${fontSizes.xs}/${lineHeights.$xsm} ${fonts.body}`,
|
|
1300
|
-
fontWeight: fontWeights.medium,
|
|
1301
|
-
},
|
|
1302
|
-
footext: {
|
|
1303
|
-
font: `${fontSizes.xxs}/${lineHeights.$xs} ${fonts.body}`,
|
|
1304
|
-
fontWeight: fontWeights.medium,
|
|
1305
|
-
},
|
|
1306
|
-
},
|
|
1307
|
-
};
|
|
1308
|
-
|
|
1309
|
-
/**
|
|
1310
|
-
* The theme object
|
|
1311
|
-
*
|
|
1312
|
-
* Keys are sorted in alphabetically order
|
|
1313
|
-
*/
|
|
1314
|
-
const theme = Object.freeze({
|
|
1315
|
-
borders,
|
|
1316
|
-
borderStyles,
|
|
1317
|
-
borderWidths,
|
|
1318
|
-
breakpoints,
|
|
1319
|
-
colors,
|
|
1320
|
-
durations,
|
|
1321
|
-
fonts,
|
|
1322
|
-
fontSizes,
|
|
1323
|
-
fontWeights,
|
|
1324
|
-
gradients,
|
|
1325
|
-
letterSpacings,
|
|
1326
|
-
lineHeights,
|
|
1327
|
-
mediaQueries,
|
|
1328
|
-
radii,
|
|
1329
|
-
shadows,
|
|
1330
|
-
sizes,
|
|
1331
|
-
space,
|
|
1332
|
-
zIndices,
|
|
1333
|
-
typo,
|
|
1334
|
-
});
|
|
1335
|
-
|
|
1336
|
-
export default theme;
|