@starasia/theme 1.0.0
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/README.md +143 -0
- package/dist/components/ThemeProvider.d.ts +12 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/default.json.d.ts +542 -0
- package/dist/helpers/brandcolor.d.ts +3 -0
- package/dist/helpers/colorpalette.d.ts +3 -0
- package/dist/helpers/components.d.ts +3 -0
- package/dist/helpers/createTheme.d.ts +3 -0
- package/dist/helpers/font.d.ts +8 -0
- package/dist/helpers/generator.d.ts +3 -0
- package/dist/helpers/index.d.ts +6 -0
- package/dist/helpers/injector.d.ts +2 -0
- package/dist/helpers/maincolor.d.ts +3 -0
- package/dist/helpers/metric.d.ts +3 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/use.d.ts +4 -0
- package/dist/hooks/useTheme.d.ts +6 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +1418 -0
- package/dist/index.umd.js +54 -0
- package/dist/types/components/alert.d.ts +33 -0
- package/dist/types/components/badge.d.ts +43 -0
- package/dist/types/components/button.d.ts +18 -0
- package/dist/types/components/card.d.ts +18 -0
- package/dist/types/components/checkbox.d.ts +29 -0
- package/dist/types/components/date.d.ts +39 -0
- package/dist/types/components/input.d.ts +33 -0
- package/dist/types/components/menu.d.ts +21 -0
- package/dist/types/components/pagination.d.ts +32 -0
- package/dist/types/components/radio.d.ts +26 -0
- package/dist/types/components/tab.d.ts +25 -0
- package/dist/types/components/table.d.ts +35 -0
- package/dist/types/components/textarea.d.ts +37 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/theme.d.ts +236 -0
- package/package.json +46 -0
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"colors": {
|
|
3
|
+
"raw": {
|
|
4
|
+
"white": {
|
|
5
|
+
"900": "255, 255, 255"
|
|
6
|
+
},
|
|
7
|
+
"black": {
|
|
8
|
+
"900": "0, 0, 0"
|
|
9
|
+
},
|
|
10
|
+
"blue": {
|
|
11
|
+
"50": "227, 242, 253",
|
|
12
|
+
"100": "187, 222, 251",
|
|
13
|
+
"200": "144, 202, 249",
|
|
14
|
+
"300": "100, 181, 246",
|
|
15
|
+
"400": "66, 165, 245",
|
|
16
|
+
"500": "33, 150, 243",
|
|
17
|
+
"600": "30, 136, 229",
|
|
18
|
+
"700": "25, 118, 210",
|
|
19
|
+
"800": "21, 101, 192",
|
|
20
|
+
"900": "13, 71, 161"
|
|
21
|
+
},
|
|
22
|
+
"pink": {
|
|
23
|
+
"50": "251, 219, 241",
|
|
24
|
+
"100": "248, 183, 228",
|
|
25
|
+
"200": "245, 147, 215",
|
|
26
|
+
"300": "241, 111, 202",
|
|
27
|
+
"400": "238, 75, 189",
|
|
28
|
+
"500": "235, 39, 176",
|
|
29
|
+
"600": "215, 19, 157",
|
|
30
|
+
"700": "179, 16, 131",
|
|
31
|
+
"800": "143, 13, 104",
|
|
32
|
+
"900": "107, 9, 78"
|
|
33
|
+
},
|
|
34
|
+
"purple": {
|
|
35
|
+
"50": "233, 222, 245",
|
|
36
|
+
"100": "212, 189, 235",
|
|
37
|
+
"200": "190, 156, 226",
|
|
38
|
+
"300": "169, 123, 216",
|
|
39
|
+
"400": "147, 90, 207",
|
|
40
|
+
"500": "126, 57, 197",
|
|
41
|
+
"600": "105, 47, 164",
|
|
42
|
+
"700": "84, 38, 131",
|
|
43
|
+
"800": "63, 28, 98",
|
|
44
|
+
"900": "42, 19, 65"
|
|
45
|
+
},
|
|
46
|
+
"gray": {
|
|
47
|
+
"50": "255, 254, 255",
|
|
48
|
+
"100": "239, 243, 248",
|
|
49
|
+
"200": "201, 206, 204",
|
|
50
|
+
"300": "174, 182, 178",
|
|
51
|
+
"400": "147, 158, 153",
|
|
52
|
+
"500": "120, 134, 127",
|
|
53
|
+
"600": "96, 107, 102",
|
|
54
|
+
"700": "72, 80, 76",
|
|
55
|
+
"800": "48, 53, 51",
|
|
56
|
+
"900": "24, 26, 25"
|
|
57
|
+
},
|
|
58
|
+
"red": {
|
|
59
|
+
"50": "255, 240, 243",
|
|
60
|
+
"100": "255, 204, 213",
|
|
61
|
+
"200": "255, 179, 193",
|
|
62
|
+
"300": "255, 143, 163",
|
|
63
|
+
"400": "255, 117, 143",
|
|
64
|
+
"500": "255, 77, 109",
|
|
65
|
+
"600": "201, 24, 74",
|
|
66
|
+
"700": "164, 19, 60",
|
|
67
|
+
"800": "128, 15, 47",
|
|
68
|
+
"900": "89, 13, 34"
|
|
69
|
+
},
|
|
70
|
+
"orange": {
|
|
71
|
+
"50": "250, 246, 224",
|
|
72
|
+
"100": "255, 245, 193",
|
|
73
|
+
"200": "255, 225, 139",
|
|
74
|
+
"300": "255, 203, 105",
|
|
75
|
+
"400": "234, 183, 84",
|
|
76
|
+
"500": "210, 160, 58",
|
|
77
|
+
"600": "179, 130, 10",
|
|
78
|
+
"700": "152, 104, 0",
|
|
79
|
+
"800": "126, 80, 0",
|
|
80
|
+
"900": "97, 52, 0"
|
|
81
|
+
},
|
|
82
|
+
"aloha": {
|
|
83
|
+
"50": "219, 247, 242",
|
|
84
|
+
"100": "184, 240, 230",
|
|
85
|
+
"200": "149, 232, 218",
|
|
86
|
+
"300": "114, 225, 206",
|
|
87
|
+
"400": "79, 218, 194",
|
|
88
|
+
"500": "44, 210, 182",
|
|
89
|
+
"600": "36, 175, 152",
|
|
90
|
+
"700": "29, 140, 121",
|
|
91
|
+
"800": "22, 105, 91",
|
|
92
|
+
"900": "14, 70, 60"
|
|
93
|
+
},
|
|
94
|
+
"green": {
|
|
95
|
+
"50": "220, 246, 234",
|
|
96
|
+
"100": "186, 238, 214",
|
|
97
|
+
"200": "151, 230, 193",
|
|
98
|
+
"300": "117, 222, 173",
|
|
99
|
+
"400": "82, 214, 152",
|
|
100
|
+
"500": "48, 206, 132",
|
|
101
|
+
"600": "40, 172, 110",
|
|
102
|
+
"700": "32, 137, 88",
|
|
103
|
+
"800": "24, 103, 66",
|
|
104
|
+
"900": "16, 68, 44"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"computed": {
|
|
108
|
+
"white": {
|
|
109
|
+
"900": "rgba(var(--starasia-ui-raw-color-white-900), 1)"
|
|
110
|
+
},
|
|
111
|
+
"black": {
|
|
112
|
+
"900": "rgba(var(--starasia-ui-raw-color-black-900), 1)"
|
|
113
|
+
},
|
|
114
|
+
"blue": {
|
|
115
|
+
"50": "rgba(var(--starasia-ui-raw-color-blue-50), 1)",
|
|
116
|
+
"100": "rgba(var(--starasia-ui-raw-color-blue-100), 1)",
|
|
117
|
+
"200": "rgba(var(--starasia-ui-raw-color-blue-200), 1)",
|
|
118
|
+
"300": "rgba(var(--starasia-ui-raw-color-blue-300), 1)",
|
|
119
|
+
"400": "rgba(var(--starasia-ui-raw-color-blue-400), 1)",
|
|
120
|
+
"500": "rgba(var(--starasia-ui-raw-color-blue-500), 1)",
|
|
121
|
+
"600": "rgba(var(--starasia-ui-raw-color-blue-600), 1)",
|
|
122
|
+
"700": "rgba(var(--starasia-ui-raw-color-blue-700), 1)",
|
|
123
|
+
"800": "rgba(var(--starasia-ui-raw-color-blue-800), 1)",
|
|
124
|
+
"900": "rgba(var(--starasia-ui-raw-color-blue-900), 1)"
|
|
125
|
+
},
|
|
126
|
+
"pink": {
|
|
127
|
+
"50": "rgba(var(--starasia-ui-raw-color-pink-50), 1)",
|
|
128
|
+
"100": "rgba(var(--starasia-ui-raw-color-pink-100), 1)",
|
|
129
|
+
"200": "rgba(var(--starasia-ui-raw-color-pink-200), 1)",
|
|
130
|
+
"300": "rgba(var(--starasia-ui-raw-color-pink-300), 1)",
|
|
131
|
+
"400": "rgba(var(--starasia-ui-raw-color-pink-400), 1)",
|
|
132
|
+
"500": "rgba(var(--starasia-ui-raw-color-pink-500), 1)",
|
|
133
|
+
"600": "rgba(var(--starasia-ui-raw-color-pink-600), 1)",
|
|
134
|
+
"700": "rgba(var(--starasia-ui-raw-color-pink-700), 1)",
|
|
135
|
+
"800": "rgba(var(--starasia-ui-raw-color-pink-800), 1)",
|
|
136
|
+
"900": "rgba(var(--starasia-ui-raw-color-pink-900), 1)"
|
|
137
|
+
},
|
|
138
|
+
"purple": {
|
|
139
|
+
"50": "rgba(var(--starasia-ui-raw-color-purple-50), 1)",
|
|
140
|
+
"100": "rgba(var(--starasia-ui-raw-color-purple-100), 1)",
|
|
141
|
+
"200": "rgba(var(--starasia-ui-raw-color-purple-200), 1)",
|
|
142
|
+
"300": "rgba(var(--starasia-ui-raw-color-purple-300), 1)",
|
|
143
|
+
"400": "rgba(var(--starasia-ui-raw-color-purple-400), 1)",
|
|
144
|
+
"500": "rgba(var(--starasia-ui-raw-color-purple-500), 1)",
|
|
145
|
+
"600": "rgba(var(--starasia-ui-raw-color-purple-600), 1)",
|
|
146
|
+
"700": "rgba(var(--starasia-ui-raw-color-purple-700), 1)",
|
|
147
|
+
"800": "rgba(var(--starasia-ui-raw-color-purple-800), 1)",
|
|
148
|
+
"900": "rgba(var(--starasia-ui-raw-color-purple-900), 1)"
|
|
149
|
+
},
|
|
150
|
+
"gray": {
|
|
151
|
+
"50": "rgba(var(--starasia-ui-raw-color-gray-50), 1)",
|
|
152
|
+
"100": "rgba(var(--starasia-ui-raw-color-gray-100), 1)",
|
|
153
|
+
"200": "rgba(var(--starasia-ui-raw-color-gray-200), 1)",
|
|
154
|
+
"300": "rgba(var(--starasia-ui-raw-color-gray-300), 1)",
|
|
155
|
+
"400": "rgba(var(--starasia-ui-raw-color-gray-400), 1)",
|
|
156
|
+
"500": "rgba(var(--starasia-ui-raw-color-gray-500), 1)",
|
|
157
|
+
"600": "rgba(var(--starasia-ui-raw-color-gray-600), 1)",
|
|
158
|
+
"700": "rgba(var(--starasia-ui-raw-color-gray-700), 1)",
|
|
159
|
+
"800": "rgba(var(--starasia-ui-raw-color-gray-800), 1)",
|
|
160
|
+
"900": "rgba(var(--starasia-ui-raw-color-gray-900), 1)"
|
|
161
|
+
},
|
|
162
|
+
"red": {
|
|
163
|
+
"50": "rgba(var(--starasia-ui-raw-color-red-50), 1)",
|
|
164
|
+
"100": "rgba(var(--starasia-ui-raw-color-red-100), 1)",
|
|
165
|
+
"200": "rgba(var(--starasia-ui-raw-color-red-200), 1)",
|
|
166
|
+
"300": "rgba(var(--starasia-ui-raw-color-red-300), 1)",
|
|
167
|
+
"400": "rgba(var(--starasia-ui-raw-color-red-400), 1)",
|
|
168
|
+
"500": "rgba(var(--starasia-ui-raw-color-red-500), 1)",
|
|
169
|
+
"600": "rgba(var(--starasia-ui-raw-color-red-600), 1)",
|
|
170
|
+
"700": "rgba(var(--starasia-ui-raw-color-red-700), 1)",
|
|
171
|
+
"800": "rgba(var(--starasia-ui-raw-color-red-800), 1)",
|
|
172
|
+
"900": "rgba(var(--starasia-ui-raw-color-red-900), 1)"
|
|
173
|
+
},
|
|
174
|
+
"orange": {
|
|
175
|
+
"50": "rgba(var(--starasia-ui-raw-color-orange-50), 1)",
|
|
176
|
+
"100": "rgba(var(--starasia-ui-raw-color-orange-100), 1)",
|
|
177
|
+
"200": "rgba(var(--starasia-ui-raw-color-orange-200), 1)",
|
|
178
|
+
"300": "rgba(var(--starasia-ui-raw-color-orange-300), 1)",
|
|
179
|
+
"400": "rgba(var(--starasia-ui-raw-color-orange-400), 1)",
|
|
180
|
+
"500": "rgba(var(--starasia-ui-raw-color-orange-500), 1)",
|
|
181
|
+
"600": "rgba(var(--starasia-ui-raw-color-orange-600), 1)",
|
|
182
|
+
"700": "rgba(var(--starasia-ui-raw-color-orange-700), 1)",
|
|
183
|
+
"800": "rgba(var(--starasia-ui-raw-color-orange-800), 1)",
|
|
184
|
+
"900": "rgba(var(--starasia-ui-raw-color-orange-900), 1)"
|
|
185
|
+
},
|
|
186
|
+
"aloha": {
|
|
187
|
+
"50": "rgba(var(--starasia-ui-raw-color-aloha-50), 1)",
|
|
188
|
+
"100": "rgba(var(--starasia-ui-raw-color-aloha-100), 1)",
|
|
189
|
+
"200": "rgba(var(--starasia-ui-raw-color-aloha-200), 1)",
|
|
190
|
+
"300": "rgba(var(--starasia-ui-raw-color-aloha-300), 1)",
|
|
191
|
+
"400": "rgba(var(--starasia-ui-raw-color-aloha-400), 1)",
|
|
192
|
+
"500": "rgba(var(--starasia-ui-raw-color-aloha-500), 1)",
|
|
193
|
+
"600": "rgba(var(--starasia-ui-raw-color-aloha-600), 1)",
|
|
194
|
+
"700": "rgba(var(--starasia-ui-raw-color-aloha-700), 1)",
|
|
195
|
+
"800": "rgba(var(--starasia-ui-raw-color-aloha-800), 1)",
|
|
196
|
+
"900": "rgba(var(--starasia-ui-raw-color-aloha-900), 1)"
|
|
197
|
+
},
|
|
198
|
+
"green": {
|
|
199
|
+
"50": "rgba(var(--starasia-ui-raw-color-green-50), 1)",
|
|
200
|
+
"100": "rgba(var(--starasia-ui-raw-color-green-100), 1)",
|
|
201
|
+
"200": "rgba(var(--starasia-ui-raw-color-green-200), 1)",
|
|
202
|
+
"300": "rgba(var(--starasia-ui-raw-color-green-300), 1)",
|
|
203
|
+
"400": "rgba(var(--starasia-ui-raw-color-green-400), 1)",
|
|
204
|
+
"500": "rgba(var(--starasia-ui-raw-color-green-500), 1)",
|
|
205
|
+
"600": "rgba(var(--starasia-ui-raw-color-green-600), 1)",
|
|
206
|
+
"700": "rgba(var(--starasia-ui-raw-color-green-700), 1)",
|
|
207
|
+
"800": "rgba(var(--starasia-ui-raw-color-green-800), 1)",
|
|
208
|
+
"900": "rgba(var(--starasia-ui-raw-color-green-900), 1)"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"main": {
|
|
212
|
+
"primary": {
|
|
213
|
+
"background-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
|
|
214
|
+
"text-color": "rgb(255, 255, 255)",
|
|
215
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
|
|
216
|
+
"hover": {
|
|
217
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-blue-700), 0.9)",
|
|
218
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-blue-700), 0.9)",
|
|
219
|
+
"text-color": "rgb(255, 255, 255)"
|
|
220
|
+
},
|
|
221
|
+
"active": {
|
|
222
|
+
"background-color": "rgb(var(--starasia-ui-raw-color-blue-800))",
|
|
223
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-blue-800))",
|
|
224
|
+
"text-color": "rgb(255, 255, 255)",
|
|
225
|
+
"shadow": "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-blue-300), 0.28)"
|
|
226
|
+
},
|
|
227
|
+
"disable": {
|
|
228
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-gray-200), 0.68)",
|
|
229
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-gray-200), 0.68)",
|
|
230
|
+
"text-color": "rgba(var(--starasia-ui-raw-color-gray-500), 0.62)"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"secondary": {
|
|
234
|
+
"background-color": "rgb(var(--starasia-ui-raw-color-gray-50))",
|
|
235
|
+
"text-color": "rgb(72, 80, 76)",
|
|
236
|
+
"border-color": "rgba(120, 134, 127, 0.2)",
|
|
237
|
+
"hover": {
|
|
238
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-gray-100), 0.9)",
|
|
239
|
+
"border-color": "rgba(120, 134, 127, 0.2)",
|
|
240
|
+
"text-color": "rgb(72, 80, 76)",
|
|
241
|
+
"shadow": "0px 0px 0px -1px #f0f0f0"
|
|
242
|
+
},
|
|
243
|
+
"active": {
|
|
244
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-gray-200), 0.1)",
|
|
245
|
+
"border-color": "rgba(120, 134, 127, 0.2)",
|
|
246
|
+
"text-color": "rgb(72, 80, 76)",
|
|
247
|
+
"shadow": "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-gray-200), 0.28), 0px 0px 0px -1px #f0f0f0"
|
|
248
|
+
},
|
|
249
|
+
"disable": {
|
|
250
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-gray-200), 0.68)",
|
|
251
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-gray-200), 0.68)",
|
|
252
|
+
"text-color": "rgba(var(--starasia-ui-raw-color-gray-500), 0.62)"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"tertiary": {
|
|
256
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.21)",
|
|
257
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
|
|
258
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.21)",
|
|
259
|
+
"hover": {
|
|
260
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.3)",
|
|
261
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.3)",
|
|
262
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
|
|
263
|
+
"shadow": "0px 0px 0px -1px #f0f0f0"
|
|
264
|
+
},
|
|
265
|
+
"active": {
|
|
266
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.46)",
|
|
267
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.46)",
|
|
268
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
|
|
269
|
+
"shadow": "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-blue-300), 0.28)"
|
|
270
|
+
},
|
|
271
|
+
"disable": {
|
|
272
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-blue-200), 0.8)",
|
|
273
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-blue-200), 0.8)",
|
|
274
|
+
"text-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.5)"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"quaternary": {
|
|
278
|
+
"background-color": "rgba(255, 255, 255, 0)",
|
|
279
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
|
|
280
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
|
|
281
|
+
"hover": {
|
|
282
|
+
"background-color": "rgba(255, 255, 255, 0)",
|
|
283
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-blue-500), 0.9)",
|
|
284
|
+
"text-color": "rgba(var(--starasia-ui-raw-color-blue-500), 0.9)"
|
|
285
|
+
},
|
|
286
|
+
"active": {
|
|
287
|
+
"background-color": "rgb(255, 255, 255)",
|
|
288
|
+
"border-color": "rgb(26, 117, 209)",
|
|
289
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
|
|
290
|
+
"shadow": "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-blue-300), 0.28)"
|
|
291
|
+
},
|
|
292
|
+
"disable": {
|
|
293
|
+
"background-color": "rgba(255, 255, 255, 0)",
|
|
294
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-gray-500), 0.62)",
|
|
295
|
+
"text-color": "rgba(var(--starasia-ui-raw-color-gray-500), 0.62)"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"link": {
|
|
299
|
+
"background-color": "rgba(255, 255, 255, 0)",
|
|
300
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
|
|
301
|
+
"border-color": "rgba(255, 255, 255, 0)",
|
|
302
|
+
"hover": {
|
|
303
|
+
"background-color": "rgba(255, 255, 255, 0)",
|
|
304
|
+
"border-color": "rgba(255, 255, 255, 0)",
|
|
305
|
+
"text-color": "rgba(13, 71, 161, 0.9)"
|
|
306
|
+
},
|
|
307
|
+
"active": {
|
|
308
|
+
"background-color": "rgba(255, 255, 255, 0)",
|
|
309
|
+
"border-color": "rgba(255, 255, 255, 0)",
|
|
310
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-300))"
|
|
311
|
+
},
|
|
312
|
+
"disable": {
|
|
313
|
+
"background-color": "rgba(255, 255, 255, 0)",
|
|
314
|
+
"border-color": "rgba(255, 255, 255, 0)",
|
|
315
|
+
"text-color": "rgba(var(--starasia-ui-raw-color-gray-500), 0.62)"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
|
|
319
|
+
"success": {
|
|
320
|
+
"background-color": "rgb(var(--starasia-ui-raw-color-green-500))",
|
|
321
|
+
"text-color": "rgb(255, 255, 255)",
|
|
322
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-green-500))",
|
|
323
|
+
"hover": {
|
|
324
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-green-500), 0.9)",
|
|
325
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-green-500), 0.9)",
|
|
326
|
+
"text-color": "rgb(255, 255, 255)"
|
|
327
|
+
},
|
|
328
|
+
"active": {
|
|
329
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-green-600), 0.75)",
|
|
330
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-green-600), 0.75)",
|
|
331
|
+
"text-color": "rgb(255, 255, 255)",
|
|
332
|
+
"shadow": "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-green-500), 0.28)"
|
|
333
|
+
},
|
|
334
|
+
"disable": {
|
|
335
|
+
"background-color": "rgb(var(--starasia-ui-raw-color-gray-400))",
|
|
336
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-gray-400))",
|
|
337
|
+
"text-color": "rgba(120, 134, 127, 0.62)"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"danger": {
|
|
341
|
+
"background-color": "rgb(var(--starasia-ui-raw-color-red-600))",
|
|
342
|
+
"text-color": "rgb(255, 255, 255)",
|
|
343
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-red-600))",
|
|
344
|
+
"hover": {
|
|
345
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-red-600), 0.9)",
|
|
346
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-red-600), 0.9)",
|
|
347
|
+
"text-color": "rgb(255, 255, 255)"
|
|
348
|
+
},
|
|
349
|
+
"active": {
|
|
350
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-red-700), 0.68)",
|
|
351
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-red-700), 0.68)",
|
|
352
|
+
"text-color": "rgb(255, 255, 255)",
|
|
353
|
+
"shadow": "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-red-600), 0.28)"
|
|
354
|
+
},
|
|
355
|
+
"disable": {
|
|
356
|
+
"background-color": "rgb(var(--starasia-ui-raw-color-red-300))",
|
|
357
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-red-300))",
|
|
358
|
+
"text-color": "rgba(201, 24, 74, 0.3)"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"warning": {
|
|
362
|
+
"background-color": "rgb(var(--starasia-ui-raw-color-orange-600))",
|
|
363
|
+
"text-color": "rgb(255, 255, 255)",
|
|
364
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-orange-600))",
|
|
365
|
+
"hover": {
|
|
366
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-orange-600), 0.9)",
|
|
367
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-orange-600), 0.9)",
|
|
368
|
+
"text-color": "rgb(255, 255, 255)"
|
|
369
|
+
},
|
|
370
|
+
"active": {
|
|
371
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-orange-700), 0.75)",
|
|
372
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-orange-700), 0.75)",
|
|
373
|
+
"text-color": "rgb(255, 255, 255)",
|
|
374
|
+
"shadow": "0px 0px 0px 2px rgba(var(--starasia-ui-raw-color-orange-600), 0.28)"
|
|
375
|
+
},
|
|
376
|
+
"disable": {
|
|
377
|
+
"background-color": "rgb(var(--starasia-ui-raw-color-orange-300))",
|
|
378
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-orange-300))",
|
|
379
|
+
"text-color": "rgb(152, 104, 0)"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"brand": {
|
|
384
|
+
"primary": {
|
|
385
|
+
"default": "var(--starasia-ui-color-blue-700)",
|
|
386
|
+
"secondary": "var(--starasia-ui-color-blue-300)",
|
|
387
|
+
"tertiary": "var(--starasia-ui-color-blue-50)"
|
|
388
|
+
},
|
|
389
|
+
"secondary": {
|
|
390
|
+
"default": "var(--starasia-ui-color-pink-700)",
|
|
391
|
+
"secondary": "var(--starasia-ui-color-pink-300)",
|
|
392
|
+
"tertiary": "var(--starasia-ui-color-pink-50)"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"text": {
|
|
396
|
+
"default": "var(--starasia-ui-color-gray-900)",
|
|
397
|
+
"secondary": "var(--starasia-ui-color-gray-700)",
|
|
398
|
+
"tertiary": "var(--starasia-ui-color-gray-500)",
|
|
399
|
+
"disable": "var(--starasia-ui-color-gray-200)",
|
|
400
|
+
"white": "#ffffff"
|
|
401
|
+
},
|
|
402
|
+
"utility": {
|
|
403
|
+
"success": {
|
|
404
|
+
"default": "var(--starasia-ui-color-green-600)",
|
|
405
|
+
"secondary": "var(--starasia-ui-color-green-200)",
|
|
406
|
+
"tertiary": "var(--starasia-ui-color-green-50)"
|
|
407
|
+
},
|
|
408
|
+
"danger": {
|
|
409
|
+
"default": "var(--starasia-ui-color-red-600)",
|
|
410
|
+
"secondary": "var(--starasia-ui-color-red-200)",
|
|
411
|
+
"tertiary": "var(--starasia-ui-color-red-50)"
|
|
412
|
+
},
|
|
413
|
+
"warning": {
|
|
414
|
+
"default": "var(--starasia-ui-color-orange-600)",
|
|
415
|
+
"secondary": "var(--starasia-ui-color-orange-200)",
|
|
416
|
+
"tertiary": "var(--starasia-ui-color-orange-50)"
|
|
417
|
+
},
|
|
418
|
+
"information": {
|
|
419
|
+
"default": "var(--starasia-ui-color-blue-600)",
|
|
420
|
+
"secondary": "var(--starasia-ui-color-blue-200)",
|
|
421
|
+
"tertiary": "var(--starasia-ui-color-blue-50)"
|
|
422
|
+
},
|
|
423
|
+
"dark": {
|
|
424
|
+
"default": "var(--starasia-ui-color-gray-600)",
|
|
425
|
+
"secondary": "var(--starasia-ui-color-gray-200)",
|
|
426
|
+
"tertiary": "var(--starasia-ui-color-gray-50)"
|
|
427
|
+
},
|
|
428
|
+
"fill": {
|
|
429
|
+
"default": "rgba(120, 134, 127, 0.2)",
|
|
430
|
+
"secondary": "rgba(120, 134, 127, 0.16)",
|
|
431
|
+
"tertiary": "rgba(120, 134, 127, 0.1)"
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
"metrics": {
|
|
436
|
+
"radii": {
|
|
437
|
+
"none": "0",
|
|
438
|
+
"xs": "0.25rem",
|
|
439
|
+
"sm": "0.375rem",
|
|
440
|
+
"md": "0.5rem",
|
|
441
|
+
"lg": "0.75rem",
|
|
442
|
+
"xl": "0.875rem",
|
|
443
|
+
"2xl": "1rem",
|
|
444
|
+
"full": "12rem"
|
|
445
|
+
},
|
|
446
|
+
"spacing": {
|
|
447
|
+
"0": "0rem",
|
|
448
|
+
"1": "0.063rem",
|
|
449
|
+
"2": "0.125rem",
|
|
450
|
+
"4": "0.25rem",
|
|
451
|
+
"6": "0.375rem",
|
|
452
|
+
"8": "0.5rem",
|
|
453
|
+
"10": "0.625rem",
|
|
454
|
+
"12": "0.75rem",
|
|
455
|
+
"14": "0.875rem",
|
|
456
|
+
"16": "1rem",
|
|
457
|
+
"18": "1.125rem",
|
|
458
|
+
"20": "1.25rem",
|
|
459
|
+
"24": "1.5rem",
|
|
460
|
+
"28": "1.75rem",
|
|
461
|
+
"32": "2rem",
|
|
462
|
+
"36": "2.25rem",
|
|
463
|
+
"40": "2.5rem",
|
|
464
|
+
"48": "3rem",
|
|
465
|
+
"64": "4rem",
|
|
466
|
+
"80": "5rem",
|
|
467
|
+
"96": "6rem",
|
|
468
|
+
"128": "8rem",
|
|
469
|
+
"160": "10rem",
|
|
470
|
+
"192": "12rem",
|
|
471
|
+
"224": "14rem",
|
|
472
|
+
"256": "16rem",
|
|
473
|
+
"xs": "0.25rem",
|
|
474
|
+
"sm": "0.5rem",
|
|
475
|
+
"md": "0.75rem",
|
|
476
|
+
"lg": "1rem",
|
|
477
|
+
"xl": "1.5rem",
|
|
478
|
+
"2xl": "2rem",
|
|
479
|
+
"3xl": "4rem"
|
|
480
|
+
},
|
|
481
|
+
"border": {
|
|
482
|
+
"default": "1px solid var(--starasia-ui-color-border)"
|
|
483
|
+
},
|
|
484
|
+
"shadows": {
|
|
485
|
+
"sm": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
486
|
+
"md": "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
487
|
+
"lg": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
488
|
+
"xl": "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
489
|
+
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
490
|
+
"inner": "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
|
|
491
|
+
"unnamed": "0px 4px 35px 0px rgba(112, 144, 176, 0.25)"
|
|
492
|
+
},
|
|
493
|
+
"borderRadius": {
|
|
494
|
+
"rounded": "8px",
|
|
495
|
+
"circular": "192px"
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"font": {
|
|
499
|
+
"fontSizes": {
|
|
500
|
+
"xs": "0.625rem",
|
|
501
|
+
"sm": "0.75rem",
|
|
502
|
+
"md": "0.875rem",
|
|
503
|
+
"lg": "1rem",
|
|
504
|
+
"xl": "1.125rem",
|
|
505
|
+
"2xl": "1.25rem",
|
|
506
|
+
"3xl": "1.5rem",
|
|
507
|
+
"4xl": "2rem",
|
|
508
|
+
"5xl": "2.25rem",
|
|
509
|
+
"6xl": "3rem"
|
|
510
|
+
},
|
|
511
|
+
"fontWeights": {
|
|
512
|
+
"hairline": 50,
|
|
513
|
+
"thin": 100,
|
|
514
|
+
"light": 200,
|
|
515
|
+
"normal": 300,
|
|
516
|
+
"medium": 400,
|
|
517
|
+
"semibold": 500,
|
|
518
|
+
"bold": 600,
|
|
519
|
+
"extrabold": 700,
|
|
520
|
+
"black": 800
|
|
521
|
+
},
|
|
522
|
+
"lineHeights": {
|
|
523
|
+
"3": "0.75rem",
|
|
524
|
+
"4": "1rem",
|
|
525
|
+
"5": "1.25rem",
|
|
526
|
+
"6": "1.5rem",
|
|
527
|
+
"7": "1.75rem",
|
|
528
|
+
"8": "1.875rem",
|
|
529
|
+
"9": "2.25rem",
|
|
530
|
+
"10": "2.5rem",
|
|
531
|
+
"none": 1,
|
|
532
|
+
"tight": 1.25,
|
|
533
|
+
"snug": 1.375,
|
|
534
|
+
"normal": 1.5,
|
|
535
|
+
"relaxed": 1.625,
|
|
536
|
+
"loose": 2
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
;
|
|
541
|
+
|
|
542
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Font } from '../types/theme';
|
|
2
|
+
|
|
3
|
+
export declare function generateFontCSSFromTheme(theme: Font, prefix?: string): string;
|
|
4
|
+
interface Theme {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function generateTextCSSFromTheme(theme: Theme, prefix: string): string;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function useColor(): import('../types').Colors | undefined;
|
|
2
|
+
export declare function useSpacing(): import('../types').Spacing | undefined;
|
|
3
|
+
export declare function useRadius(): import('../types').Radii | undefined;
|
|
4
|
+
export declare function useShadow(): import('../types').Shadows | undefined;
|
package/dist/index.d.ts
ADDED