@rovula/ui 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bundle.css +3220 -1382
- package/dist/cjs/bundle.js +3 -3
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/ActionButton/ActionButton.stories.d.ts +4 -4
- package/dist/cjs/types/components/ActionButton/ActionButton.styles copy.d.ts +6 -0
- package/dist/cjs/types/components/Button/Button.styles copy.d.ts +7 -0
- package/dist/cjs/types/components/Button/Button.styles.d.ts +1 -0
- package/dist/cjs/types/components/Button/Buttons.stories.d.ts +12 -4
- package/dist/cjs/types/components/Calendar/Calendar.d.ts +0 -1
- package/dist/cjs/types/components/Calendar/Calendar.stories.d.ts +7 -7
- package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/cjs/types/components/DatePicker/DatePicker.stories.d.ts +2 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +8 -6
- package/dist/cjs/types/components/Input/Input.stories.d.ts +12 -12
- package/dist/cjs/types/components/Label/Label.stories.d.ts +6 -6
- package/dist/cjs/types/components/Loading/Loading.d.ts +14 -0
- package/dist/cjs/types/components/Loading/Loading.stories.d.ts +35 -0
- package/dist/cjs/types/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/cjs/types/components/ProgressBar/ProgressBar.stories.d.ts +37 -0
- package/dist/cjs/types/components/RadioGroup/RadioGroup.stories.d.ts +5 -5
- package/dist/cjs/types/components/Search/Search.d.ts +22 -1
- package/dist/cjs/types/components/Search/Search.stories.d.ts +338 -7
- package/dist/cjs/types/components/Table/Table.stories.d.ts +4 -4
- package/dist/cjs/types/components/Text/Text.d.ts +1 -1
- package/dist/cjs/types/components/Text/Text.stories.d.ts +1 -1
- package/dist/cjs/types/components/TextInput/TextInput.d.ts +4 -0
- package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +11 -6
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +8 -0
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/stories/ColorGroupPreview.d.ts +1 -0
- package/dist/cjs/types/stories/ColorPreview.d.ts +5 -0
- package/dist/components/ActionButton/ActionButton.js +1 -1
- package/dist/components/ActionButton/ActionButton.stories.js +1 -1
- package/dist/components/ActionButton/ActionButton.styles copy.js +90 -0
- package/dist/components/ActionButton/ActionButton.styles.js +54 -15
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/Avatar/Avatar.styles.js +1 -1
- package/dist/components/Button/Button.js +3 -2
- package/dist/components/Button/Button.styles copy.js +210 -0
- package/dist/components/Button/Button.styles.js +203 -43
- package/dist/components/Button/Buttons.stories.js +9 -1
- package/dist/components/Calendar/Calendar.js +39 -2
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Collapsible/Collapsible.styles.js +6 -3
- package/dist/components/DatePicker/DatePicker.js +13 -2
- package/dist/components/Dialog/Dialog.js +4 -4
- package/dist/components/Dropdown/Dropdown.js +9 -7
- package/dist/components/Dropdown/Dropdown.styles.js +1 -1
- package/dist/components/Input/Input.js +8 -1
- package/dist/components/Input/Input.stories.js +3 -2
- package/dist/components/Input/Input.styles.js +13 -5
- package/dist/components/Loading/Loading.js +23 -0
- package/dist/components/Loading/Loading.stories.js +37 -0
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.js +22 -0
- package/dist/components/ProgressBar/ProgressBar.stories.js +52 -0
- package/dist/components/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/Search/Search.js +6 -7
- package/dist/components/Search/Search.stories.js +8 -5
- package/dist/components/Text/Text.js +17 -2
- package/dist/components/Text/Text.stories.js +5 -1
- package/dist/components/TextInput/TextInput.js +14 -5
- package/dist/components/TextInput/TextInput.stories.js +3 -2
- package/dist/components/TextInput/TextInput.styles.js +120 -18
- package/dist/esm/bundle.css +3220 -1382
- package/dist/esm/bundle.js +3 -3
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/ActionButton/ActionButton.stories.d.ts +4 -4
- package/dist/esm/types/components/ActionButton/ActionButton.styles copy.d.ts +6 -0
- package/dist/esm/types/components/Button/Button.styles copy.d.ts +7 -0
- package/dist/esm/types/components/Button/Button.styles.d.ts +1 -0
- package/dist/esm/types/components/Button/Buttons.stories.d.ts +12 -4
- package/dist/esm/types/components/Calendar/Calendar.d.ts +0 -1
- package/dist/esm/types/components/Calendar/Calendar.stories.d.ts +7 -7
- package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +2 -0
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +8 -6
- package/dist/esm/types/components/Input/Input.stories.d.ts +12 -12
- package/dist/esm/types/components/Label/Label.stories.d.ts +6 -6
- package/dist/esm/types/components/Loading/Loading.d.ts +14 -0
- package/dist/esm/types/components/Loading/Loading.stories.d.ts +35 -0
- package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/esm/types/components/ProgressBar/ProgressBar.stories.d.ts +37 -0
- package/dist/esm/types/components/RadioGroup/RadioGroup.stories.d.ts +5 -5
- package/dist/esm/types/components/Search/Search.d.ts +22 -1
- package/dist/esm/types/components/Search/Search.stories.d.ts +338 -7
- package/dist/esm/types/components/Table/Table.stories.d.ts +4 -4
- package/dist/esm/types/components/Text/Text.d.ts +1 -1
- package/dist/esm/types/components/Text/Text.stories.d.ts +1 -1
- package/dist/esm/types/components/TextInput/TextInput.d.ts +4 -0
- package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +11 -6
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +8 -0
- package/dist/esm/types/index.d.ts +3 -0
- package/dist/esm/types/stories/ColorGroupPreview.d.ts +1 -0
- package/dist/esm/types/stories/ColorPreview.d.ts +5 -0
- package/dist/index.d.ts +53 -2
- package/dist/index.js +3 -0
- package/dist/src/theme/global.css +5078 -918
- package/dist/stories/ColorGroupPreview.js +478 -0
- package/dist/stories/ColorPreview.js +8 -0
- package/dist/theme/global.css +7 -227
- package/dist/theme/main-preset.js +131 -67
- package/dist/theme/plugins/utilities/typography.js +12 -0
- package/dist/theme/presets/colors.js +101 -220
- package/dist/theme/theme.d.ts +69 -0
- package/dist/theme/themes/xspector/baseline.css +7 -0
- package/dist/theme/themes/xspector/color.css +67 -0
- package/dist/theme/themes/xspector/components/action-button.css +98 -0
- package/dist/theme/themes/xspector/components/loading.css +11 -0
- package/dist/theme/themes/xspector/palette.css +122 -0
- package/dist/theme/themes/xspector/state.css +89 -0
- package/dist/theme/themes/xspector/transparent.css +68 -0
- package/dist/theme/themes/xspector/typography.css +27 -0
- package/dist/theme/tokens/baseline.css +10 -0
- package/dist/theme/tokens/color.css +63 -0
- package/dist/theme/tokens/components/action-button.css +127 -0
- package/dist/theme/tokens/components/button.css +512 -0
- package/dist/theme/tokens/components/loading.css +11 -0
- package/dist/theme/tokens/components/navbar.css +8 -0
- package/dist/theme/tokens/components/progress-bar.css +8 -0
- package/dist/theme/tokens/palette.css +122 -0
- package/dist/theme/tokens/state.css +82 -0
- package/dist/theme/tokens/transparent.css +68 -0
- package/dist/theme/tokens/typography.css +178 -0
- package/dist/theme/tokens/variables.css +28 -0
- package/dist/theme/utils.js +98 -0
- package/package.json +1 -1
- package/src/_theme/global copy.css +761 -0
- package/src/_theme/global.css +39 -0
- package/src/_theme/main-preset.js +239 -0
- package/src/_theme/plugins/utilities/typography.js +81 -0
- package/src/_theme/presets/colors copy 2.js +319 -0
- package/src/_theme/presets/colors copy.js +229 -0
- package/src/_theme/presets/colors.js +94 -0
- package/src/_theme/theme.d.ts +69 -0
- package/src/_theme/variables/base/button.css +334 -0
- package/src/_theme/variables/base/components copy.css +19 -0
- package/src/_theme/variables/default/colors.css +292 -0
- package/src/_theme/variables/default/typography.css +178 -0
- package/src/_theme/variables/xspector/colors.css +468 -0
- package/src/_theme/variables/xspector/typography.css +178 -0
- package/src/components/ActionButton/ActionButton.stories.tsx +1 -1
- package/src/components/ActionButton/ActionButton.styles copy.ts +95 -0
- package/src/components/ActionButton/ActionButton.styles.ts +54 -19
- package/src/components/ActionButton/ActionButton.tsx +1 -1
- package/src/components/AlertDialog/AlertDialog.tsx +2 -2
- package/src/components/Avatar/Avatar.styles.ts +1 -1
- package/src/components/Button/Button.styles copy.ts +214 -0
- package/src/components/Button/Button.styles.ts +203 -47
- package/src/components/Button/Button.tsx +4 -0
- package/src/components/Button/Buttons.stories.tsx +9 -1
- package/src/components/Calendar/Calendar.tsx +49 -7
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/Collapsible/Collapsible.styles.ts +6 -3
- package/src/components/DatePicker/DatePicker.tsx +8 -2
- package/src/components/Dialog/Dialog.tsx +5 -5
- package/src/components/Dropdown/Dropdown.styles.ts +1 -1
- package/src/components/Dropdown/Dropdown.tsx +14 -12
- package/src/components/Input/Input.stories.tsx +3 -2
- package/src/components/Input/Input.styles.tsx +13 -6
- package/src/components/Input/Input.tsx +8 -1
- package/src/components/Loading/Loading.stories.tsx +43 -0
- package/src/components/Loading/Loading.tsx +72 -0
- package/src/components/Popover/Popover.tsx +1 -1
- package/src/components/ProgressBar/ProgressBar.stories.tsx +78 -0
- package/src/components/ProgressBar/ProgressBar.tsx +62 -0
- package/src/components/RadioGroup/RadioGroup.tsx +2 -2
- package/src/components/Search/Search.stories.tsx +13 -13
- package/src/components/Search/Search.tsx +14 -19
- package/src/components/Text/Text.stories.tsx +6 -4
- package/src/components/Text/Text.tsx +27 -3
- package/src/components/TextInput/TextInput.stories.tsx +3 -2
- package/src/components/TextInput/TextInput.styles.ts +124 -19
- package/src/components/TextInput/TextInput.tsx +34 -4
- package/src/index.ts +3 -0
- package/src/stories/ColorGroupPreview.tsx +494 -0
- package/src/stories/ColorPreview.tsx +45 -0
- package/src/stories/Colors.mdx +14 -0
- package/src/stories/Typography.mdx +7 -151
- package/src/theme/global.css +7 -227
- package/src/theme/main-preset.js +131 -67
- package/src/theme/plugins/utilities/typography.js +12 -0
- package/src/theme/presets/colors.js +101 -220
- package/src/theme/theme.d.ts +69 -0
- package/src/theme/themes/xspector/baseline.css +7 -0
- package/src/theme/themes/xspector/color.css +67 -0
- package/src/theme/themes/xspector/components/action-button.css +98 -0
- package/src/theme/themes/xspector/components/loading.css +11 -0
- package/src/theme/themes/xspector/palette.css +122 -0
- package/src/theme/themes/xspector/state.css +89 -0
- package/src/theme/themes/xspector/transparent.css +68 -0
- package/src/theme/themes/xspector/typography.css +27 -0
- package/src/theme/tokens/baseline.css +10 -0
- package/src/theme/tokens/color.css +63 -0
- package/src/theme/tokens/components/action-button.css +127 -0
- package/src/theme/tokens/components/button.css +512 -0
- package/src/theme/tokens/components/loading.css +11 -0
- package/src/theme/tokens/components/navbar.css +8 -0
- package/src/theme/tokens/components/progress-bar.css +8 -0
- package/src/theme/tokens/palette.css +122 -0
- package/src/theme/tokens/state.css +82 -0
- package/src/theme/tokens/transparent.css +68 -0
- package/src/theme/tokens/typography.css +178 -0
- package/src/theme/tokens/variables.css +28 -0
- package/src/theme/utils.js +98 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
const { DEFAULTS } = require("@rollup/plugin-node-resolve");
|
|
2
|
+
|
|
3
|
+
/** @type {import('tailwindcss').Config} */
|
|
4
|
+
module.exports = {
|
|
5
|
+
theme: {
|
|
6
|
+
extend: {
|
|
7
|
+
colors: {
|
|
8
|
+
border: "hsl(var(--border))",
|
|
9
|
+
ring: "hsl(var(--ring))",
|
|
10
|
+
background: "rgb(var(--background) / <alpha-value>)",
|
|
11
|
+
foreground: "rgb(var(--foreground) / <alpha-value>)",
|
|
12
|
+
// Palette colors
|
|
13
|
+
themes: {
|
|
14
|
+
50: "rgb(var(--themes-50) / <alpha-value>)",
|
|
15
|
+
100: "rgb(var(--themes-100) / <alpha-value>)",
|
|
16
|
+
200: "rgb(var(--themes-200) / <alpha-value>)",
|
|
17
|
+
300: "rgb(var(--themes-300) / <alpha-value>)",
|
|
18
|
+
400: "rgb(var(--themes-400) / <alpha-value>)",
|
|
19
|
+
500: "rgb(var(--themes-500) / <alpha-value>)",
|
|
20
|
+
600: "rgb(var(--themes-600) / <alpha-value>)",
|
|
21
|
+
700: "rgb(var(--themes-700) / <alpha-value>)",
|
|
22
|
+
800: "rgb(var(--themes-800) / <alpha-value>)",
|
|
23
|
+
900: "rgb(var(--themes-900) / <alpha-value>)",
|
|
24
|
+
DEFAULT: "rgb(var(--themes-default) / <alpha-value>)",
|
|
25
|
+
foreground: "rgb(var(--themes-foreground) / <alpha-value>)",
|
|
26
|
+
},
|
|
27
|
+
primary: {
|
|
28
|
+
5: "rgb(var(--primary-5) / <alpha-value>)",
|
|
29
|
+
10: "rgb(var(--primary-10) / <alpha-value>)",
|
|
30
|
+
20: "rgb(var(--primary-20) / <alpha-value>)",
|
|
31
|
+
30: "rgb(var(--primary-30) / <alpha-value>)",
|
|
32
|
+
40: "rgb(var(--primary-40) / <alpha-value>)",
|
|
33
|
+
50: "rgb(var(--primary-50) / <alpha-value>)",
|
|
34
|
+
60: "rgb(var(--primary-60) / <alpha-value>)",
|
|
35
|
+
70: "rgb(var(--primary-70) / <alpha-value>)",
|
|
36
|
+
80: "rgb(var(--primary-80) / <alpha-value>)",
|
|
37
|
+
90: "rgb(var(--primary-90) / <alpha-value>)",
|
|
38
|
+
100: "rgb(var(--primary-100) / <alpha-value>)",
|
|
39
|
+
110: "rgb(var(--primary-110) / <alpha-value>)",
|
|
40
|
+
120: "rgb(var(--primary-120) / <alpha-value>)",
|
|
41
|
+
130: "rgb(var(--primary-130) / <alpha-value>)",
|
|
42
|
+
140: "rgb(var(--primary-140) / <alpha-value>)",
|
|
43
|
+
150: "rgb(var(--primary-150) / <alpha-value>)",
|
|
44
|
+
DEFAULT: "rgb(var(--primary-default) / <alpha-value>)",
|
|
45
|
+
foreground: "rgb(var(--primary-foreground) / <alpha-value>)",
|
|
46
|
+
},
|
|
47
|
+
secondary: {
|
|
48
|
+
5: "rgb(var(--secondary-5) / <alpha-value>)",
|
|
49
|
+
10: "rgb(var(--secondary-10) / <alpha-value>)",
|
|
50
|
+
20: "rgb(var(--secondary-20) / <alpha-value>)",
|
|
51
|
+
30: "rgb(var(--secondary-30) / <alpha-value>)",
|
|
52
|
+
40: "rgb(var(--secondary-40) / <alpha-value>)",
|
|
53
|
+
50: "rgb(var(--secondary-50) / <alpha-value>)",
|
|
54
|
+
60: "rgb(var(--secondary-60) / <alpha-value>)",
|
|
55
|
+
70: "rgb(var(--secondary-70) / <alpha-value>)",
|
|
56
|
+
80: "rgb(var(--secondary-80) / <alpha-value>)",
|
|
57
|
+
90: "rgb(var(--secondary-90) / <alpha-value>)",
|
|
58
|
+
100: "rgb(var(--secondary-100) / <alpha-value>)",
|
|
59
|
+
110: "rgb(var(--secondary-110) / <alpha-value>)",
|
|
60
|
+
120: "rgb(var(--secondary-120) / <alpha-value>)",
|
|
61
|
+
130: "rgb(var(--secondary-130) / <alpha-value>)",
|
|
62
|
+
140: "rgb(var(--secondary-140) / <alpha-value>)",
|
|
63
|
+
150: "rgb(var(--secondary-150) / <alpha-value>)",
|
|
64
|
+
DEFAULT: "rgb(var(--secondary-default) / <alpha-value>)",
|
|
65
|
+
foreground: "rgb(var(--secondary-foreground) / <alpha-value>)",
|
|
66
|
+
},
|
|
67
|
+
tertiary: {
|
|
68
|
+
5: "rgb(var(--tertiary-5) / <alpha-value>)",
|
|
69
|
+
10: "rgb(var(--tertiary-10) / <alpha-value>)",
|
|
70
|
+
20: "rgb(var(--tertiary-20) / <alpha-value>)",
|
|
71
|
+
30: "rgb(var(--tertiary-30) / <alpha-value>)",
|
|
72
|
+
40: "rgb(var(--tertiary-40) / <alpha-value>)",
|
|
73
|
+
50: "rgb(var(--tertiary-50) / <alpha-value>)",
|
|
74
|
+
60: "rgb(var(--tertiary-60) / <alpha-value>)",
|
|
75
|
+
70: "rgb(var(--tertiary-70) / <alpha-value>)",
|
|
76
|
+
80: "rgb(var(--tertiary-80) / <alpha-value>)",
|
|
77
|
+
90: "rgb(var(--tertiary-90) / <alpha-value>)",
|
|
78
|
+
100: "rgb(var(--tertiary-100) / <alpha-value>)",
|
|
79
|
+
110: "rgb(var(--tertiary-110) / <alpha-value>)",
|
|
80
|
+
120: "rgb(var(--tertiary-120) / <alpha-value>)",
|
|
81
|
+
130: "rgb(var(--tertiary-130) / <alpha-value>)",
|
|
82
|
+
140: "rgb(var(--tertiary-140) / <alpha-value>)",
|
|
83
|
+
150: "rgb(var(--tertiary-150) / <alpha-value>)",
|
|
84
|
+
DEFAULT: "rgb(var(--tertiary-default) / <alpha-value>)",
|
|
85
|
+
foreground: "rgb(var(--tertiary-foreground) / <alpha-value>)",
|
|
86
|
+
},
|
|
87
|
+
grey: {
|
|
88
|
+
5: "rgb(var(--grey-5) / <alpha-value>)",
|
|
89
|
+
10: "rgb(var(--grey-10) / <alpha-value>)",
|
|
90
|
+
20: "rgb(var(--grey-20) / <alpha-value>)",
|
|
91
|
+
30: "rgb(var(--grey-30) / <alpha-value>)",
|
|
92
|
+
40: "rgb(var(--grey-40) / <alpha-value>)",
|
|
93
|
+
50: "rgb(var(--grey-50) / <alpha-value>)",
|
|
94
|
+
60: "rgb(var(--grey-60) / <alpha-value>)",
|
|
95
|
+
70: "rgb(var(--grey-70) / <alpha-value>)",
|
|
96
|
+
80: "rgb(var(--grey-80) / <alpha-value>)",
|
|
97
|
+
90: "rgb(var(--grey-90) / <alpha-value>)",
|
|
98
|
+
100: "rgb(var(--grey-100) / <alpha-value>)",
|
|
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
|
+
},
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
const generateColorConfig = (
|
|
3
|
+
baseName,
|
|
4
|
+
variablePrefix,
|
|
5
|
+
range = [5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150]
|
|
6
|
+
) => {
|
|
7
|
+
const colors = {};
|
|
8
|
+
|
|
9
|
+
range.forEach((num) => {
|
|
10
|
+
colors[`${baseName}-${num}`] = `var(--${variablePrefix}-${num})`;
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
// Add additional colors like foreground, background if needed
|
|
14
|
+
colors[`${baseName}-foreground`] = `var(--${baseName}-foreground)`;
|
|
15
|
+
colors[`${baseName}-default`] = `var(--state-color-${baseName}-default)`;
|
|
16
|
+
colors[`${baseName}-hover`] = `var(--state-color-${baseName}-hover)`;
|
|
17
|
+
colors[`${baseName}-stroke`] = `var(--state-color-${baseName}-stroke)`;
|
|
18
|
+
colors[`${baseName}-hover-bg`] = `var(--state-color-${baseName}-hover-bg)`;
|
|
19
|
+
colors[`${baseName}-pressed`] = `var(--state-color-${baseName}-pressed)`;
|
|
20
|
+
colors[`${baseName}-active`] = `var(--state-color-${baseName}-active)`;
|
|
21
|
+
|
|
22
|
+
return colors;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const secondaryShade = [
|
|
26
|
+
"50",
|
|
27
|
+
"100",
|
|
28
|
+
"200",
|
|
29
|
+
"300",
|
|
30
|
+
"400",
|
|
31
|
+
"500",
|
|
32
|
+
"600",
|
|
33
|
+
"700",
|
|
34
|
+
"800",
|
|
35
|
+
"900",
|
|
36
|
+
"950",
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
module.exports = {
|
|
40
|
+
theme: {
|
|
41
|
+
extend: {
|
|
42
|
+
colors: {
|
|
43
|
+
"main-primary": "var(--main-color-primary)",
|
|
44
|
+
"main-secondary": "var(--main-color-secondary)",
|
|
45
|
+
"main-tertiary": "var(--main-color-tertiary)",
|
|
46
|
+
|
|
47
|
+
"text-dark": "var(--text-dark)",
|
|
48
|
+
"text-medium": "var(--text-medium)",
|
|
49
|
+
"text-light": "var(--text-light)",
|
|
50
|
+
"text-grey-dark": "var(--text-grey-dark)",
|
|
51
|
+
"text-grey-medium": "var(--text-grey-medium)",
|
|
52
|
+
"text-grey-light": "var(--text-grey-light)",
|
|
53
|
+
"text-white": "var(--text-white)",
|
|
54
|
+
|
|
55
|
+
...generateColorConfig("primary", "primary-ramps-primary"),
|
|
56
|
+
...generateColorConfig("secondary", "secondary-ramps-secondary"),
|
|
57
|
+
...generateColorConfig("tertiary", "tertiary-ramps-tertiary"),
|
|
58
|
+
...generateColorConfig("grey", "grey"),
|
|
59
|
+
|
|
60
|
+
...generateColorConfig("grey2", "grey2", secondaryShade),
|
|
61
|
+
...generateColorConfig("info", "info", secondaryShade),
|
|
62
|
+
...generateColorConfig("success", "success", secondaryShade),
|
|
63
|
+
...generateColorConfig("warning", "warning", secondaryShade),
|
|
64
|
+
...generateColorConfig("error", "error", secondaryShade),
|
|
65
|
+
|
|
66
|
+
"disable-solid": "var(--state-color-disable-solid)",
|
|
67
|
+
"disable-outline": "var(--state-color-disable-outline)",
|
|
68
|
+
|
|
69
|
+
"input-default-text": "var(--input-color-default-text)",
|
|
70
|
+
"input-default-stroke": "var(--input-color-default-stroke)",
|
|
71
|
+
"input-filled-text": "var(--input-color-filled-text)",
|
|
72
|
+
"input-active-stroke": "var(--input-color-active-stroke)",
|
|
73
|
+
"input-disable-text": "var(--input-color-disable-text)",
|
|
74
|
+
"input-disable-stroke": "var(--input-color-disable-stroke)",
|
|
75
|
+
"input-disable-bg": "var(--input-color-disable-bg)",
|
|
76
|
+
"input-label-bg": "var(--input-color-label-bg)",
|
|
77
|
+
"input-error": "var(--input-color-error)",
|
|
78
|
+
|
|
79
|
+
"other-bg": "var(--other-bg)",
|
|
80
|
+
"other-bg2": "var(--other-bg2)",
|
|
81
|
+
"other-popup": "var(--other-popup)",
|
|
82
|
+
"other-popup-highlight": "var(--other-popup-hightlight)", // naming wrong
|
|
83
|
+
"other-popup-curtain": "var(--other-popup-curtain)",
|
|
84
|
+
|
|
85
|
+
"common-white": "var(--common-white)",
|
|
86
|
+
"common-black": "var(--common-black)",
|
|
87
|
+
|
|
88
|
+
// ---
|
|
89
|
+
surface: "var(--surface)",
|
|
90
|
+
"surface-foreground": "var(--surface-foreground)",
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
};
|
|
@@ -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 = {};
|