@rovula/ui 0.1.6 → 0.1.8
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 +630 -467
- package/dist/cjs/bundle.js +1545 -1545
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/AlertDialog/AlertDialog.stories.d.ts +3 -0
- package/dist/cjs/types/components/Dialog/Dialog.d.ts +7 -1
- package/dist/cjs/types/components/Dialog/Dialog.stories.d.ts +3 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +2 -0
- package/dist/cjs/types/components/Form/Field.d.ts +26 -0
- package/dist/cjs/types/components/Form/FieldMessage.d.ts +7 -0
- package/dist/cjs/types/components/Form/Form.d.ts +49 -11
- package/dist/cjs/types/components/Form/Form.stories.d.ts +23 -0
- package/dist/cjs/types/components/Form/ValidationHintList.d.ts +17 -0
- package/dist/cjs/types/components/Form/ValidationHintList.stories.d.ts +9 -0
- package/dist/cjs/types/components/Form/index.d.ts +10 -0
- package/dist/cjs/types/components/Form/useOptionBridge.d.ts +17 -0
- package/dist/cjs/types/components/OtpInput/OtpInput.d.ts +17 -0
- package/dist/cjs/types/components/OtpInput/OtpInput.stories.d.ts +15 -0
- package/dist/cjs/types/components/OtpInput/OtpInputGroup.d.ts +25 -0
- package/dist/cjs/types/components/OtpInput/index.d.ts +5 -0
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +3 -0
- package/dist/cjs/types/index.d.ts +5 -0
- package/dist/cjs/types/theme/ThemeColorCoverageRuntime.stories.d.ts +10 -0
- package/dist/cjs/types/utils/colors.d.ts +351 -267
- package/dist/components/ActionButton/ActionButton.stories.js +2 -2
- package/dist/components/ActionButton/ActionButton.styles.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +6 -6
- package/dist/components/AlertDialog/AlertDialog.stories.js +3 -0
- package/dist/components/Avatar/Avatar.stories.js +1 -1
- package/dist/components/Avatar/Avatar.styles.js +1 -1
- package/dist/components/Avatar/AvatarBase.js +1 -1
- package/dist/components/Avatar/AvatarGroup.stories.js +1 -1
- package/dist/components/Button/Buttons.stories.js +2 -2
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +17 -7
- package/dist/components/Collapsible/Collapsible.styles.js +1 -1
- package/dist/components/DataTable/DataTable.js +2 -2
- package/dist/components/Dialog/Dialog.js +12 -7
- package/dist/components/Dialog/Dialog.stories.js +90 -2
- package/dist/components/Dropdown/Dropdown.js +2 -2
- package/dist/components/DropdownMenu/DropdownMenu.js +3 -3
- package/dist/components/FocusedScrollView/FocusedScrollView.stories.js +6 -6
- package/dist/components/Form/Field.js +60 -0
- package/dist/components/Form/FieldMessage.js +24 -0
- package/dist/components/Form/Form.js +73 -41
- package/dist/components/Form/Form.stories.js +221 -0
- package/dist/components/Form/ValidationHintList.js +30 -0
- package/dist/components/Form/ValidationHintList.stories.js +50 -0
- package/dist/components/Form/index.js +5 -0
- package/dist/components/Form/useOptionBridge.js +27 -0
- package/dist/components/InputFilter/InputFilter.js +5 -4
- package/dist/components/InputFilter/InputFilter.stories.js +1 -1
- package/dist/components/InputFilter/InputFilter.styles.js +14 -1
- package/dist/components/Label/Label.styles.js +1 -1
- package/dist/components/Menu/Menu.js +2 -2
- package/dist/components/NumberInput/NumberInput.stories.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +118 -0
- package/dist/components/OtpInput/OtpInput.stories.js +60 -0
- package/dist/components/OtpInput/OtpInputGroup.js +23 -0
- package/dist/components/OtpInput/index.js +3 -0
- package/dist/components/PasswordInput/PasswordInput.stories.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +2 -2
- package/dist/components/Search/Search.js +13 -1
- package/dist/components/Search/Search.stories.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.stories.js +5 -5
- package/dist/components/Switch/Switch.stories.js +2 -2
- package/dist/components/Switch/Switch.styles.js +1 -1
- package/dist/components/Table/Table.js +5 -5
- package/dist/components/Tabs/Tabs.js +12 -9
- package/dist/components/Tabs/Tabs.stories.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Text/Text.stories.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.styles.js +3 -3
- package/dist/components/TextInput/TextInput.js +3 -2
- package/dist/components/TextInput/TextInput.stories.js +3 -3
- package/dist/components/TextInput/TextInput.styles.js +41 -19
- package/dist/components/Toast/Toast.js +4 -2
- package/dist/components/Toast/Toast.stories.js +1 -1
- package/dist/components/Toast/Toast.styles.js +4 -4
- package/dist/components/Toast/Toaster.js +2 -2
- package/dist/components/Tree/Tree.stories.js +1 -1
- package/dist/components/Tree/TreeItem.js +1 -1
- package/dist/esm/bundle.css +630 -467
- package/dist/esm/bundle.js +1545 -1545
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/AlertDialog/AlertDialog.stories.d.ts +3 -0
- package/dist/esm/types/components/Dialog/Dialog.d.ts +7 -1
- package/dist/esm/types/components/Dialog/Dialog.stories.d.ts +3 -0
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +2 -0
- package/dist/esm/types/components/Form/Field.d.ts +26 -0
- package/dist/esm/types/components/Form/FieldMessage.d.ts +7 -0
- package/dist/esm/types/components/Form/Form.d.ts +49 -11
- package/dist/esm/types/components/Form/Form.stories.d.ts +23 -0
- package/dist/esm/types/components/Form/ValidationHintList.d.ts +17 -0
- package/dist/esm/types/components/Form/ValidationHintList.stories.d.ts +9 -0
- package/dist/esm/types/components/Form/index.d.ts +10 -0
- package/dist/esm/types/components/Form/useOptionBridge.d.ts +17 -0
- package/dist/esm/types/components/OtpInput/OtpInput.d.ts +17 -0
- package/dist/esm/types/components/OtpInput/OtpInput.stories.d.ts +15 -0
- package/dist/esm/types/components/OtpInput/OtpInputGroup.d.ts +25 -0
- package/dist/esm/types/components/OtpInput/index.d.ts +5 -0
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +3 -0
- package/dist/esm/types/index.d.ts +5 -0
- package/dist/esm/types/theme/ThemeColorCoverageRuntime.stories.d.ts +10 -0
- package/dist/esm/types/utils/colors.d.ts +351 -267
- package/dist/index.d.ts +512 -269
- package/dist/index.js +3 -0
- package/dist/src/theme/global.css +2739 -2681
- package/dist/theme/ThemeColorCoverageRuntime.stories.js +91 -0
- package/dist/utils/colors.js +359 -267
- package/package.json +4 -2
- package/src/components/ActionButton/ActionButton.stories.tsx +6 -6
- package/src/components/ActionButton/ActionButton.styles.ts +1 -1
- package/src/components/AlertDialog/AlertDialog.stories.tsx +22 -0
- package/src/components/AlertDialog/AlertDialog.tsx +6 -6
- package/src/components/Avatar/Avatar.stories.tsx +1 -1
- package/src/components/Avatar/Avatar.styles.ts +1 -1
- package/src/components/Avatar/AvatarBase.tsx +1 -1
- package/src/components/Avatar/AvatarGroup.stories.tsx +1 -1
- package/src/components/Button/Buttons.stories.tsx +25 -17
- package/src/components/Calendar/Calendar.tsx +3 -3
- package/src/components/Checkbox/Checkbox.stories.tsx +35 -12
- package/src/components/Checkbox/Checkbox.tsx +7 -5
- package/src/components/Collapsible/Collapsible.styles.ts +1 -1
- package/src/components/DataTable/DataTable.tsx +2 -2
- package/src/components/Dialog/Dialog.stories.tsx +173 -0
- package/src/components/Dialog/Dialog.tsx +32 -15
- package/src/components/Dropdown/Dropdown.styles.ts +1 -1
- package/src/components/Dropdown/Dropdown.tsx +16 -14
- package/src/components/DropdownMenu/DropdownMenu.tsx +3 -3
- package/src/components/FocusedScrollView/FocusedScrollView.stories.tsx +10 -10
- package/src/components/Form/Field.tsx +160 -0
- package/src/components/Form/FieldMessage.tsx +38 -0
- package/src/components/Form/Form.docs.mdx +67 -0
- package/src/components/Form/Form.stories.tsx +490 -0
- package/src/components/Form/Form.tsx +185 -87
- package/src/components/Form/README.md +284 -0
- package/src/components/Form/ValidationHintList.stories.tsx +118 -0
- package/src/components/Form/ValidationHintList.tsx +82 -0
- package/src/components/Form/index.ts +28 -0
- package/src/components/Form/useOptionBridge.ts +55 -0
- package/src/components/InputFilter/InputFilter.stories.tsx +1 -1
- package/src/components/InputFilter/InputFilter.styles.ts +14 -1
- package/src/components/InputFilter/InputFilter.tsx +33 -28
- package/src/components/Label/Label.styles.ts +2 -2
- package/src/components/Label/Label.tsx +1 -1
- package/src/components/Menu/Menu.tsx +12 -12
- package/src/components/NumberInput/NumberInput.stories.tsx +1 -1
- package/src/components/OtpInput/OtpInput.stories.tsx +168 -0
- package/src/components/OtpInput/OtpInput.tsx +210 -0
- package/src/components/OtpInput/OtpInputGroup.tsx +74 -0
- package/src/components/OtpInput/index.ts +5 -0
- package/src/components/PasswordInput/PasswordInput.stories.tsx +1 -1
- package/src/components/Popover/Popover.tsx +1 -1
- package/src/components/RadioGroup/RadioGroup.stories.tsx +4 -4
- package/src/components/RadioGroup/RadioGroup.tsx +2 -1
- package/src/components/Search/Search.stories.tsx +1 -1
- package/src/components/Search/Search.tsx +6 -2
- package/src/components/Slider/Slider.stories.tsx +7 -7
- package/src/components/Slider/Slider.tsx +1 -1
- package/src/components/Switch/Switch.stories.tsx +4 -4
- package/src/components/Switch/Switch.styles.ts +1 -1
- package/src/components/Table/Table.tsx +5 -5
- package/src/components/Tabs/Tabs.stories.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +29 -18
- package/src/components/Text/Text.stories.tsx +1 -1
- package/src/components/Text/Text.tsx +1 -1
- package/src/components/TextArea/TextArea.stories.tsx +1 -1
- package/src/components/TextArea/TextArea.styles.ts +3 -3
- package/src/components/TextInput/TextInput.stories.tsx +7 -7
- package/src/components/TextInput/TextInput.styles.ts +42 -19
- package/src/components/TextInput/TextInput.tsx +3 -1
- package/src/components/Toast/Toast.stories.tsx +1 -1
- package/src/components/Toast/Toast.styles.tsx +7 -7
- package/src/components/Toast/Toast.tsx +5 -4
- package/src/components/Toast/Toaster.tsx +17 -20
- package/src/components/Tree/Tree.stories.tsx +1 -1
- package/src/components/Tree/TreeItem.tsx +1 -1
- package/src/index.ts +5 -0
- package/src/theme/THEME_MAPPING.md +36 -37
- package/src/theme/ThemeColorCoverageRuntime.stories.tsx +236 -0
- package/src/theme/direct-token-migration-plan.md +121 -0
- package/src/theme/figma-mcp-check-report.md +225 -0
- package/src/theme/figma-mcp-component-checklist.json +1250 -0
- package/src/theme/global.css +7 -3
- package/src/theme/presets/colors.js +173 -64
- package/src/theme/themes/skyller/baseline.css +0 -4
- package/src/theme/themes/variable-mapping.css +1064 -0
- package/src/theme/themes/variable.css +248 -230
- package/src/theme/themes/xspector/baseline.css +0 -4
- package/src/theme/themes/xspector/components/dropdown-menu.css +4 -4
- package/src/theme/themes/xspector/components/loading.css +2 -2
- package/src/theme/tokens/baseline.css +0 -3
- package/src/theme/tokens/color.css +36 -65
- package/src/theme/tokens/components/action-button.css +6 -6
- package/src/theme/tokens/components/button.css +189 -189
- package/src/theme/tokens/components/dropdown-menu.css +5 -5
- package/src/theme/tokens/components/footer.css +1 -1
- package/src/theme/tokens/components/loading.css +2 -2
- package/src/theme/tokens/components/switch.css +11 -11
- package/src/theme/tokens/typography.css +28 -28
- package/src/theme/tokens_old/baseline.css +13 -0
- package/src/theme/tokens_old/color.css +78 -0
- package/src/theme/tokens_old/components/action-button.css +127 -0
- package/src/theme/tokens_old/components/button.css +512 -0
- package/src/theme/tokens_old/components/dropdown-menu.css +27 -0
- package/src/theme/tokens_old/components/footer.css +9 -0
- package/src/theme/tokens_old/components/loading.css +11 -0
- package/src/theme/tokens_old/components/navbar.css +9 -0
- package/src/theme/tokens_old/components/progress-bar.css +8 -0
- package/src/theme/tokens_old/components/switch.css +29 -0
- package/src/theme/tokens_old/typography.css +199 -0
- package/src/theme/tokens_old/variables.css +28 -0
- package/src/theme/utils.js +172 -33
- package/src/utils/colors.ts +367 -278
- package/src/theme/themes/skyller/color.css +0 -79
- package/src/theme/themes/skyller/palette.css +0 -143
- package/src/theme/themes/skyller/state.css +0 -94
- package/src/theme/themes/skyller/transparent.css +0 -94
- package/src/theme/themes/xspector/color.css +0 -83
- package/src/theme/themes/xspector/palette.css +0 -142
- package/src/theme/themes/xspector/state.css +0 -94
- package/src/theme/themes/xspector/transparent.css +0 -93
- /package/src/theme/{tokens → tokens_old}/palette.css +0 -0
- /package/src/theme/{tokens → tokens_old}/state.css +0 -0
- /package/src/theme/{tokens → tokens_old}/transparent.css +0 -0
package/src/utils/colors.ts
CHANGED
|
@@ -1,212 +1,228 @@
|
|
|
1
1
|
/** CSS variable names for theme colors (resolved by data-theme) */
|
|
2
2
|
export const THEME_COLOR_KEYS = {
|
|
3
|
+
/* ----- Main / Brand core ----- */
|
|
4
|
+
"main-primary": "--main-primary",
|
|
5
|
+
"main-secondary": "--main-secondary",
|
|
6
|
+
"main-tertiary": "--main-tertiary",
|
|
7
|
+
"brand-midnight-blue": "--brand-midnight-blue",
|
|
8
|
+
"brand-columbia-blue": "--brand-columbia-blue",
|
|
9
|
+
"brand-background": "--brand-background",
|
|
10
|
+
"brand-lemon-glacier": "--brand-lemon-glacier",
|
|
3
11
|
/* ----- Palette: Primary ----- */
|
|
4
|
-
"primary-5": "--
|
|
5
|
-
"primary-10": "--
|
|
6
|
-
"primary-20": "--
|
|
7
|
-
"primary-30": "--
|
|
8
|
-
"primary-40": "--
|
|
9
|
-
"primary-50": "--
|
|
10
|
-
"primary-60": "--
|
|
11
|
-
"primary-70": "--
|
|
12
|
-
"primary-80": "--
|
|
13
|
-
"primary-90": "--
|
|
14
|
-
"primary-100": "--
|
|
15
|
-
"primary-110": "--
|
|
16
|
-
"primary-120": "--
|
|
17
|
-
"primary-130": "--
|
|
18
|
-
"primary-140": "--
|
|
19
|
-
"primary-150": "--
|
|
12
|
+
"primary-5": "--ramps-primary-5",
|
|
13
|
+
"primary-10": "--ramps-primary-10",
|
|
14
|
+
"primary-20": "--ramps-primary-20",
|
|
15
|
+
"primary-30": "--ramps-primary-30",
|
|
16
|
+
"primary-40": "--ramps-primary-40",
|
|
17
|
+
"primary-50": "--ramps-primary-50",
|
|
18
|
+
"primary-60": "--ramps-primary-60",
|
|
19
|
+
"primary-70": "--ramps-primary-70",
|
|
20
|
+
"primary-80": "--ramps-primary-80",
|
|
21
|
+
"primary-90": "--ramps-primary-90",
|
|
22
|
+
"primary-100": "--ramps-primary-100",
|
|
23
|
+
"primary-110": "--ramps-primary-110",
|
|
24
|
+
"primary-120": "--ramps-primary-120",
|
|
25
|
+
"primary-130": "--ramps-primary-130",
|
|
26
|
+
"primary-140": "--ramps-primary-140",
|
|
27
|
+
"primary-150": "--ramps-primary-150",
|
|
20
28
|
/* ----- Palette: Secondary ----- */
|
|
21
|
-
"secondary-5": "--
|
|
22
|
-
"secondary-10": "--
|
|
23
|
-
"secondary-20": "--
|
|
24
|
-
"secondary-30": "--
|
|
25
|
-
"secondary-40": "--
|
|
26
|
-
"secondary-50": "--
|
|
27
|
-
"secondary-60": "--
|
|
28
|
-
"secondary-70": "--
|
|
29
|
-
"secondary-80": "--
|
|
30
|
-
"secondary-90": "--
|
|
31
|
-
"secondary-100": "--
|
|
32
|
-
"secondary-110": "--
|
|
33
|
-
"secondary-120": "--
|
|
34
|
-
"secondary-130": "--
|
|
35
|
-
"secondary-140": "--
|
|
36
|
-
"secondary-150": "--
|
|
29
|
+
"secondary-5": "--ramps-secondary-5",
|
|
30
|
+
"secondary-10": "--ramps-secondary-10",
|
|
31
|
+
"secondary-20": "--ramps-secondary-20",
|
|
32
|
+
"secondary-30": "--ramps-secondary-30",
|
|
33
|
+
"secondary-40": "--ramps-secondary-40",
|
|
34
|
+
"secondary-50": "--ramps-secondary-50",
|
|
35
|
+
"secondary-60": "--ramps-secondary-60",
|
|
36
|
+
"secondary-70": "--ramps-secondary-70",
|
|
37
|
+
"secondary-80": "--ramps-secondary-80",
|
|
38
|
+
"secondary-90": "--ramps-secondary-90",
|
|
39
|
+
"secondary-100": "--ramps-secondary-100",
|
|
40
|
+
"secondary-110": "--ramps-secondary-110",
|
|
41
|
+
"secondary-120": "--ramps-secondary-120",
|
|
42
|
+
"secondary-130": "--ramps-secondary-130",
|
|
43
|
+
"secondary-140": "--ramps-secondary-140",
|
|
44
|
+
"secondary-150": "--ramps-secondary-150",
|
|
37
45
|
/* ----- Palette: Tertiary ----- */
|
|
38
|
-
"tertiary-5": "--
|
|
39
|
-
"tertiary-10": "--
|
|
40
|
-
"tertiary-20": "--
|
|
41
|
-
"tertiary-30": "--
|
|
42
|
-
"tertiary-40": "--
|
|
43
|
-
"tertiary-50": "--
|
|
44
|
-
"tertiary-60": "--
|
|
45
|
-
"tertiary-70": "--
|
|
46
|
-
"tertiary-80": "--
|
|
47
|
-
"tertiary-90": "--
|
|
48
|
-
"tertiary-100": "--
|
|
49
|
-
"tertiary-110": "--
|
|
50
|
-
"tertiary-120": "--
|
|
51
|
-
"tertiary-130": "--
|
|
52
|
-
"tertiary-140": "--
|
|
53
|
-
"tertiary-150": "--
|
|
46
|
+
"tertiary-5": "--ramps-tertiary-5",
|
|
47
|
+
"tertiary-10": "--ramps-tertiary-10",
|
|
48
|
+
"tertiary-20": "--ramps-tertiary-20",
|
|
49
|
+
"tertiary-30": "--ramps-tertiary-30",
|
|
50
|
+
"tertiary-40": "--ramps-tertiary-40",
|
|
51
|
+
"tertiary-50": "--ramps-tertiary-50",
|
|
52
|
+
"tertiary-60": "--ramps-tertiary-60",
|
|
53
|
+
"tertiary-70": "--ramps-tertiary-70",
|
|
54
|
+
"tertiary-80": "--ramps-tertiary-80",
|
|
55
|
+
"tertiary-90": "--ramps-tertiary-90",
|
|
56
|
+
"tertiary-100": "--ramps-tertiary-100",
|
|
57
|
+
"tertiary-110": "--ramps-tertiary-110",
|
|
58
|
+
"tertiary-120": "--ramps-tertiary-120",
|
|
59
|
+
"tertiary-130": "--ramps-tertiary-130",
|
|
60
|
+
"tertiary-140": "--ramps-tertiary-140",
|
|
61
|
+
"tertiary-150": "--ramps-tertiary-150",
|
|
54
62
|
/* ----- Palette: Grey ----- */
|
|
55
|
-
"grey-5": "--
|
|
56
|
-
"grey-10": "--
|
|
57
|
-
"grey-20": "--
|
|
58
|
-
"grey-30": "--
|
|
59
|
-
"grey-40": "--
|
|
60
|
-
"grey-50": "--
|
|
61
|
-
"grey-60": "--
|
|
62
|
-
"grey-70": "--
|
|
63
|
-
"grey-80": "--
|
|
64
|
-
"grey-90": "--
|
|
65
|
-
"grey-100": "--
|
|
66
|
-
"grey-110": "--
|
|
67
|
-
"grey-120": "--
|
|
68
|
-
"grey-130": "--
|
|
69
|
-
"grey-140": "--
|
|
70
|
-
"grey-150": "--
|
|
63
|
+
"grey-5": "--ramps-grey-5",
|
|
64
|
+
"grey-10": "--ramps-grey-10",
|
|
65
|
+
"grey-20": "--ramps-grey-20",
|
|
66
|
+
"grey-30": "--ramps-grey-30",
|
|
67
|
+
"grey-40": "--ramps-grey-40",
|
|
68
|
+
"grey-50": "--ramps-grey-50",
|
|
69
|
+
"grey-60": "--ramps-grey-60",
|
|
70
|
+
"grey-70": "--ramps-grey-70",
|
|
71
|
+
"grey-80": "--ramps-grey-80",
|
|
72
|
+
"grey-90": "--ramps-grey-90",
|
|
73
|
+
"grey-100": "--ramps-grey-100",
|
|
74
|
+
"grey-110": "--ramps-grey-110",
|
|
75
|
+
"grey-120": "--ramps-grey-120",
|
|
76
|
+
"grey-130": "--ramps-grey-130",
|
|
77
|
+
"grey-140": "--ramps-grey-140",
|
|
78
|
+
"grey-150": "--ramps-grey-150",
|
|
71
79
|
/* ----- Palette: Grey2 ----- */
|
|
72
|
-
"grey2-50": "--
|
|
73
|
-
"grey2-100": "--
|
|
74
|
-
"grey2-200": "--
|
|
75
|
-
"grey2-300": "--
|
|
76
|
-
"grey2-400": "--
|
|
77
|
-
"grey2-500": "--
|
|
78
|
-
"grey2-600": "--
|
|
79
|
-
"grey2-700": "--
|
|
80
|
-
"grey2-800": "--
|
|
81
|
-
"grey2-900": "--
|
|
82
|
-
"grey2-950": "--
|
|
80
|
+
"grey2-50": "--ramps-grey2-50",
|
|
81
|
+
"grey2-100": "--ramps-grey2-100",
|
|
82
|
+
"grey2-200": "--ramps-grey2-200",
|
|
83
|
+
"grey2-300": "--ramps-grey2-300",
|
|
84
|
+
"grey2-400": "--ramps-grey2-400",
|
|
85
|
+
"grey2-500": "--ramps-grey2-500",
|
|
86
|
+
"grey2-600": "--ramps-grey2-600",
|
|
87
|
+
"grey2-700": "--ramps-grey2-700",
|
|
88
|
+
"grey2-800": "--ramps-grey2-800",
|
|
89
|
+
"grey2-900": "--ramps-grey2-900",
|
|
90
|
+
"grey2-950": "--ramps-grey2-950",
|
|
83
91
|
/* ----- Palette: Info, Success, Warning, Error ----- */
|
|
84
|
-
"info-50": "--
|
|
85
|
-
"info-100": "--
|
|
86
|
-
"info-200": "--
|
|
87
|
-
"info-300": "--
|
|
88
|
-
"info-400": "--
|
|
89
|
-
"info-500": "--
|
|
90
|
-
"info-600": "--
|
|
91
|
-
"info-700": "--
|
|
92
|
-
"info-800": "--
|
|
93
|
-
"info-900": "--
|
|
94
|
-
"info-950": "--
|
|
95
|
-
"success-50": "--
|
|
96
|
-
"success-100": "--
|
|
97
|
-
"success-200": "--
|
|
98
|
-
"success-300": "--
|
|
99
|
-
"success-400": "--
|
|
100
|
-
"success-500": "--
|
|
101
|
-
"success-600": "--
|
|
102
|
-
"success-700": "--
|
|
103
|
-
"success-800": "--
|
|
104
|
-
"success-900": "--
|
|
105
|
-
"success-950": "--
|
|
106
|
-
"warning-50": "--
|
|
107
|
-
"warning-100": "--
|
|
108
|
-
"warning-200": "--
|
|
109
|
-
"warning-300": "--
|
|
110
|
-
"warning-400": "--
|
|
111
|
-
"warning-500": "--
|
|
112
|
-
"warning-600": "--
|
|
113
|
-
"warning-700": "--
|
|
114
|
-
"warning-800": "--
|
|
115
|
-
"warning-900": "--
|
|
116
|
-
"warning-950": "--
|
|
117
|
-
"error-50": "--
|
|
118
|
-
"error-100": "--
|
|
119
|
-
"error-200": "--
|
|
120
|
-
"error-300": "--
|
|
121
|
-
"error-400": "--
|
|
122
|
-
"error-500": "--
|
|
123
|
-
"error-600": "--
|
|
124
|
-
"error-700": "--
|
|
125
|
-
"error-800": "--
|
|
126
|
-
"error-900": "--
|
|
127
|
-
"error-950": "--
|
|
92
|
+
"info-50": "--ramps-info-50",
|
|
93
|
+
"info-100": "--ramps-info-100",
|
|
94
|
+
"info-200": "--ramps-info-200",
|
|
95
|
+
"info-300": "--ramps-info-300",
|
|
96
|
+
"info-400": "--ramps-info-400",
|
|
97
|
+
"info-500": "--ramps-info-500",
|
|
98
|
+
"info-600": "--ramps-info-600",
|
|
99
|
+
"info-700": "--ramps-info-700",
|
|
100
|
+
"info-800": "--ramps-info-800",
|
|
101
|
+
"info-900": "--ramps-info-900",
|
|
102
|
+
"info-950": "--ramps-info-950",
|
|
103
|
+
"success-50": "--ramps-success-50",
|
|
104
|
+
"success-100": "--ramps-success-100",
|
|
105
|
+
"success-200": "--ramps-success-200",
|
|
106
|
+
"success-300": "--ramps-success-300",
|
|
107
|
+
"success-400": "--ramps-success-400",
|
|
108
|
+
"success-500": "--ramps-success-500",
|
|
109
|
+
"success-600": "--ramps-success-600",
|
|
110
|
+
"success-700": "--ramps-success-700",
|
|
111
|
+
"success-800": "--ramps-success-800",
|
|
112
|
+
"success-900": "--ramps-success-900",
|
|
113
|
+
"success-950": "--ramps-success-950",
|
|
114
|
+
"warning-50": "--ramps-warning-50",
|
|
115
|
+
"warning-100": "--ramps-warning-100",
|
|
116
|
+
"warning-200": "--ramps-warning-200",
|
|
117
|
+
"warning-300": "--ramps-warning-300",
|
|
118
|
+
"warning-400": "--ramps-warning-400",
|
|
119
|
+
"warning-500": "--ramps-warning-500",
|
|
120
|
+
"warning-600": "--ramps-warning-600",
|
|
121
|
+
"warning-700": "--ramps-warning-700",
|
|
122
|
+
"warning-800": "--ramps-warning-800",
|
|
123
|
+
"warning-900": "--ramps-warning-900",
|
|
124
|
+
"warning-950": "--ramps-warning-950",
|
|
125
|
+
"error-50": "--ramps-error-50",
|
|
126
|
+
"error-100": "--ramps-error-100",
|
|
127
|
+
"error-200": "--ramps-error-200",
|
|
128
|
+
"error-300": "--ramps-error-300",
|
|
129
|
+
"error-400": "--ramps-error-400",
|
|
130
|
+
"error-500": "--ramps-error-500",
|
|
131
|
+
"error-600": "--ramps-error-600",
|
|
132
|
+
"error-700": "--ramps-error-700",
|
|
133
|
+
"error-800": "--ramps-error-800",
|
|
134
|
+
"error-900": "--ramps-error-900",
|
|
135
|
+
"error-950": "--ramps-error-950",
|
|
128
136
|
/* ----- State: Primary ----- */
|
|
129
|
-
primary: "--state-
|
|
130
|
-
"primary-hover": "--state-
|
|
131
|
-
"primary-stroke": "--state-
|
|
132
|
-
"primary-hover-bg": "--state-
|
|
133
|
-
"primary-pressed": "--state-
|
|
134
|
-
"primary-active": "--state-
|
|
135
|
-
"primary-text-solid": "--state-
|
|
136
|
-
"primary-text-outline": "--state-
|
|
137
|
-
"primary-text-hover": "--state-
|
|
138
|
-
"primary-text-pressed": "--state-
|
|
137
|
+
primary: "--state-primary-default",
|
|
138
|
+
"primary-hover": "--state-primary-hover",
|
|
139
|
+
"primary-stroke": "--state-primary-stroke",
|
|
140
|
+
"primary-hover-bg": "--state-primary-hover-bg",
|
|
141
|
+
"primary-pressed": "--state-primary-pressed",
|
|
142
|
+
"primary-active": "--state-primary-active",
|
|
143
|
+
"primary-text-solid": "--state-primary-text-solid",
|
|
144
|
+
"primary-text-outline": "--state-primary-text-outline",
|
|
145
|
+
"primary-text-hover": "--state-primary-text-hover",
|
|
146
|
+
"primary-text-pressed": "--state-primary-text-pressed",
|
|
139
147
|
/* ----- State: Secondary ----- */
|
|
140
|
-
secondary: "--state-
|
|
141
|
-
"secondary-hover": "--state-
|
|
142
|
-
"secondary-stroke": "--state-
|
|
143
|
-
"secondary-hover-bg": "--state-
|
|
144
|
-
"secondary-pressed": "--state-
|
|
145
|
-
"secondary-active": "--state-
|
|
146
|
-
"secondary-text-solid": "--state-
|
|
147
|
-
"secondary-text-outline": "--state-
|
|
148
|
-
"secondary-text-hover": "--state-
|
|
149
|
-
"secondary-text-pressed": "--state-
|
|
148
|
+
secondary: "--state-secondary-default",
|
|
149
|
+
"secondary-hover": "--state-secondary-hover",
|
|
150
|
+
"secondary-stroke": "--state-secondary-stroke",
|
|
151
|
+
"secondary-hover-bg": "--state-secondary-hover-bg",
|
|
152
|
+
"secondary-pressed": "--state-secondary-pressed",
|
|
153
|
+
"secondary-active": "--state-secondary-active",
|
|
154
|
+
"secondary-text-solid": "--state-secondary-text-solid",
|
|
155
|
+
"secondary-text-outline": "--state-secondary-text-outline",
|
|
156
|
+
"secondary-text-hover": "--state-secondary-text-hover",
|
|
157
|
+
"secondary-text-pressed": "--state-secondary-text-pressed",
|
|
150
158
|
/* ----- State: Tertiary ----- */
|
|
151
|
-
tertiary: "--state-
|
|
152
|
-
"tertiary-hover": "--state-
|
|
153
|
-
"tertiary-stroke": "--state-
|
|
154
|
-
"tertiary-hover-bg": "--state-
|
|
155
|
-
"tertiary-pressed": "--state-
|
|
156
|
-
"tertiary-active": "--state-
|
|
157
|
-
"tertiary-text-solid": "--state-
|
|
158
|
-
"tertiary-text-outline": "--state-
|
|
159
|
-
"tertiary-text-hover": "--state-
|
|
160
|
-
"tertiary-text-pressed": "--state-
|
|
159
|
+
tertiary: "--state-tertiary-default",
|
|
160
|
+
"tertiary-hover": "--state-tertiary-hover",
|
|
161
|
+
"tertiary-stroke": "--state-tertiary-stroke",
|
|
162
|
+
"tertiary-hover-bg": "--state-tertiary-hover-bg",
|
|
163
|
+
"tertiary-pressed": "--state-tertiary-pressed",
|
|
164
|
+
"tertiary-active": "--state-tertiary-active",
|
|
165
|
+
"tertiary-text-solid": "--state-tertiary-text-solid",
|
|
166
|
+
"tertiary-text-outline": "--state-tertiary-text-outline",
|
|
167
|
+
"tertiary-text-hover": "--state-tertiary-text-hover",
|
|
168
|
+
"tertiary-text-pressed": "--state-tertiary-text-pressed",
|
|
161
169
|
/* ----- State: Info ----- */
|
|
162
|
-
info: "--state-
|
|
163
|
-
"info-hover": "--state-
|
|
164
|
-
"info-stroke": "--state-
|
|
165
|
-
"info-hover-bg": "--state-
|
|
166
|
-
"info-pressed": "--state-
|
|
167
|
-
"info-active": "--state-
|
|
168
|
-
"info-text-solid": "--state-
|
|
169
|
-
"info-text-outline": "--state-
|
|
170
|
-
"info-text-hover": "--state-
|
|
171
|
-
"info-text-pressed": "--state-
|
|
170
|
+
info: "--state-info-default",
|
|
171
|
+
"info-hover": "--state-info-hover",
|
|
172
|
+
"info-stroke": "--state-info-stroke",
|
|
173
|
+
"info-hover-bg": "--state-info-hover-bg",
|
|
174
|
+
"info-pressed": "--state-info-pressed",
|
|
175
|
+
"info-active": "--state-info-active",
|
|
176
|
+
"info-text-solid": "--state-info-text-solid",
|
|
177
|
+
"info-text-outline": "--state-info-text-outline",
|
|
178
|
+
"info-text-hover": "--state-info-text-hover",
|
|
179
|
+
"info-text-pressed": "--state-info-text-pressed",
|
|
172
180
|
/* ----- State: Success ----- */
|
|
173
|
-
success: "--state-
|
|
174
|
-
"success-hover": "--state-
|
|
175
|
-
"success-stroke": "--state-
|
|
176
|
-
"success-hover-bg": "--state-
|
|
177
|
-
"success-pressed": "--state-
|
|
178
|
-
"success-active": "--state-
|
|
179
|
-
"success-text-solid": "--state-
|
|
180
|
-
"success-text-outline": "--state-
|
|
181
|
-
"success-text-hover": "--state-
|
|
182
|
-
"success-text-pressed": "--state-
|
|
181
|
+
success: "--state-success-default",
|
|
182
|
+
"success-hover": "--state-success-hover",
|
|
183
|
+
"success-stroke": "--state-success-stroke",
|
|
184
|
+
"success-hover-bg": "--state-success-hover-bg",
|
|
185
|
+
"success-pressed": "--state-success-pressed",
|
|
186
|
+
"success-active": "--state-success-active",
|
|
187
|
+
"success-text-solid": "--state-success-text-solid",
|
|
188
|
+
"success-text-outline": "--state-success-text-outline",
|
|
189
|
+
"success-text-hover": "--state-success-text-hover",
|
|
190
|
+
"success-text-pressed": "--state-success-text-pressed",
|
|
183
191
|
/* ----- State: Warning ----- */
|
|
184
|
-
warning: "--state-
|
|
185
|
-
"warning-hover": "--state-
|
|
186
|
-
"warning-stroke": "--state-
|
|
187
|
-
"warning-hover-bg": "--state-
|
|
188
|
-
"warning-pressed": "--state-
|
|
189
|
-
"warning-active": "--state-
|
|
190
|
-
"warning-text-solid": "--state-
|
|
191
|
-
"warning-text-outline": "--state-
|
|
192
|
-
"warning-text-hover": "--state-
|
|
193
|
-
"warning-text-pressed": "--state-
|
|
192
|
+
warning: "--state-warning-default",
|
|
193
|
+
"warning-hover": "--state-warning-hover",
|
|
194
|
+
"warning-stroke": "--state-warning-stroke",
|
|
195
|
+
"warning-hover-bg": "--state-warning-hover-bg",
|
|
196
|
+
"warning-pressed": "--state-warning-pressed",
|
|
197
|
+
"warning-active": "--state-warning-active",
|
|
198
|
+
"warning-text-solid": "--state-warning-text-solid",
|
|
199
|
+
"warning-text-outline": "--state-warning-text-outline",
|
|
200
|
+
"warning-text-hover": "--state-warning-text-hover",
|
|
201
|
+
"warning-text-pressed": "--state-warning-text-pressed",
|
|
194
202
|
/* ----- State: Error ----- */
|
|
195
|
-
error: "--state-
|
|
196
|
-
"error-hover": "--state-
|
|
197
|
-
"error-stroke": "--state-
|
|
198
|
-
"error-hover-bg": "--state-
|
|
199
|
-
"error-pressed": "--state-
|
|
200
|
-
"error-active": "--state-
|
|
201
|
-
"error-text-solid": "--state-
|
|
202
|
-
"error-text-outline": "--state-
|
|
203
|
-
"error-text-hover": "--state-
|
|
204
|
-
"error-text-pressed": "--state-
|
|
203
|
+
error: "--state-error-default",
|
|
204
|
+
"error-hover": "--state-error-hover",
|
|
205
|
+
"error-stroke": "--state-error-stroke",
|
|
206
|
+
"error-hover-bg": "--state-error-hover-bg",
|
|
207
|
+
"error-pressed": "--state-error-pressed",
|
|
208
|
+
"error-active": "--state-error-active",
|
|
209
|
+
"error-text-solid": "--state-error-text-solid",
|
|
210
|
+
"error-text-outline": "--state-error-text-outline",
|
|
211
|
+
"error-text-hover": "--state-error-text-hover",
|
|
212
|
+
"error-text-pressed": "--state-error-text-pressed",
|
|
205
213
|
/* ----- State: Disable ----- */
|
|
206
|
-
"disable-solid": "--state-
|
|
207
|
-
"disable-outline": "--state-
|
|
214
|
+
"disable-solid": "--state-disable-solid",
|
|
215
|
+
"disable-outline": "--state-disable-outline",
|
|
208
216
|
/* ----- Text ----- */
|
|
209
217
|
"text-black": "--text-black",
|
|
218
|
+
"text-contrast-low": "--text-contrast-low",
|
|
219
|
+
"text-contrast-medium": "--text-contrast-medium",
|
|
220
|
+
"text-contrast-high": "--text-contrast-high",
|
|
221
|
+
"text-contrast-max": "--text-contrast-max",
|
|
222
|
+
"text-g-contrast-low": "--text-g-contrast-low",
|
|
223
|
+
"text-g-contrast-medium": "--text-g-contrast-medium",
|
|
224
|
+
"text-g-contrast-high": "--text-g-contrast-high",
|
|
225
|
+
/* ----- Deprecated text aliases ----- */
|
|
210
226
|
"text-dark": "--text-dark",
|
|
211
227
|
"text-medium": "--text-medium",
|
|
212
228
|
"text-light": "--text-light",
|
|
@@ -215,15 +231,15 @@ export const THEME_COLOR_KEYS = {
|
|
|
215
231
|
"text-grey-light": "--text-grey-light",
|
|
216
232
|
"text-white": "--text-white",
|
|
217
233
|
/* ----- Input ----- */
|
|
218
|
-
"input-default-text": "--input-
|
|
219
|
-
"input-default-stroke": "--input-
|
|
220
|
-
"input-filled-text": "--input-
|
|
221
|
-
"input-active-stroke": "--input-
|
|
222
|
-
"input-disable-text": "--input-
|
|
223
|
-
"input-disable-stroke": "--input-
|
|
224
|
-
"input-disable-bg": "--input-
|
|
225
|
-
"input-label-bg": "--input-
|
|
226
|
-
"input-error": "--input-
|
|
234
|
+
"input-default-text": "--input-default-text",
|
|
235
|
+
"input-default-stroke": "--input-default-stroke",
|
|
236
|
+
"input-filled-text": "--input-filled-text",
|
|
237
|
+
"input-active-stroke": "--input-active-stroke",
|
|
238
|
+
"input-disable-text": "--input-disable-text",
|
|
239
|
+
"input-disable-stroke": "--input-disable-stroke",
|
|
240
|
+
"input-disable-bg": "--input-disable-bg",
|
|
241
|
+
"input-label-bg": "--input-label-bg",
|
|
242
|
+
"input-error": "--input-error",
|
|
227
243
|
/* ----- Function button ----- */
|
|
228
244
|
"function-default-solid": "--function-default-solid",
|
|
229
245
|
"function-default-hover": "--function-default-hover",
|
|
@@ -236,7 +252,31 @@ export const THEME_COLOR_KEYS = {
|
|
|
236
252
|
"function-active-hover-bg": "--function-active-hover-bg",
|
|
237
253
|
"function-active-stroke": "--function-active-stroke",
|
|
238
254
|
"function-active-icon": "--function-active-icon",
|
|
255
|
+
/* ----- Direct modal/background tokens ----- */
|
|
256
|
+
"modal-surface": "--modal-surface",
|
|
257
|
+
"modal-highlight": "--modal-highlight",
|
|
258
|
+
"modal-overlay": "--modal-overlay",
|
|
259
|
+
"bg-bg1": "--bg-bg1",
|
|
260
|
+
"bg-bg2": "--bg-bg2",
|
|
261
|
+
"bg-bg3": "--bg-bg3",
|
|
262
|
+
"bg-stroke1": "--bg-stroke1",
|
|
263
|
+
"bg-stroke2": "--bg-stroke2",
|
|
264
|
+
"state-primary-text-solid": "--state-primary-text-solid",
|
|
265
|
+
"state-primary-text-hover": "--state-primary-text-hover",
|
|
266
|
+
"state-secondary-text-solid": "--state-secondary-text-solid",
|
|
267
|
+
"state-secondary-text-hover": "--state-secondary-text-hover",
|
|
268
|
+
"state-tertiary-text-solid": "--state-tertiary-text-solid",
|
|
269
|
+
"state-tertiary-text-hover": "--state-tertiary-text-hover",
|
|
270
|
+
"state-info-text-solid": "--state-info-text-solid",
|
|
271
|
+
"state-info-text-hover": "--state-info-text-hover",
|
|
272
|
+
"state-success-text-solid": "--state-success-text-solid",
|
|
273
|
+
"state-success-text-hover": "--state-success-text-hover",
|
|
274
|
+
"state-warning-text-solid": "--state-warning-text-solid",
|
|
275
|
+
"state-warning-text-hover": "--state-warning-text-hover",
|
|
276
|
+
"state-error-text-solid": "--state-error-text-solid",
|
|
277
|
+
"state-error-text-hover": "--state-error-text-hover",
|
|
239
278
|
/* ----- Base ----- */
|
|
279
|
+
/* ----- Deprecated base aliases ----- */
|
|
240
280
|
"base-bg": "--base-color-bg",
|
|
241
281
|
"base-bg2": "--base-color-bg2",
|
|
242
282
|
"base-bg3": "--base-color-bg3",
|
|
@@ -249,7 +289,59 @@ export const THEME_COLOR_KEYS = {
|
|
|
249
289
|
/* ----- Common ----- */
|
|
250
290
|
"common-white": "--common-white",
|
|
251
291
|
"common-black": "--common-black",
|
|
292
|
+
"brand-rvl-yellow": "--brand-rvl-yellow",
|
|
293
|
+
"brand-rvl-grey": "--brand-rvl-grey",
|
|
294
|
+
/* ----- Others ----- */
|
|
295
|
+
"others-1": "--others-1",
|
|
296
|
+
"others-2": "--others-2",
|
|
297
|
+
"others-3": "--others-3",
|
|
298
|
+
"others-4": "--others-4",
|
|
299
|
+
"others-5": "--others-5",
|
|
300
|
+
"others-6": "--others-6",
|
|
301
|
+
"others-7": "--others-7",
|
|
302
|
+
"others-8": "--others-8",
|
|
303
|
+
"others-9": "--others-9",
|
|
304
|
+
"others-10": "--others-10",
|
|
305
|
+
"others-11": "--others-11",
|
|
306
|
+
"others-12": "--others-12",
|
|
307
|
+
"others-13": "--others-13",
|
|
308
|
+
"others-14": "--others-14",
|
|
309
|
+
"others-15": "--others-15",
|
|
310
|
+
"others-16": "--others-16",
|
|
311
|
+
"others-17": "--others-17",
|
|
312
|
+
"others-18": "--others-18",
|
|
313
|
+
"others-19": "--others-19",
|
|
314
|
+
"others-20": "--others-20",
|
|
315
|
+
"others-21": "--others-21",
|
|
316
|
+
"others-22": "--others-22",
|
|
317
|
+
"others-23": "--others-23",
|
|
318
|
+
"others-24": "--others-24",
|
|
319
|
+
"others-25": "--others-25",
|
|
320
|
+
"others-26": "--others-26",
|
|
321
|
+
"others-27": "--others-27",
|
|
322
|
+
"others-28": "--others-28",
|
|
323
|
+
"others-29": "--others-29",
|
|
324
|
+
"others-30": "--others-30",
|
|
325
|
+
"others-31": "--others-31",
|
|
326
|
+
"others-32": "--others-32",
|
|
327
|
+
"others-33": "--others-33",
|
|
328
|
+
"others-34": "--others-34",
|
|
329
|
+
"others-35": "--others-35",
|
|
330
|
+
/* ----- Page background ----- */
|
|
331
|
+
"page-bg-main": "--page-bg-main",
|
|
332
|
+
"page-bg-circle-top-g-in": "--page-bg-circle-top-g-in",
|
|
333
|
+
"page-bg-circle-top-g-out": "--page-bg-circle-top-g-out",
|
|
334
|
+
"page-bg-circle-bottom-g-in": "--page-bg-circle-bottom-g-in",
|
|
335
|
+
"page-bg-circle-bottom-g-out": "--page-bg-circle-bottom-g-out",
|
|
336
|
+
/* ----- Extra surface/background ----- */
|
|
337
|
+
"modal-line": "--modal-line",
|
|
338
|
+
"bg-bg4": "--bg-bg4",
|
|
339
|
+
"bg-bg5": "--bg-bg5",
|
|
340
|
+
"bg-stroke3": "--bg-stroke3",
|
|
341
|
+
"bg-stroke4": "--bg-stroke4",
|
|
342
|
+
"bg-stroke5": "--bg-stroke5",
|
|
252
343
|
/* ----- Semantic ----- */
|
|
344
|
+
/* ----- Deprecated semantic aliases ----- */
|
|
253
345
|
background: "--background",
|
|
254
346
|
foreground: "--foreground",
|
|
255
347
|
surface: "--surface",
|
|
@@ -264,76 +356,76 @@ export const THEME_COLOR_KEYS = {
|
|
|
264
356
|
"grey-foreground": "--grey-foreground",
|
|
265
357
|
"grey2-foreground": "--grey2-foreground",
|
|
266
358
|
/* ----- Transparency: Primary ----- */
|
|
267
|
-
"primary-transparent-8": "--
|
|
268
|
-
"primary-transparent-12": "--
|
|
269
|
-
"primary-transparent-16": "--
|
|
270
|
-
"primary-transparent-24": "--
|
|
271
|
-
"primary-transparent-32": "--
|
|
272
|
-
"primary-transparent-48": "--
|
|
359
|
+
"primary-transparent-8": "--transparent-primary-8",
|
|
360
|
+
"primary-transparent-12": "--transparent-primary-12",
|
|
361
|
+
"primary-transparent-16": "--transparent-primary-16",
|
|
362
|
+
"primary-transparent-24": "--transparent-primary-24",
|
|
363
|
+
"primary-transparent-32": "--transparent-primary-32",
|
|
364
|
+
"primary-transparent-48": "--transparent-primary-48",
|
|
273
365
|
/* ----- Transparency: Secondary ----- */
|
|
274
|
-
"secondary-transparent-8": "--
|
|
275
|
-
"secondary-transparent-12": "--
|
|
276
|
-
"secondary-transparent-16": "--
|
|
277
|
-
"secondary-transparent-24": "--
|
|
278
|
-
"secondary-transparent-32": "--
|
|
279
|
-
"secondary-transparent-48": "--
|
|
366
|
+
"secondary-transparent-8": "--transparent-secondary-8",
|
|
367
|
+
"secondary-transparent-12": "--transparent-secondary-12",
|
|
368
|
+
"secondary-transparent-16": "--transparent-secondary-16",
|
|
369
|
+
"secondary-transparent-24": "--transparent-secondary-24",
|
|
370
|
+
"secondary-transparent-32": "--transparent-secondary-32",
|
|
371
|
+
"secondary-transparent-48": "--transparent-secondary-48",
|
|
280
372
|
/* ----- Transparency: Tertiary ----- */
|
|
281
|
-
"tertiary-transparent-8": "--
|
|
282
|
-
"tertiary-transparent-12": "--
|
|
283
|
-
"tertiary-transparent-16": "--
|
|
284
|
-
"tertiary-transparent-24": "--
|
|
285
|
-
"tertiary-transparent-32": "--
|
|
286
|
-
"tertiary-transparent-48": "--
|
|
373
|
+
"tertiary-transparent-8": "--transparent-tertiary-8",
|
|
374
|
+
"tertiary-transparent-12": "--transparent-tertiary-12",
|
|
375
|
+
"tertiary-transparent-16": "--transparent-tertiary-16",
|
|
376
|
+
"tertiary-transparent-24": "--transparent-tertiary-24",
|
|
377
|
+
"tertiary-transparent-32": "--transparent-tertiary-32",
|
|
378
|
+
"tertiary-transparent-48": "--transparent-tertiary-48",
|
|
287
379
|
/* ----- Transparency: Info, Success, Warning, Error, Grey, Grey2 ----- */
|
|
288
|
-
"info-transparent-8": "--
|
|
289
|
-
"info-transparent-12": "--
|
|
290
|
-
"info-transparent-16": "--
|
|
291
|
-
"info-transparent-24": "--
|
|
292
|
-
"info-transparent-32": "--
|
|
293
|
-
"info-transparent-48": "--
|
|
294
|
-
"success-transparent-8": "--
|
|
295
|
-
"success-transparent-12": "--
|
|
296
|
-
"success-transparent-16": "--
|
|
297
|
-
"success-transparent-24": "--
|
|
298
|
-
"success-transparent-32": "--
|
|
299
|
-
"success-transparent-48": "--
|
|
300
|
-
"warning-transparent-8": "--
|
|
301
|
-
"warning-transparent-12": "--
|
|
302
|
-
"warning-transparent-16": "--
|
|
303
|
-
"warning-transparent-24": "--
|
|
304
|
-
"warning-transparent-32": "--
|
|
305
|
-
"warning-transparent-48": "--
|
|
306
|
-
"error-transparent-8": "--
|
|
307
|
-
"error-transparent-12": "--
|
|
308
|
-
"error-transparent-16": "--
|
|
309
|
-
"error-transparent-24": "--
|
|
310
|
-
"error-transparent-32": "--
|
|
311
|
-
"error-transparent-48": "--
|
|
312
|
-
"grey-transparent-8": "--
|
|
313
|
-
"grey-transparent-12": "--
|
|
314
|
-
"grey-transparent-16": "--
|
|
315
|
-
"grey-transparent-24": "--
|
|
316
|
-
"grey-transparent-32": "--
|
|
317
|
-
"grey-transparent-48": "--
|
|
318
|
-
"grey2-transparent-8": "--
|
|
319
|
-
"grey2-transparent-12": "--
|
|
320
|
-
"grey2-transparent-16": "--
|
|
321
|
-
"grey2-transparent-24": "--
|
|
322
|
-
"grey2-transparent-32": "--
|
|
323
|
-
"grey2-transparent-48": "--
|
|
380
|
+
"info-transparent-8": "--transparent-info-8",
|
|
381
|
+
"info-transparent-12": "--transparent-info-12",
|
|
382
|
+
"info-transparent-16": "--transparent-info-16",
|
|
383
|
+
"info-transparent-24": "--transparent-info-24",
|
|
384
|
+
"info-transparent-32": "--transparent-info-32",
|
|
385
|
+
"info-transparent-48": "--transparent-info-48",
|
|
386
|
+
"success-transparent-8": "--transparent-success-8",
|
|
387
|
+
"success-transparent-12": "--transparent-success-12",
|
|
388
|
+
"success-transparent-16": "--transparent-success-16",
|
|
389
|
+
"success-transparent-24": "--transparent-success-24",
|
|
390
|
+
"success-transparent-32": "--transparent-success-32",
|
|
391
|
+
"success-transparent-48": "--transparent-success-48",
|
|
392
|
+
"warning-transparent-8": "--transparent-warning-8",
|
|
393
|
+
"warning-transparent-12": "--transparent-warning-12",
|
|
394
|
+
"warning-transparent-16": "--transparent-warning-16",
|
|
395
|
+
"warning-transparent-24": "--transparent-warning-24",
|
|
396
|
+
"warning-transparent-32": "--transparent-warning-32",
|
|
397
|
+
"warning-transparent-48": "--transparent-warning-48",
|
|
398
|
+
"error-transparent-8": "--transparent-error-8",
|
|
399
|
+
"error-transparent-12": "--transparent-error-12",
|
|
400
|
+
"error-transparent-16": "--transparent-error-16",
|
|
401
|
+
"error-transparent-24": "--transparent-error-24",
|
|
402
|
+
"error-transparent-32": "--transparent-error-32",
|
|
403
|
+
"error-transparent-48": "--transparent-error-48",
|
|
404
|
+
"grey-transparent-8": "--transparent-grey-8",
|
|
405
|
+
"grey-transparent-12": "--transparent-grey-12",
|
|
406
|
+
"grey-transparent-16": "--transparent-grey-16",
|
|
407
|
+
"grey-transparent-24": "--transparent-grey-24",
|
|
408
|
+
"grey-transparent-32": "--transparent-grey-32",
|
|
409
|
+
"grey-transparent-48": "--transparent-grey-48",
|
|
410
|
+
"grey2-transparent-8": "--transparent-grey2-8",
|
|
411
|
+
"grey2-transparent-12": "--transparent-grey2-12",
|
|
412
|
+
"grey2-transparent-16": "--transparent-grey2-16",
|
|
413
|
+
"grey2-transparent-24": "--transparent-grey2-24",
|
|
414
|
+
"grey2-transparent-32": "--transparent-grey2-32",
|
|
415
|
+
"grey2-transparent-48": "--transparent-grey2-48",
|
|
324
416
|
/* ----- Transparency: White, Black ----- */
|
|
325
|
-
"white-transparent-8": "--
|
|
326
|
-
"white-transparent-12": "--
|
|
327
|
-
"white-transparent-16": "--
|
|
328
|
-
"white-transparent-24": "--
|
|
329
|
-
"white-transparent-32": "--
|
|
330
|
-
"white-transparent-48": "--
|
|
331
|
-
"black-transparent-8": "--
|
|
332
|
-
"black-transparent-12": "--
|
|
333
|
-
"black-transparent-16": "--
|
|
334
|
-
"black-transparent-24": "--
|
|
335
|
-
"black-transparent-32": "--
|
|
336
|
-
"black-transparent-48": "--
|
|
417
|
+
"white-transparent-8": "--transparent-white-8",
|
|
418
|
+
"white-transparent-12": "--transparent-white-12",
|
|
419
|
+
"white-transparent-16": "--transparent-white-16",
|
|
420
|
+
"white-transparent-24": "--transparent-white-24",
|
|
421
|
+
"white-transparent-32": "--transparent-white-32",
|
|
422
|
+
"white-transparent-48": "--transparent-white-48",
|
|
423
|
+
"black-transparent-8": "--transparent-black-8",
|
|
424
|
+
"black-transparent-12": "--transparent-black-12",
|
|
425
|
+
"black-transparent-16": "--transparent-black-16",
|
|
426
|
+
"black-transparent-24": "--transparent-black-24",
|
|
427
|
+
"black-transparent-32": "--transparent-black-32",
|
|
428
|
+
"black-transparent-48": "--transparent-black-48",
|
|
337
429
|
} as const;
|
|
338
430
|
|
|
339
431
|
export type ThemeColorKey = keyof typeof THEME_COLOR_KEYS;
|
|
@@ -344,11 +436,11 @@ export type ThemeColorKey = keyof typeof THEME_COLOR_KEYS;
|
|
|
344
436
|
*
|
|
345
437
|
* @example
|
|
346
438
|
* const primary = getThemeColor('primary');
|
|
347
|
-
* const hex = getThemeColor('--
|
|
439
|
+
* const hex = getThemeColor('--ramps-primary-100');
|
|
348
440
|
*/
|
|
349
441
|
export function getThemeColor(
|
|
350
442
|
keyOrVar: ThemeColorKey | string,
|
|
351
|
-
element: HTMLElement | Document = document
|
|
443
|
+
element: HTMLElement | Document = document,
|
|
352
444
|
): string {
|
|
353
445
|
if (typeof window === "undefined") return "";
|
|
354
446
|
const root = element instanceof Document ? element.documentElement : element;
|
|
@@ -356,8 +448,8 @@ export function getThemeColor(
|
|
|
356
448
|
keyOrVar in THEME_COLOR_KEYS
|
|
357
449
|
? THEME_COLOR_KEYS[keyOrVar as ThemeColorKey]
|
|
358
450
|
: keyOrVar.startsWith("--")
|
|
359
|
-
|
|
360
|
-
|
|
451
|
+
? keyOrVar
|
|
452
|
+
: `--${keyOrVar}`;
|
|
361
453
|
return getComputedStyle(root).getPropertyValue(varName).trim();
|
|
362
454
|
}
|
|
363
455
|
|
|
@@ -370,15 +462,12 @@ export function getThemeColor(
|
|
|
370
462
|
*/
|
|
371
463
|
export function getThemeColors(
|
|
372
464
|
keys: ThemeColorKey[] = Object.keys(THEME_COLOR_KEYS) as ThemeColorKey[],
|
|
373
|
-
element?: HTMLElement | Document
|
|
465
|
+
element?: HTMLElement | Document,
|
|
374
466
|
): Record<string, string> {
|
|
375
|
-
return keys.reduce(
|
|
376
|
-
(
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
},
|
|
380
|
-
{} as Record<string, string>
|
|
381
|
-
);
|
|
467
|
+
return keys.reduce((acc, key) => {
|
|
468
|
+
acc[key] = getThemeColor(key, element);
|
|
469
|
+
return acc;
|
|
470
|
+
}, {} as Record<string, string>);
|
|
382
471
|
}
|
|
383
472
|
|
|
384
473
|
export const srgbToHex = (color: string) => {
|