@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
package/src/theme/main-preset.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const { fontFamily } = require("tailwindcss/defaultTheme");
|
|
2
2
|
|
|
3
|
-
/** @type {import('tailwindcss').Config} */
|
|
4
3
|
module.exports = {
|
|
5
4
|
darkMode: "class",
|
|
6
5
|
theme: {
|
|
@@ -14,157 +13,222 @@ module.exports = {
|
|
|
14
13
|
extend: {
|
|
15
14
|
fontSize: {
|
|
16
15
|
h1: [
|
|
17
|
-
"64px",
|
|
16
|
+
"var(--h1-size, 64px)",
|
|
18
17
|
{
|
|
19
|
-
lineHeight: "80px",
|
|
20
|
-
fontWeight: "700",
|
|
18
|
+
lineHeight: "var(--h1-line-height, 80px)",
|
|
19
|
+
fontWeight: "var(--h1-weight, 700)",
|
|
20
|
+
fontFamily: "var(--h1-family, 'Poppins')",
|
|
21
21
|
},
|
|
22
22
|
],
|
|
23
23
|
h2: [
|
|
24
|
-
"48px",
|
|
24
|
+
"var(--h2-size, 48px)",
|
|
25
25
|
{
|
|
26
|
-
lineHeight: "60px",
|
|
27
|
-
fontWeight: "700",
|
|
26
|
+
lineHeight: "var(--h2-line-height, 60px)",
|
|
27
|
+
fontWeight: "var(--h2-weight, 700)",
|
|
28
|
+
fontFamily: "var(--h2-family, 'Poppins')",
|
|
28
29
|
},
|
|
29
30
|
],
|
|
30
31
|
h3: [
|
|
31
|
-
"32px",
|
|
32
|
+
"var(--h3-size, 32px)",
|
|
32
33
|
{
|
|
33
|
-
lineHeight: "48px",
|
|
34
|
-
fontWeight: "700",
|
|
34
|
+
lineHeight: "var(--h3-line-height, 48px)",
|
|
35
|
+
fontWeight: "var(--h3-weight, 700)",
|
|
36
|
+
fontFamily: "var(--h3-family, 'Poppins')",
|
|
35
37
|
},
|
|
36
38
|
],
|
|
37
39
|
h4: [
|
|
38
|
-
"24px",
|
|
40
|
+
"var(--h4-size, 24px)",
|
|
39
41
|
{
|
|
40
|
-
lineHeight: "32px",
|
|
41
|
-
fontWeight: "700",
|
|
42
|
+
lineHeight: "var(--h4-line-height, 32px)",
|
|
43
|
+
fontWeight: "var(--h4-weight, 700)",
|
|
44
|
+
fontFamily: "var(--h4-family, 'Poppins')",
|
|
42
45
|
},
|
|
43
46
|
],
|
|
44
47
|
h5: [
|
|
45
|
-
"20px",
|
|
48
|
+
"var(--h5-size, 20px)",
|
|
46
49
|
{
|
|
47
|
-
lineHeight: "28px",
|
|
48
|
-
fontWeight: "700",
|
|
50
|
+
lineHeight: "var(--h5-line-height, 28px)",
|
|
51
|
+
fontWeight: "var(--h5-weight, 700)",
|
|
52
|
+
fontFamily: "var(--h5-family, 'Poppins')",
|
|
49
53
|
},
|
|
50
54
|
],
|
|
51
55
|
h6: [
|
|
52
|
-
"18px",
|
|
56
|
+
"var(--h6-size, 18px)",
|
|
53
57
|
{
|
|
54
|
-
lineHeight: "24px",
|
|
55
|
-
fontWeight: "700",
|
|
58
|
+
lineHeight: "var(--h6-line-height, 24px)",
|
|
59
|
+
fontWeight: "var(--h6-weight, 700)",
|
|
60
|
+
fontFamily: "var(--h6-family, 'Poppins')",
|
|
56
61
|
},
|
|
57
62
|
],
|
|
58
63
|
subtitile1: [
|
|
59
|
-
"16px",
|
|
64
|
+
"var(--subtitle1-size, 16px)",
|
|
60
65
|
{
|
|
61
|
-
lineHeight: "24px",
|
|
62
|
-
fontWeight: "400",
|
|
66
|
+
lineHeight: "var(--subtitle1-line-height, 24px)",
|
|
67
|
+
fontWeight: "var(--subtitle1-weight, 400)",
|
|
68
|
+
fontFamily: "var(--subtitle1-family, 'Poppins')",
|
|
63
69
|
},
|
|
64
70
|
],
|
|
65
71
|
subtitile2: [
|
|
66
|
-
"16px",
|
|
72
|
+
"var(--subtitle2-size, 16px)",
|
|
67
73
|
{
|
|
68
|
-
lineHeight: "24px",
|
|
69
|
-
fontWeight: "500",
|
|
74
|
+
lineHeight: "var(--subtitle2-line-height, 24px)",
|
|
75
|
+
fontWeight: "var(--subtitle2-weight, 500)",
|
|
76
|
+
fontFamily: "var(--subtitle2-family, 'Poppins')",
|
|
70
77
|
},
|
|
71
78
|
],
|
|
72
79
|
subtitile3: [
|
|
73
|
-
"16px",
|
|
80
|
+
"var(--subtitle3-size, 16px)",
|
|
74
81
|
{
|
|
75
|
-
lineHeight: "24px",
|
|
76
|
-
fontWeight: "600",
|
|
82
|
+
lineHeight: "var(--subtitle3-line-height, 24px)",
|
|
83
|
+
fontWeight: "var(--subtitle3-weight, 600)",
|
|
84
|
+
fontFamily: "var(--subtitle3-family, 'Poppins')",
|
|
77
85
|
},
|
|
78
86
|
],
|
|
79
87
|
subtitile4: [
|
|
80
|
-
"14px",
|
|
88
|
+
"var(--subtitle4-size, 14px)",
|
|
81
89
|
{
|
|
82
|
-
lineHeight: "22px",
|
|
83
|
-
fontWeight: "400",
|
|
90
|
+
lineHeight: "var(--subtitle4-line-height, 22px)",
|
|
91
|
+
fontWeight: "var(--subtitle4-weight, 400)",
|
|
92
|
+
fontFamily: "var(--subtitle4-family, 'Poppins')",
|
|
84
93
|
},
|
|
85
94
|
],
|
|
86
95
|
subtitile5: [
|
|
87
|
-
"14px",
|
|
96
|
+
"var(--subtitle5-size, 14px)",
|
|
88
97
|
{
|
|
89
|
-
lineHeight: "22px",
|
|
90
|
-
fontWeight: "500",
|
|
98
|
+
lineHeight: "var(--subtitle5-line-height, 22px)",
|
|
99
|
+
fontWeight: "var(--subtitle5-weight, 500)",
|
|
100
|
+
fontFamily: "var(--subtitle5-family, 'Poppins')",
|
|
91
101
|
},
|
|
92
102
|
],
|
|
93
103
|
subtitile6: [
|
|
94
|
-
"14px",
|
|
104
|
+
"var(--subtitle6-size, 14px)",
|
|
95
105
|
{
|
|
96
|
-
lineHeight: "22px",
|
|
97
|
-
fontWeight: "600",
|
|
106
|
+
lineHeight: "var(--subtitle6-line-height, 22px)",
|
|
107
|
+
fontWeight: "var(--subtitle6-weight, 600)",
|
|
108
|
+
fontFamily: "var(--subtitle6-family, 'Poppins')",
|
|
98
109
|
},
|
|
99
110
|
],
|
|
100
111
|
body1: [
|
|
101
|
-
"16px",
|
|
112
|
+
"var(--body1-size, 16px)",
|
|
102
113
|
{
|
|
103
|
-
lineHeight: "20px",
|
|
104
|
-
fontWeight: "400",
|
|
114
|
+
lineHeight: "var(--body1-line-height, 20px)",
|
|
115
|
+
fontWeight: "var(--body1-weight, 400)",
|
|
116
|
+
fontFamily: "var(--body1-family, 'Poppins')",
|
|
105
117
|
},
|
|
106
118
|
],
|
|
107
119
|
body2: [
|
|
108
|
-
"16px",
|
|
120
|
+
"var(--body2-size, 16px)",
|
|
109
121
|
{
|
|
110
|
-
lineHeight: "20px",
|
|
111
|
-
fontWeight: "500",
|
|
122
|
+
lineHeight: "var(--body2-line-height, 20px)",
|
|
123
|
+
fontWeight: "var(--body2-weight, 500)",
|
|
124
|
+
fontFamily: "var(--body2-family, 'Poppins')",
|
|
112
125
|
},
|
|
113
126
|
],
|
|
114
127
|
body3: [
|
|
115
|
-
"14px",
|
|
128
|
+
"var(--body3-size, 14px)",
|
|
116
129
|
{
|
|
117
|
-
lineHeight: "18px",
|
|
118
|
-
fontWeight: "400",
|
|
130
|
+
lineHeight: "var(--body3-line-height, 18px)",
|
|
131
|
+
fontWeight: "var(--body3-weight, 400)",
|
|
132
|
+
fontFamily: "var(--body3-family, 'Poppins')",
|
|
119
133
|
},
|
|
120
134
|
],
|
|
121
135
|
body4: [
|
|
122
|
-
"14px",
|
|
136
|
+
"var(--body4-size, 14px)",
|
|
123
137
|
{
|
|
124
|
-
lineHeight: "18px",
|
|
125
|
-
fontWeight: "500",
|
|
138
|
+
lineHeight: "var(--body4-line-height, 18px)",
|
|
139
|
+
fontWeight: "var(--body4-weight, 500)",
|
|
140
|
+
fontFamily: "var(--body4-family, 'Poppins')",
|
|
126
141
|
},
|
|
127
142
|
],
|
|
128
143
|
small1: [
|
|
129
|
-
"12px",
|
|
144
|
+
"var(--small1-size, 12px)",
|
|
130
145
|
{
|
|
131
|
-
lineHeight: "14px",
|
|
132
|
-
fontWeight: "400",
|
|
146
|
+
lineHeight: "var(--small1-line-height, 14px)",
|
|
147
|
+
fontWeight: "var(--small1-weight, 400)",
|
|
148
|
+
fontFamily: "var(--small1-family, 'Poppins')",
|
|
133
149
|
},
|
|
134
150
|
],
|
|
135
151
|
small2: [
|
|
136
|
-
"12px",
|
|
152
|
+
"var(--small2-size, 12px)",
|
|
137
153
|
{
|
|
138
|
-
lineHeight: "14px",
|
|
139
|
-
fontWeight: "500",
|
|
154
|
+
lineHeight: "var(--small2-line-height, 14px)",
|
|
155
|
+
fontWeight: "var(--small2-weight, 500)",
|
|
156
|
+
fontFamily: "var(--small2-family, 'Poppins')",
|
|
140
157
|
},
|
|
141
158
|
],
|
|
142
159
|
small3: [
|
|
143
|
-
"
|
|
160
|
+
"var(--small3-size, 12px)",
|
|
144
161
|
{
|
|
145
|
-
lineHeight: "
|
|
146
|
-
fontWeight: "
|
|
162
|
+
lineHeight: "var(--small3-line-height, 14px)",
|
|
163
|
+
fontWeight: "var(--small3-weight, 600)",
|
|
164
|
+
fontFamily: "var(--small3-family, 'Poppins')",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
small4: [
|
|
168
|
+
"var(--small4-size, 10px)",
|
|
169
|
+
{
|
|
170
|
+
lineHeight: "var(--small4-line-height, 12px)",
|
|
171
|
+
fontWeight: "var(--small4-weight, 400)",
|
|
172
|
+
fontFamily: "var(--small4-family, 'Poppins')",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
small5: [
|
|
176
|
+
"var(--small5-size, 10px)",
|
|
177
|
+
{
|
|
178
|
+
lineHeight: "var(--small5-line-height, 12px)",
|
|
179
|
+
fontWeight: "var(--small5-weight, 500)",
|
|
180
|
+
fontFamily: "var(--small5-family, 'Poppins')",
|
|
147
181
|
},
|
|
148
182
|
],
|
|
149
183
|
label1: [
|
|
150
|
-
"12px",
|
|
184
|
+
"var(--label-label1-size, 12px)",
|
|
151
185
|
{
|
|
152
|
-
lineHeight: "12px",
|
|
153
|
-
fontWeight: "400",
|
|
186
|
+
lineHeight: "var(--label-label1-line-height, 12px)",
|
|
187
|
+
fontWeight: "var(--label-label1-weight, 400)",
|
|
188
|
+
fontFamily: "var(--label-label1-family, 'Poppins')",
|
|
154
189
|
},
|
|
155
190
|
],
|
|
156
191
|
label2: [
|
|
157
|
-
"10px",
|
|
192
|
+
"var(--label-label2-size, 10px)",
|
|
158
193
|
{
|
|
159
|
-
lineHeight: "10px",
|
|
160
|
-
fontWeight: "400",
|
|
194
|
+
lineHeight: "var(--label-label2-line-height, 10px)",
|
|
195
|
+
fontWeight: "var(--label-label2-weight, 400)",
|
|
196
|
+
fontFamily: "var(--label-label2-family, 'Poppins')",
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
buttonL: [
|
|
200
|
+
"var(--button-button-l-size, 16px)",
|
|
201
|
+
{
|
|
202
|
+
lineHeight: "var(--button-button-l-line-height, 24px)",
|
|
203
|
+
fontWeight: "var(--button-button-l-weight, 700)",
|
|
204
|
+
fontFamily: "var(--button-button-l-family, 'Poppins')",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
buttonMS: [
|
|
208
|
+
"var(--button-button-ms-size, 14px)",
|
|
209
|
+
{
|
|
210
|
+
lineHeight: "var(--button-button-ms-line-height, 22px)",
|
|
211
|
+
fontWeight: "var(--button-button-ms-weight, 700)",
|
|
212
|
+
fontFamily: "var(--button-button-ms-family, 'Poppins')",
|
|
161
213
|
},
|
|
162
214
|
],
|
|
163
215
|
},
|
|
164
216
|
borderRadius: {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
217
|
+
xl: "var(--radius-radius-xl)",
|
|
218
|
+
lg: "var(--radius-radius-l)",
|
|
219
|
+
md: "var(--radius-radius-m)",
|
|
220
|
+
sm: "var(--radius-radius-s)",
|
|
221
|
+
xs: "var(--radius-radius-xs)",
|
|
222
|
+
},
|
|
223
|
+
spacing: {
|
|
224
|
+
xxs: "var(--spacing-spacing-xxs)",
|
|
225
|
+
xs: "var(--spacing-spacing-xs)",
|
|
226
|
+
sm: "var(--spacing-spacing-s)",
|
|
227
|
+
md: "var(--spacing-spacing-m)",
|
|
228
|
+
lg: "var(--spacing-spacing-l)",
|
|
229
|
+
xl: "var(--spacing-spacing-xl)",
|
|
230
|
+
xxl: "var(--spacing-spacing-xxl)",
|
|
231
|
+
xxxl: "var(--spacing-spacing-xxxl)",
|
|
168
232
|
},
|
|
169
233
|
keyframes: {
|
|
170
234
|
"accordion-down": {
|
|
@@ -59,11 +59,23 @@ module.exports = plugin(function ({ addUtilities }) {
|
|
|
59
59
|
".typography-small3": {
|
|
60
60
|
"@apply text-small3": {},
|
|
61
61
|
},
|
|
62
|
+
".typography-small4": {
|
|
63
|
+
"@apply text-small4": {},
|
|
64
|
+
},
|
|
65
|
+
".typography-small5": {
|
|
66
|
+
"@apply text-small5": {},
|
|
67
|
+
},
|
|
62
68
|
".typography-label1": {
|
|
63
69
|
"@apply text-label1": {},
|
|
64
70
|
},
|
|
65
71
|
".typography-label2": {
|
|
66
72
|
"@apply text-label2": {},
|
|
67
73
|
},
|
|
74
|
+
".typography-buttonL": {
|
|
75
|
+
"@apply text-buttonL": {},
|
|
76
|
+
},
|
|
77
|
+
".typography-buttonMS": {
|
|
78
|
+
"@apply text-buttonMS": {},
|
|
79
|
+
},
|
|
68
80
|
});
|
|
69
81
|
});
|
|
@@ -1,228 +1,109 @@
|
|
|
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
|
-
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
|
-
},
|
|
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
|
+
"state-disable-solid": withColorMixin("--state-color-disable-solid"),
|
|
60
|
+
"state-disable-outline": withColorMixin(
|
|
61
|
+
"--state-color-disable-outline"
|
|
62
|
+
),
|
|
63
|
+
|
|
64
|
+
"input-default-text": withColorMixin("--input-color-default-text"),
|
|
65
|
+
"input-default-stroke": withColorMixin("--input-color-default-stroke"),
|
|
66
|
+
"input-filled-text": withColorMixin("--input-color-filled-text"),
|
|
67
|
+
"input-active-stroke": withColorMixin("--input-color-active-stroke"),
|
|
68
|
+
"input-disable-text": withColorMixin("--input-color-disable-text"),
|
|
69
|
+
"input-disable-stroke": withColorMixin("--input-color-disable-stroke"),
|
|
70
|
+
"input-disable-bg": withColorMixin("--input-color-disable-bg"),
|
|
71
|
+
"input-label-bg": withColorMixin("--input-color-label-bg"),
|
|
72
|
+
"input-error": withColorMixin("--input-color-error"),
|
|
73
|
+
|
|
74
|
+
"base-bg": withColorMixin("--base-color-bg"),
|
|
75
|
+
"base-bg2": withColorMixin("--base-color-bg2"),
|
|
76
|
+
"base-bg3": withColorMixin("--base-color-bg3"),
|
|
77
|
+
"base-popup": withColorMixin("--base-color-popup"),
|
|
78
|
+
"base-popup-highlight": withColorMixin("--base-color-popup-hightlight"),
|
|
79
|
+
"base-popup-curtain": withColorMixin("--base-color-popup-curtain"),
|
|
80
|
+
"base-popup-foreground": withColorMixin(
|
|
81
|
+
"--base-color-popup-foreground"
|
|
82
|
+
),
|
|
83
|
+
|
|
84
|
+
"common-white": withColorMixin("--common-white"),
|
|
85
|
+
"common-black": withColorMixin("--common-black"),
|
|
86
|
+
|
|
87
|
+
surface: withColorMixin("--surface"),
|
|
88
|
+
"surface-foreground": withColorMixin("--surface-foreground"),
|
|
89
|
+
background: withColorMixin("--background"),
|
|
90
|
+
foreground: withColorMixin("--foreground"),
|
|
91
|
+
},
|
|
92
|
+
borderColor: {
|
|
93
|
+
...generateButtonStyles("border"),
|
|
94
|
+
...generateActionButtonStyles("border"),
|
|
95
|
+
},
|
|
96
|
+
backgroundColor: {
|
|
97
|
+
...generateButtonStyles("bg"),
|
|
98
|
+
...generateActionButtonStyles("bg"),
|
|
99
|
+
},
|
|
100
|
+
textColor: {
|
|
101
|
+
...generateButtonStyles("text"),
|
|
102
|
+
...generateActionButtonStyles("text"),
|
|
103
|
+
},
|
|
104
|
+
fill: {
|
|
105
|
+
...generateButtonStyles("text"),
|
|
106
|
+
...generateActionButtonStyles("text"),
|
|
226
107
|
},
|
|
227
108
|
},
|
|
228
109
|
},
|