@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/theme/global.css
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
@import "./tokens/baseline.css";
|
|
2
1
|
@import "./themes/variable.css";
|
|
3
|
-
@import "./themes/
|
|
4
|
-
@import "./
|
|
2
|
+
@import "./themes/variable-mapping.css";
|
|
3
|
+
@import "./tokens/color.css";
|
|
4
|
+
@import "./tokens/baseline.css";
|
|
5
|
+
|
|
6
|
+
/* TODO: remove this */
|
|
7
|
+
/* @import "./themes/xspector/baseline.css";
|
|
8
|
+
@import "./themes/skyller/baseline.css"; */
|
|
5
9
|
|
|
6
10
|
@tailwind base;
|
|
7
11
|
@tailwind components;
|
|
@@ -7,89 +7,195 @@ import {
|
|
|
7
7
|
generateActionButtonStyles,
|
|
8
8
|
} from "../utils";
|
|
9
9
|
|
|
10
|
-
const secondaryRange = [
|
|
11
|
-
"50",
|
|
12
|
-
"100",
|
|
13
|
-
"200",
|
|
14
|
-
"300",
|
|
15
|
-
"400",
|
|
16
|
-
"500",
|
|
17
|
-
"600",
|
|
18
|
-
"700",
|
|
19
|
-
"800",
|
|
20
|
-
"900",
|
|
21
|
-
"950",
|
|
22
|
-
];
|
|
10
|
+
const secondaryRange = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
23
11
|
|
|
24
12
|
module.exports = {
|
|
25
13
|
theme: {
|
|
26
14
|
extend: {
|
|
27
15
|
colors: {
|
|
16
|
+
// ------------------------------
|
|
17
|
+
// Canonical design tokens (new)
|
|
18
|
+
// ------------------------------
|
|
19
|
+
// Main / brand core
|
|
20
|
+
"main-primary": withColorMixin("--main-primary"),
|
|
21
|
+
"main-secondary": withColorMixin("--main-secondary"),
|
|
22
|
+
"main-tertiary": withColorMixin("--main-tertiary"),
|
|
23
|
+
"brand-midnight-blue": withColorMixin("--brand-midnight-blue"),
|
|
24
|
+
"brand-columbia-blue": withColorMixin("--brand-columbia-blue"),
|
|
25
|
+
"brand-background": withColorMixin("--brand-background"),
|
|
26
|
+
"brand-lemon-glacier": withColorMixin("--brand-lemon-glacier"),
|
|
27
|
+
"brand-rvl-yellow": withColorMixin("--brand-rvl-yellow"),
|
|
28
|
+
"brand-rvl-grey": withColorMixin("--brand-rvl-grey"),
|
|
29
|
+
|
|
30
|
+
// Text
|
|
28
31
|
"text-black": withColorMixin("--text-black"),
|
|
29
|
-
"text-
|
|
30
|
-
"text-medium": withColorMixin("--text-medium"),
|
|
31
|
-
"text-
|
|
32
|
-
"text-
|
|
33
|
-
"text-
|
|
34
|
-
"text-
|
|
32
|
+
"text-contrast-low": withColorMixin("--text-contrast-low"),
|
|
33
|
+
"text-contrast-medium": withColorMixin("--text-contrast-medium"),
|
|
34
|
+
"text-contrast-high": withColorMixin("--text-contrast-high"),
|
|
35
|
+
"text-contrast-max": withColorMixin("--text-contrast-max"),
|
|
36
|
+
"text-g-contrast-low": withColorMixin("--text-g-contrast-low"),
|
|
37
|
+
"text-g-contrast-medium": withColorMixin("--text-g-contrast-medium"),
|
|
38
|
+
"text-g-contrast-high": withColorMixin("--text-g-contrast-high"),
|
|
35
39
|
"text-white": withColorMixin("--text-white"),
|
|
36
40
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
...generateColorConfig("
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
...generateColorConfig("
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
...generateColorConfig("
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
...
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
...generateTransparentColorConfig("grey2", "other"),
|
|
53
|
-
...generateTransparentColorConfig("info", "other"),
|
|
54
|
-
...generateTransparentColorConfig("success", "other"),
|
|
55
|
-
...generateTransparentColorConfig("warning", "other"),
|
|
56
|
-
...generateTransparentColorConfig("error", "other"),
|
|
57
|
-
...generateTransparentColorConfig("black", "other"),
|
|
58
|
-
...generateTransparentColorConfig("white", "other"),
|
|
59
|
-
|
|
60
|
-
"state-disable-solid": withColorMixin("--state-color-disable-solid"),
|
|
61
|
-
"state-disable-outline": withColorMixin(
|
|
62
|
-
"--state-color-disable-outline"
|
|
63
|
-
),
|
|
41
|
+
// Palette / state ramps
|
|
42
|
+
// Ranges: 5 - 150
|
|
43
|
+
...generateColorConfig("primary", "ramps-primary", {
|
|
44
|
+
includeOriginalVarAliases: true,
|
|
45
|
+
}),
|
|
46
|
+
...generateColorConfig("secondary", "ramps-secondary", {
|
|
47
|
+
includeOriginalVarAliases: true,
|
|
48
|
+
}),
|
|
49
|
+
...generateColorConfig("tertiary", "ramps-tertiary", {
|
|
50
|
+
includeOriginalVarAliases: true,
|
|
51
|
+
}),
|
|
52
|
+
...generateColorConfig("grey", "ramps-grey", {
|
|
53
|
+
stateVars: false,
|
|
54
|
+
includeOriginalVarAliases: true,
|
|
55
|
+
}),
|
|
64
56
|
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
57
|
+
// Ranges: 50 - 950
|
|
58
|
+
...generateColorConfig("grey2", "ramps-grey2", {
|
|
59
|
+
range: secondaryRange,
|
|
60
|
+
stateVars: false,
|
|
61
|
+
includeOriginalVarAliases: true,
|
|
62
|
+
}),
|
|
63
|
+
...generateColorConfig("info", "ramps-info", {
|
|
64
|
+
range: secondaryRange,
|
|
65
|
+
includeOriginalVarAliases: true,
|
|
66
|
+
}),
|
|
67
|
+
...generateColorConfig("success", "ramps-success", {
|
|
68
|
+
range: secondaryRange,
|
|
69
|
+
includeOriginalVarAliases: true,
|
|
70
|
+
}),
|
|
71
|
+
...generateColorConfig("warning", "ramps-warning", {
|
|
72
|
+
range: secondaryRange,
|
|
73
|
+
includeOriginalVarAliases: true,
|
|
74
|
+
}),
|
|
75
|
+
...generateColorConfig("error", "ramps-error", {
|
|
76
|
+
range: secondaryRange,
|
|
77
|
+
includeOriginalVarAliases: true,
|
|
78
|
+
}),
|
|
79
|
+
|
|
80
|
+
...generateTransparentColorConfig("primary", {
|
|
81
|
+
includeOriginalVarAliases: true,
|
|
82
|
+
}),
|
|
83
|
+
...generateTransparentColorConfig("secondary", {
|
|
84
|
+
includeOriginalVarAliases: true,
|
|
85
|
+
}),
|
|
86
|
+
...generateTransparentColorConfig("tertiary", {
|
|
87
|
+
includeOriginalVarAliases: true,
|
|
88
|
+
}),
|
|
89
|
+
...generateTransparentColorConfig("grey", {
|
|
90
|
+
includeOriginalVarAliases: true,
|
|
91
|
+
}),
|
|
92
|
+
...generateTransparentColorConfig("grey2", {
|
|
93
|
+
includeOriginalVarAliases: true,
|
|
94
|
+
}),
|
|
95
|
+
...generateTransparentColorConfig("info", {
|
|
96
|
+
includeOriginalVarAliases: true,
|
|
97
|
+
}),
|
|
98
|
+
...generateTransparentColorConfig("success", {
|
|
99
|
+
includeOriginalVarAliases: true,
|
|
100
|
+
}),
|
|
101
|
+
...generateTransparentColorConfig("warning", {
|
|
102
|
+
includeOriginalVarAliases: true,
|
|
103
|
+
}),
|
|
104
|
+
...generateTransparentColorConfig("error", {
|
|
105
|
+
includeOriginalVarAliases: true,
|
|
106
|
+
}),
|
|
107
|
+
...generateTransparentColorConfig("black", {
|
|
108
|
+
includeOriginalVarAliases: true,
|
|
109
|
+
}),
|
|
110
|
+
...generateTransparentColorConfig("white", {
|
|
111
|
+
includeOriginalVarAliases: true,
|
|
112
|
+
}),
|
|
113
|
+
|
|
114
|
+
// State / input / function
|
|
115
|
+
"state-disable-solid": withColorMixin("--state-disable-solid"),
|
|
116
|
+
"state-disable-outline": withColorMixin("--state-disable-outline"),
|
|
117
|
+
|
|
118
|
+
"input-default-text": withColorMixin("--input-default-text"),
|
|
119
|
+
"input-default-stroke": withColorMixin("--input-default-stroke"),
|
|
120
|
+
"input-filled-text": withColorMixin("--input-filled-text"),
|
|
121
|
+
"input-active-stroke": withColorMixin("--input-active-stroke"),
|
|
122
|
+
"input-disable-text": withColorMixin("--input-disable-text"),
|
|
123
|
+
"input-disable-stroke": withColorMixin("--input-disable-stroke"),
|
|
124
|
+
"input-disable-bg": withColorMixin("--input-disable-bg"),
|
|
125
|
+
"input-label-bg": withColorMixin("--input-label-bg"),
|
|
126
|
+
"input-error": withColorMixin("--input-error"),
|
|
74
127
|
|
|
75
128
|
"function-default-solid": withColorMixin("--function-default-solid"),
|
|
76
129
|
"function-default-hover": withColorMixin("--function-default-hover"),
|
|
77
130
|
"function-default-hover-bg": withColorMixin(
|
|
78
|
-
"--function-default-hover-bg"
|
|
131
|
+
"--function-default-hover-bg",
|
|
79
132
|
),
|
|
80
133
|
"function-default-stroke": withColorMixin("--function-default-stroke"),
|
|
81
134
|
"function-default-icon": withColorMixin("--function-default-icon"),
|
|
82
|
-
"function-default-outline": withColorMixin(
|
|
83
|
-
"--function-default-outline-icon"
|
|
135
|
+
"function-default-outline-icon": withColorMixin(
|
|
136
|
+
"--function-default-outline-icon",
|
|
84
137
|
),
|
|
85
138
|
"function-active-solid": withColorMixin("--function-active-solid"),
|
|
86
139
|
"function-active-hover": withColorMixin("--function-active-hover"),
|
|
87
140
|
"function-active-hover-bg": withColorMixin(
|
|
88
|
-
"--function-active-hover-bg"
|
|
141
|
+
"--function-active-hover-bg",
|
|
89
142
|
),
|
|
90
143
|
"function-active-stroke": withColorMixin("--function-active-stroke"),
|
|
91
144
|
"function-active-icon": withColorMixin("--function-active-icon"),
|
|
92
145
|
|
|
146
|
+
// Surface / background primitives
|
|
147
|
+
"modal-surface": withColorMixin("--modal-surface"),
|
|
148
|
+
"modal-highlight": withColorMixin("--modal-highlight"),
|
|
149
|
+
"modal-overlay": withColorMixin("--modal-overlay"),
|
|
150
|
+
"modal-line": withColorMixin("--modal-line"),
|
|
151
|
+
"bg-bg1": withColorMixin("--bg-bg1"),
|
|
152
|
+
"bg-bg2": withColorMixin("--bg-bg2"),
|
|
153
|
+
"bg-bg3": withColorMixin("--bg-bg3"),
|
|
154
|
+
"bg-bg4": withColorMixin("--bg-bg4"),
|
|
155
|
+
"bg-bg5": withColorMixin("--bg-bg5"),
|
|
156
|
+
"bg-stroke1": withColorMixin("--bg-stroke1"),
|
|
157
|
+
"bg-stroke2": withColorMixin("--bg-stroke2"),
|
|
158
|
+
"bg-stroke3": withColorMixin("--bg-stroke3"),
|
|
159
|
+
"bg-stroke4": withColorMixin("--bg-stroke4"),
|
|
160
|
+
"bg-stroke5": withColorMixin("--bg-stroke5"),
|
|
161
|
+
|
|
162
|
+
// Common
|
|
163
|
+
"common-white": withColorMixin("--common-white"),
|
|
164
|
+
"common-black": withColorMixin("--common-black"),
|
|
165
|
+
|
|
166
|
+
// Others (direct export tokens)
|
|
167
|
+
...generateColorConfig("others", "others", {
|
|
168
|
+
count: 35,
|
|
169
|
+
stateVars: false,
|
|
170
|
+
foreground: false,
|
|
171
|
+
includeStatePrefixedAliases: false,
|
|
172
|
+
}),
|
|
173
|
+
|
|
174
|
+
// Page background tokens
|
|
175
|
+
"page-bg-main": withColorMixin("--page-bg-main"),
|
|
176
|
+
"page-bg-circle-top-g-in": withColorMixin("--page-bg-circle-top-g-in"),
|
|
177
|
+
"page-bg-circle-top-g-out": withColorMixin(
|
|
178
|
+
"--page-bg-circle-top-g-out",
|
|
179
|
+
),
|
|
180
|
+
"page-bg-circle-bottom-g-in": withColorMixin(
|
|
181
|
+
"--page-bg-circle-bottom-g-in",
|
|
182
|
+
),
|
|
183
|
+
"page-bg-circle-bottom-g-out": withColorMixin(
|
|
184
|
+
"--page-bg-circle-bottom-g-out",
|
|
185
|
+
),
|
|
186
|
+
|
|
187
|
+
// --------------------------------
|
|
188
|
+
// Deprecated aliases (compat only)
|
|
189
|
+
// --------------------------------
|
|
190
|
+
// Text aliases (prefer text-contrast-* / text-g-contrast-*)
|
|
191
|
+
"text-dark": withColorMixin("--text-dark"),
|
|
192
|
+
"text-medium": withColorMixin("--text-medium"),
|
|
193
|
+
"text-light": withColorMixin("--text-light"),
|
|
194
|
+
"text-grey-dark": withColorMixin("--text-grey-dark"),
|
|
195
|
+
"text-grey-medium": withColorMixin("--text-grey-medium"),
|
|
196
|
+
"text-grey-light": withColorMixin("--text-grey-light"),
|
|
197
|
+
|
|
198
|
+
// Base aliases (prefer modal-*, bg-*, text-contrast-* and state-*-text-solid)
|
|
93
199
|
"base-bg": withColorMixin("--base-color-bg"),
|
|
94
200
|
"base-bg2": withColorMixin("--base-color-bg2"),
|
|
95
201
|
"base-bg3": withColorMixin("--base-color-bg3"),
|
|
@@ -97,19 +203,22 @@ module.exports = {
|
|
|
97
203
|
"base-popup-highlight": withColorMixin("--base-color-popup-highlight"),
|
|
98
204
|
"base-popup-curtain": withColorMixin("--base-color-popup-curtain"),
|
|
99
205
|
"base-popup-foreground": withColorMixin(
|
|
100
|
-
"--base-color-popup-foreground"
|
|
206
|
+
"--base-color-popup-foreground",
|
|
101
207
|
),
|
|
102
208
|
"base-stroke": withColorMixin("--base-color-workspace-stroke"),
|
|
103
209
|
"base-workspace-stroke": withColorMixin(
|
|
104
|
-
"--base-color-workspace-stroke"
|
|
210
|
+
"--base-color-workspace-stroke",
|
|
105
211
|
),
|
|
106
212
|
"base-guideline-stroke": withColorMixin(
|
|
107
|
-
"--base-color-guideline-stroke"
|
|
213
|
+
"--base-color-guideline-stroke",
|
|
108
214
|
),
|
|
109
215
|
|
|
110
|
-
|
|
111
|
-
"
|
|
216
|
+
// Function aliases (prefer function-default-outline-icon)
|
|
217
|
+
"function-default-outline": withColorMixin(
|
|
218
|
+
"--function-default-outline-icon",
|
|
219
|
+
),
|
|
112
220
|
|
|
221
|
+
// Semantic aliases (prefer direct design token names)
|
|
113
222
|
surface: withColorMixin("--surface"),
|
|
114
223
|
"surface-foreground": withColorMixin("--surface-foreground"),
|
|
115
224
|
background: withColorMixin("--background"),
|