@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.
Files changed (207) hide show
  1. package/dist/cjs/bundle.css +3220 -1382
  2. package/dist/cjs/bundle.js +3 -3
  3. package/dist/cjs/bundle.js.map +1 -1
  4. package/dist/cjs/types/components/ActionButton/ActionButton.stories.d.ts +4 -4
  5. package/dist/cjs/types/components/ActionButton/ActionButton.styles copy.d.ts +6 -0
  6. package/dist/cjs/types/components/Button/Button.styles copy.d.ts +7 -0
  7. package/dist/cjs/types/components/Button/Button.styles.d.ts +1 -0
  8. package/dist/cjs/types/components/Button/Buttons.stories.d.ts +12 -4
  9. package/dist/cjs/types/components/Calendar/Calendar.d.ts +0 -1
  10. package/dist/cjs/types/components/Calendar/Calendar.stories.d.ts +7 -7
  11. package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
  12. package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +2 -0
  13. package/dist/cjs/types/components/DatePicker/DatePicker.stories.d.ts +2 -0
  14. package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +8 -6
  15. package/dist/cjs/types/components/Input/Input.stories.d.ts +12 -12
  16. package/dist/cjs/types/components/Label/Label.stories.d.ts +6 -6
  17. package/dist/cjs/types/components/Loading/Loading.d.ts +14 -0
  18. package/dist/cjs/types/components/Loading/Loading.stories.d.ts +35 -0
  19. package/dist/cjs/types/components/ProgressBar/ProgressBar.d.ts +13 -0
  20. package/dist/cjs/types/components/ProgressBar/ProgressBar.stories.d.ts +37 -0
  21. package/dist/cjs/types/components/RadioGroup/RadioGroup.stories.d.ts +5 -5
  22. package/dist/cjs/types/components/Search/Search.d.ts +22 -1
  23. package/dist/cjs/types/components/Search/Search.stories.d.ts +338 -7
  24. package/dist/cjs/types/components/Table/Table.stories.d.ts +4 -4
  25. package/dist/cjs/types/components/Text/Text.d.ts +1 -1
  26. package/dist/cjs/types/components/Text/Text.stories.d.ts +1 -1
  27. package/dist/cjs/types/components/TextInput/TextInput.d.ts +4 -0
  28. package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +11 -6
  29. package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +8 -0
  30. package/dist/cjs/types/index.d.ts +3 -0
  31. package/dist/cjs/types/stories/ColorGroupPreview.d.ts +1 -0
  32. package/dist/cjs/types/stories/ColorPreview.d.ts +5 -0
  33. package/dist/components/ActionButton/ActionButton.js +1 -1
  34. package/dist/components/ActionButton/ActionButton.stories.js +1 -1
  35. package/dist/components/ActionButton/ActionButton.styles copy.js +90 -0
  36. package/dist/components/ActionButton/ActionButton.styles.js +54 -15
  37. package/dist/components/AlertDialog/AlertDialog.js +2 -2
  38. package/dist/components/Avatar/Avatar.styles.js +1 -1
  39. package/dist/components/Button/Button.js +3 -2
  40. package/dist/components/Button/Button.styles copy.js +210 -0
  41. package/dist/components/Button/Button.styles.js +203 -43
  42. package/dist/components/Button/Buttons.stories.js +9 -1
  43. package/dist/components/Calendar/Calendar.js +39 -2
  44. package/dist/components/Checkbox/Checkbox.js +1 -1
  45. package/dist/components/Collapsible/Collapsible.styles.js +6 -3
  46. package/dist/components/DatePicker/DatePicker.js +13 -2
  47. package/dist/components/Dialog/Dialog.js +4 -4
  48. package/dist/components/Dropdown/Dropdown.js +9 -7
  49. package/dist/components/Dropdown/Dropdown.styles.js +1 -1
  50. package/dist/components/Input/Input.js +8 -1
  51. package/dist/components/Input/Input.stories.js +3 -2
  52. package/dist/components/Input/Input.styles.js +13 -5
  53. package/dist/components/Loading/Loading.js +23 -0
  54. package/dist/components/Loading/Loading.stories.js +37 -0
  55. package/dist/components/Popover/Popover.js +1 -1
  56. package/dist/components/ProgressBar/ProgressBar.js +22 -0
  57. package/dist/components/ProgressBar/ProgressBar.stories.js +52 -0
  58. package/dist/components/RadioGroup/RadioGroup.js +2 -2
  59. package/dist/components/Search/Search.js +6 -7
  60. package/dist/components/Search/Search.stories.js +8 -5
  61. package/dist/components/Text/Text.js +17 -2
  62. package/dist/components/Text/Text.stories.js +5 -1
  63. package/dist/components/TextInput/TextInput.js +14 -5
  64. package/dist/components/TextInput/TextInput.stories.js +3 -2
  65. package/dist/components/TextInput/TextInput.styles.js +120 -18
  66. package/dist/esm/bundle.css +3220 -1382
  67. package/dist/esm/bundle.js +3 -3
  68. package/dist/esm/bundle.js.map +1 -1
  69. package/dist/esm/types/components/ActionButton/ActionButton.stories.d.ts +4 -4
  70. package/dist/esm/types/components/ActionButton/ActionButton.styles copy.d.ts +6 -0
  71. package/dist/esm/types/components/Button/Button.styles copy.d.ts +7 -0
  72. package/dist/esm/types/components/Button/Button.styles.d.ts +1 -0
  73. package/dist/esm/types/components/Button/Buttons.stories.d.ts +12 -4
  74. package/dist/esm/types/components/Calendar/Calendar.d.ts +0 -1
  75. package/dist/esm/types/components/Calendar/Calendar.stories.d.ts +7 -7
  76. package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
  77. package/dist/esm/types/components/DatePicker/DatePicker.d.ts +2 -0
  78. package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +2 -0
  79. package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +8 -6
  80. package/dist/esm/types/components/Input/Input.stories.d.ts +12 -12
  81. package/dist/esm/types/components/Label/Label.stories.d.ts +6 -6
  82. package/dist/esm/types/components/Loading/Loading.d.ts +14 -0
  83. package/dist/esm/types/components/Loading/Loading.stories.d.ts +35 -0
  84. package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +13 -0
  85. package/dist/esm/types/components/ProgressBar/ProgressBar.stories.d.ts +37 -0
  86. package/dist/esm/types/components/RadioGroup/RadioGroup.stories.d.ts +5 -5
  87. package/dist/esm/types/components/Search/Search.d.ts +22 -1
  88. package/dist/esm/types/components/Search/Search.stories.d.ts +338 -7
  89. package/dist/esm/types/components/Table/Table.stories.d.ts +4 -4
  90. package/dist/esm/types/components/Text/Text.d.ts +1 -1
  91. package/dist/esm/types/components/Text/Text.stories.d.ts +1 -1
  92. package/dist/esm/types/components/TextInput/TextInput.d.ts +4 -0
  93. package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +11 -6
  94. package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +8 -0
  95. package/dist/esm/types/index.d.ts +3 -0
  96. package/dist/esm/types/stories/ColorGroupPreview.d.ts +1 -0
  97. package/dist/esm/types/stories/ColorPreview.d.ts +5 -0
  98. package/dist/index.d.ts +53 -2
  99. package/dist/index.js +3 -0
  100. package/dist/src/theme/global.css +5078 -918
  101. package/dist/stories/ColorGroupPreview.js +478 -0
  102. package/dist/stories/ColorPreview.js +8 -0
  103. package/dist/theme/global.css +7 -227
  104. package/dist/theme/main-preset.js +131 -67
  105. package/dist/theme/plugins/utilities/typography.js +12 -0
  106. package/dist/theme/presets/colors.js +101 -220
  107. package/dist/theme/theme.d.ts +69 -0
  108. package/dist/theme/themes/xspector/baseline.css +7 -0
  109. package/dist/theme/themes/xspector/color.css +67 -0
  110. package/dist/theme/themes/xspector/components/action-button.css +98 -0
  111. package/dist/theme/themes/xspector/components/loading.css +11 -0
  112. package/dist/theme/themes/xspector/palette.css +122 -0
  113. package/dist/theme/themes/xspector/state.css +89 -0
  114. package/dist/theme/themes/xspector/transparent.css +68 -0
  115. package/dist/theme/themes/xspector/typography.css +27 -0
  116. package/dist/theme/tokens/baseline.css +10 -0
  117. package/dist/theme/tokens/color.css +63 -0
  118. package/dist/theme/tokens/components/action-button.css +127 -0
  119. package/dist/theme/tokens/components/button.css +512 -0
  120. package/dist/theme/tokens/components/loading.css +11 -0
  121. package/dist/theme/tokens/components/navbar.css +8 -0
  122. package/dist/theme/tokens/components/progress-bar.css +8 -0
  123. package/dist/theme/tokens/palette.css +122 -0
  124. package/dist/theme/tokens/state.css +82 -0
  125. package/dist/theme/tokens/transparent.css +68 -0
  126. package/dist/theme/tokens/typography.css +178 -0
  127. package/dist/theme/tokens/variables.css +28 -0
  128. package/dist/theme/utils.js +98 -0
  129. package/package.json +1 -1
  130. package/src/_theme/global copy.css +761 -0
  131. package/src/_theme/global.css +39 -0
  132. package/src/_theme/main-preset.js +239 -0
  133. package/src/_theme/plugins/utilities/typography.js +81 -0
  134. package/src/_theme/presets/colors copy 2.js +319 -0
  135. package/src/_theme/presets/colors copy.js +229 -0
  136. package/src/_theme/presets/colors.js +94 -0
  137. package/src/_theme/theme.d.ts +69 -0
  138. package/src/_theme/variables/base/button.css +334 -0
  139. package/src/_theme/variables/base/components copy.css +19 -0
  140. package/src/_theme/variables/default/colors.css +292 -0
  141. package/src/_theme/variables/default/typography.css +178 -0
  142. package/src/_theme/variables/xspector/colors.css +468 -0
  143. package/src/_theme/variables/xspector/typography.css +178 -0
  144. package/src/components/ActionButton/ActionButton.stories.tsx +1 -1
  145. package/src/components/ActionButton/ActionButton.styles copy.ts +95 -0
  146. package/src/components/ActionButton/ActionButton.styles.ts +54 -19
  147. package/src/components/ActionButton/ActionButton.tsx +1 -1
  148. package/src/components/AlertDialog/AlertDialog.tsx +2 -2
  149. package/src/components/Avatar/Avatar.styles.ts +1 -1
  150. package/src/components/Button/Button.styles copy.ts +214 -0
  151. package/src/components/Button/Button.styles.ts +203 -47
  152. package/src/components/Button/Button.tsx +4 -0
  153. package/src/components/Button/Buttons.stories.tsx +9 -1
  154. package/src/components/Calendar/Calendar.tsx +49 -7
  155. package/src/components/Checkbox/Checkbox.tsx +1 -1
  156. package/src/components/Collapsible/Collapsible.styles.ts +6 -3
  157. package/src/components/DatePicker/DatePicker.tsx +8 -2
  158. package/src/components/Dialog/Dialog.tsx +5 -5
  159. package/src/components/Dropdown/Dropdown.styles.ts +1 -1
  160. package/src/components/Dropdown/Dropdown.tsx +14 -12
  161. package/src/components/Input/Input.stories.tsx +3 -2
  162. package/src/components/Input/Input.styles.tsx +13 -6
  163. package/src/components/Input/Input.tsx +8 -1
  164. package/src/components/Loading/Loading.stories.tsx +43 -0
  165. package/src/components/Loading/Loading.tsx +72 -0
  166. package/src/components/Popover/Popover.tsx +1 -1
  167. package/src/components/ProgressBar/ProgressBar.stories.tsx +78 -0
  168. package/src/components/ProgressBar/ProgressBar.tsx +62 -0
  169. package/src/components/RadioGroup/RadioGroup.tsx +2 -2
  170. package/src/components/Search/Search.stories.tsx +13 -13
  171. package/src/components/Search/Search.tsx +14 -19
  172. package/src/components/Text/Text.stories.tsx +6 -4
  173. package/src/components/Text/Text.tsx +27 -3
  174. package/src/components/TextInput/TextInput.stories.tsx +3 -2
  175. package/src/components/TextInput/TextInput.styles.ts +124 -19
  176. package/src/components/TextInput/TextInput.tsx +34 -4
  177. package/src/index.ts +3 -0
  178. package/src/stories/ColorGroupPreview.tsx +494 -0
  179. package/src/stories/ColorPreview.tsx +45 -0
  180. package/src/stories/Colors.mdx +14 -0
  181. package/src/stories/Typography.mdx +7 -151
  182. package/src/theme/global.css +7 -227
  183. package/src/theme/main-preset.js +131 -67
  184. package/src/theme/plugins/utilities/typography.js +12 -0
  185. package/src/theme/presets/colors.js +101 -220
  186. package/src/theme/theme.d.ts +69 -0
  187. package/src/theme/themes/xspector/baseline.css +7 -0
  188. package/src/theme/themes/xspector/color.css +67 -0
  189. package/src/theme/themes/xspector/components/action-button.css +98 -0
  190. package/src/theme/themes/xspector/components/loading.css +11 -0
  191. package/src/theme/themes/xspector/palette.css +122 -0
  192. package/src/theme/themes/xspector/state.css +89 -0
  193. package/src/theme/themes/xspector/transparent.css +68 -0
  194. package/src/theme/themes/xspector/typography.css +27 -0
  195. package/src/theme/tokens/baseline.css +10 -0
  196. package/src/theme/tokens/color.css +63 -0
  197. package/src/theme/tokens/components/action-button.css +127 -0
  198. package/src/theme/tokens/components/button.css +512 -0
  199. package/src/theme/tokens/components/loading.css +11 -0
  200. package/src/theme/tokens/components/navbar.css +8 -0
  201. package/src/theme/tokens/components/progress-bar.css +8 -0
  202. package/src/theme/tokens/palette.css +122 -0
  203. package/src/theme/tokens/state.css +82 -0
  204. package/src/theme/tokens/transparent.css +68 -0
  205. package/src/theme/tokens/typography.css +178 -0
  206. package/src/theme/tokens/variables.css +28 -0
  207. package/src/theme/utils.js +98 -0
