@rovula/ui 0.0.18 → 0.0.20
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 +3234 -1133
- 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.stories.d.ts +574 -122
- package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +5 -3
- package/dist/cjs/types/components/DatePicker/DatePicker.stories.d.ts +4 -2
- 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 -11
- package/dist/components/Calendar/Calendar.stories.js +4 -2
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Collapsible/Collapsible.styles.js +6 -3
- package/dist/components/DatePicker/DatePicker.js +14 -4
- 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 +3234 -1133
- 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.stories.d.ts +574 -122
- package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +5 -3
- package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +4 -2
- 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 +55 -4
- package/dist/index.js +3 -0
- package/dist/src/theme/global.css +5315 -1209
- package/dist/stories/ColorGroupPreview.js +478 -0
- package/dist/stories/ColorPreview.js +8 -0
- package/dist/theme/global.css +7 -223
- package/dist/theme/main-preset.js +131 -67
- package/dist/theme/plugins/utilities/typography.js +12 -0
- package/dist/theme/presets/colors.js +113 -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 +2 -2
- 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.stories.tsx +4 -0
- package/src/components/Calendar/Calendar.tsx +63 -38
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/Collapsible/Collapsible.styles.ts +6 -3
- package/src/components/DatePicker/DatePicker.tsx +15 -9
- 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 -223
- package/src/theme/main-preset.js +131 -67
- package/src/theme/plugins/utilities/typography.js +12 -0
- package/src/theme/presets/colors.js +113 -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
|
@@ -1,228 +1,121 @@
|
|
|
1
|
-
const { DEFAULTS } = require("@rollup/plugin-node-resolve");
|
|
2
|
-
|
|
3
1
|
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
import {
|
|
3
|
+
generateColorConfig,
|
|
4
|
+
generateTransparentColorConfig,
|
|
5
|
+
withColorMixin,
|
|
6
|
+
generateButtonStyles,
|
|
7
|
+
generateActionButtonStyles,
|
|
8
|
+
} from "../utils";
|
|
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
|
+
];
|
|
23
|
+
|
|
4
24
|
module.exports = {
|
|
5
25
|
theme: {
|
|
6
26
|
extend: {
|
|
7
27
|
colors: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
primary
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
110: "rgb(var(--grey-110) / <alpha-value>)",
|
|
100
|
-
120: "rgb(var(--grey-120) / <alpha-value>)",
|
|
101
|
-
130: "rgb(var(--grey-130) / <alpha-value>)",
|
|
102
|
-
140: "rgb(var(--grey-140) / <alpha-value>)",
|
|
103
|
-
150: "rgb(var(--grey-150) / <alpha-value>)",
|
|
104
|
-
DEFAULT: "rgb(var(--grey-default) / <alpha-value>)",
|
|
105
|
-
foreground: "rgb(var(--grey-foreground) / <alpha-value>)",
|
|
106
|
-
},
|
|
107
|
-
grey2: {
|
|
108
|
-
100: "rgb(var(--grey2-100) / <alpha-value>)",
|
|
109
|
-
200: "rgb(var(--grey2-200) / <alpha-value>)",
|
|
110
|
-
300: "rgb(var(--grey2-300) / <alpha-value>)",
|
|
111
|
-
400: "rgb(var(--grey2-400) / <alpha-value>)",
|
|
112
|
-
500: "rgb(var(--grey2-500) / <alpha-value>)",
|
|
113
|
-
600: "rgb(var(--grey2-600) / <alpha-value>)",
|
|
114
|
-
700: "rgb(var(--grey2-700) / <alpha-value>)",
|
|
115
|
-
800: "rgb(var(--grey2-800) / <alpha-value>)",
|
|
116
|
-
900: "rgb(var(--grey2-900) / <alpha-value>)",
|
|
117
|
-
DEFAULT: "rgb(var(--grey2-default) / <alpha-value>)",
|
|
118
|
-
foreground: "rgb(var(--grey2-foreground) / <alpha-value>)",
|
|
119
|
-
},
|
|
120
|
-
info: {
|
|
121
|
-
lighter: "rgb(var(--info-lighter)) / <alpha-value>)",
|
|
122
|
-
light: "rgb(var(--info-light)) / <alpha-value>)",
|
|
123
|
-
100: "rgb(var(--info-100)) / <alpha-value>)",
|
|
124
|
-
120: "rgb(var(--info-120)) / <alpha-value>)",
|
|
125
|
-
dark: "rgb(var(--info-dark)) / <alpha-value>)",
|
|
126
|
-
darker: "rgb(var(--info-darker)) / <alpha-value>)",
|
|
127
|
-
DEFAULT: "rgb(var(--info-default) / <alpha-value>)",
|
|
128
|
-
foreground: "rgb(var(--info-foreground) / <alpha-value>)",
|
|
129
|
-
},
|
|
130
|
-
success: {
|
|
131
|
-
lighter: "rgb(var(--success-lighter)) / <alpha-value>)",
|
|
132
|
-
light: "rgb(var(--success-light)) / <alpha-value>)",
|
|
133
|
-
100: "rgb(var(--success-100)) / <alpha-value>)",
|
|
134
|
-
120: "rgb(var(--success-120)) / <alpha-value>)",
|
|
135
|
-
dark: "rgb(var(--success-dark)) / <alpha-value>)",
|
|
136
|
-
darker: "rgb(var(--success-darker)) / <alpha-value>)",
|
|
137
|
-
DEFAULT: "rgb(var(--success-default) / <alpha-value>)",
|
|
138
|
-
foreground: "rgb(var(--success-foreground) / <alpha-value>)",
|
|
139
|
-
},
|
|
140
|
-
warning: {
|
|
141
|
-
lighter: "rgb(var(--warning-lighter)) / <alpha-value>)",
|
|
142
|
-
light: "rgb(var(--warning-light)) / <alpha-value>)",
|
|
143
|
-
100: "rgb(var(--warning-100) / <alpha-value>)",
|
|
144
|
-
120: "rgb(var(--warning-120) / <alpha-value>)",
|
|
145
|
-
dark: "rgb(var(--warning-dark)) / <alpha-value>)",
|
|
146
|
-
darker: "rgb(var(--warning-darker)) / <alpha-value>)",
|
|
147
|
-
DEFAULT: "rgb(var(--warning-default) / <alpha-value>)",
|
|
148
|
-
foreground: "rgb(var(--warning-foreground) / <alpha-value>)",
|
|
149
|
-
},
|
|
150
|
-
error: {
|
|
151
|
-
lighter: "rgb(var(--error-lighter)) / <alpha-value>)",
|
|
152
|
-
light: "rgb(var(--error-light)) / <alpha-value>)",
|
|
153
|
-
100: "rgb(var(--error-100) / <alpha-value>)",
|
|
154
|
-
120: "rgb(var(--error-120) / <alpha-value>)",
|
|
155
|
-
dark: "rgb(var(--error-dark)) / <alpha-value>)",
|
|
156
|
-
darker: "rgb(var(--error-darker)) / <alpha-value>)",
|
|
157
|
-
DEFAULT: "rgb(var(--error-100) / <alpha-value>)",
|
|
158
|
-
foreground: "rgb(var(--error-foreground) / <alpha-value>)",
|
|
159
|
-
},
|
|
160
|
-
main: {
|
|
161
|
-
transparent: {
|
|
162
|
-
primary: {
|
|
163
|
-
8: "rgb(var(--main-transparent-primary) / 0.8)",
|
|
164
|
-
12: "rgb(var(--main-transparent-primary) / 0.12)",
|
|
165
|
-
16: "rgb(var(--main-transparent-primary) / 0.16)",
|
|
166
|
-
24: "rgb(var(--main-transparent-primary) / 0.24)",
|
|
167
|
-
32: "rgb(var(--main-transparent-primary) / 0.32)",
|
|
168
|
-
48: "rgb(var(--main-transparent-primary) / 0.48)",
|
|
169
|
-
},
|
|
170
|
-
secondary: {
|
|
171
|
-
8: "rgb(var(--main-transparent-secondary) / 0.8)",
|
|
172
|
-
12: "rgb(var(--main-transparent-secondary) / 0.12)",
|
|
173
|
-
16: "rgb(var(--main-transparent-secondary) / 0.16)",
|
|
174
|
-
24: "rgb(var(--main-transparent-secondary) / 0.24)",
|
|
175
|
-
32: "rgb(var(--main-transparent-secondary) / 0.32)",
|
|
176
|
-
48: "rgb(var(--main-transparent-secondary) / 0.48)",
|
|
177
|
-
},
|
|
178
|
-
tertiary: {
|
|
179
|
-
8: "rgb(var(--main-transparent-tertiary) / 0.8)",
|
|
180
|
-
12: "rgb(var(--main-transparent-tertiary) / 0.12)",
|
|
181
|
-
16: "rgb(var(--main-transparent-tertiary) / 0.16)",
|
|
182
|
-
24: "rgb(var(--main-transparent-tertiary) / 0.24)",
|
|
183
|
-
32: "rgb(var(--main-transparent-tertiary) / 0.32)",
|
|
184
|
-
48: "rgb(var(--main-transparent-tertiary) / 0.48)",
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
// Component color
|
|
189
|
-
input: {
|
|
190
|
-
text: {
|
|
191
|
-
DEFAULT: "rgb(var(--input-default-text-color) / <alpha-value>)",
|
|
192
|
-
active: "rgb(var(--input-active-text-color) / <alpha-value>)",
|
|
193
|
-
disabled: "rgb(var(--input-disabled-text-color) / <alpha-value>)",
|
|
194
|
-
},
|
|
195
|
-
stroke: {
|
|
196
|
-
DEFAULT: "rgb(var(--input-default-stroke-color) / <alpha-value>)",
|
|
197
|
-
active: "rgb(var(--input-active-stroke-color) / <alpha-value>)",
|
|
198
|
-
disabled: "rgb(var(--input-disabled-stroke-color) / <alpha-value>)",
|
|
199
|
-
},
|
|
200
|
-
background: {
|
|
201
|
-
DEFAULT: "transparent",
|
|
202
|
-
active: "transparent",
|
|
203
|
-
disabled:
|
|
204
|
-
"rgb(var(--input-disabled-background-color) / <alpha-value>)",
|
|
205
|
-
},
|
|
206
|
-
label: {
|
|
207
|
-
background:
|
|
208
|
-
"rgb(var(--input-label-background-color) / <alpha-value>)",
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
textcolor: {
|
|
212
|
-
dark: "rgb(var(--text-default-dark) / <alpha-value>)",
|
|
213
|
-
medium: "rgb(var(--text-default-medium) / <alpha-value>)",
|
|
214
|
-
light: "rgb(var(--text-default-light) / <alpha-value>)",
|
|
215
|
-
grey: {
|
|
216
|
-
dark: "rgb(var(--text-grey-dark) / <alpha-value>)",
|
|
217
|
-
medium: "rgb(var(--text-grey-medium) / <alpha-value>)",
|
|
218
|
-
light: "rgb(var(--text-grey-light) / <alpha-value>)",
|
|
219
|
-
},
|
|
220
|
-
white: "rgb(var(--text-white) / <alpha-value>)",
|
|
221
|
-
},
|
|
222
|
-
popup: {
|
|
223
|
-
background: "rgb(var(--popup-background) / <alpha-value>)",
|
|
224
|
-
overlay: "rgb(var(--popup-overlay) / var(--popup-overlay-alpha))",
|
|
225
|
-
},
|
|
28
|
+
"text-dark": withColorMixin("--text-dark"),
|
|
29
|
+
"text-medium": withColorMixin("--text-medium"),
|
|
30
|
+
"text-light": withColorMixin("--text-light"),
|
|
31
|
+
"text-grey-dark": withColorMixin("--text-grey-dark"),
|
|
32
|
+
"text-grey-medium": withColorMixin("--text-grey-medium"),
|
|
33
|
+
"text-grey-light": withColorMixin("--text-grey-light"),
|
|
34
|
+
"text-white": withColorMixin("--text-white"),
|
|
35
|
+
|
|
36
|
+
...generateColorConfig("primary", "primary-ramps-primary"),
|
|
37
|
+
...generateColorConfig("secondary", "secondary-ramps-secondary"),
|
|
38
|
+
...generateColorConfig("tertiary", "tertiary-ramps-tertiary"),
|
|
39
|
+
...generateColorConfig("grey", "grey"),
|
|
40
|
+
|
|
41
|
+
...generateColorConfig("grey2", "grey2-grey2", secondaryRange),
|
|
42
|
+
...generateColorConfig("info", "info-info", secondaryRange),
|
|
43
|
+
...generateColorConfig("success", "success-success", secondaryRange),
|
|
44
|
+
...generateColorConfig("warning", "warning-warning", secondaryRange),
|
|
45
|
+
...generateColorConfig("error", "error-error", secondaryRange),
|
|
46
|
+
|
|
47
|
+
...generateTransparentColorConfig("primary", "main"),
|
|
48
|
+
...generateTransparentColorConfig("secondary", "main"),
|
|
49
|
+
...generateTransparentColorConfig("tertiary", "main"),
|
|
50
|
+
...generateTransparentColorConfig("grey", "other"),
|
|
51
|
+
...generateTransparentColorConfig("grey2", "other"),
|
|
52
|
+
...generateTransparentColorConfig("info", "other"),
|
|
53
|
+
...generateTransparentColorConfig("success", "other"),
|
|
54
|
+
...generateTransparentColorConfig("warning", "other"),
|
|
55
|
+
...generateTransparentColorConfig("error", "other"),
|
|
56
|
+
...generateTransparentColorConfig("black", "other"),
|
|
57
|
+
...generateTransparentColorConfig("white", "other"),
|
|
58
|
+
|
|
59
|
+
"black-transparent-8":
|
|
60
|
+
"color-mix(in srgb, var(--other-transparency-black-8) calc(100% * <alpha-value>), transparent)",
|
|
61
|
+
"black-transparent-12":
|
|
62
|
+
"color-mix(in srgb, var(--other-transparency-black-12) calc(100% * <alpha-value>), transparent)",
|
|
63
|
+
"black-transparent-16":
|
|
64
|
+
"color-mix(in srgb, var(--other-transparency-black-16) calc(100% * <alpha-value>), transparent)",
|
|
65
|
+
"black-transparent-24":
|
|
66
|
+
"color-mix(in srgb, var(--other-transparency-black-24) calc(100% * <alpha-value>), transparent)",
|
|
67
|
+
"black-transparent-32":
|
|
68
|
+
"color-mix(in srgb, var(--other-transparency-black-32) calc(100% * <alpha-value>), transparent)",
|
|
69
|
+
"black-transparent-48":
|
|
70
|
+
"color-mix(in srgb, var(--other-transparency-black-48) calc(100% * <alpha-value>), transparent)",
|
|
71
|
+
|
|
72
|
+
"state-disable-solid": withColorMixin("--state-color-disable-solid"),
|
|
73
|
+
"state-disable-outline": withColorMixin(
|
|
74
|
+
"--state-color-disable-outline"
|
|
75
|
+
),
|
|
76
|
+
|
|
77
|
+
"input-default-text": withColorMixin("--input-color-default-text"),
|
|
78
|
+
"input-default-stroke": withColorMixin("--input-color-default-stroke"),
|
|
79
|
+
"input-filled-text": withColorMixin("--input-color-filled-text"),
|
|
80
|
+
"input-active-stroke": withColorMixin("--input-color-active-stroke"),
|
|
81
|
+
"input-disable-text": withColorMixin("--input-color-disable-text"),
|
|
82
|
+
"input-disable-stroke": withColorMixin("--input-color-disable-stroke"),
|
|
83
|
+
"input-disable-bg": withColorMixin("--input-color-disable-bg"),
|
|
84
|
+
"input-label-bg": withColorMixin("--input-color-label-bg"),
|
|
85
|
+
"input-error": withColorMixin("--input-color-error"),
|
|
86
|
+
|
|
87
|
+
"base-bg": withColorMixin("--base-color-bg"),
|
|
88
|
+
"base-bg2": withColorMixin("--base-color-bg2"),
|
|
89
|
+
"base-popup": withColorMixin("--base-color-popup"),
|
|
90
|
+
"base-popup-highlight": withColorMixin("--base-color-popup-hightlight"),
|
|
91
|
+
"base-popup-curtain": withColorMixin("--base-color-popup-curtain"),
|
|
92
|
+
"base-popup-foreground": withColorMixin(
|
|
93
|
+
"--base-color-popup-foreground"
|
|
94
|
+
),
|
|
95
|
+
|
|
96
|
+
"common-white": withColorMixin("--common-white"),
|
|
97
|
+
"common-black": withColorMixin("--common-black"),
|
|
98
|
+
|
|
99
|
+
surface: withColorMixin("--surface"),
|
|
100
|
+
"surface-foreground": withColorMixin("--surface-foreground"),
|
|
101
|
+
background: withColorMixin("--background"),
|
|
102
|
+
foreground: withColorMixin("--foreground"),
|
|
103
|
+
},
|
|
104
|
+
borderColor: {
|
|
105
|
+
...generateButtonStyles("border"),
|
|
106
|
+
...generateActionButtonStyles("border"),
|
|
107
|
+
},
|
|
108
|
+
backgroundColor: {
|
|
109
|
+
...generateButtonStyles("bg"),
|
|
110
|
+
...generateActionButtonStyles("bg"),
|
|
111
|
+
},
|
|
112
|
+
textColor: {
|
|
113
|
+
...generateButtonStyles("text"),
|
|
114
|
+
...generateActionButtonStyles("text"),
|
|
115
|
+
},
|
|
116
|
+
fill: {
|
|
117
|
+
...generateButtonStyles("text"),
|
|
118
|
+
...generateActionButtonStyles("text"),
|
|
226
119
|
},
|
|
227
120
|
},
|
|
228
121
|
},
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
type ThemeColorState = {
|
|
2
|
+
default: string; // bg
|
|
3
|
+
hover: string; // bg
|
|
4
|
+
stroke: string; // stroke
|
|
5
|
+
"hover-bg": string; // bg
|
|
6
|
+
pressed: string; // bg
|
|
7
|
+
active: string; // bg
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
type ThemeColorTransparent = {
|
|
11
|
+
"8": string;
|
|
12
|
+
"12": string;
|
|
13
|
+
"16": string;
|
|
14
|
+
"24": string;
|
|
15
|
+
"32": string;
|
|
16
|
+
"48": string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
type ThemeMainShadeColor = {
|
|
20
|
+
default: string;
|
|
21
|
+
"5": string;
|
|
22
|
+
"10": string;
|
|
23
|
+
"20": string;
|
|
24
|
+
"30": string;
|
|
25
|
+
"40": string;
|
|
26
|
+
"50": string;
|
|
27
|
+
"60": string;
|
|
28
|
+
"70": string;
|
|
29
|
+
"80": string;
|
|
30
|
+
"90": string;
|
|
31
|
+
"100": string;
|
|
32
|
+
"110": string;
|
|
33
|
+
"120": string;
|
|
34
|
+
"130": string;
|
|
35
|
+
"140": string;
|
|
36
|
+
"150": string;
|
|
37
|
+
foreground: string;
|
|
38
|
+
} & ThemeColorState;
|
|
39
|
+
|
|
40
|
+
type ThemeSecondaryShadeColor = {
|
|
41
|
+
default: string;
|
|
42
|
+
"50": string;
|
|
43
|
+
"100": string;
|
|
44
|
+
"200": string;
|
|
45
|
+
"300": string;
|
|
46
|
+
"400": string;
|
|
47
|
+
"500": string;
|
|
48
|
+
"600": string;
|
|
49
|
+
"700": string;
|
|
50
|
+
"800": string;
|
|
51
|
+
"900": string;
|
|
52
|
+
"950": string;
|
|
53
|
+
foreground: string;
|
|
54
|
+
} & ThemeColorState;
|
|
55
|
+
|
|
56
|
+
type Theme = {
|
|
57
|
+
primary: ThemeMainShadeColor;
|
|
58
|
+
secondary: ThemeMainShadeColor;
|
|
59
|
+
tertiary: ThemeMainShadeColor;
|
|
60
|
+
grey: ThemeMainShadeColor;
|
|
61
|
+
grey2: ThemeSecondaryShadeColor;
|
|
62
|
+
info: ThemeSecondaryShadeColor;
|
|
63
|
+
grey2: ThemeSecondaryShadeColor;
|
|
64
|
+
success: ThemeSecondaryShadeColor;
|
|
65
|
+
warning: ThemeSecondaryShadeColor;
|
|
66
|
+
error: ThemeSecondaryShadeColor;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const myTheme: Theme = {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
|
|
2
|
+
:root[data-theme="xspector"]{
|
|
3
|
+
/* Base from design */
|
|
4
|
+
--input-color-default-text: #9e9e9e;
|
|
5
|
+
--input-color-default-stroke: rgba(158 158 158 / 0.24);
|
|
6
|
+
--input-color-filled-text: #dfe3e8;
|
|
7
|
+
--input-color-active-stroke: rgba(158 158 158 / 0.48);
|
|
8
|
+
--input-color-disable-text: rgba(145 158 171 / 0.52);
|
|
9
|
+
--input-color-disable-stroke: rgba(145 158 171 / 0.08);
|
|
10
|
+
--input-color-disable-bg: rgba(145 158 171 / 0.04);
|
|
11
|
+
--input-color-label-bg: #2d2e30;
|
|
12
|
+
--input-color-error: #ff4d35;
|
|
13
|
+
|
|
14
|
+
--text-dark: #212b36;
|
|
15
|
+
--text-medium: #637381;
|
|
16
|
+
--text-light: #919eab;
|
|
17
|
+
--text-grey-dark: #7e7e7e;
|
|
18
|
+
--text-grey-medium: #aaaaaa;
|
|
19
|
+
--text-grey-light: #dfe3e8;
|
|
20
|
+
--text-white: #ffffff;
|
|
21
|
+
|
|
22
|
+
--base-color-bg: #202427;
|
|
23
|
+
--base-color-bg2: #282c31;
|
|
24
|
+
--base-color-bg3: #d8d8d8;
|
|
25
|
+
--base-color-workspace-stroke: #e2e2e2;
|
|
26
|
+
--base-color-popup: #2d2e30;
|
|
27
|
+
--base-color-popup-hightlight: #343638;
|
|
28
|
+
--base-color-popup-curtain: rgba(0 0 0 / 0.6);
|
|
29
|
+
--common-white: #ffffff;
|
|
30
|
+
--common-black: #000000;
|
|
31
|
+
|
|
32
|
+
--dashboard-panel-bg-grey: rgba(145 158 171 / 0.08);
|
|
33
|
+
--dashboard-panel-bg-white: rgba(255 255 255 / 0.08);
|
|
34
|
+
--dashboard-panel-border: rgba(168 162 168 / 0.24);
|
|
35
|
+
|
|
36
|
+
/* ------- Addon base ---------- */
|
|
37
|
+
--background: var(--base-color-bg);
|
|
38
|
+
--foreground: var(--common-white);
|
|
39
|
+
|
|
40
|
+
--primary: var(--primary-ramps-primary-100);
|
|
41
|
+
--secondary: var(--secondary-ramps-secondary-100);
|
|
42
|
+
--tertiary: var(--tertiary-ramps-tertiary-100);
|
|
43
|
+
--info: var(--info-info-100);
|
|
44
|
+
--success: var(--success-success-100);
|
|
45
|
+
--warning: var(--warning-warning-100);
|
|
46
|
+
--error: var(--error-error-100);
|
|
47
|
+
--grey: var(--grey-grey-100);
|
|
48
|
+
--grey2: var(--grey2-grey2-100);
|
|
49
|
+
|
|
50
|
+
--primary-foreground: var(--state-color-primary-text-solid);
|
|
51
|
+
--secondary-foreground: var(--state-color-secondary-text-solid);
|
|
52
|
+
--tertiary-foreground: var(--state-color-tertiary-text-solid);
|
|
53
|
+
--info-foreground: var(--state-color-info-text-solid);
|
|
54
|
+
--success-foreground: var(--state-color-success-text-solid);
|
|
55
|
+
--warning-foreground: var(--state-color-warning-text-solid);
|
|
56
|
+
--error-foreground: var(--state-color-error-text-solid);
|
|
57
|
+
--grey-foreground: var(--common-black);
|
|
58
|
+
--grey2-foreground: var(--common-black);
|
|
59
|
+
|
|
60
|
+
--surface: var(--base-color-bg);
|
|
61
|
+
--surface-foreground: var(--common-white);
|
|
62
|
+
|
|
63
|
+
--primary-foreground: var(--common-white);
|
|
64
|
+
--secondary-foreground: var(--common-white);
|
|
65
|
+
|
|
66
|
+
--base-color-popup-foreground: var(--common-white);
|
|
67
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
:root[data-theme="xspector"] {
|
|
2
|
+
/* --------------------------------------------------------------------------------- */
|
|
3
|
+
/* Action Button Component Tokens */
|
|
4
|
+
/* --------------------------------------------------------------------------------- */
|
|
5
|
+
/* Naming Convention: --[component]-[mode]-[state]-[property] */
|
|
6
|
+
/* Mone: [solid, outline, icon] */
|
|
7
|
+
/* States: [default, hover, pressed, active, active-pressed active-hover disabled] */
|
|
8
|
+
/* --------------------------------------------------------------------------------- */
|
|
9
|
+
|
|
10
|
+
/* ------------------------------------------------------------------ */
|
|
11
|
+
/* Solid Mode Tokens */
|
|
12
|
+
/* ------------------------------------------------------------------ */
|
|
13
|
+
|
|
14
|
+
/* Default State */
|
|
15
|
+
--action-button-solid-default-bg: var(--state-color-secondary-default);
|
|
16
|
+
--action-button-solid-default-border: var(--state-color-secondary-default);
|
|
17
|
+
--action-button-solid-default-text: var(--state-color-secondary-text-solid);
|
|
18
|
+
|
|
19
|
+
/* Hover State */
|
|
20
|
+
--action-button-solid-hover-bg: var(--state-color-secondary-hover);
|
|
21
|
+
--action-button-solid-hover-border: var(--state-color-secondary-hover);
|
|
22
|
+
--action-button-solid-hover-text: var(--state-color-secondary-text-solid);
|
|
23
|
+
|
|
24
|
+
/* Pressed State */
|
|
25
|
+
--action-button-solid-pressed-bg: var(--state-color-secondary-pressed);
|
|
26
|
+
--action-button-solid-pressed-border: var(--state-color-secondary-pressed);
|
|
27
|
+
--action-button-solid-pressed-text: var(--state-color-secondary-text-solid);
|
|
28
|
+
|
|
29
|
+
/* Active State */
|
|
30
|
+
--action-button-solid-active-bg: var(--state-color-primary-default);
|
|
31
|
+
--action-button-solid-active-border: var(--state-color-primary-default);
|
|
32
|
+
--action-button-solid-active-text: var(--state-color-primary-text-solid);
|
|
33
|
+
|
|
34
|
+
/* Active Hover State */
|
|
35
|
+
--action-button-solid-active-hover-bg: var(--state-color-primary-hover);
|
|
36
|
+
--action-button-solid-active-hover-border: var(--state-color-primary-hover);
|
|
37
|
+
--action-button-solid-active-hover-text: var(--state-color-primary-text-solid);
|
|
38
|
+
|
|
39
|
+
/* Active Pressed State */
|
|
40
|
+
--action-button-solid-active-pressed-bg: var(--state-color-primary-pressed);
|
|
41
|
+
--action-button-solid-active-pressed-border: var(--state-color-primary-pressed);
|
|
42
|
+
--action-button-solid-active-pressed-text: var(--state-color-primary-text-solid);
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/* ------------------------------------------------------------------ */
|
|
46
|
+
/* Outline Mode Tokens */
|
|
47
|
+
/* ------------------------------------------------------------------ */
|
|
48
|
+
|
|
49
|
+
/* Default State */
|
|
50
|
+
--action-button-outline-default-border: var(--state-color-secondary-stroke);
|
|
51
|
+
--action-button-outline-default-text: var(--state-color-secondary-text-outline);
|
|
52
|
+
|
|
53
|
+
/* Hover State */
|
|
54
|
+
--action-button-outline-hover-bg: var(--state-color-secondary-hover-bg);
|
|
55
|
+
--action-button-outline-hover-border: var(--state-color-secondary-hover);
|
|
56
|
+
--action-button-outline-hover-text: var(--state-color-secondary-text-hover);
|
|
57
|
+
|
|
58
|
+
/* Pressed State */
|
|
59
|
+
--action-button-outline-pressed-bg: var(--state-color-secondary-hover-bg);
|
|
60
|
+
--action-button-outline-pressed-border: var(--state-color-secondary-pressed);
|
|
61
|
+
--action-button-outline-pressed-text: var(--state-color-secondary-text-pressed);
|
|
62
|
+
|
|
63
|
+
/* Active State */
|
|
64
|
+
--action-button-outline-active-border: var(--state-color-primary-stroke);
|
|
65
|
+
--action-button-outline-active-text: var(--state-color-primary-text-outline);
|
|
66
|
+
|
|
67
|
+
/* Active Hover State */
|
|
68
|
+
--action-button-outline-active-hover-bg: var(--state-color-primary-hover-bg);
|
|
69
|
+
--action-button-outline-active-hover-border: var(--state-color-primary-hover);
|
|
70
|
+
--action-button-outline-active-hover-text: var(--state-color-primary-text-hover);
|
|
71
|
+
|
|
72
|
+
/* Active Pressed State */
|
|
73
|
+
--action-button-outline-active-pressed-bg: var(--state-color-primary-hover-bg);
|
|
74
|
+
--action-button-outline-active-pressed-border: var(--state-color-primary-pressed);
|
|
75
|
+
--action-button-outline-active-pressed-text: var(--state-color-primary-text-pressed);
|
|
76
|
+
|
|
77
|
+
/* ------------------------------------------------------------------ */
|
|
78
|
+
/* Icon Mode Tokens */
|
|
79
|
+
/* ------------------------------------------------------------------ */
|
|
80
|
+
|
|
81
|
+
/* Default State */
|
|
82
|
+
--action-button-icon-default-text: var(--state-color-secondary-text-outline);
|
|
83
|
+
|
|
84
|
+
/* Hover State */
|
|
85
|
+
--action-button-icon-hover-bg: var(--state-color-secondary-hover-bg);
|
|
86
|
+
--action-button-icon-hover-text: var(--state-color-secondary-text-hover);
|
|
87
|
+
|
|
88
|
+
/* Pressed State */
|
|
89
|
+
--action-button-icon-pressed-text: var(--state-color-secondary-text-pressed);
|
|
90
|
+
|
|
91
|
+
/* Active State */
|
|
92
|
+
--action-button-icon-active-text: var(--state-color-primary-text-outline);
|
|
93
|
+
|
|
94
|
+
/* Active Hover State */
|
|
95
|
+
--action-button-icon-active-hover-bg: var(--state-color-primary-hover-bg);
|
|
96
|
+
--action-button-icon-active-hover-text: var(--state-color-primary-text-hover);
|
|
97
|
+
--action-button-icon-active-pressed-text: var(--state-color-primary-text-pressed);
|
|
98
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
:root[data-theme="xspector"] {
|
|
2
|
+
/* ------------------------------------------------------------------ */
|
|
3
|
+
/* Loading Component Tokens */
|
|
4
|
+
/* ------------------------------------------------------------------ */
|
|
5
|
+
/* Naming Convention: --[component]-[element]-[property] */
|
|
6
|
+
/* Element: [progress, track] */
|
|
7
|
+
/* ------------------------------------------------------------------ */
|
|
8
|
+
|
|
9
|
+
--loading-process-color: var(--primary);
|
|
10
|
+
--loading-track-color: #9E9E9E7A;
|
|
11
|
+
}
|