@lunit/design-system 2.1.0 → 2.2.3
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/.babelrc.json +1 -1
- package/README.md +22 -21
- package/dist/cjs/components/Alert/index.js +1 -1
- package/dist/cjs/components/Alert/index.js.map +1 -1
- package/dist/cjs/components/Button/index.js +1 -1
- package/dist/cjs/components/Button/index.js.map +1 -1
- package/dist/cjs/components/Checkbox/index.js +1 -1
- package/dist/cjs/components/Checkbox/index.js.map +1 -1
- package/dist/cjs/components/Chip/index.js +1 -1
- package/dist/cjs/components/Chip/index.js.map +1 -1
- package/dist/cjs/components/DataTable/index.js.map +1 -1
- package/dist/cjs/components/DatePicker/index.js.map +1 -1
- package/dist/cjs/components/Dialog/index.js +1 -1
- package/dist/cjs/components/Dialog/index.js.map +1 -1
- package/dist/cjs/components/Dropdown/index.js +1 -1
- package/dist/cjs/components/Dropdown/index.js.map +1 -1
- package/dist/cjs/components/FormLabel/index.js +1 -1
- package/dist/cjs/components/FormLabel/index.js.map +1 -1
- package/dist/cjs/components/Radio/index.js +1 -1
- package/dist/cjs/components/Radio/index.js.map +1 -1
- package/dist/cjs/components/RadioGroup/index.js.map +1 -1
- package/dist/cjs/components/TextField/index.js +1 -1
- package/dist/cjs/components/TextField/index.js.map +1 -1
- package/dist/cjs/components/Toggle/index.js +1 -1
- package/dist/cjs/components/Toggle/index.js.map +1 -1
- package/dist/cjs/components/ToggleButton/index.js +1 -1
- package/dist/cjs/components/ToggleButton/index.js.map +1 -1
- package/dist/cjs/components/Tooltip/index.js.map +1 -1
- package/dist/cjs/components/Typography/index.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/components/Alert/Alert.js +8 -8
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/Alert/Alert.styled.js +26 -26
- package/dist/components/Alert/Alert.styled.js.map +1 -1
- package/dist/components/Alert/Alert.utils.js +9 -9
- package/dist/components/Alert/Alert.utils.js.map +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Button/Button.js +23 -17
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.styled.js +88 -88
- package/dist/components/Button/Button.styled.js.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Button/utils/getButtonPaddingBySizeAndKind.js +9 -9
- package/dist/components/Button/utils/getButtonPaddingBySizeAndKind.js.map +1 -1
- package/dist/components/Button/utils/getHoverStyle.js +1 -1
- package/dist/components/Button/utils/getHoverStyle.js.map +1 -1
- package/dist/components/Button/utils/getIconButtonPaddingBySizeAndKind.js +6 -12
- package/dist/components/Button/utils/getIconButtonPaddingBySizeAndKind.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +9 -9
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chip/Chip.js +29 -26
- package/dist/components/Chip/Chip.js.map +1 -1
- package/dist/components/Chip/Chip.styled.js +52 -52
- package/dist/components/Chip/Chip.styled.js.map +1 -1
- package/dist/components/Chip/consts.js +5 -5
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/DataTable/DataTable.js +1 -1
- package/dist/components/DataTable/index.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Dialog/Dialog.js +18 -18
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/Dialog.styled.js +90 -90
- package/dist/components/Dialog/Dialog.styled.js.map +1 -1
- package/dist/components/Dialog/components/DialogAction.js +6 -6
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +23 -21
- package/dist/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/components/Dropdown/Dropdown.styled.js +85 -86
- package/dist/components/Dropdown/Dropdown.styled.js.map +1 -1
- package/dist/components/Dropdown/DropdownItem.js +14 -14
- package/dist/components/Dropdown/DropdownItem.js.map +1 -1
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/FormLabel/FormLabel.js +1 -1
- package/dist/components/FormLabel/FormLabel.styled.js +2 -2
- package/dist/components/FormLabel/FormLabel.styled.js.map +1 -1
- package/dist/components/FormLabel/index.js +1 -1
- package/dist/components/Radio/Radio.js +8 -8
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/TextField/TextField.js +8 -8
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/TextField.style.js +112 -112
- package/dist/components/TextField/TextField.style.js.map +1 -1
- package/dist/components/TextField/TextFieldIcon.js +2 -2
- package/dist/components/TextField/TextFieldIcon.js.map +1 -1
- package/dist/components/TextField/index.js +1 -1
- package/dist/components/Toast/Toast.js +13 -13
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Toast/Toast.styled.js +26 -26
- package/dist/components/Toast/Toast.utils.js +3 -3
- package/dist/components/Toast/Toast.utils.js.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toggle/Toggle.js +3 -4
- package/dist/components/Toggle/Toggle.js.map +1 -1
- package/dist/components/Toggle/Toggle.styled.js +30 -30
- package/dist/components/Toggle/Toggle.styled.js.map +1 -1
- package/dist/components/Toggle/index.js +1 -1
- package/dist/components/ToggleButton/ToggleButton.js +6 -6
- package/dist/components/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.styled.js +20 -20
- package/dist/components/ToggleButton/ToggleButton.styled.js.map +1 -1
- package/dist/components/ToggleButton/index.js +1 -1
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -1
- package/dist/components/ToggleButtonGroup/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/Typography.js.map +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/foundation/Elevation/index.js +27 -27
- package/dist/foundation/Elevation/utils.js +1 -1
- package/dist/foundation/Elevation/utils.js.map +1 -1
- package/dist/foundation/Typography/index.js +35 -35
- package/dist/foundation/Typography/index.js.map +1 -1
- package/dist/foundation/Typography/tokens.js +136 -136
- package/dist/foundation/Typography/tokens.js.map +1 -1
- package/dist/foundation/colors/base/blue.js +12 -12
- package/dist/foundation/colors/base/green.js +12 -12
- package/dist/foundation/colors/base/grey.js +28 -28
- package/dist/foundation/colors/base/index.js +11 -11
- package/dist/foundation/colors/base/lunitGreen.js +11 -11
- package/dist/foundation/colors/base/lunitTeal.js +12 -12
- package/dist/foundation/colors/base/magenta.js +12 -12
- package/dist/foundation/colors/base/opacity.js +4 -4
- package/dist/foundation/colors/base/orange.js +12 -12
- package/dist/foundation/colors/base/purple.js +12 -12
- package/dist/foundation/colors/base/red.js +12 -12
- package/dist/foundation/colors/base/yellow.js +12 -12
- package/dist/foundation/colors/index.js +119 -121
- package/dist/foundation/colors/index.js.map +1 -1
- package/dist/foundation/colors/token/component.js +184 -212
- package/dist/foundation/colors/token/component.js.map +1 -1
- package/dist/foundation/colors/token/core.js +112 -133
- package/dist/foundation/colors/token/core.js.map +1 -1
- package/dist/foundation/colors/token/index.js +2 -2
- package/dist/foundation/index.js +5 -5
- package/dist/index.js +20 -20
- package/dist/theme.js +6 -6
- package/dist/types/components/Alert/Alert.d.ts +2 -2
- package/dist/types/components/Alert/Alert.styled.d.ts +1 -2
- package/dist/types/components/Alert/Alert.types.d.ts +2 -2
- package/dist/types/components/Alert/Alert.utils.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/Button/Button.styled.d.ts +249 -265
- package/dist/types/components/Button/Button.types.d.ts +16 -16
- package/dist/types/components/Button/index.d.ts +1 -1
- package/dist/types/components/Button/utils/getButtonPaddingBySizeAndKind.d.ts +4 -4
- package/dist/types/components/Button/utils/getHoverStyle.d.ts +2 -1
- package/dist/types/components/Button/utils/getIconButtonPaddingBySizeAndKind.d.ts +4 -4
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/Chip/Chip.d.ts +1 -1
- package/dist/types/components/Chip/Chip.styled.d.ts +6 -79
- package/dist/types/components/Chip/Chip.types.d.ts +15 -14
- package/dist/types/components/Chip/index.d.ts +1 -1
- package/dist/types/components/DataTable/index.d.ts +1 -1
- package/dist/types/components/DatePicker/index.d.ts +1 -1
- package/dist/types/components/Dialog/Dialog.d.ts +11 -11
- package/dist/types/components/Dialog/Dialog.styled.d.ts +3 -4
- package/dist/types/components/Dialog/components/DialogAction.d.ts +2 -2
- package/dist/types/components/Dialog/index.d.ts +2 -2
- package/dist/types/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/types/components/Dropdown/Dropdown.styled.d.ts +4 -39
- package/dist/types/components/Dropdown/Dropdown.types.d.ts +5 -5
- package/dist/types/components/Dropdown/DropdownItem.d.ts +3 -3
- package/dist/types/components/Dropdown/index.d.ts +3 -3
- package/dist/types/components/FormLabel/FormLabel.d.ts +1 -1
- package/dist/types/components/FormLabel/index.d.ts +1 -1
- package/dist/types/components/Radio/Radio.d.ts +1 -1
- package/dist/types/components/Radio/index.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -1
- package/dist/types/components/TextField/TextField.d.ts +2 -2
- package/dist/types/components/TextField/TextField.style.d.ts +3 -4
- package/dist/types/components/TextField/TextField.types.d.ts +6 -6
- package/dist/types/components/TextField/TextFieldIcon.d.ts +2 -2
- package/dist/types/components/TextField/index.d.ts +2 -2
- package/dist/types/components/Toast/Toast.d.ts +2 -2
- package/dist/types/components/Toast/Toast.types.d.ts +3 -3
- package/dist/types/components/Toast/Toast.utils.d.ts +1 -1
- package/dist/types/components/Toast/index.d.ts +2 -2
- package/dist/types/components/Toggle/Toggle.d.ts +1 -1
- package/dist/types/components/Toggle/Toggle.styled.d.ts +2 -2
- package/dist/types/components/Toggle/Toggle.types.d.ts +3 -3
- package/dist/types/components/Toggle/index.d.ts +1 -1
- package/dist/types/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/types/components/ToggleButton/ToggleButton.styled.d.ts +2 -34
- package/dist/types/components/ToggleButton/ToggleButton.types.d.ts +10 -10
- package/dist/types/components/ToggleButton/index.d.ts +1 -1
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/types/components/ToggleButtonGroup/index.d.ts +1 -1
- package/dist/types/components/Tooltip/index.d.ts +1 -1
- package/dist/types/components/Typography/Typography.d.ts +6 -6
- package/dist/types/components/Typography/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/foundation/Elevation/index.d.ts +22 -22
- package/dist/types/foundation/Typography/index.d.ts +78 -78
- package/dist/types/foundation/Typography/tokens.d.ts +69 -69
- package/dist/types/foundation/colors/base/index.d.ts +11 -11
- package/dist/types/foundation/colors/index.d.ts +13 -20
- package/dist/types/foundation/colors/token/component.d.ts +1 -1
- package/dist/types/foundation/colors/token/core.d.ts +1 -1
- package/dist/types/foundation/colors/token/index.d.ts +2 -2
- package/dist/types/foundation/colors/types.d.ts +0 -7
- package/dist/types/foundation/index.d.ts +4 -11
- package/dist/types/foundation/spacing.d.ts +1 -1
- package/dist/types/index.d.ts +20 -20
- package/dist/types/theme.d.ts +1 -1
- package/package.json +22 -26
- package/src/components/Alert/Alert.styled.ts +39 -49
- package/src/components/Alert/Alert.tsx +10 -16
- package/src/components/Alert/Alert.types.ts +2 -2
- package/src/components/Alert/Alert.utils.ts +13 -22
- package/src/components/Alert/index.ts +1 -1
- package/src/components/Button/Button.styled.ts +98 -101
- package/src/components/Button/Button.tsx +71 -69
- package/src/components/Button/Button.types.ts +19 -21
- package/src/components/Button/index.ts +1 -1
- package/src/components/Button/utils/getButtonPaddingBySizeAndKind.ts +13 -13
- package/src/components/Button/utils/getHoverStyle.ts +4 -2
- package/src/components/Button/utils/getIconButtonPaddingBySizeAndKind.ts +10 -19
- package/src/components/Checkbox/Checkbox.tsx +13 -25
- package/src/components/Checkbox/index.ts +1 -1
- package/src/components/Chip/Chip.styled.ts +69 -72
- package/src/components/Chip/Chip.tsx +33 -55
- package/src/components/Chip/Chip.types.ts +18 -24
- package/src/components/Chip/consts.ts +5 -5
- package/src/components/Chip/index.ts +1 -1
- package/src/components/DataTable/DataTable.tsx +2 -2
- package/src/components/DataTable/index.ts +1 -1
- package/src/components/DatePicker/DatePicker.tsx +2 -2
- package/src/components/DatePicker/index.ts +1 -1
- package/src/components/Dialog/Dialog.styled.ts +112 -114
- package/src/components/Dialog/Dialog.tsx +41 -46
- package/src/components/Dialog/components/DialogAction.tsx +8 -8
- package/src/components/Dialog/index.ts +3 -3
- package/src/components/Dropdown/Dropdown.styled.tsx +88 -89
- package/src/components/Dropdown/Dropdown.tsx +29 -30
- package/src/components/Dropdown/Dropdown.types.ts +6 -5
- package/src/components/Dropdown/DropdownItem.tsx +18 -29
- package/src/components/Dropdown/index.ts +3 -7
- package/src/components/FormLabel/FormLabel.styled.ts +3 -3
- package/src/components/FormLabel/FormLabel.tsx +3 -3
- package/src/components/FormLabel/index.ts +1 -1
- package/src/components/Radio/Radio.tsx +12 -29
- package/src/components/Radio/index.ts +1 -1
- package/src/components/RadioGroup/index.ts +1 -1
- package/src/components/TextField/TextField.style.ts +123 -132
- package/src/components/TextField/TextField.tsx +50 -62
- package/src/components/TextField/TextField.types.ts +7 -8
- package/src/components/TextField/TextFieldIcon.tsx +4 -7
- package/src/components/TextField/index.ts +2 -2
- package/src/components/Toast/Toast.styled.ts +26 -26
- package/src/components/Toast/Toast.tsx +14 -28
- package/src/components/Toast/Toast.types.ts +3 -8
- package/src/components/Toast/Toast.utils.ts +5 -8
- package/src/components/Toast/index.tsx +2 -2
- package/src/components/Toggle/Toggle.styled.ts +31 -32
- package/src/components/Toggle/Toggle.tsx +5 -11
- package/src/components/Toggle/Toggle.types.ts +3 -3
- package/src/components/Toggle/index.ts +1 -1
- package/src/components/ToggleButton/ToggleButton.styled.ts +47 -49
- package/src/components/ToggleButton/ToggleButton.tsx +91 -97
- package/src/components/ToggleButton/ToggleButton.types.ts +10 -10
- package/src/components/ToggleButton/index.ts +1 -1
- package/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx +3 -8
- package/src/components/ToggleButtonGroup/index.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +2 -2
- package/src/components/Tooltip/index.ts +1 -1
- package/src/components/Typography/Typography.tsx +7 -10
- package/src/components/Typography/index.ts +1 -1
- package/src/components/index.ts +2 -2
- package/src/foundation/Elevation/index.ts +27 -27
- package/src/foundation/Elevation/utils.ts +14 -8
- package/src/foundation/Typography/index.ts +58 -57
- package/src/foundation/Typography/tokens.ts +138 -138
- package/src/foundation/colors/base/blue.ts +12 -12
- package/src/foundation/colors/base/green.ts +12 -12
- package/src/foundation/colors/base/grey.ts +28 -28
- package/src/foundation/colors/base/index.ts +11 -11
- package/src/foundation/colors/base/lunitGreen.ts +11 -11
- package/src/foundation/colors/base/lunitTeal.ts +12 -12
- package/src/foundation/colors/base/magenta.ts +12 -12
- package/src/foundation/colors/base/opacity.ts +4 -4
- package/src/foundation/colors/base/orange.ts +12 -12
- package/src/foundation/colors/base/purple.ts +12 -12
- package/src/foundation/colors/base/red.ts +12 -12
- package/src/foundation/colors/base/yellow.ts +12 -12
- package/src/foundation/colors/index.ts +119 -120
- package/src/foundation/colors/token/component.ts +185 -213
- package/src/foundation/colors/token/core.ts +113 -134
- package/src/foundation/colors/token/index.ts +2 -2
- package/src/foundation/colors/types.ts +0 -7
- package/src/foundation/index.ts +8 -8
- package/src/foundation/spacing.ts +1 -1
- package/src/index.ts +20 -20
- package/src/stories/GettingStarted.mdx +9 -15
- package/src/stories/components/Alert/Alert.stories.tsx +39 -46
- package/src/stories/components/Button/BasicButton.stories.tsx +68 -59
- package/src/stories/components/Button/ButtonDocs.mdx +17 -41
- package/src/stories/components/Button/Color.stories.tsx +28 -51
- package/src/stories/components/Button/IconButton.stories.tsx +40 -47
- package/src/stories/components/Button/Kind.stories.tsx +100 -213
- package/src/stories/components/CheckBox/BasicCheckbox.stories.tsx +52 -71
- package/src/stories/components/CheckBox/CheckboxDocs.mdx +6 -6
- package/src/stories/components/Chip/Chip.stories.tsx +75 -75
- package/src/stories/components/Chip/ChipDocs.mdx +12 -13
- package/src/stories/components/DataTable/DataTable.stories.tsx +4 -4
- package/src/stories/components/DatePicker/DatePicker.stories.tsx +4 -4
- package/src/stories/components/Dialog/Dialog.stories.tsx +103 -124
- package/src/stories/components/Dialog/DialogDocs.mdx +7 -13
- package/src/stories/components/Dropdown/Dropdown.stories.tsx +96 -82
- package/src/stories/components/Dropdown/DropdownDocs.mdx +275 -0
- package/src/stories/components/Dropdown/DropdownExamples.stories.tsx +40 -47
- package/src/stories/components/Dropdown/DropdownItem.stories.tsx +113 -98
- package/src/stories/components/SelectControl/RadioGroup.stories.tsx +17 -30
- package/src/stories/components/SelectControl/RadioStatus.stories.tsx +16 -23
- package/src/stories/components/SelectControl/Toggle.stories.tsx +33 -78
- package/src/stories/components/TextField/BasicTextField.stories.tsx +44 -60
- package/src/stories/components/TextField/TextFieldDocs.mdx +8 -12
- package/src/stories/components/TextField/TextFieldMulti.stories.tsx +39 -58
- package/src/stories/components/TextField/TextFieldSingle.stories.tsx +74 -121
- package/src/stories/components/TextField/TextFieldSize.stories.tsx +35 -56
- package/src/stories/components/Toast/Toast.stories.tsx +39 -49
- package/src/stories/components/ToggleButton/Basic.stories.tsx +237 -235
- package/src/stories/components/ToggleButton/ToggleButtonDocs.mdx +10 -14
- package/src/stories/components/ToggleButton/ToggleButtonKind.stories.tsx +144 -203
- package/src/stories/components/ToggleButton/WithIcon.stories.tsx +87 -107
- package/src/stories/components/Tooltip/Tooltip.stories.tsx +4 -4
- package/src/stories/foundation/Elevation/Elevation.stories.tsx +48 -73
- package/src/stories/foundation/Elevation/styled.ts +3 -3
- package/src/stories/foundation/Typography/Typography.mdx +9 -13
- package/src/stories/foundation/Typography/Typography.stories.tsx +25 -41
- package/src/stories/foundation/Typography/TypographyGroup.tsx +14 -25
- package/src/stories/foundation/Typography/const.ts +13 -19
- package/src/stories/foundation/colors/ColorSystem.tsx +42 -40
- package/src/stories/foundation/colors/Colors.stories.tsx +40 -41
- package/src/stories/foundation/colors/Docs.mdx +73 -77
- package/src/stories/foundation/colors/Mui.stories.tsx +6 -8
- package/src/stories/foundation/colors/Token.inComponent.stories.tsx +81 -71
- package/src/stories/foundation/colors/TokenPaletteTable.stories.tsx +7 -7
- package/src/stories/foundation/colors/TokenPaletteTable.tsx +23 -49
- package/src/stories/foundation/colors/styled.ts +26 -26
- package/src/theme.ts +6 -6
- package/src/types.d.ts +1 -1
- package/tsconfig.build.json +1 -5
- package/tsconfig.json +0 -1
- package/src/stories/components/ToggleButton/Group.stories.tsx +0 -221
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fontVariants, cssVariables } from
|
|
1
|
+
import { fontVariants, cssVariables } from './tokens';
|
|
2
2
|
const fontFamily = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
'Pretendard',
|
|
4
|
+
'-apple-system',
|
|
5
|
+
'BlinkMacSystemFont',
|
|
6
|
+
'system-ui',
|
|
7
|
+
'Roboto',
|
|
8
8
|
'"Helvetica Neue"',
|
|
9
9
|
'"Segoe UI"',
|
|
10
10
|
'"Apple SD Gothic Neo"',
|
|
@@ -13,8 +13,8 @@ const fontFamily = [
|
|
|
13
13
|
'"Apple Color Emoji"',
|
|
14
14
|
'"Segoe UI Emoji"',
|
|
15
15
|
'"Segoe UI Symbol"',
|
|
16
|
-
|
|
17
|
-
].join(
|
|
16
|
+
'sans-serif',
|
|
17
|
+
].join(',');
|
|
18
18
|
const typographyOptions = {
|
|
19
19
|
fontFamily,
|
|
20
20
|
...{
|
|
@@ -33,45 +33,45 @@ const typographyOptions = {
|
|
|
33
33
|
};
|
|
34
34
|
export const typographyDefaultProps = {
|
|
35
35
|
variantMapping: {
|
|
36
|
-
headline1:
|
|
37
|
-
headline2:
|
|
38
|
-
headline3:
|
|
39
|
-
headline4:
|
|
40
|
-
headline5:
|
|
41
|
-
body1_16_semibold:
|
|
42
|
-
body1_16_regular:
|
|
43
|
-
body2_14_bold:
|
|
44
|
-
body2_14_medium:
|
|
45
|
-
body2_14_regular:
|
|
46
|
-
body3_12_semibold:
|
|
47
|
-
body3_12_regular:
|
|
48
|
-
body_m2:
|
|
49
|
-
body_reg6:
|
|
50
|
-
body_reg8:
|
|
51
|
-
small_body_sb1:
|
|
52
|
-
small_body_m2:
|
|
36
|
+
headline1: 'h1',
|
|
37
|
+
headline2: 'h2',
|
|
38
|
+
headline3: 'h3',
|
|
39
|
+
headline4: 'h4',
|
|
40
|
+
headline5: 'h6',
|
|
41
|
+
body1_16_semibold: 'p',
|
|
42
|
+
body1_16_regular: 'p',
|
|
43
|
+
body2_14_bold: 'p',
|
|
44
|
+
body2_14_medium: 'p',
|
|
45
|
+
body2_14_regular: 'p',
|
|
46
|
+
body3_12_semibold: 'p',
|
|
47
|
+
body3_12_regular: 'p',
|
|
48
|
+
body_m2: 'p',
|
|
49
|
+
body_reg6: 'p',
|
|
50
|
+
body_reg8: 'p',
|
|
51
|
+
small_body_sb1: 'p',
|
|
52
|
+
small_body_m2: 'p',
|
|
53
53
|
},
|
|
54
54
|
};
|
|
55
55
|
export const createTypographyCssBaseline = () => {
|
|
56
56
|
return {
|
|
57
|
-
|
|
57
|
+
'*, *:before, *:after': {
|
|
58
58
|
// @font-face: font-feature-settings로 대체 가능하나, 브라우저 지원이 부족함 https://caniuse.com/mdn-css_at-rules_font-face_font-feature-settings
|
|
59
59
|
fontFeatureSettings: `'tnum', 'ss01', 'ss02', 'ss08'`,
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
':root': {
|
|
62
62
|
...cssVariables,
|
|
63
63
|
},
|
|
64
|
-
|
|
65
|
-
color:
|
|
64
|
+
'.light1': {
|
|
65
|
+
color: 'var(--text_normal)',
|
|
66
66
|
},
|
|
67
|
-
|
|
68
|
-
color:
|
|
67
|
+
'.light2': {
|
|
68
|
+
color: 'var(--text_normal)',
|
|
69
69
|
},
|
|
70
|
-
|
|
71
|
-
color:
|
|
70
|
+
'.dark1': {
|
|
71
|
+
color: 'var(--text_normal)',
|
|
72
72
|
},
|
|
73
|
-
|
|
74
|
-
color:
|
|
73
|
+
'.dark2': {
|
|
74
|
+
color: 'var(--text_normal)',
|
|
75
75
|
},
|
|
76
76
|
};
|
|
77
77
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundation/Typography/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/foundation/Typography/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAgCtD,MAAM,UAAU,GAAG;IACjB,YAAY;IACZ,eAAe;IACf,oBAAoB;IACpB,WAAW;IACX,QAAQ;IACR,kBAAkB;IAClB,YAAY;IACZ,uBAAuB;IACvB,gBAAgB;IAChB,iBAAiB;IACjB,qBAAqB;IACrB,kBAAkB;IAClB,mBAAmB;IACnB,YAAY;CACb,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,iBAAiB,GAA8B;IACnD,UAAU;IACV,GAAG;QACD,GAAG,YAAY;QACf,gCAAgC;QAChC,EAAE,EAAE,YAAY,CAAC,SAAS;QAC1B,EAAE,EAAE,YAAY,CAAC,SAAS;QAC1B,EAAE,EAAE,YAAY,CAAC,SAAS;QAC1B,EAAE,EAAE,YAAY,CAAC,SAAS;QAC1B,EAAE,EAAE,YAAY,C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
'--font-weight-semibold': 600,
|
|
4
|
+
'--font-weight-medium': 500,
|
|
5
|
+
'--font-weight-regular': 400,
|
|
6
6
|
};
|
|
7
7
|
const headline = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
'--headline1-font-weight': 'var(--font-weight-semibold)',
|
|
9
|
+
'--headline1-font-size': '52px',
|
|
10
|
+
'--headline1-line-height': '68px',
|
|
11
|
+
'--headline2-font-weight': 'var(--font-weight-bold)',
|
|
12
|
+
'--headline2-font-size': '38px',
|
|
13
|
+
'--headline2-line-height': '65px',
|
|
14
|
+
'--headline3-font-weight': 'var(--font-weight-semibold)',
|
|
15
|
+
'--headline3-font-size': '24px',
|
|
16
|
+
'--headline3-line-height': '29px',
|
|
17
|
+
'--headline4-font-weight': 'var(--font-weight-semibold)',
|
|
18
|
+
'--headline4-font-size': '20px',
|
|
19
|
+
'--headline4-line-height': '28px',
|
|
20
|
+
'--headline5-font-weight': 'var(--font-weight-semibold)',
|
|
21
|
+
'--headline5-font-size': '16px',
|
|
22
|
+
'--headline5-line-height': '24px',
|
|
23
23
|
};
|
|
24
24
|
const body = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
25
|
+
'--body1-16-semibold-font-weight': 'var(--font-weight-semibold)',
|
|
26
|
+
'--body1-16-semibold-font-size': '16px',
|
|
27
|
+
'--body1-16-semibold-line-height': '24px',
|
|
28
|
+
'--body1-16-regular-font-weight': 'var(--font-weight-regular)',
|
|
29
|
+
'--body1-16-regular-font-size': '16px',
|
|
30
|
+
'--body1-16-regular-line-height': '24px',
|
|
31
|
+
'--body2-14-bold-font-weight': 'var(--font-weight-bold)',
|
|
32
|
+
'--body2-14-bold-font-size': '14px',
|
|
33
|
+
'--body2-14-bold-line-height': '20px',
|
|
34
|
+
'--body2-14-medium-font-weight': 'var(--font-weight-medium)',
|
|
35
|
+
'--body2-14-medium-font-size': '14px',
|
|
36
|
+
'--body2-14-medium-line-height': '20px',
|
|
37
|
+
'--body2-14-regular-font-weight': 'var(--font-weight-regular)',
|
|
38
|
+
'--body2-14-regular-font-size': '14px',
|
|
39
|
+
'--body2-14-regular-line-height': '20px',
|
|
40
|
+
'--body3-12-semibold-font-weight': 'var(--font-weight-semibold)',
|
|
41
|
+
'--body3-12-semibold-font-size': '12.4px',
|
|
42
|
+
'--body3-12-semibold-line-height': '16px',
|
|
43
|
+
'--body3-12-regular-font-weight': 'var(--font-weight-regular)',
|
|
44
|
+
'--body3-12-regular-font-size': '12.4px',
|
|
45
|
+
'--body3-12-regular-line-height': '16px',
|
|
46
|
+
'--body_m2-font-weight': 'var(--font-weight-medium)',
|
|
47
|
+
'--body_m2-font-size': '13px',
|
|
48
|
+
'--body_m2-line-height': '18px',
|
|
49
|
+
'--body_reg6-font-weight': 'var(--font-weight-regular)',
|
|
50
|
+
'--body_reg6-font-size': '13px',
|
|
51
|
+
'--body_reg6-line-height': '18px',
|
|
52
|
+
'--body_reg8-font-weight': 'var(--font-weight-regular)',
|
|
53
|
+
'--body_reg8-font-size': '12px',
|
|
54
|
+
'--body_reg8-line-height': '16px',
|
|
55
55
|
};
|
|
56
56
|
const smallBody = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
'--small_body_sb1-font-weight': 'var(--font-weight-semibold)',
|
|
58
|
+
'--small_body_sb1-font-size': '12px',
|
|
59
|
+
'--small_body_sb1-line-height': '16px',
|
|
60
|
+
'--small_body_m2-font-weight': 'var(--font-weight-medium)',
|
|
61
|
+
'--small_body_m2-font-size': '12px',
|
|
62
|
+
'--small_body_m2-line-height': '20px',
|
|
63
63
|
};
|
|
64
64
|
const etc = {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
65
|
+
'--overline-font-weight': 'var(--font-weight-medium)',
|
|
66
|
+
'--overline-font-size': '14px',
|
|
67
|
+
'--overline-line-height': '20px',
|
|
68
|
+
'--button1-font-weight': 'var(--font-weight-medium)',
|
|
69
|
+
'--button1-font-size': '16px',
|
|
70
|
+
'--button1-line-height': '22px',
|
|
71
|
+
'--button2-font-weight': 'var(--font-weight-medium)',
|
|
72
|
+
'--button2-font-size': '14px',
|
|
73
|
+
'--button2-line-height': '20px',
|
|
74
|
+
'--caption-font-weight': 'var(--font-weight-medium)',
|
|
75
|
+
'--caption-font-size': '12px',
|
|
76
|
+
'--caption-line-height': '16px',
|
|
77
77
|
};
|
|
78
78
|
const fontVariants = {
|
|
79
79
|
headline1: {
|
|
80
|
-
fontWeight:
|
|
81
|
-
fontSize:
|
|
82
|
-
lineHeight:
|
|
80
|
+
fontWeight: 'var(--headline1-font-weight)',
|
|
81
|
+
fontSize: 'var(--headline1-font-size)',
|
|
82
|
+
lineHeight: 'var(--headline1-line-height)',
|
|
83
83
|
},
|
|
84
84
|
headline2: {
|
|
85
|
-
fontWeight:
|
|
86
|
-
fontSize:
|
|
87
|
-
lineHeight:
|
|
85
|
+
fontWeight: 'var(--headline2-font-weight)',
|
|
86
|
+
fontSize: 'var(--headline2-font-size)',
|
|
87
|
+
lineHeight: 'var(--headline2-line-height)',
|
|
88
88
|
},
|
|
89
89
|
headline3: {
|
|
90
|
-
fontWeight:
|
|
91
|
-
fontSize:
|
|
92
|
-
lineHeight:
|
|
90
|
+
fontWeight: 'var(--headline3-font-weight)',
|
|
91
|
+
fontSize: 'var(--headline3-font-size)',
|
|
92
|
+
lineHeight: 'var(--headline3-line-height)',
|
|
93
93
|
},
|
|
94
94
|
headline4: {
|
|
95
|
-
fontWeight:
|
|
96
|
-
fontSize:
|
|
97
|
-
lineHeight:
|
|
95
|
+
fontWeight: 'var(--headline4-font-weight)',
|
|
96
|
+
fontSize: 'var(--headline4-font-size)',
|
|
97
|
+
lineHeight: 'var(--headline4-line-height)',
|
|
98
98
|
},
|
|
99
99
|
headline5: {
|
|
100
|
-
fontWeight:
|
|
101
|
-
fontSize:
|
|
102
|
-
lineHeight:
|
|
100
|
+
fontWeight: 'var(--headline5-font-weight)',
|
|
101
|
+
fontSize: 'var(--headline5-font-size)',
|
|
102
|
+
lineHeight: 'var(--headline5-line-height)',
|
|
103
103
|
},
|
|
104
104
|
body1_16_semibold: {
|
|
105
|
-
fontWeight:
|
|
106
|
-
fontSize:
|
|
107
|
-
lineHeight:
|
|
105
|
+
fontWeight: 'var(--body1-16-semibold-font-weight)',
|
|
106
|
+
fontSize: 'var(--body1-16-semibold-font-size)',
|
|
107
|
+
lineHeight: 'var(--body1-16-semibold-line-height)',
|
|
108
108
|
},
|
|
109
109
|
body1_16_regular: {
|
|
110
|
-
fontWeight:
|
|
111
|
-
fontSize:
|
|
112
|
-
lineHeight:
|
|
110
|
+
fontWeight: 'var(--body1-16-regular-font-weight)',
|
|
111
|
+
fontSize: 'var(--body1-16-regular-font-size)',
|
|
112
|
+
lineHeight: 'var(--body1-16-regular-line-height)',
|
|
113
113
|
},
|
|
114
114
|
body2_14_bold: {
|
|
115
|
-
fontWeight:
|
|
116
|
-
fontSize:
|
|
117
|
-
lineHeight:
|
|
115
|
+
fontWeight: 'var(--body2-14-bold-font-weight)',
|
|
116
|
+
fontSize: 'var(--body2-14-bold-font-size)',
|
|
117
|
+
lineHeight: 'var(--body2-14-bold-line-height)',
|
|
118
118
|
},
|
|
119
119
|
body2_14_medium: {
|
|
120
|
-
fontWeight:
|
|
121
|
-
fontSize:
|
|
122
|
-
lineHeight:
|
|
120
|
+
fontWeight: 'var(--body2-14-medium-font-weight)',
|
|
121
|
+
fontSize: 'var(--body2-14-medium-font-size)',
|
|
122
|
+
lineHeight: 'var(--body2-14-medium-line-height)',
|
|
123
123
|
},
|
|
124
124
|
body2_14_regular: {
|
|
125
|
-
fontWeight:
|
|
126
|
-
fontSize:
|
|
127
|
-
lineHeight:
|
|
125
|
+
fontWeight: 'var(--body2-14-regular-font-weight)',
|
|
126
|
+
fontSize: 'var(--body2-14-regular-font-size)',
|
|
127
|
+
lineHeight: 'var(--body2-14-regular-line-height)',
|
|
128
128
|
},
|
|
129
129
|
body3_12_semibold: {
|
|
130
|
-
fontWeight:
|
|
131
|
-
fontSize:
|
|
132
|
-
lineHeight:
|
|
130
|
+
fontWeight: 'var(--body3-12-semibold-font-weight)',
|
|
131
|
+
fontSize: 'var(--body3-12-semibold-font-size)',
|
|
132
|
+
lineHeight: 'var(--body3-12-semibold-line-height)',
|
|
133
133
|
},
|
|
134
134
|
body3_12_regular: {
|
|
135
|
-
fontWeight:
|
|
136
|
-
fontSize:
|
|
137
|
-
lineHeight:
|
|
135
|
+
fontWeight: 'var(--body3-12-regular-font-weight)',
|
|
136
|
+
fontSize: 'var(--body3-12-regular-font-size)',
|
|
137
|
+
lineHeight: 'var(--body3-12-regular-line-height)',
|
|
138
138
|
},
|
|
139
139
|
body_m2: {
|
|
140
|
-
fontWeight:
|
|
141
|
-
fontSize:
|
|
142
|
-
lineHeight:
|
|
143
|
-
letterSpacing:
|
|
140
|
+
fontWeight: 'var(--body_m2-font-weight)',
|
|
141
|
+
fontSize: 'var(--body_m2-font-size)',
|
|
142
|
+
lineHeight: 'var(--body_m2-line-height)',
|
|
143
|
+
letterSpacing: '0.2px',
|
|
144
144
|
},
|
|
145
145
|
body_reg6: {
|
|
146
|
-
fontWeight:
|
|
147
|
-
fontSize:
|
|
148
|
-
lineHeight:
|
|
146
|
+
fontWeight: 'var(--body_reg6-font-weight)',
|
|
147
|
+
fontSize: 'var(--body_reg6-font-size)',
|
|
148
|
+
lineHeight: 'var(--body_reg6-line-height)',
|
|
149
149
|
},
|
|
150
150
|
body_reg8: {
|
|
151
|
-
fontWeight:
|
|
152
|
-
fontSize:
|
|
153
|
-
lineHeight:
|
|
151
|
+
fontWeight: 'var(--body_reg8-font-weight)',
|
|
152
|
+
fontSize: 'var(--body_reg8-font-size)',
|
|
153
|
+
lineHeight: 'var(--body_reg8-line-height)',
|
|
154
154
|
},
|
|
155
155
|
small_body_sb1: {
|
|
156
|
-
fontWeight:
|
|
157
|
-
fontSize:
|
|
158
|
-
lineHeight:
|
|
156
|
+
fontWeight: 'var(--small_body_sb1-font-weight)',
|
|
157
|
+
fontSize: 'var(--small_body_sb1-font-size)',
|
|
158
|
+
lineHeight: 'var(--small_body_sb1-line-height)',
|
|
159
159
|
},
|
|
160
160
|
small_body_m2: {
|
|
161
|
-
fontWeight:
|
|
162
|
-
fontSize:
|
|
163
|
-
lineHeight:
|
|
161
|
+
fontWeight: 'var(--small_body_m2-font-weight)',
|
|
162
|
+
fontSize: 'var(--small_body_m2-font-size)',
|
|
163
|
+
lineHeight: 'var(--small_body_m2-line-height)',
|
|
164
164
|
},
|
|
165
165
|
overline: {
|
|
166
|
-
fontWeight:
|
|
167
|
-
fontSize:
|
|
168
|
-
lineHeight:
|
|
169
|
-
letterSpacing:
|
|
170
|
-
textTransform:
|
|
166
|
+
fontWeight: 'var(--overline-font-weight)',
|
|
167
|
+
fontSize: 'var(--overline-font-size)',
|
|
168
|
+
lineHeight: 'var(--overline-line-height)',
|
|
169
|
+
letterSpacing: '1px',
|
|
170
|
+
textTransform: 'uppercase',
|
|
171
171
|
},
|
|
172
172
|
button1: {
|
|
173
|
-
fontWeight:
|
|
174
|
-
fontSize:
|
|
175
|
-
lineHeight:
|
|
176
|
-
textTransform:
|
|
173
|
+
fontWeight: 'var(--button1-font-weight)',
|
|
174
|
+
fontSize: 'var(--button1-font-size)',
|
|
175
|
+
lineHeight: 'var(--button1-line-height)',
|
|
176
|
+
textTransform: 'capitalize',
|
|
177
177
|
},
|
|
178
178
|
button2: {
|
|
179
|
-
fontWeight:
|
|
180
|
-
fontSize:
|
|
181
|
-
lineHeight:
|
|
182
|
-
letterSpacing:
|
|
183
|
-
textTransform:
|
|
179
|
+
fontWeight: 'var(--button2-font-weight)',
|
|
180
|
+
fontSize: 'var(--button2-font-size)',
|
|
181
|
+
lineHeight: 'var(--button2-line-height)',
|
|
182
|
+
letterSpacing: '0.2px',
|
|
183
|
+
textTransform: 'capitalize',
|
|
184
184
|
},
|
|
185
185
|
caption: {
|
|
186
|
-
fontWeight:
|
|
187
|
-
fontSize:
|
|
188
|
-
lineHeight:
|
|
186
|
+
fontWeight: 'var(--caption-font-weight)',
|
|
187
|
+
fontSize: 'var(--caption-font-size)',
|
|
188
|
+
lineHeight: 'var(--caption-line-height)',
|
|
189
189
|
},
|
|
190
190
|
};
|
|
191
191
|
export const cssVariables = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/foundation/Typography/tokens.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG;IAClB,oBAAoB,EAAE,GAAG;IACzB,wBAAwB,EAAE,GAAG;IAC7B,sBAAsB,EAAE,GAAG;IAC3B,uBAAuB,EAAE,GAAG;CACpB,CAAC;AAEX,MAAM,QAAQ,GAAG;IACf,yBAAyB,EAAE,6BAA6B;IACxD,uBAAuB,EAAE,MAAM;IAC/B,yBAAyB,EAAE,MAAM;IACjC,yBAAyB,EAAE,yBAAyB;IACpD,uBAAuB,EAAE,MAAM;IAC/B,yBAAyB,EAAE,MAAM;IACjC,yBAAyB,EAAE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QACpC,UAAU,EAAE,4BAA4B;KACzC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,WAAW;IACd,GAAG,QAAQ;IACX,GAAG,IAAI;IACP,GAAG,SAAS;IACZ,GAAG,GAAG;CACP,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { grey } from
|
|
1
|
+
import { grey } from './grey';
|
|
2
2
|
export const blue = {
|
|
3
|
-
5:
|
|
4
|
-
10:
|
|
5
|
-
15:
|
|
6
|
-
20:
|
|
7
|
-
30:
|
|
8
|
-
40:
|
|
9
|
-
50:
|
|
10
|
-
60:
|
|
11
|
-
70:
|
|
12
|
-
80:
|
|
13
|
-
90:
|
|
3
|
+
5: '#EDF6FE',
|
|
4
|
+
10: '#D9E9FD',
|
|
5
|
+
15: '#BFD9FC',
|
|
6
|
+
20: '#A5C8FC',
|
|
7
|
+
30: '#71A9FA',
|
|
8
|
+
40: '#3D88FA',
|
|
9
|
+
50: '#0D68F2',
|
|
10
|
+
60: '#0E51BA',
|
|
11
|
+
70: '#0C3F8F',
|
|
12
|
+
80: '#032765',
|
|
13
|
+
90: '#03183F',
|
|
14
14
|
};
|
|
15
15
|
export const blueText = {
|
|
16
16
|
5: grey[95],
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { grey } from
|
|
1
|
+
import { grey } from './grey';
|
|
2
2
|
export const green = {
|
|
3
|
-
5:
|
|
4
|
-
10:
|
|
5
|
-
15:
|
|
6
|
-
20:
|
|
7
|
-
30:
|
|
8
|
-
40:
|
|
9
|
-
50:
|
|
10
|
-
60:
|
|
11
|
-
70:
|
|
12
|
-
80:
|
|
13
|
-
90:
|
|
3
|
+
5: '#E6FDEB',
|
|
4
|
+
10: '#C4F5D1',
|
|
5
|
+
15: '#A0E5B3',
|
|
6
|
+
20: '#6FDC8C',
|
|
7
|
+
30: '#44BE67',
|
|
8
|
+
40: '#1A9F3F',
|
|
9
|
+
50: '#138231',
|
|
10
|
+
60: '#0D6222',
|
|
11
|
+
70: '#0B4F1A',
|
|
12
|
+
80: '#01380F',
|
|
13
|
+
90: '#082209',
|
|
14
14
|
};
|
|
15
15
|
export const greenText = {
|
|
16
16
|
5: grey[95],
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
export const grey = {
|
|
2
|
-
0:
|
|
3
|
-
5:
|
|
4
|
-
10:
|
|
5
|
-
15:
|
|
6
|
-
20:
|
|
7
|
-
25:
|
|
8
|
-
30:
|
|
9
|
-
35:
|
|
10
|
-
40:
|
|
11
|
-
45:
|
|
12
|
-
50:
|
|
13
|
-
55:
|
|
14
|
-
60:
|
|
15
|
-
65:
|
|
16
|
-
70:
|
|
17
|
-
75:
|
|
18
|
-
80:
|
|
19
|
-
82:
|
|
20
|
-
85:
|
|
21
|
-
88:
|
|
22
|
-
90:
|
|
23
|
-
93:
|
|
24
|
-
95:
|
|
25
|
-
100:
|
|
2
|
+
0: '#FFFFFF',
|
|
3
|
+
5: '#F5F5F6',
|
|
4
|
+
10: '#EAEAEC',
|
|
5
|
+
15: '#DFDFE1',
|
|
6
|
+
20: '#D5D5D7',
|
|
7
|
+
25: '#C8C8CA',
|
|
8
|
+
30: '#BCBCBE',
|
|
9
|
+
35: '#B1B1B4',
|
|
10
|
+
40: '#A4A4A8',
|
|
11
|
+
45: '#9A9A9D',
|
|
12
|
+
50: '#8D8D90',
|
|
13
|
+
55: '#808084',
|
|
14
|
+
60: '#747479',
|
|
15
|
+
65: '#68686C',
|
|
16
|
+
70: '#59595D',
|
|
17
|
+
75: '#4A4A4E',
|
|
18
|
+
80: '#3B3B3F',
|
|
19
|
+
82: '#343438',
|
|
20
|
+
85: '#2E2E32',
|
|
21
|
+
88: '#27272B',
|
|
22
|
+
90: '#1F1F23',
|
|
23
|
+
93: '#16161A',
|
|
24
|
+
95: '#0F0F12',
|
|
25
|
+
100: '#000000',
|
|
26
26
|
};
|
|
27
27
|
export const greyText = {
|
|
28
28
|
0: grey[95],
|
|
@@ -61,9 +61,9 @@ export const greyForMUI = {
|
|
|
61
61
|
700: grey[70],
|
|
62
62
|
800: grey[80],
|
|
63
63
|
900: grey[90],
|
|
64
|
-
A100:
|
|
65
|
-
A200:
|
|
66
|
-
A400:
|
|
67
|
-
A700:
|
|
64
|
+
A100: '#F3F3F3',
|
|
65
|
+
A200: '#C7C7C7',
|
|
66
|
+
A400: '#9A9A9A',
|
|
67
|
+
A700: '#4F4F4F',
|
|
68
68
|
};
|
|
69
69
|
//# sourceMappingURL=grey.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
1
|
+
export * from './blue';
|
|
2
|
+
export * from './green';
|
|
3
|
+
export * from './grey';
|
|
4
|
+
export * from './lunitGreen';
|
|
5
|
+
export * from './lunitTeal';
|
|
6
|
+
export * from './magenta';
|
|
7
|
+
export * from './orange';
|
|
8
|
+
export * from './red';
|
|
9
|
+
export * from './yellow';
|
|
10
|
+
export * from './purple';
|
|
11
|
+
export * from './opacity';
|
|
12
12
|
//# sourceMappingURL=index.js.map
|