@rovula/ui 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bundle.css +3220 -1382
- package/dist/cjs/bundle.js +3 -3
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/ActionButton/ActionButton.stories.d.ts +4 -4
- package/dist/cjs/types/components/ActionButton/ActionButton.styles copy.d.ts +6 -0
- package/dist/cjs/types/components/Button/Button.styles copy.d.ts +7 -0
- package/dist/cjs/types/components/Button/Button.styles.d.ts +1 -0
- package/dist/cjs/types/components/Button/Buttons.stories.d.ts +12 -4
- package/dist/cjs/types/components/Calendar/Calendar.d.ts +0 -1
- package/dist/cjs/types/components/Calendar/Calendar.stories.d.ts +7 -7
- package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/cjs/types/components/DatePicker/DatePicker.stories.d.ts +2 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +8 -6
- package/dist/cjs/types/components/Input/Input.stories.d.ts +12 -12
- package/dist/cjs/types/components/Label/Label.stories.d.ts +6 -6
- package/dist/cjs/types/components/Loading/Loading.d.ts +14 -0
- package/dist/cjs/types/components/Loading/Loading.stories.d.ts +35 -0
- package/dist/cjs/types/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/cjs/types/components/ProgressBar/ProgressBar.stories.d.ts +37 -0
- package/dist/cjs/types/components/RadioGroup/RadioGroup.stories.d.ts +5 -5
- package/dist/cjs/types/components/Search/Search.d.ts +22 -1
- package/dist/cjs/types/components/Search/Search.stories.d.ts +338 -7
- package/dist/cjs/types/components/Table/Table.stories.d.ts +4 -4
- package/dist/cjs/types/components/Text/Text.d.ts +1 -1
- package/dist/cjs/types/components/Text/Text.stories.d.ts +1 -1
- package/dist/cjs/types/components/TextInput/TextInput.d.ts +4 -0
- package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +11 -6
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +8 -0
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/stories/ColorGroupPreview.d.ts +1 -0
- package/dist/cjs/types/stories/ColorPreview.d.ts +5 -0
- package/dist/components/ActionButton/ActionButton.js +1 -1
- package/dist/components/ActionButton/ActionButton.stories.js +1 -1
- package/dist/components/ActionButton/ActionButton.styles copy.js +90 -0
- package/dist/components/ActionButton/ActionButton.styles.js +54 -15
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/Avatar/Avatar.styles.js +1 -1
- package/dist/components/Button/Button.js +3 -2
- package/dist/components/Button/Button.styles copy.js +210 -0
- package/dist/components/Button/Button.styles.js +203 -43
- package/dist/components/Button/Buttons.stories.js +9 -1
- package/dist/components/Calendar/Calendar.js +39 -2
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Collapsible/Collapsible.styles.js +6 -3
- package/dist/components/DatePicker/DatePicker.js +13 -2
- package/dist/components/Dialog/Dialog.js +4 -4
- package/dist/components/Dropdown/Dropdown.js +9 -7
- package/dist/components/Dropdown/Dropdown.styles.js +1 -1
- package/dist/components/Input/Input.js +8 -1
- package/dist/components/Input/Input.stories.js +3 -2
- package/dist/components/Input/Input.styles.js +13 -5
- package/dist/components/Loading/Loading.js +23 -0
- package/dist/components/Loading/Loading.stories.js +37 -0
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +22 -0
- package/dist/components/ProgressBar/ProgressBar.stories.js +52 -0
- package/dist/components/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/Search/Search.js +6 -7
- package/dist/components/Search/Search.stories.js +8 -5
- package/dist/components/Text/Text.js +17 -2
- package/dist/components/Text/Text.stories.js +5 -1
- package/dist/components/TextInput/TextInput.js +14 -5
- package/dist/components/TextInput/TextInput.stories.js +3 -2
- package/dist/components/TextInput/TextInput.styles.js +120 -18
- package/dist/esm/bundle.css +3220 -1382
- package/dist/esm/bundle.js +3 -3
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/ActionButton/ActionButton.stories.d.ts +4 -4
- package/dist/esm/types/components/ActionButton/ActionButton.styles copy.d.ts +6 -0
- package/dist/esm/types/components/Button/Button.styles copy.d.ts +7 -0
- package/dist/esm/types/components/Button/Button.styles.d.ts +1 -0
- package/dist/esm/types/components/Button/Buttons.stories.d.ts +12 -4
- package/dist/esm/types/components/Calendar/Calendar.d.ts +0 -1
- package/dist/esm/types/components/Calendar/Calendar.stories.d.ts +7 -7
- package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +2 -0
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +8 -6
- package/dist/esm/types/components/Input/Input.stories.d.ts +12 -12
- package/dist/esm/types/components/Label/Label.stories.d.ts +6 -6
- package/dist/esm/types/components/Loading/Loading.d.ts +14 -0
- package/dist/esm/types/components/Loading/Loading.stories.d.ts +35 -0
- package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/esm/types/components/ProgressBar/ProgressBar.stories.d.ts +37 -0
- package/dist/esm/types/components/RadioGroup/RadioGroup.stories.d.ts +5 -5
- package/dist/esm/types/components/Search/Search.d.ts +22 -1
- package/dist/esm/types/components/Search/Search.stories.d.ts +338 -7
- package/dist/esm/types/components/Table/Table.stories.d.ts +4 -4
- package/dist/esm/types/components/Text/Text.d.ts +1 -1
- package/dist/esm/types/components/Text/Text.stories.d.ts +1 -1
- package/dist/esm/types/components/TextInput/TextInput.d.ts +4 -0
- package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +11 -6
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +8 -0
- package/dist/esm/types/index.d.ts +3 -0
- package/dist/esm/types/stories/ColorGroupPreview.d.ts +1 -0
- package/dist/esm/types/stories/ColorPreview.d.ts +5 -0
- package/dist/index.d.ts +53 -2
- package/dist/index.js +3 -0
- package/dist/src/theme/global.css +5078 -918
- package/dist/stories/ColorGroupPreview.js +478 -0
- package/dist/stories/ColorPreview.js +8 -0
- package/dist/theme/global.css +7 -227
- package/dist/theme/main-preset.js +131 -67
- package/dist/theme/plugins/utilities/typography.js +12 -0
- package/dist/theme/presets/colors.js +101 -220
- package/dist/theme/theme.d.ts +69 -0
- package/dist/theme/themes/xspector/baseline.css +7 -0
- package/dist/theme/themes/xspector/color.css +67 -0
- package/dist/theme/themes/xspector/components/action-button.css +98 -0
- package/dist/theme/themes/xspector/components/loading.css +11 -0
- package/dist/theme/themes/xspector/palette.css +122 -0
- package/dist/theme/themes/xspector/state.css +89 -0
- package/dist/theme/themes/xspector/transparent.css +68 -0
- package/dist/theme/themes/xspector/typography.css +27 -0
- package/dist/theme/tokens/baseline.css +10 -0
- package/dist/theme/tokens/color.css +63 -0
- package/dist/theme/tokens/components/action-button.css +127 -0
- package/dist/theme/tokens/components/button.css +512 -0
- package/dist/theme/tokens/components/loading.css +11 -0
- package/dist/theme/tokens/components/navbar.css +8 -0
- package/dist/theme/tokens/components/progress-bar.css +8 -0
- package/dist/theme/tokens/palette.css +122 -0
- package/dist/theme/tokens/state.css +82 -0
- package/dist/theme/tokens/transparent.css +68 -0
- package/dist/theme/tokens/typography.css +178 -0
- package/dist/theme/tokens/variables.css +28 -0
- package/dist/theme/utils.js +98 -0
- package/package.json +1 -1
- package/src/_theme/global copy.css +761 -0
- package/src/_theme/global.css +39 -0
- package/src/_theme/main-preset.js +239 -0
- package/src/_theme/plugins/utilities/typography.js +81 -0
- package/src/_theme/presets/colors copy 2.js +319 -0
- package/src/_theme/presets/colors copy.js +229 -0
- package/src/_theme/presets/colors.js +94 -0
- package/src/_theme/theme.d.ts +69 -0
- package/src/_theme/variables/base/button.css +334 -0
- package/src/_theme/variables/base/components copy.css +19 -0
- package/src/_theme/variables/default/colors.css +292 -0
- package/src/_theme/variables/default/typography.css +178 -0
- package/src/_theme/variables/xspector/colors.css +468 -0
- package/src/_theme/variables/xspector/typography.css +178 -0
- package/src/components/ActionButton/ActionButton.stories.tsx +1 -1
- package/src/components/ActionButton/ActionButton.styles copy.ts +95 -0
- package/src/components/ActionButton/ActionButton.styles.ts +54 -19
- package/src/components/ActionButton/ActionButton.tsx +1 -1
- package/src/components/AlertDialog/AlertDialog.tsx +2 -2
- package/src/components/Avatar/Avatar.styles.ts +1 -1
- package/src/components/Button/Button.styles copy.ts +214 -0
- package/src/components/Button/Button.styles.ts +203 -47
- package/src/components/Button/Button.tsx +4 -0
- package/src/components/Button/Buttons.stories.tsx +9 -1
- package/src/components/Calendar/Calendar.tsx +49 -7
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/Collapsible/Collapsible.styles.ts +6 -3
- package/src/components/DatePicker/DatePicker.tsx +8 -2
- package/src/components/Dialog/Dialog.tsx +5 -5
- package/src/components/Dropdown/Dropdown.styles.ts +1 -1
- package/src/components/Dropdown/Dropdown.tsx +14 -12
- package/src/components/Input/Input.stories.tsx +3 -2
- package/src/components/Input/Input.styles.tsx +13 -6
- package/src/components/Input/Input.tsx +8 -1
- package/src/components/Loading/Loading.stories.tsx +43 -0
- package/src/components/Loading/Loading.tsx +72 -0
- package/src/components/Popover/Popover.tsx +1 -1
- package/src/components/ProgressBar/ProgressBar.stories.tsx +78 -0
- package/src/components/ProgressBar/ProgressBar.tsx +62 -0
- package/src/components/RadioGroup/RadioGroup.tsx +2 -2
- package/src/components/Search/Search.stories.tsx +13 -13
- package/src/components/Search/Search.tsx +14 -19
- package/src/components/Text/Text.stories.tsx +6 -4
- package/src/components/Text/Text.tsx +27 -3
- package/src/components/TextInput/TextInput.stories.tsx +3 -2
- package/src/components/TextInput/TextInput.styles.ts +124 -19
- package/src/components/TextInput/TextInput.tsx +34 -4
- package/src/index.ts +3 -0
- package/src/stories/ColorGroupPreview.tsx +494 -0
- package/src/stories/ColorPreview.tsx +45 -0
- package/src/stories/Colors.mdx +14 -0
- package/src/stories/Typography.mdx +7 -151
- package/src/theme/global.css +7 -227
- package/src/theme/main-preset.js +131 -67
- package/src/theme/plugins/utilities/typography.js +12 -0
- package/src/theme/presets/colors.js +101 -220
- package/src/theme/theme.d.ts +69 -0
- package/src/theme/themes/xspector/baseline.css +7 -0
- package/src/theme/themes/xspector/color.css +67 -0
- package/src/theme/themes/xspector/components/action-button.css +98 -0
- package/src/theme/themes/xspector/components/loading.css +11 -0
- package/src/theme/themes/xspector/palette.css +122 -0
- package/src/theme/themes/xspector/state.css +89 -0
- package/src/theme/themes/xspector/transparent.css +68 -0
- package/src/theme/themes/xspector/typography.css +27 -0
- package/src/theme/tokens/baseline.css +10 -0
- package/src/theme/tokens/color.css +63 -0
- package/src/theme/tokens/components/action-button.css +127 -0
- package/src/theme/tokens/components/button.css +512 -0
- package/src/theme/tokens/components/loading.css +11 -0
- package/src/theme/tokens/components/navbar.css +8 -0
- package/src/theme/tokens/components/progress-bar.css +8 -0
- package/src/theme/tokens/palette.css +122 -0
- package/src/theme/tokens/state.css +82 -0
- package/src/theme/tokens/transparent.css +68 -0
- package/src/theme/tokens/typography.css +178 -0
- package/src/theme/tokens/variables.css +28 -0
- package/src/theme/utils.js +98 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
|
|
2
|
+
:root {
|
|
3
|
+
--primary-ramps-primary-5: #f4f5f6;
|
|
4
|
+
--primary-ramps-primary-10: #e8eaed;
|
|
5
|
+
--primary-ramps-primary-20: #d2d6db;
|
|
6
|
+
--primary-ramps-primary-30: #bbc1c8;
|
|
7
|
+
--primary-ramps-primary-40: #a5adb6;
|
|
8
|
+
--primary-ramps-primary-50: #8e98a4;
|
|
9
|
+
--primary-ramps-primary-60: #788492;
|
|
10
|
+
--primary-ramps-primary-70: #627080;
|
|
11
|
+
--primary-ramps-primary-80: #4b5b6d;
|
|
12
|
+
--primary-ramps-primary-90: #35475b;
|
|
13
|
+
--primary-ramps-primary-100: #1e3249;
|
|
14
|
+
--primary-ramps-primary-110: #1b2d42;
|
|
15
|
+
--primary-ramps-primary-120: #18283a;
|
|
16
|
+
--primary-ramps-primary-130: #152333;
|
|
17
|
+
--primary-ramps-primary-140: #121e2c;
|
|
18
|
+
--primary-ramps-primary-150: #0f1925;
|
|
19
|
+
--secondary-ramps-secondary-5: #fdfcf2;
|
|
20
|
+
--secondary-ramps-secondary-10: #fcfae5;
|
|
21
|
+
--secondary-ramps-secondary-20: #f8f5cc;
|
|
22
|
+
--secondary-ramps-secondary-30: #f5f0b2;
|
|
23
|
+
--secondary-ramps-secondary-40: #f1eb99;
|
|
24
|
+
--secondary-ramps-secondary-50: #eee680;
|
|
25
|
+
--secondary-ramps-secondary-60: #ebe166;
|
|
26
|
+
--secondary-ramps-secondary-70: #e7dc4d;
|
|
27
|
+
--secondary-ramps-secondary-80: #e4d733;
|
|
28
|
+
--secondary-ramps-secondary-90: #e0d21a;
|
|
29
|
+
--secondary-ramps-secondary-100: #ddcd00;
|
|
30
|
+
--secondary-ramps-secondary-110: #c7b800;
|
|
31
|
+
--secondary-ramps-secondary-120: #b1a400;
|
|
32
|
+
--secondary-ramps-secondary-130: #9b8f00;
|
|
33
|
+
--secondary-ramps-secondary-140: #857b00;
|
|
34
|
+
--secondary-ramps-secondary-150: #6f6700;
|
|
35
|
+
--tertiary-ramps-tertiary-5: #fafafa;
|
|
36
|
+
--tertiary-ramps-tertiary-10: #f5f5f5;
|
|
37
|
+
--tertiary-ramps-tertiary-20: #ececec;
|
|
38
|
+
--tertiary-ramps-tertiary-30: #e2e2e2;
|
|
39
|
+
--tertiary-ramps-tertiary-40: #d8d8d8;
|
|
40
|
+
--tertiary-ramps-tertiary-50: #cfcfcf;
|
|
41
|
+
--tertiary-ramps-tertiary-60: #c5c5c5;
|
|
42
|
+
--tertiary-ramps-tertiary-70: #bbbbbb;
|
|
43
|
+
--tertiary-ramps-tertiary-80: #b1b1b1;
|
|
44
|
+
--tertiary-ramps-tertiary-90: #a8a8a8;
|
|
45
|
+
--tertiary-ramps-tertiary-100: #9e9e9e;
|
|
46
|
+
--tertiary-ramps-tertiary-110: #8e8e8e;
|
|
47
|
+
--tertiary-ramps-tertiary-120: #7e7e7e;
|
|
48
|
+
--tertiary-ramps-tertiary-130: #6f6f6f;
|
|
49
|
+
--tertiary-ramps-tertiary-140: #5f5f5f;
|
|
50
|
+
--tertiary-ramps-tertiary-150: #4f4f4f;
|
|
51
|
+
--grey-grey-5: #fafafa;
|
|
52
|
+
--grey-grey-10: #f5f5f5;
|
|
53
|
+
--grey-grey-20: #ececec;
|
|
54
|
+
--grey-grey-30: #e2e2e2;
|
|
55
|
+
--grey-grey-40: #d8d8d8;
|
|
56
|
+
--grey-grey-50: #cfcfcf;
|
|
57
|
+
--grey-grey-60: #c5c5c5;
|
|
58
|
+
--grey-grey-70: #bbbbbb;
|
|
59
|
+
--grey-grey-80: #b1b1b1;
|
|
60
|
+
--grey-grey-90: #a8a8a8;
|
|
61
|
+
--grey-grey-100: #9e9e9e;
|
|
62
|
+
--grey-grey-110: #8e8e8e;
|
|
63
|
+
--grey-grey-120: #7e7e7e;
|
|
64
|
+
--grey-grey-130: #6f6f6f;
|
|
65
|
+
--grey-grey-140: #5f5f5f;
|
|
66
|
+
--grey-grey-150: #4f4f4f;
|
|
67
|
+
--grey2-grey2-50: #f8fafa;
|
|
68
|
+
--grey2-grey2-100: #f2f5f5;
|
|
69
|
+
--grey2-grey2-200: #e7ebed;
|
|
70
|
+
--grey2-grey2-300: #d3dadf;
|
|
71
|
+
--grey2-grey2-400: #bac5cb;
|
|
72
|
+
--grey2-grey2-500: #9dabb5;
|
|
73
|
+
--grey2-grey2-600: #919eab;
|
|
74
|
+
--grey2-grey2-700: #72808f;
|
|
75
|
+
--grey2-grey2-800: #606b77;
|
|
76
|
+
--grey2-grey2-900: #4f5863;
|
|
77
|
+
--grey2-grey2-950: #343b41;
|
|
78
|
+
--info-info-50: #eef8ff;
|
|
79
|
+
--info-info-100: #d9efff;
|
|
80
|
+
--info-info-200: #bce4ff;
|
|
81
|
+
--info-info-300: #8ed5ff;
|
|
82
|
+
--info-info-400: #59bbff;
|
|
83
|
+
--info-info-500: #2998ff;
|
|
84
|
+
--info-info-600: #1b7df5;
|
|
85
|
+
--info-info-700: #1466e1;
|
|
86
|
+
--info-info-800: #1752b6;
|
|
87
|
+
--info-info-900: #19478f;
|
|
88
|
+
--info-info-950: #142c57;
|
|
89
|
+
--success-success-50: #effce9;
|
|
90
|
+
--success-success-100: #daf9ce;
|
|
91
|
+
--success-success-200: #b8f3a3;
|
|
92
|
+
--success-success-300: #8ce86e;
|
|
93
|
+
--success-success-400: #54d62c;
|
|
94
|
+
--success-success-500: #44c022;
|
|
95
|
+
--success-success-600: #319917;
|
|
96
|
+
--success-success-700: #277516;
|
|
97
|
+
--success-success-800: #235d17;
|
|
98
|
+
--success-success-900: #214f18;
|
|
99
|
+
--success-success-950: #0c2b08;
|
|
100
|
+
--warning-warning-50: #ffffea;
|
|
101
|
+
--warning-warning-100: #fffbc5;
|
|
102
|
+
--warning-warning-200: #fff885;
|
|
103
|
+
--warning-warning-300: #ffee46;
|
|
104
|
+
--warning-warning-400: #ffdf1b;
|
|
105
|
+
--warning-warning-500: #ffc107;
|
|
106
|
+
--warning-warning-600: #e29400;
|
|
107
|
+
--warning-warning-700: #bb6902;
|
|
108
|
+
--warning-warning-800: #985108;
|
|
109
|
+
--warning-warning-900: #7c420b;
|
|
110
|
+
--warning-warning-950: #482200;
|
|
111
|
+
--error-error-50: #fff3f1;
|
|
112
|
+
--error-error-100: #ffe3df;
|
|
113
|
+
--error-error-200: #ffccc5;
|
|
114
|
+
--error-error-300: #ffa99d;
|
|
115
|
+
--error-error-400: #ff7664;
|
|
116
|
+
--error-error-500: #ff4d35;
|
|
117
|
+
--error-error-600: #ed2f15;
|
|
118
|
+
--error-error-700: #c8230d;
|
|
119
|
+
--error-error-800: #a5210f;
|
|
120
|
+
--error-error-900: #882214;
|
|
121
|
+
--error-error-950: #4b0c04;
|
|
122
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
|
|
2
|
+
:root {
|
|
3
|
+
/* ------------------------------------------------------------------ */
|
|
4
|
+
/* State Tokens */
|
|
5
|
+
/* ------------------------------------------------------------------ */
|
|
6
|
+
/* Naming Convention: --state-color-[theme]-[element?]-[state] */
|
|
7
|
+
/* States: [default, hover, pressed, disabled] */
|
|
8
|
+
|
|
9
|
+
--state-color-primary-default: #1e3249;
|
|
10
|
+
--state-color-primary-hover: #35475b;
|
|
11
|
+
--state-color-primary-stroke: rgba(30 50 73 / 0.64);
|
|
12
|
+
--state-color-primary-hover-bg: rgba(30 50 73 / 0.08);
|
|
13
|
+
--state-color-primary-pressed: #152333;
|
|
14
|
+
--state-color-primary-active: #35475b;
|
|
15
|
+
--state-color-primary-text-solid: #ffffff;
|
|
16
|
+
--state-color-primary-text-outline: #1e3249;
|
|
17
|
+
--state-color-primary-text-hover: #35475b;
|
|
18
|
+
--state-color-primary-text-pressed: #152333;
|
|
19
|
+
--state-color-secondary-default: #9b8f00;
|
|
20
|
+
--state-color-secondary-hover: #b1a400;
|
|
21
|
+
--state-color-secondary-stroke: rgba(155 143 0 / 0.64);
|
|
22
|
+
--state-color-secondary-hover-bg: rgba(221 205 0 / 0.08);
|
|
23
|
+
--state-color-secondary-pressed: #6f6700;
|
|
24
|
+
--state-color-secondary-active: #b1a400;
|
|
25
|
+
--state-color-secondary-text-solid: #ffffff;
|
|
26
|
+
--state-color-secondary-text-outline: #9b8f00;
|
|
27
|
+
--state-color-secondary-text-hover: #b1a400;
|
|
28
|
+
--state-color-secondary-text-pressed: #6f6700;
|
|
29
|
+
--state-color-tertiary-default: #4f4f4f;
|
|
30
|
+
--state-color-tertiary-hover: #6f6f6f;
|
|
31
|
+
--state-color-tertiary-stroke: rgba(79 79 79 / 0.48);
|
|
32
|
+
--state-color-tertiary-hover-bg: rgba(158 158 158 / 0.08);
|
|
33
|
+
--state-color-tertiary-pressed: #b1b1b1;
|
|
34
|
+
--state-color-tertiary-active: #6f6f6f;
|
|
35
|
+
--state-color-tertiary-text-solid: #ffffff;
|
|
36
|
+
--state-color-tertiary-text-outline: #4f4f4f;
|
|
37
|
+
--state-color-tertiary-text-hover: #6f6f6f;
|
|
38
|
+
--state-color-tertiary-text-pressed: #b1b1b1;
|
|
39
|
+
--state-color-info-default: #1b7df5;
|
|
40
|
+
--state-color-info-hover: #2998ff;
|
|
41
|
+
--state-color-info-stroke: rgba(41 152 255 / 0.48);
|
|
42
|
+
--state-color-info-hover-bg: rgba(41 152 255 / 0.08);
|
|
43
|
+
--state-color-info-pressed: #1752b6;
|
|
44
|
+
--state-color-info-active: #2998ff;
|
|
45
|
+
--state-color-info-text-solid: #ffffff;
|
|
46
|
+
--state-color-info-text-outline: #1b7df5;
|
|
47
|
+
--state-color-info-text-hover: #2998ff;
|
|
48
|
+
--state-color-info-text-pressed: #1752b6;
|
|
49
|
+
--state-color-success-default: #319917;
|
|
50
|
+
--state-color-success-hover: #44c022;
|
|
51
|
+
--state-color-success-stroke: rgba(68 192 34 / 0.48);
|
|
52
|
+
--state-color-success-hover-bg: rgba(84 214 44 / 0.08);
|
|
53
|
+
--state-color-success-pressed: #235d17;
|
|
54
|
+
--state-color-success-active: #44c022;
|
|
55
|
+
--state-color-success-text-solid: #ffffff;
|
|
56
|
+
--state-color-success-text-outline: #319917;
|
|
57
|
+
--state-color-success-text-hover: #44c022;
|
|
58
|
+
--state-color-success-text-pressed: #235d17;
|
|
59
|
+
--state-color-warning-default: #ffc107;
|
|
60
|
+
--state-color-warning-hover: #ffdf1b;
|
|
61
|
+
--state-color-warning-stroke: rgba(255 223 27 / 0.48);
|
|
62
|
+
--state-color-warning-hover-bg: rgba(255 193 7 / 0.08);
|
|
63
|
+
--state-color-warning-pressed: #985108;
|
|
64
|
+
--state-color-warning-active: #ffc107;
|
|
65
|
+
--state-color-warning-text-solid: #1e3249;
|
|
66
|
+
--state-color-warning-text-outline: #ffc107;
|
|
67
|
+
--state-color-warning-text-hover: #ffdf1b;
|
|
68
|
+
--state-color-warning-text-pressed: #985108;
|
|
69
|
+
--state-color-error-default: #ed2f15;
|
|
70
|
+
--state-color-error-hover: #ff4d35;
|
|
71
|
+
--state-color-error-stroke: rgba(237 47 21 / 0.64);
|
|
72
|
+
--state-color-error-hover-bg: rgba(255 77 53 / 0.08);
|
|
73
|
+
--state-color-error-pressed: #a5210f;
|
|
74
|
+
--state-color-error-active: #ff4d35;
|
|
75
|
+
--state-color-error-text-solid: #ffffff;
|
|
76
|
+
--state-color-error-text-outline: #ed2f15;
|
|
77
|
+
--state-color-error-text-hover: #ff4d35;
|
|
78
|
+
--state-color-error-text-pressed: #a5210f;
|
|
79
|
+
--state-color-disable-solid: #d3dadf;
|
|
80
|
+
--state-color-disable-outline: #9dabb5;
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--main-transparency-primary-8: rgba(30 50 73 / 0.08);
|
|
3
|
+
--main-transparency-primary-12: rgba(30 50 73 / 0.12);
|
|
4
|
+
--main-transparency-primary-16: rgba(30 50 73 / 0.16);
|
|
5
|
+
--main-transparency-primary-24: rgba(30 50 73 / 0.24);
|
|
6
|
+
--main-transparency-primary-32: rgba(30 50 73 / 0.32);
|
|
7
|
+
--main-transparency-primary-48: rgba(30 50 73 / 0.48);
|
|
8
|
+
--main-transparency-secondary-8: rgba(221 205 0 / 0.08);
|
|
9
|
+
--main-transparency-secondary-12: rgba(221 205 0 / 0.12);
|
|
10
|
+
--main-transparency-secondary-16: rgba(221 205 0 / 0.16);
|
|
11
|
+
--main-transparency-secondary-24: rgba(221 205 0 / 0.24);
|
|
12
|
+
--main-transparency-secondary-32: rgba(221 205 0 / 0.32);
|
|
13
|
+
--main-transparency-secondary-48: rgba(221 205 0 / 0.48);
|
|
14
|
+
--main-transparency-tertiary-8: rgba(158 158 158 / 0.08);
|
|
15
|
+
--main-transparency-tertiary-12: rgba(158 158 158 / 0.12);
|
|
16
|
+
--main-transparency-tertiary-16: rgba(158 158 158 / 0.16);
|
|
17
|
+
--main-transparency-tertiary-24: rgba(158 158 158 / 0.24);
|
|
18
|
+
--main-transparency-tertiary-32: rgba(158 158 158 / 0.32);
|
|
19
|
+
--main-transparency-tertiary-48: rgba(158 158 158 / 0.48);
|
|
20
|
+
--other-transparency-info-8: rgba(41 152 255 / 0.08);
|
|
21
|
+
--other-transparency-info-12: rgba(41 152 255 / 0.12);
|
|
22
|
+
--other-transparency-info-16: rgba(41 152 255 / 0.16);
|
|
23
|
+
--other-transparency-info-24: rgba(41 152 255 / 0.24);
|
|
24
|
+
--other-transparency-info-32: rgba(41 152 255 / 0.32);
|
|
25
|
+
--other-transparency-info-48: rgba(41 152 255 / 0.48);
|
|
26
|
+
--other-transparency-success-8: rgba(84 214 44 / 0.08);
|
|
27
|
+
--other-transparency-success-12: rgba(84 214 44 / 0.12);
|
|
28
|
+
--other-transparency-success-16: rgba(84 214 44 / 0.16);
|
|
29
|
+
--other-transparency-success-24: rgba(84 214 44 / 0.24);
|
|
30
|
+
--other-transparency-success-32: rgba(84 214 44 / 0.32);
|
|
31
|
+
--other-transparency-success-48: rgba(84 214 44 / 0.48);
|
|
32
|
+
--other-transparency-warning-8: rgba(255 193 7 / 0.08);
|
|
33
|
+
--other-transparency-warning-12: rgba(255 193 7 / 0.12);
|
|
34
|
+
--other-transparency-warning-16: rgba(255 193 7 / 0.16);
|
|
35
|
+
--other-transparency-warning-24: rgba(255 193 7 / 0.24);
|
|
36
|
+
--other-transparency-warning-32: rgba(255 193 7 / 0.32);
|
|
37
|
+
--other-transparency-warning-48: rgba(255 193 7 / 0.48);
|
|
38
|
+
--other-transparency-error-8: rgba(255 72 66 / 0.08);
|
|
39
|
+
--other-transparency-error-12: rgba(255 72 66 / 0.12);
|
|
40
|
+
--other-transparency-error-16: rgba(255 72 66 / 0.16);
|
|
41
|
+
--other-transparency-error-24: rgba(255 72 66 / 0.24);
|
|
42
|
+
--other-transparency-error-32: rgba(255 72 66 / 0.32);
|
|
43
|
+
--other-transparency-error-48: rgba(255 72 66 / 0.48);
|
|
44
|
+
--other-transparency-grey-8: rgba(158 158 158 / 0.08);
|
|
45
|
+
--other-transparency-grey-12: rgba(158 158 158 / 0.12);
|
|
46
|
+
--other-transparency-grey-16: rgba(158 158 158 / 0.16);
|
|
47
|
+
--other-transparency-grey-24: rgba(158 158 158 / 0.24);
|
|
48
|
+
--other-transparency-grey-32: rgba(158 158 158 / 0.32);
|
|
49
|
+
--other-transparency-grey-48: rgba(158 158 158 / 0.48);
|
|
50
|
+
--other-transparency-grey2-8: rgba(145 158 171 / 0.08);
|
|
51
|
+
--other-transparency-grey2-12: rgba(145 158 171 / 0.12);
|
|
52
|
+
--other-transparency-grey2-16: rgba(145 158 171 / 0.16);
|
|
53
|
+
--other-transparency-grey2-24: rgba(145 158 171 / 0.24);
|
|
54
|
+
--other-transparency-grey2-32: rgba(145 158 171 / 0.32);
|
|
55
|
+
--other-transparency-grey2-48: rgba(145 158 171 / 0.48);
|
|
56
|
+
--other-transparency-white-08: rgba(255 255 255 / 0.08);
|
|
57
|
+
--other-transparency-white-12: rgba(255 255 255 / 0.12);
|
|
58
|
+
--other-transparency-white-16: rgba(255 255 255 / 0.16);
|
|
59
|
+
--other-transparency-white-24: rgba(255 255 255 / 0.24);
|
|
60
|
+
--other-transparency-white-32: rgba(255 255 255 / 0.32);
|
|
61
|
+
--other-transparency-white-48: rgba(255 255 255 / 0.48);
|
|
62
|
+
--other-transparency-black-08: rgba(0 0 0 / 0.08);
|
|
63
|
+
--other-transparency-black-12: rgba(0 0 0 / 0.12);
|
|
64
|
+
--other-transparency-black-16: rgba(0 0 0 / 0.16);
|
|
65
|
+
--other-transparency-black-24: rgba(0 0 0 / 0.24);
|
|
66
|
+
--other-transparency-black-32: rgba(0 0 0 / 0.32);
|
|
67
|
+
--other-transparency-black-48: rgba(0 0 0 / 0.48);
|
|
68
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* TYPE */
|
|
3
|
+
--h1-family: "Montserrat";
|
|
4
|
+
--h1-size: 64px;
|
|
5
|
+
--h1-size-rem: 4rem;
|
|
6
|
+
--h1-weight: 700;
|
|
7
|
+
--h1-style: normal;
|
|
8
|
+
--h1-line-height: 80px;
|
|
9
|
+
--h1-line-height-rem: 5rem;
|
|
10
|
+
--h2-family: "Montserrat";
|
|
11
|
+
--h2-size: 48px;
|
|
12
|
+
--h2-size-rem: 3rem;
|
|
13
|
+
--h2-weight: 700;
|
|
14
|
+
--h2-style: normal;
|
|
15
|
+
--h2-line-height: 60px;
|
|
16
|
+
--h2-line-height-rem: 3.75rem;
|
|
17
|
+
--h3-family: "Montserrat";
|
|
18
|
+
--h3-size: 32px;
|
|
19
|
+
--h3-size-rem: 2rem;
|
|
20
|
+
--h3-weight: 700;
|
|
21
|
+
--h3-style: normal;
|
|
22
|
+
--h3-line-height: 48px;
|
|
23
|
+
--h3-line-height-rem: 3rem;
|
|
24
|
+
--h4-family: "Montserrat";
|
|
25
|
+
--h4-size: 24px;
|
|
26
|
+
--h4-size-rem: 1.5rem;
|
|
27
|
+
--h4-weight: 700;
|
|
28
|
+
--h4-style: normal;
|
|
29
|
+
--h4-line-height: 32px;
|
|
30
|
+
--h4-line-height-rem: 2rem;
|
|
31
|
+
--h5-family: "Montserrat";
|
|
32
|
+
--h5-size: 20px;
|
|
33
|
+
--h5-size-rem: 1.25rem;
|
|
34
|
+
--h5-weight: 700;
|
|
35
|
+
--h5-style: normal;
|
|
36
|
+
--h5-line-height: 28px;
|
|
37
|
+
--h5-line-height-rem: 1.75rem;
|
|
38
|
+
--h6-family: "Montserrat";
|
|
39
|
+
--h6-size: 18px;
|
|
40
|
+
--h6-size-rem: 1.125rem;
|
|
41
|
+
--h6-weight: 700;
|
|
42
|
+
--h6-style: normal;
|
|
43
|
+
--h6-line-height: 24px;
|
|
44
|
+
--h6-line-height-rem: 1.5rem;
|
|
45
|
+
--subtitle1-family: "Montserrat";
|
|
46
|
+
--subtitle1-size: 16px;
|
|
47
|
+
--subtitle1-size-rem: 1rem;
|
|
48
|
+
--subtitle1-weight: 400;
|
|
49
|
+
--subtitle1-style: normal;
|
|
50
|
+
--subtitle1-line-height: 24px;
|
|
51
|
+
--subtitle1-line-height-rem: 1.5rem;
|
|
52
|
+
--subtitle2-family: "Montserrat";
|
|
53
|
+
--subtitle2-size: 16px;
|
|
54
|
+
--subtitle2-size-rem: 1rem;
|
|
55
|
+
--subtitle2-weight: 500;
|
|
56
|
+
--subtitle2-style: normal;
|
|
57
|
+
--subtitle2-line-height: 24px;
|
|
58
|
+
--subtitle2-line-height-rem: 1.5rem;
|
|
59
|
+
--subtitle3-family: "Montserrat";
|
|
60
|
+
--subtitle3-size: 16px;
|
|
61
|
+
--subtitle3-size-rem: 1rem;
|
|
62
|
+
--subtitle3-weight: 600;
|
|
63
|
+
--subtitle3-style: normal;
|
|
64
|
+
--subtitle3-line-height: 24px;
|
|
65
|
+
--subtitle3-line-height-rem: 1.5rem;
|
|
66
|
+
--subtitle4-family: "Montserrat";
|
|
67
|
+
--subtitle4-size: 14px;
|
|
68
|
+
--subtitle4-size-rem: 0.875rem;
|
|
69
|
+
--subtitle4-weight: 400;
|
|
70
|
+
--subtitle4-style: normal;
|
|
71
|
+
--subtitle4-line-height: 22px;
|
|
72
|
+
--subtitle4-line-height-rem: 1.375rem;
|
|
73
|
+
--subtitle5-family: "Montserrat";
|
|
74
|
+
--subtitle5-size: 14px;
|
|
75
|
+
--subtitle5-size-rem: 0.875rem;
|
|
76
|
+
--subtitle5-weight: 500;
|
|
77
|
+
--subtitle5-style: normal;
|
|
78
|
+
--subtitle5-line-height: 22px;
|
|
79
|
+
--subtitle5-line-height-rem: 1.375rem;
|
|
80
|
+
--subtitle6-family: "Montserrat";
|
|
81
|
+
--subtitle6-size: 14px;
|
|
82
|
+
--subtitle6-size-rem: 0.875rem;
|
|
83
|
+
--subtitle6-weight: 600;
|
|
84
|
+
--subtitle6-style: normal;
|
|
85
|
+
--subtitle6-line-height: 22px;
|
|
86
|
+
--subtitle6-line-height-rem: 1.375rem;
|
|
87
|
+
--body1-family: "Montserrat";
|
|
88
|
+
--body1-size: 16px;
|
|
89
|
+
--body1-size-rem: 1rem;
|
|
90
|
+
--body1-weight: 400;
|
|
91
|
+
--body1-style: normal;
|
|
92
|
+
--body1-line-height: 20px;
|
|
93
|
+
--body1-line-height-rem: 1.25rem;
|
|
94
|
+
--body2-family: "Montserrat";
|
|
95
|
+
--body2-size: 16px;
|
|
96
|
+
--body2-size-rem: 1rem;
|
|
97
|
+
--body2-weight: 500;
|
|
98
|
+
--body2-style: normal;
|
|
99
|
+
--body2-line-height: 20px;
|
|
100
|
+
--body2-line-height-rem: 1.25rem;
|
|
101
|
+
--body3-family: "Montserrat";
|
|
102
|
+
--body3-size: 14px;
|
|
103
|
+
--body3-size-rem: 0.875rem;
|
|
104
|
+
--body3-weight: 400;
|
|
105
|
+
--body3-style: normal;
|
|
106
|
+
--body3-line-height: 18px;
|
|
107
|
+
--body3-line-height-rem: 1.125rem;
|
|
108
|
+
--body4-family: "Montserrat";
|
|
109
|
+
--body4-size: 14px;
|
|
110
|
+
--body4-size-rem: 0.875rem;
|
|
111
|
+
--body4-weight: 500;
|
|
112
|
+
--body4-style: normal;
|
|
113
|
+
--body4-line-height: 18px;
|
|
114
|
+
--body4-line-height-rem: 1.125rem;
|
|
115
|
+
--small1-family: "Montserrat";
|
|
116
|
+
--small1-size: 12px;
|
|
117
|
+
--small1-size-rem: 0.75rem;
|
|
118
|
+
--small1-weight: 400;
|
|
119
|
+
--small1-style: normal;
|
|
120
|
+
--small1-line-height: 14px;
|
|
121
|
+
--small1-line-height-rem: 0.875rem;
|
|
122
|
+
--small2-family: "Montserrat";
|
|
123
|
+
--small2-size: 12px;
|
|
124
|
+
--small2-size-rem: 0.75rem;
|
|
125
|
+
--small2-weight: 500;
|
|
126
|
+
--small2-style: normal;
|
|
127
|
+
--small2-line-height: 14px;
|
|
128
|
+
--small2-line-height-rem: 0.875rem;
|
|
129
|
+
--small3-family: "Montserrat";
|
|
130
|
+
--small3-size: 12px;
|
|
131
|
+
--small3-size-rem: 0.75rem;
|
|
132
|
+
--small3-weight: 600;
|
|
133
|
+
--small3-style: normal;
|
|
134
|
+
--small3-line-height: 14px;
|
|
135
|
+
--small3-line-height-rem: 0.875rem;
|
|
136
|
+
--small4-family: "Montserrat";
|
|
137
|
+
--small4-size: 10px;
|
|
138
|
+
--small4-size-rem: 0.625rem;
|
|
139
|
+
--small4-weight: 400;
|
|
140
|
+
--small4-style: normal;
|
|
141
|
+
--small4-line-height: 12px;
|
|
142
|
+
--small4-line-height-rem: 0.75rem;
|
|
143
|
+
--small5-family: "Montserrat";
|
|
144
|
+
--small5-size: 10px;
|
|
145
|
+
--small5-size-rem: 0.625rem;
|
|
146
|
+
--small5-weight: 500;
|
|
147
|
+
--small5-style: normal;
|
|
148
|
+
--small5-line-height: 12px;
|
|
149
|
+
--small5-line-height-rem: 0.75rem;
|
|
150
|
+
--label-label1-family: "Montserrat";
|
|
151
|
+
--label-label1-size: 12px;
|
|
152
|
+
--label-label1-size-rem: 0.75rem;
|
|
153
|
+
--label-label1-weight: 400;
|
|
154
|
+
--label-label1-style: normal;
|
|
155
|
+
--label-label1-line-height: 12px;
|
|
156
|
+
--label-label1-line-height-rem: 0.75rem;
|
|
157
|
+
--label-label2-family: "Montserrat";
|
|
158
|
+
--label-label2-size: 10px;
|
|
159
|
+
--label-label2-size-rem: 0.625rem;
|
|
160
|
+
--label-label2-weight: 400;
|
|
161
|
+
--label-label2-style: normal;
|
|
162
|
+
--label-label2-line-height: 10px;
|
|
163
|
+
--label-label2-line-height-rem: 0.625rem;
|
|
164
|
+
--button-button-l-family: "Montserrat";
|
|
165
|
+
--button-button-l-size: 16px;
|
|
166
|
+
--button-button-l-size-rem: 1rem;
|
|
167
|
+
--button-button-l-weight: 700;
|
|
168
|
+
--button-button-l-style: normal;
|
|
169
|
+
--button-button-l-line-height: 24px;
|
|
170
|
+
--button-button-l-line-height-rem: 1.5rem;
|
|
171
|
+
--button-button-ms-family: "Montserrat";
|
|
172
|
+
--button-button-ms-size: 14px;
|
|
173
|
+
--button-button-ms-size-rem: 0.875rem;
|
|
174
|
+
--button-button-ms-weight: 700;
|
|
175
|
+
--button-button-ms-style: normal;
|
|
176
|
+
--button-button-ms-line-height: 22px;
|
|
177
|
+
--button-button-ms-line-height-rem: 1.375rem;
|
|
178
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--radius-radius-xl: 16px;
|
|
3
|
+
--radius-radius-xl-rem: 1rem;
|
|
4
|
+
--radius-radius-l: 12px;
|
|
5
|
+
--radius-radius-l-rem: 0.75rem;
|
|
6
|
+
--radius-radius-m: 8px;
|
|
7
|
+
--radius-radius-m-rem: 0.5rem;
|
|
8
|
+
--radius-radius-s: 6px;
|
|
9
|
+
--radius-radius-s-rem: 0.375rem;
|
|
10
|
+
--radius-radius-xs: 4px;
|
|
11
|
+
--radius-radius-xs-rem: 0.25rem;
|
|
12
|
+
--spacing-spacing-xxs: 2px;
|
|
13
|
+
--spacing-spacing-xxs-rem: 0.125rem;
|
|
14
|
+
--spacing-spacing-xs: 4px;
|
|
15
|
+
--spacing-spacing-xs-rem: 0.25rem;
|
|
16
|
+
--spacing-spacing-s: 8px;
|
|
17
|
+
--spacing-spacing-s-rem: 0.5rem;
|
|
18
|
+
--spacing-spacing-m: 12px;
|
|
19
|
+
--spacing-spacing-m-rem: 0.75rem;
|
|
20
|
+
--spacing-spacing-l: 16px;
|
|
21
|
+
--spacing-spacing-l-rem: 1rem;
|
|
22
|
+
--spacing-spacing-xl: 24px;
|
|
23
|
+
--spacing-spacing-xl-rem: 1.5rem;
|
|
24
|
+
--spacing-spacing-xxl: 32px;
|
|
25
|
+
--spacing-spacing-xxl-rem: 2rem;
|
|
26
|
+
--spacing-spacing-xxxl: 48px;
|
|
27
|
+
--spacing-spacing-xxxl-rem: 3rem;
|
|
28
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export const withColorMixin = (variable) =>
|
|
2
|
+
`color-mix(in srgb, var(${variable}) calc(100% * <alpha-value>), transparent)`;
|
|
3
|
+
|
|
4
|
+
export const generateColorConfig = (
|
|
5
|
+
baseName,
|
|
6
|
+
variablePrefix,
|
|
7
|
+
range = [5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150]
|
|
8
|
+
) => {
|
|
9
|
+
const colors = {};
|
|
10
|
+
|
|
11
|
+
range.forEach((num) => {
|
|
12
|
+
colors[`${baseName}-${num}`] = withColorMixin(`--${variablePrefix}-${num}`);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
colors[`${baseName}-foreground`] = withColorMixin(`--${baseName}-foreground`);
|
|
16
|
+
colors[`${baseName}`] = withColorMixin(`--state-color-${baseName}-default`);
|
|
17
|
+
colors[`${baseName}-default`] = withColorMixin(
|
|
18
|
+
`--state-color-${baseName}-default`
|
|
19
|
+
);
|
|
20
|
+
colors[`${baseName}-hover`] = withColorMixin(
|
|
21
|
+
`--state-color-${baseName}-hover`
|
|
22
|
+
);
|
|
23
|
+
colors[`${baseName}-stroke`] = withColorMixin(
|
|
24
|
+
`--state-color-${baseName}-stroke`
|
|
25
|
+
);
|
|
26
|
+
colors[`${baseName}-hover-bg`] = withColorMixin(
|
|
27
|
+
`--state-color-${baseName}-hover-bg`
|
|
28
|
+
);
|
|
29
|
+
colors[`${baseName}-pressed`] = withColorMixin(
|
|
30
|
+
`--state-color-${baseName}-pressed`
|
|
31
|
+
);
|
|
32
|
+
colors[`${baseName}-active`] = withColorMixin(
|
|
33
|
+
`--state-color-${baseName}-active`
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
return colors;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export function generateButtonStyles(type) {
|
|
40
|
+
const themes = [
|
|
41
|
+
"primary",
|
|
42
|
+
"secondary",
|
|
43
|
+
"tertiary",
|
|
44
|
+
"info",
|
|
45
|
+
"success",
|
|
46
|
+
"warning",
|
|
47
|
+
"error",
|
|
48
|
+
];
|
|
49
|
+
const modes = ["solid", "outline", "flat"];
|
|
50
|
+
return themes.reduce((prev, theme) => {
|
|
51
|
+
modes.forEach((mode) => {
|
|
52
|
+
const prefix = `button-${theme}-${mode}`;
|
|
53
|
+
prev[`${prefix}-default`] = withColorMixin(`--${prefix}-default-${type}`);
|
|
54
|
+
prev[`${prefix}-hover`] = withColorMixin(`--${prefix}-hover-${type}`);
|
|
55
|
+
prev[`${prefix}-active`] = withColorMixin(`--${prefix}-active-${type}`);
|
|
56
|
+
prev[`${prefix}-disabled`] = withColorMixin(
|
|
57
|
+
`--${prefix}-disabled-${type}`
|
|
58
|
+
);
|
|
59
|
+
});
|
|
60
|
+
return prev;
|
|
61
|
+
}, {});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// action-button-solid-hover
|
|
65
|
+
export function generateActionButtonStyles(type) {
|
|
66
|
+
const modes = ["solid", "outline", "icon"];
|
|
67
|
+
|
|
68
|
+
return modes.reduce((prev, mode) => {
|
|
69
|
+
const prefix = `action-button-${mode}`;
|
|
70
|
+
prev[`${prefix}-default`] = withColorMixin(`--${prefix}-default-${type}`);
|
|
71
|
+
prev[`${prefix}-hover`] = withColorMixin(`--${prefix}-hover-${type}`);
|
|
72
|
+
prev[`${prefix}-pressed`] = withColorMixin(`--${prefix}-pressed-${type}`);
|
|
73
|
+
prev[`${prefix}-active`] = withColorMixin(`--${prefix}-active-${type}`);
|
|
74
|
+
prev[`${prefix}-active-pressed`] = withColorMixin(
|
|
75
|
+
`--${prefix}-active-pressed-${type}`
|
|
76
|
+
);
|
|
77
|
+
prev[`${prefix}-active-hover`] = withColorMixin(
|
|
78
|
+
`--${prefix}-active-hover-${type}`
|
|
79
|
+
);
|
|
80
|
+
prev[`${prefix}-disabled`] = withColorMixin(`--${prefix}-disabled-${type}`);
|
|
81
|
+
return prev;
|
|
82
|
+
}, {});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// bg-primary-transparent-8
|
|
86
|
+
export const generateTransparentColorConfig = (baseName, type) => {
|
|
87
|
+
const colors = {};
|
|
88
|
+
|
|
89
|
+
const range = [8, 12, 16, 24, 32, 48];
|
|
90
|
+
|
|
91
|
+
range.forEach((num) => {
|
|
92
|
+
colors[`${baseName}-transparent-${num}`] = withColorMixin(
|
|
93
|
+
`--${type}-transparency-${baseName}-${num}`
|
|
94
|
+
);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
return colors;
|
|
98
|
+
};
|