@@ -0,0 +1,39 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ @import "./variables/default/colors.css";
6
+ @import "./variables/default/typography.css";
7
+
8
+ @import "./variables/xspector/colors.css";
9
+ @import "./variables/xspector/typography.css";
10
+
11
+ @layer base {
12
+ :root {
13
+ --primary-foreground: var(--text-dark);
14
+ --secondary-foreground: var(--text-dark);
15
+ --tertiary-foreground: var(--text-dark);
16
+ --info-foreground: var(--text-white);
17
+ --success-foreground: var(--text-white);
18
+ --warning-foreground: var(--text-dark);
19
+ --error-foreground: var(--text-white);
20
+
21
+ --body-bg: var(--base-bg);
22
+ --body-foreground: var(--common-white);
23
+
24
+ --surface: var(--common-white);
25
+ --surface-foreground: var(--text-white);
26
+
27
+ --radius: 0.5rem;
28
+ }
29
+ }
30
+
31
+ @layer base {
32
+ * {
33
+ /* @apply border-border; */
34
+ }
35
+ body {
36
+ /* @apply bg-background text-foreground; */
37
+ @apply bg-[var(--brand-colors-backgroud)] text-text-grey-light;
38
+ }
39
+ }
@@ -0,0 +1,239 @@
1
+ const { fontFamily } = require("tailwindcss/defaultTheme");
2
+
3
+ module.exports = {
4
+ darkMode: "class",
5
+ theme: {
6
+ container: {
7
+ center: true,
8
+ padding: "2rem",
9
+ screens: {
10
+ "2xl": "1400px",
11
+ },
12
+ },
13
+ extend: {
14
+ fontSize: {
15
+ h1: [
16
+ "var(--h1-size, 64px)",
17
+ {
18
+ lineHeight: "var(--h1-line-height, 80px)",
19
+ fontWeight: "var(--h1-weight, 700)",
20
+ fontFamily: "var(--h1-family, 'Poppins')",
21
+ },
22
+ ],
23
+ h2: [
24
+ "var(--h2-size, 48px)",
25
+ {
26
+ lineHeight: "var(--h2-line-height, 60px)",
27
+ fontWeight: "var(--h2-weight, 700)",
28
+ fontFamily: "var(--h2-family, 'Poppins')",
29
+ },
30
+ ],
31
+ h3: [
32
+ "var(--h3-size, 32px)",
33
+ {
34
+ lineHeight: "var(--h3-line-height, 48px)",
35
+ fontWeight: "var(--h3-weight, 700)",
36
+ fontFamily: "var(--h3-family, 'Poppins')",
37
+ },
38
+ ],
39
+ h4: [
40
+ "var(--h4-size, 24px)",
41
+ {
42
+ lineHeight: "var(--h4-line-height, 32px)",
43
+ fontWeight: "var(--h4-weight, 700)",
44
+ fontFamily: "var(--h4-family, 'Poppins')",
45
+ },
46
+ ],
47
+ h5: [
48
+ "var(--h5-size, 20px)",
49
+ {
50
+ lineHeight: "var(--h5-line-height, 28px)",
51
+ fontWeight: "var(--h5-weight, 700)",
52
+ fontFamily: "var(--h5-family, 'Poppins')",
53
+ },
54
+ ],
55
+ h6: [
56
+ "var(--h6-size, 18px)",
57
+ {
58
+ lineHeight: "var(--h6-line-height, 24px)",
59
+ fontWeight: "var(--h6-weight, 700)",
60
+ fontFamily: "var(--h6-family, 'Poppins')",
61
+ },
62
+ ],
63
+ subtitile1: [
64
+ "var(--subtitle1-size, 16px)",
65
+ {
66
+ lineHeight: "var(--subtitle1-line-height, 24px)",
67
+ fontWeight: "var(--subtitle1-weight, 400)",
68
+ fontFamily: "var(--subtitle1-family, 'Poppins')",
69
+ },
70
+ ],
71
+ subtitile2: [
72
+ "var(--subtitle2-size, 16px)",
73
+ {
74
+ lineHeight: "var(--subtitle2-line-height, 24px)",
75
+ fontWeight: "var(--subtitle2-weight, 500)",
76
+ fontFamily: "var(--subtitle2-family, 'Poppins')",
77
+ },
78
+ ],
79
+ subtitile3: [
80
+ "var(--subtitle3-size, 16px)",
81
+ {
82
+ lineHeight: "var(--subtitle3-line-height, 24px)",
83
+ fontWeight: "var(--subtitle3-weight, 600)",
84
+ fontFamily: "var(--subtitle3-family, 'Poppins')",
85
+ },
86
+ ],
87
+ subtitile4: [
88
+ "var(--subtitle4-size, 14px)",
89
+ {
90
+ lineHeight: "var(--subtitle4-line-height, 22px)",
91
+ fontWeight: "var(--subtitle4-weight, 400)",
92
+ fontFamily: "var(--subtitle4-family, 'Poppins')",
93
+ },
94
+ ],
95
+ subtitile5: [
96
+ "var(--subtitle5-size, 14px)",
97
+ {
98
+ lineHeight: "var(--subtitle5-line-height, 22px)",
99
+ fontWeight: "var(--subtitle5-weight, 500)",
100
+ fontFamily: "var(--subtitle5-family, 'Poppins')",
101
+ },
102
+ ],
103
+ subtitile6: [
104
+ "var(--subtitle6-size, 14px)",
105
+ {
106
+ lineHeight: "var(--subtitle6-line-height, 22px)",
107
+ fontWeight: "var(--subtitle6-weight, 600)",
108
+ fontFamily: "var(--subtitle6-family, 'Poppins')",
109
+ },
110
+ ],
111
+ body1: [
112
+ "var(--body1-size, 16px)",
113
+ {
114
+ lineHeight: "var(--body1-line-height, 20px)",
115
+ fontWeight: "var(--body1-weight, 400)",
116
+ fontFamily: "var(--body1-family, 'Poppins')",
117
+ },
118
+ ],
119
+ body2: [
120
+ "var(--body2-size, 16px)",
121
+ {
122
+ lineHeight: "var(--body2-line-height, 20px)",
123
+ fontWeight: "var(--body2-weight, 500)",
124
+ fontFamily: "var(--body2-family, 'Poppins')",
125
+ },
126
+ ],
127
+ body3: [
128
+ "var(--body3-size, 14px)",
129
+ {
130
+ lineHeight: "var(--body3-line-height, 18px)",
131
+ fontWeight: "var(--body3-weight, 400)",
132
+ fontFamily: "var(--body3-family, 'Poppins')",
133
+ },
134
+ ],
135
+ body4: [
136
+ "var(--body4-size, 14px)",
137
+ {
138
+ lineHeight: "var(--body4-line-height, 18px)",
139
+ fontWeight: "var(--body4-weight, 500)",
140
+ fontFamily: "var(--body4-family, 'Poppins')",
141
+ },
142
+ ],
143
+ small1: [
144
+ "var(--small1-size, 12px)",
145
+ {
146
+ lineHeight: "var(--small1-line-height, 14px)",
147
+ fontWeight: "var(--small1-weight, 400)",
148
+ fontFamily: "var(--small1-family, 'Poppins')",
149
+ },
150
+ ],
151
+ small2: [
152
+ "var(--small2-size, 12px)",
153
+ {
154
+ lineHeight: "var(--small2-line-height, 14px)",
155
+ fontWeight: "var(--small2-weight, 500)",
156
+ fontFamily: "var(--small2-family, 'Poppins')",
157
+ },
158
+ ],
159
+ small3: [
160
+ "var(--small3-size, 12px)",
161
+ {
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')",
181
+ },
182
+ ],
183
+ label1: [
184
+ "var(--label-label1-size, 12px)",
185
+ {
186
+ lineHeight: "var(--label-label1-line-height, 12px)",
187
+ fontWeight: "var(--label-label1-weight, 400)",
188
+ fontFamily: "var(--label-label1-family, 'Poppins')",
189
+ },
190
+ ],
191
+ label2: [
192
+ "var(--label-label2-size, 10px)",
193
+ {
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')",
213
+ },
214
+ ],
215
+ },
216
+ borderRadius: {
217
+ sm: `calc(var(--radius, 0.25rem) - 0.25rem)`,
218
+ md: `var(--radius, 0.5rem)`,
219
+ lg: `calc(var(--radius, 0.75rem) + 0.25rem)`,
220
+ },
221
+ keyframes: {
222
+ "accordion-down": {
223
+ from: { height: "0" },
224
+ to: { height: "var(--radix-accordion-content-height)" },
225
+ },
226
+ "accordion-up": {
227
+ from: { height: "var(--radix-accordion-content-height)" },
228
+ to: { height: "0" },
229
+ },
230
+ },
231
+ animation: {
232
+ "accordion-down": "accordion-down 0.2s ease-out",
233
+ "accordion-up": "accordion-up 0.2s ease-out",
234
+ },
235
+ },
236
+ },
237
+ presets: [require("./presets/colors"), require("tailwindcss-animate")],
238
+ plugins: [require("./plugins/utilities/typography")],
239
+ };
@@ -0,0 +1,81 @@
1
+ const plugin = require("tailwindcss/plugin");
2
+
3
+ module.exports = plugin(function ({ addUtilities }) {
4
+ addUtilities({
5
+ ".typography-h1": {
6
+ "@apply text-h1": {},
7
+ },
8
+ ".typography-h2": {
9
+ "@apply text-h2": {},
10
+ },
11
+ ".typography-h3": {
12
+ "@apply text-h3": {},
13
+ },
14
+ ".typography-h4": {
15
+ "@apply text-h4": {},
16
+ },
17
+ ".typography-h5": {
18
+ "@apply text-h5": {},
19
+ },
20
+ ".typography-h6": {
21
+ "@apply text-h6": {},
22
+ },
23
+ ".typography-subtitile1": {
24
+ "@apply text-subtitile1": {},
25
+ },
26
+ ".typography-subtitile2": {
27
+ "@apply text-subtitile2": {},
28
+ },
29
+ ".typography-subtitile3": {
30
+ "@apply text-subtitile3": {},
31
+ },
32
+ ".typography-subtitile4": {
33
+ "@apply text-subtitile4": {},
34
+ },
35
+ ".typography-subtitile5": {
36
+ "@apply text-subtitile5": {},
37
+ },
38
+ ".typography-subtitile6": {
39
+ "@apply text-subtitile6": {},
40
+ },
41
+ ".typography-body1": {
42
+ "@apply text-body1": {},
43
+ },
44
+ ".typography-body2": {
45
+ "@apply text-body2": {},
46
+ },
47
+ ".typography-body3": {
48
+ "@apply text-body3": {},
49
+ },
50
+ ".typography-body4": {
51
+ "@apply text-body4": {},
52
+ },
53
+ ".typography-small1": {
54
+ "@apply text-small1": {},
55
+ },
56
+ ".typography-small2": {
57
+ "@apply text-small2": {},
58
+ },
59
+ ".typography-small3": {
60
+ "@apply text-small3": {},
61
+ },
62
+ ".typography-small4": {
63
+ "@apply text-small4": {},
64
+ },
65
+ ".typography-small5": {
66
+ "@apply text-small5": {},
67
+ },
68
+ ".typography-label1": {
69
+ "@apply text-label1": {},
70
+ },
71
+ ".typography-label2": {
72
+ "@apply text-label2": {},
73
+ },
74
+ ".typography-buttonL": {
75
+ "@apply text-buttonL": {},
76
+ },
77
+ ".typography-buttonMS": {
78
+ "@apply text-buttonMS": {},
79
+ },
80
+ });
81
+ });
@@ -0,0 +1,319 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ theme: {
4
+ extend: {
5
+ colors: {
6
+ "main-primary": "var(--main-color-primary)",
7
+ "main-secondary": "var(--main-color-secondary)",
8
+ "main-tertiary": "var(--main-color-tertiary)",
9
+
10
+ "text-dark": "var(--text-dark)",
11
+ "text-medium": "var(--text-medium)",
12
+ "text-light": "var(--text-light)",
13
+ "text-grey-dark": "var(--text-grey-dark)",
14
+ "text-grey-medium": "var(--text-grey-medium)",
15
+ "text-grey-light": "var(--text-grey-light)",
16
+ "text-white": "var(--text-white)",
17
+
18
+ primary: "var(--main-color-primary)",
19
+ "primary-5": "var(--primary-ramps-primary-5)",
20
+ "primary-10": "var(--primary-ramps-primary-10)",
21
+ "primary-20": "var(--primary-ramps-primary-20)",
22
+ "primary-30": "var(--primary-ramps-primary-30)",
23
+ "primary-40": "var(--primary-ramps-primary-40)",
24
+ "primary-50": "var(--primary-ramps-primary-50)",
25
+ "primary-60": "var(--primary-ramps-primary-60)",
26
+ "primary-70": "var(--primary-ramps-primary-70)",
27
+ "primary-80": "var(--primary-ramps-primary-80)",
28
+ "primary-90": "var(--primary-ramps-primary-90)",
29
+ "primary-100": "var(--primary-ramps-primary-100)",
30
+ "primary-110": "var(--primary-ramps-primary-110)",
31
+ "primary-120": "var(--primary-ramps-primary-120)",
32
+ "primary-130": "var(--primary-ramps-primary-130)",
33
+ "primary-140": "var(--primary-ramps-primary-140)",
34
+ "primary-150": "var(--primary-ramps-primary-150)",
35
+ "primary-foreground": "var(--primary-foreground)",
36
+
37
+ "primary-default": "var(--state-color-primary-default)",
38
+ "primary-hover": "var(--state-color-primary-hover)",
39
+ "primary-stroke": "var(--state-color-primary-stroke)",
40
+ "primary-hover-bg": "var(--state-color-primary-hover-bg)", // should be outline hover ?
41
+ "primary-pressed": "var(--state-color-primary-pressed)",
42
+ "primary-active": "var(--state-color-primary-active)",
43
+
44
+ secondary: "var(--main-color-secondary)",
45
+ "secondary-5": "var(--secondary-ramps-secondary-5)",
46
+ "secondary-10": "var(--secondary-ramps-secondary-10)",
47
+ "secondary-20": "var(--secondary-ramps-secondary-20)",
48
+ "secondary-30": "var(--secondary-ramps-secondary-30)",
49
+ "secondary-40": "var(--secondary-ramps-secondary-40)",
50
+ "secondary-50": "var(--secondary-ramps-secondary-50)",
51
+ "secondary-60": "var(--secondary-ramps-secondary-60)",
52
+ "secondary-70": "var(--secondary-ramps-secondary-70)",
53
+ "secondary-80": "var(--secondary-ramps-secondary-80)",
54
+ "secondary-90": "var(--secondary-ramps-secondary-90)",
55
+ "secondary-100": "var(--secondary-ramps-secondary-100)",
56
+ "secondary-110": "var(--secondary-ramps-secondary-110)",
57
+ "secondary-120": "var(--secondary-ramps-secondary-120)",
58
+ "secondary-130": "var(--secondary-ramps-secondary-130)",
59
+ "secondary-140": "var(--secondary-ramps-secondary-140)",
60
+ "secondary-150": "var(--secondary-ramps-secondary-150)",
61
+ "secondary-foreground": "var(--secondary-foreground)",
62
+
63
+ "secondary-default": "var(--state-color-secondary-default)",
64
+ "secondary-hover": "var(--state-color-secondary-hover)",
65
+ "secondary-stroke": "var(--state-color-secondary-stroke)",
66
+ "secondary-hover-bg": "var(--state-color-secondary-hover-bg)",
67
+ "secondary-pressed": "var(--state-color-secondary-pressed)",
68
+ "secondary-active": "var(--state-color-secondary-active)",
69
+
70
+ tertiary: "var(--main-color-tertiary)",
71
+ "tertiary-5": "var(--tertiary-ramps-tertiary-5)",
72
+ "tertiary-10": "var(--tertiary-ramps-tertiary-10)",
73
+ "tertiary-20": "var(--tertiary-ramps-tertiary-20)",
74
+ "tertiary-30": "var(--tertiary-ramps-tertiary-30)",
75
+ "tertiary-40": "var(--tertiary-ramps-tertiary-40)",
76
+ "tertiary-50": "var(--tertiary-ramps-tertiary-50)",
77
+ "tertiary-60": "var(--tertiary-ramps-tertiary-60)",
78
+ "tertiary-70": "var(--tertiary-ramps-tertiary-70)",
79
+ "tertiary-80": "var(--tertiary-ramps-tertiary-80)",
80
+ "tertiary-90": "var(--tertiary-ramps-tertiary-90)",
81
+ "tertiary-100": "var(--tertiary-ramps-tertiary-100)",
82
+ "tertiary-110": "var(--tertiary-ramps-tertiary-110)",
83
+ "tertiary-120": "var(--tertiary-ramps-tertiary-120)",
84
+ "tertiary-130": "var(--tertiary-ramps-tertiary-130)",
85
+ "tertiary-140": "var(--tertiary-ramps-tertiary-140)",
86
+ "tertiary-150": "var(--tertiary-ramps-tertiary-150)",
87
+ "tertiary-foreground": "var(--tertiary-foreground)",
88
+
89
+ "tertiary-default": "var(--state-color-tertiary-default)", // Naming wrong
90
+ "tertiary-hover": "var(--state-color-tertiary-hover)",
91
+ "tertiary-stroke": "var(--state-color-tertiary-stroke)",
92
+ "tertiary-hover-bg": "var(--state-color-tertiary-hover-bg)",
93
+ "tertiary-pressed": "var(--state-color-tertiary-pressed)",
94
+ "tertiary-active": "var(--state-color-tertiery-active)", // Naming wrong
95
+
96
+ grey: "var(--grey-grey-100)",
97
+ "grey-5": "var(--grey-grey-5)",
98
+ "grey-10": "var(--grey-grey-10)",
99
+ "grey-20": "var(--grey-grey-20)",
100
+ "grey-30": "var(--grey-grey-30)",
101
+ "grey-40": "var(--grey-grey-40)",
102
+ "grey-50": "var(--grey-grey-50)",
103
+ "grey-60": "var(--grey-grey-60)",
104
+ "grey-70": "var(--grey-grey-70)",
105
+ "grey-80": "var(--grey-grey-80)",
106
+ "grey-90": "var(--grey-grey-90)",
107
+ "grey-100": "var(--grey-grey-100)",
108
+ "grey-110": "var(--grey-grey-110)",
109
+ "grey-120": "var(--grey-grey-120)",
110
+ "grey-130": "var(--grey-grey-130)",
111
+ "grey-140": "var(--grey-grey-140)",
112
+ "grey-150": "var(--grey-grey-150)",
113
+
114
+ grey2: "var(--grey2-grey2-600)",
115
+ "grey2-50": "var(--grey2-grey2-50)",
116
+ "grey2-100": "var(--grey2-grey2-100)",
117
+ "grey2-200": "var(--grey2-grey2-200)",
118
+ "grey2-300": "var(--grey2-grey2-300)",
119
+ "grey2-400": "var(--grey2-grey2-400)",
120
+ "grey2-500": "var(--grey2-grey2-500)",
121
+ "grey2-600": "var(--grey2-grey2-600)",
122
+ "grey2-700": "var(--grey2-grey2-700)",
123
+ "grey2-800": "var(--grey2-grey2-800)",
124
+ "grey2-900": "var(--grey2-grey2-900)",
125
+ "grey2-950": "var(--grey2-grey2-950)",
126
+
127
+ info: "var(--info-info-500)",
128
+ "info-50": "var(--info-info-50)",
129
+ "info-100": "var(--info-info-100)",
130
+ "info-200": "var(--info-info-200)",
131
+ "info-300": "var(--info-info-300)",
132
+ "info-400": "var(--info-info-400)",
133
+ "info-500": "var(--info-info-500)",
134
+ "info-600": "var(--info-info-600)",
135
+ "info-700": "var(--info-info-700)",
136
+ "info-800": "var(--info-info-800)",
137
+ "info-900": "var(--info-info-900)",
138
+ "info-950": "var(--info-info-950)",
139
+ "info-foreground": "var(--info-foreground)",
140
+
141
+ "info-default": "var(--state-color-info-default)",
142
+ "info-hover": "var(--state-color-info-hover)",
143
+ "info-stroke": "var(--state-color-info-stroke)",
144
+ "info-hover-bg": "var(--state-color-info-hover-bg)",
145
+ "info-pressed": "var(--state-color-info-pressed)",
146
+ "info-active": "var(--state-color-info-active)",
147
+
148
+ success: "var(--success-success-400)",
149
+ "success-50": "var(--success-success-50)",
150
+ "success-100": "var(--success-success-100)",
151
+ "success-200": "var(--success-success-200)",
152
+ "success-300": "var(--success-success-300)",
153
+ "success-400": "var(--success-success-400)",
154
+ "success-500": "var(--success-success-500)",
155
+ "success-600": "var(--success-success-600)",
156
+ "success-700": "var(--success-success-700)",
157
+ "success-800": "var(--success-success-800)",
158
+ "success-900": "var(--success-success-900)",
159
+ "success-950": "var(--success-success-950)",
160
+ "success-foreground": "var(--success-foreground)",
161
+
162
+ "success-default": "var(--state-color-success-default)",
163
+ "success-hover": "var(--state-color-success-hover)",
164
+ "success-stroke": "var(--state-color-success-stroke)",
165
+ "success-hover-bg": "var(--state-color-success-hover-bg)",
166
+ "success-pressed": "var(--state-color-success-pressed)",
167
+ "success-active": "var(--state-color-success-active)",
168
+
169
+ warning: "var(--warning-warning-500)",
170
+ "warning-50": "var(--warning-warning-50)",
171
+ "warning-100": "var(--warning-warning-100)",
172
+ "warning-200": "var(--warning-warning-200)",
173
+ "warning-300": "var(--warning-warning-300)",
174
+ "warning-400": "var(--warning-warning-400)",
175
+ "warning-500": "var(--warning-warning-500)",
176
+ "warning-600": "var(--warning-warning-600)",
177
+ "warning-700": "var(--warning-warning-700)",
178
+ "warning-800": "var(--warning-warning-800)",
179
+ "warning-900": "var(--warning-warning-900)",
180
+ "warning-950": "var(--warning-warning-950)",
181
+ "warning-foreground": "var(--warning-foreground)",
182
+
183
+ "warning-default": "var(--state-color-warning-default)",
184
+ "warning-hover": "var(--state-color-warning-hover)",
185
+ "warning-stroke": "var(--state-color-warning-stroke)",
186
+ "warning-hover-bg": "var(--state-color-warning-hover-bg)",
187
+ "warning-pressed": "var(--state-color-warning-pressed)",
188
+ "warning-active": "var(--state-color-warning-active)",
189
+
190
+ error: "var(--error-error-500)",
191
+ "error-50": "var(--error-error-50)",
192
+ "error-100": "var(--error-error-100)",
193
+ "error-200": "var(--error-error-200)",
194
+ "error-300": "var(--error-error-300)",
195
+ "error-400": "var(--error-error-400)",
196
+ "error-500": "var(--error-error-500)",
197
+ "error-600": "var(--error-error-600)",
198
+ "error-700": "var(--error-error-700)",
199
+ "error-800": "var(--error-error-800)",
200
+ "error-900": "var(--error-error-900)",
201
+ "error-950": "var(--error-error-950)",
202
+ "error-foreground": "var(--error-foreground)",
203
+
204
+ "error-default": "var(--state-color-error-default)",
205
+ "error-hover": "var(--state-color-error-hover)",
206
+ "error-stroke": "var(--state-color-error-stroke)",
207
+ "error-hover-bg": "var(--state-color-error-hover-bg)",
208
+ "error-pressed": "var(--state-color-error-pressed)",
209
+ "error-active": "var(--state-color-error-active)",
210
+
211
+ "disable-solid": "var(--state-color-disable-solid)",
212
+ "disable-outline": "var(--state-color-disable-outline)",
213
+
214
+ "input-default-text": "var(--input-color-default-text)",
215
+ "input-default-stroke": "var(--input-color-default-stroke)",
216
+ "input-filled-text": "var(--input-color-filled-text)",
217
+ "input-active-stroke": "var(--input-color-active-stroke)",
218
+ "input-disable-text": "var(--input-color-disable-text)",
219
+ "input-disable-stroke": "var(--input-color-disable-stroke)",
220
+ "input-disable-bg": "var(--input-color-disable-bg)",
221
+ "input-label-bg": "var(--input-color-label-bg)",
222
+ "input-error": "var(--input-color-error)",
223
+
224
+ "main-transparency-primary-8": "var(--main-transparency-primary-8)",
225
+ "main-transparency-primary-12": "var(--main-transparency-primary-12)",
226
+ "main-transparency-primary-16": "var(--main-transparency-primary-16)",
227
+ "main-transparency-primary-24": "var(--main-transparency-primary-24)",
228
+ "main-transparency-primary-32": "var(--main-transparency-primary-32)",
229
+ "main-transparency-primary-48": "var(--main-transparency-primary-48)",
230
+ "main-transparency-secondary-8": "var(--main-transparency-secondary-8)",
231
+ "main-transparency-secondary-12":
232
+ "var(--main-transparency-secondary-12)",
233
+ "main-transparency-secondary-16":
234
+ "var(--main-transparency-secondary-16)",
235
+ "main-transparency-secondary-24":
236
+ "var(--main-transparency-secondary-24)",
237
+ "main-transparency-secondary-32":
238
+ "var(--main-transparency-secondary-32)",
239
+ "main-transparency-secondary-48":
240
+ "var(--main-transparency-secondary-48)",
241
+ "main-transparency-tertiary-8": "var(--main-transparency-tertiary-8)",
242
+ "main-transparency-tertiary-12": "var(--main-transparency-tertiary-12)",
243
+ "main-transparency-tertiary-16": "var(--main-transparency-tertiary-16)",
244
+ "main-transparency-tertiary-24": "var(--main-transparency-tertiary-24)",
245
+ "main-transparency-tertiary-32": "var(--main-transparency-tertiary-32)",
246
+ "main-transparency-tertiary-48": "var(--main-transparency-tertiary-48)",
247
+
248
+ "other-transparency-info-8": "var(--other-transparency-info-8)",
249
+ "other-transparency-info-12": "var(--other-transparency-info-12)",
250
+ "other-transparency-info-16": "var(--other-transparency-info-16)",
251
+ "other-transparency-info-24": "var(--other-transparency-info-24)",
252
+ "other-transparency-info-32": "var(--other-transparency-info-32)",
253
+ "other-transparency-info-48": "var(--other-transparency-info-48)",
254
+
255
+ "other-transparency-error-8": "var(--other-transparency-error-8)",
256
+ "other-transparency-success-12": "var(--other-transparency-success-12)",
257
+ "other-transparency-success-16": "var(--other-transparency-success-16)",
258
+ "other-transparency-success-24": "var(--other-transparency-success-24)",
259
+ "other-transparency-success-32": "var(--other-transparency-success-32)",
260
+ "other-transparency-success-48": "var(--other-transparency-success-48)",
261
+
262
+ "other-transparency-warning-8": "var(--other-transparency-warning-8)",
263
+ "other-transparency-warning-12": "var(--other-transparency-warning-12)",
264
+ "other-transparency-warning-16": "var(--other-transparency-warning-16)",
265
+ "other-transparency-warning-24": "var(--other-transparency-warning-24)",
266
+ "other-transparency-warning-32": "var(--other-transparency-warning-32)",
267
+ "other-transparency-warning-48": "var(--other-transparency-warning-48)",
268
+
269
+ "other-transparency-error-8": "var(--other-transparency-error-8)",
270
+ "other-transparency-error-12": "var(--other-transparency-error-12)",
271
+ "other-transparency-error-16": "var(--other-transparency-error-16)",
272
+ "other-transparency-error-24": "var(--other-transparency-error-24)",
273
+ "other-transparency-error-32": "var(--other-transparency-error-32)",
274
+ "other-transparency-error-48": "var(--other-transparency-error-48)",
275
+
276
+ "other-transparency-grey-8": "var(--other-transparency-grey-8)",
277
+ "other-transparency-grey-12": "var(--other-transparency-grey-12)",
278
+ "other-transparency-grey-16": "var(--other-transparency-grey-16)",
279
+ "other-transparency-grey-24": "var(--other-transparency-grey-24)",
280
+ "other-transparency-grey-32": "var(--other-transparency-grey-32)",
281
+ "other-transparency-grey-48": "var(--other-transparency-grey-48)",
282
+
283
+ "other-transparency-grey2-8": "var(--other-transparency-grey2-8)",
284
+ "other-transparency-grey2-12": "var(--other-transparency-grey2-12)",
285
+ "other-transparency-grey2-16": "var(--other-transparency-grey2-16)",
286
+ "other-transparency-grey2-24": "var(--other-transparency-grey2-24)",
287
+ "other-transparency-grey2-32": "var(--other-transparency-grey2-32)",
288
+ "other-transparency-grey2-48": "var(--other-transparency-grey2-48)",
289
+
290
+ "other-transparency-white-08": "var(--other-transparency-white-08)",
291
+ "other-transparency-white-12": "var(--other-transparency-white-12)",
292
+ "other-transparency-white-16": "var(--other-transparency-white-16)",
293
+ "other-transparency-white-24": "var(--other-transparency-white-24)",
294
+ "other-transparency-white-32": "var(--other-transparency-white-32)",
295
+ "other-transparency-white-48": "var(--other-transparency-white-48)",
296
+
297
+ "other-transparency-black-08": "var(--other-transparency-black-08)",
298
+ "other-transparency-black-12": "var(--other-transparency-black-12)",
299
+ "other-transparency-black-16": "var(--other-transparency-black-16)",
300
+ "other-transparency-black-24": "var(--other-transparency-black-24)",
301
+ "other-transparency-black-32": "var(--other-transparency-black-32)",
302
+ "other-transparency-black-48": "var(--other-transparency-black-48)",
303
+
304
+ "other-bg": "var(--other-bg)",
305
+ "other-bg2": "var(--other-bg2)",
306
+ "other-popup": "var(--other-popup)",
307
+ "other-popup-highlight": "var(--other-popup-hightlight)", // naming wrong
308
+ "other-popup-curtain": "var(--other-popup-curtain)",
309
+
310
+ "common-white": "var(--common-white)",
311
+ "common-black": "var(--common-black)",
312
+
313
+ // ---
314
+ surface: "var(--surface)",
315
+ "surface-foreground": "var(--surface-foreground)",
316
+ },
317
+ },
318
+ },
319
+ };