@fastwork/xosmoz-theme 0.0.14 → 0.0.15
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 +47 -72
- package/dist/base.css +3 -3
- package/dist/{index-B3oQ5FIa.d.mts → index-D8kHN4dA.d.mts} +8 -25
- package/dist/{index-B3oQ5FIa.d.ts → index-D8kHN4dA.d.ts} +8 -25
- package/dist/index.d.mts +61 -73
- package/dist/index.d.ts +61 -73
- package/dist/index.js +532 -541
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +533 -523
- package/dist/index.mjs.map +1 -1
- package/dist/themes/dark.css +174 -25
- package/dist/themes/light.css +175 -26
- package/dist/themes.css +349 -138
- package/dist/tokens.d.mts +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/tokens.js +0 -244
- package/dist/tokens.js.map +1 -1
- package/dist/tokens.mjs +1 -234
- package/dist/tokens.mjs.map +1 -1
- package/dist/variables.css +144 -102
- package/dist/xosmoz.css +147 -105
- package/package.json +5 -5
- package/dist/themes/cyberpunk.css +0 -27
- package/dist/themes/forest.css +0 -27
- package/dist/themes/ocean.css +0 -27
package/dist/index.mjs
CHANGED
|
@@ -1,175 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
50: "#E5F0FF",
|
|
4
|
-
100: "#CCE0FF",
|
|
5
|
-
200: "#99C2FF",
|
|
6
|
-
300: "#66A3FF",
|
|
7
|
-
400: "#3385FF",
|
|
8
|
-
500: "#0569FF",
|
|
9
|
-
600: "#0052CC",
|
|
10
|
-
700: "#003D99",
|
|
11
|
-
800: "#002966",
|
|
12
|
-
900: "#001433"
|
|
13
|
-
};
|
|
14
|
-
var neutral = {
|
|
15
|
-
50: "#FFFFFF",
|
|
16
|
-
100: "#FBFBFC",
|
|
17
|
-
200: "#F6F7F8",
|
|
18
|
-
300: "#E8EAEE",
|
|
19
|
-
400: "#D6DAE1",
|
|
20
|
-
500: "#9BA6B5",
|
|
21
|
-
600: "#8793A6",
|
|
22
|
-
700: "#728197",
|
|
23
|
-
800: "#485261",
|
|
24
|
-
900: "#38404C",
|
|
25
|
-
1e3: "#2B313B",
|
|
26
|
-
1100: "#000000"
|
|
27
|
-
};
|
|
28
|
-
var green = {
|
|
29
|
-
50: "#EBFFF3",
|
|
30
|
-
100: "#D7F1E2",
|
|
31
|
-
200: "#AFE3C5",
|
|
32
|
-
300: "#87D5A7",
|
|
33
|
-
400: "#5FC78A",
|
|
34
|
-
500: "#37B96D",
|
|
35
|
-
600: "#2C9457",
|
|
36
|
-
700: "#216F41",
|
|
37
|
-
800: "#164A2C",
|
|
38
|
-
900: "#0B2516"
|
|
39
|
-
};
|
|
40
|
-
var yellow = {
|
|
41
|
-
50: "#FFF8E5",
|
|
42
|
-
100: "#FFF4CC",
|
|
43
|
-
200: "#FFE999",
|
|
44
|
-
300: "#FFDE66",
|
|
45
|
-
400: "#FFD333",
|
|
46
|
-
500: "#FFC800",
|
|
47
|
-
600: "#CCA000",
|
|
48
|
-
700: "#997800",
|
|
49
|
-
800: "#665000",
|
|
50
|
-
900: "#332800"
|
|
51
|
-
};
|
|
52
|
-
var red = {
|
|
53
|
-
50: "#FCE3E3",
|
|
54
|
-
100: "#FAD8D7",
|
|
55
|
-
200: "#F5B0AF",
|
|
56
|
-
300: "#F08987",
|
|
57
|
-
400: "#EC615F",
|
|
58
|
-
500: "#E73A37",
|
|
59
|
-
600: "#B92E2C",
|
|
60
|
-
700: "#8A2321",
|
|
61
|
-
800: "#5C1716",
|
|
62
|
-
900: "#411110"
|
|
63
|
-
};
|
|
64
|
-
var orange = {
|
|
65
|
-
50: "#FEF0E6",
|
|
66
|
-
100: "#FEE1CD",
|
|
67
|
-
200: "#FCC49C",
|
|
68
|
-
300: "#FBA66A",
|
|
69
|
-
400: "#FA8938",
|
|
70
|
-
500: "#F97416",
|
|
71
|
-
600: "#C75605",
|
|
72
|
-
700: "#954004",
|
|
73
|
-
800: "#632B03",
|
|
74
|
-
900: "#321501"
|
|
75
|
-
};
|
|
76
|
-
var purple = {
|
|
77
|
-
50: "#F0F2FD",
|
|
78
|
-
100: "#E9E8FA",
|
|
79
|
-
200: "#D2D1F6",
|
|
80
|
-
300: "#BCBBF1",
|
|
81
|
-
400: "#A5A4ED",
|
|
82
|
-
500: "#8F8DE8",
|
|
83
|
-
600: "#7271BA",
|
|
84
|
-
700: "#56558B",
|
|
85
|
-
800: "#39385D",
|
|
86
|
-
900: "#1D1C2E"
|
|
87
|
-
};
|
|
88
|
-
var cyan = {
|
|
89
|
-
50: "#E5F5FC",
|
|
90
|
-
100: "#D7EFF8",
|
|
91
|
-
200: "#AFDEF1",
|
|
92
|
-
300: "#88CEEA",
|
|
93
|
-
400: "#60BDE3",
|
|
94
|
-
500: "#38ADDC",
|
|
95
|
-
600: "#2D8AB0",
|
|
96
|
-
700: "#226884",
|
|
97
|
-
800: "#164558",
|
|
98
|
-
900: "#0B232C"
|
|
99
|
-
};
|
|
100
|
-
var blackAlpha = {
|
|
101
|
-
50: "rgb(0 0 0 / 0.05)",
|
|
102
|
-
100: "rgb(0 0 0 / 0.1)",
|
|
103
|
-
200: "rgb(0 0 0 / 0.2)",
|
|
104
|
-
300: "rgb(0 0 0 / 0.3)",
|
|
105
|
-
400: "rgb(0 0 0 / 0.4)",
|
|
106
|
-
500: "rgb(0 0 0 / 0.5)",
|
|
107
|
-
600: "rgb(0 0 0 / 0.6)",
|
|
108
|
-
700: "rgb(0 0 0 / 0.7)",
|
|
109
|
-
800: "rgb(0 0 0 / 0.8)",
|
|
110
|
-
900: "rgb(0 0 0 / 0.9)"
|
|
111
|
-
};
|
|
112
|
-
var whiteAlpha = {
|
|
113
|
-
50: "rgb(255 255 255 / 0.05)",
|
|
114
|
-
100: "rgb(255 255 255 / 0.1)",
|
|
115
|
-
200: "rgb(255 255 255 / 0.2)",
|
|
116
|
-
300: "rgb(255 255 255 / 0.3)",
|
|
117
|
-
400: "rgb(255 255 255 / 0.4)",
|
|
118
|
-
500: "rgb(255 255 255 / 0.5)",
|
|
119
|
-
600: "rgb(255 255 255 / 0.6)",
|
|
120
|
-
700: "rgb(255 255 255 / 0.7)",
|
|
121
|
-
800: "rgb(255 255 255 / 0.8)",
|
|
122
|
-
900: "rgb(255 255 255 / 0.9)"
|
|
123
|
-
};
|
|
124
|
-
var colors = {
|
|
125
|
-
primary,
|
|
126
|
-
neutral,
|
|
127
|
-
green,
|
|
128
|
-
yellow,
|
|
129
|
-
red,
|
|
130
|
-
orange,
|
|
131
|
-
purple,
|
|
132
|
-
cyan,
|
|
133
|
-
"black-alpha": blackAlpha,
|
|
134
|
-
"white-alpha": whiteAlpha
|
|
135
|
-
};
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
136
3
|
|
|
137
4
|
// src/tokens/typography.ts
|
|
138
5
|
var fontSize = {
|
|
139
6
|
50: "0.5rem",
|
|
140
|
-
// 8px
|
|
141
7
|
100: "0.625rem",
|
|
142
|
-
// 10px
|
|
143
8
|
200: "0.75rem",
|
|
144
|
-
// 12px
|
|
145
9
|
300: "0.875rem",
|
|
146
|
-
// 14px
|
|
147
10
|
400: "1rem",
|
|
148
|
-
// 16px
|
|
149
11
|
500: "1.125rem",
|
|
150
|
-
// 18px
|
|
151
12
|
600: "1.25rem",
|
|
152
|
-
// 20px
|
|
153
13
|
700: "1.5rem",
|
|
154
|
-
// 24px
|
|
155
14
|
800: "1.625rem",
|
|
156
|
-
// 26px
|
|
157
15
|
900: "2rem",
|
|
158
|
-
// 32px
|
|
159
16
|
1e3: "2.375rem",
|
|
160
|
-
// 38px
|
|
161
17
|
1100: "2.5rem",
|
|
162
|
-
// 40px
|
|
163
18
|
1200: "2.6875rem",
|
|
164
|
-
// 43px
|
|
165
19
|
1300: "3rem",
|
|
166
|
-
// 48px
|
|
167
20
|
1400: "3.5rem",
|
|
168
|
-
// 56px
|
|
169
21
|
1500: "4rem",
|
|
170
|
-
// 64px
|
|
171
22
|
1600: "4.5rem"
|
|
172
|
-
// 72px
|
|
173
23
|
};
|
|
174
24
|
var fontWeight = {
|
|
175
25
|
100: 100,
|
|
@@ -199,9 +49,7 @@ var headings = {
|
|
|
199
49
|
fontFamily: fontFamily.secondary,
|
|
200
50
|
fontSize: {
|
|
201
51
|
desktop: fontSize[1600],
|
|
202
|
-
// 72px
|
|
203
52
|
mobile: fontSize[1300]
|
|
204
|
-
// 48px
|
|
205
53
|
},
|
|
206
54
|
fontWeight: fontWeight[700]
|
|
207
55
|
},
|
|
@@ -209,9 +57,7 @@ var headings = {
|
|
|
209
57
|
fontFamily: fontFamily.secondary,
|
|
210
58
|
fontSize: {
|
|
211
59
|
desktop: fontSize[1500],
|
|
212
|
-
// 64px
|
|
213
60
|
mobile: fontSize[1200]
|
|
214
|
-
// 43px
|
|
215
61
|
},
|
|
216
62
|
fontWeight: fontWeight[700]
|
|
217
63
|
},
|
|
@@ -219,9 +65,7 @@ var headings = {
|
|
|
219
65
|
fontFamily: fontFamily.secondary,
|
|
220
66
|
fontSize: {
|
|
221
67
|
desktop: fontSize[1400],
|
|
222
|
-
// 56px
|
|
223
68
|
mobile: fontSize[1e3]
|
|
224
|
-
// 38px
|
|
225
69
|
},
|
|
226
70
|
fontWeight: fontWeight[700]
|
|
227
71
|
},
|
|
@@ -229,9 +73,7 @@ var headings = {
|
|
|
229
73
|
fontFamily: fontFamily.secondary,
|
|
230
74
|
fontSize: {
|
|
231
75
|
desktop: fontSize[1300],
|
|
232
|
-
// 48px
|
|
233
76
|
mobile: fontSize[900]
|
|
234
|
-
// 32px
|
|
235
77
|
},
|
|
236
78
|
fontWeight: fontWeight[700]
|
|
237
79
|
},
|
|
@@ -239,9 +81,7 @@ var headings = {
|
|
|
239
81
|
fontFamily: fontFamily.secondary,
|
|
240
82
|
fontSize: {
|
|
241
83
|
desktop: fontSize[1100],
|
|
242
|
-
// 40px
|
|
243
84
|
mobile: fontSize[800]
|
|
244
|
-
// 26px
|
|
245
85
|
},
|
|
246
86
|
fontWeight: fontWeight[700]
|
|
247
87
|
},
|
|
@@ -249,9 +89,7 @@ var headings = {
|
|
|
249
89
|
fontFamily: fontFamily.secondary,
|
|
250
90
|
fontSize: {
|
|
251
91
|
desktop: fontSize[900],
|
|
252
|
-
// 32px
|
|
253
92
|
mobile: fontSize[700]
|
|
254
|
-
// 24px
|
|
255
93
|
},
|
|
256
94
|
fontWeight: fontWeight[700]
|
|
257
95
|
}
|
|
@@ -261,9 +99,7 @@ var titles = {
|
|
|
261
99
|
fontFamily: fontFamily.secondary,
|
|
262
100
|
fontSize: {
|
|
263
101
|
desktop: fontSize[700],
|
|
264
|
-
// 24px
|
|
265
102
|
mobile: fontSize[600]
|
|
266
|
-
// 20px
|
|
267
103
|
},
|
|
268
104
|
fontWeight: fontWeight[700]
|
|
269
105
|
},
|
|
@@ -271,9 +107,7 @@ var titles = {
|
|
|
271
107
|
fontFamily: fontFamily.secondary,
|
|
272
108
|
fontSize: {
|
|
273
109
|
desktop: fontSize[600],
|
|
274
|
-
// 20px
|
|
275
110
|
mobile: fontSize[500]
|
|
276
|
-
// 18px
|
|
277
111
|
},
|
|
278
112
|
fontWeight: fontWeight[700]
|
|
279
113
|
},
|
|
@@ -281,9 +115,7 @@ var titles = {
|
|
|
281
115
|
fontFamily: fontFamily.secondary,
|
|
282
116
|
fontSize: {
|
|
283
117
|
desktop: fontSize[500],
|
|
284
|
-
// 18px
|
|
285
118
|
mobile: fontSize[400]
|
|
286
|
-
// 16px
|
|
287
119
|
},
|
|
288
120
|
fontWeight: fontWeight[700]
|
|
289
121
|
},
|
|
@@ -291,9 +123,7 @@ var titles = {
|
|
|
291
123
|
fontFamily: fontFamily.secondary,
|
|
292
124
|
fontSize: {
|
|
293
125
|
desktop: fontSize[400],
|
|
294
|
-
// 16px
|
|
295
126
|
mobile: fontSize[300]
|
|
296
|
-
// 14px
|
|
297
127
|
},
|
|
298
128
|
fontWeight: fontWeight[700]
|
|
299
129
|
}
|
|
@@ -303,9 +133,7 @@ var subtitles = {
|
|
|
303
133
|
fontFamily: fontFamily.secondary,
|
|
304
134
|
fontSize: {
|
|
305
135
|
desktop: fontSize[400],
|
|
306
|
-
// 16px
|
|
307
136
|
mobile: fontSize[300]
|
|
308
|
-
// 14px
|
|
309
137
|
},
|
|
310
138
|
fontWeight: fontWeight[700]
|
|
311
139
|
},
|
|
@@ -313,9 +141,7 @@ var subtitles = {
|
|
|
313
141
|
fontFamily: fontFamily.secondary,
|
|
314
142
|
fontSize: {
|
|
315
143
|
desktop: fontSize[400],
|
|
316
|
-
// 16px
|
|
317
144
|
mobile: fontSize[300]
|
|
318
|
-
// 14px
|
|
319
145
|
},
|
|
320
146
|
fontWeight: fontWeight[400]
|
|
321
147
|
},
|
|
@@ -323,9 +149,7 @@ var subtitles = {
|
|
|
323
149
|
fontFamily: fontFamily.secondary,
|
|
324
150
|
fontSize: {
|
|
325
151
|
desktop: fontSize[300],
|
|
326
|
-
// 14px
|
|
327
152
|
mobile: fontSize[200]
|
|
328
|
-
// 12px
|
|
329
153
|
},
|
|
330
154
|
fontWeight: fontWeight[700]
|
|
331
155
|
},
|
|
@@ -333,9 +157,7 @@ var subtitles = {
|
|
|
333
157
|
fontFamily: fontFamily.secondary,
|
|
334
158
|
fontSize: {
|
|
335
159
|
desktop: fontSize[300],
|
|
336
|
-
// 14px
|
|
337
160
|
mobile: fontSize[200]
|
|
338
|
-
// 12px
|
|
339
161
|
},
|
|
340
162
|
fontWeight: fontWeight[400]
|
|
341
163
|
},
|
|
@@ -343,9 +165,7 @@ var subtitles = {
|
|
|
343
165
|
fontFamily: fontFamily.secondary,
|
|
344
166
|
fontSize: {
|
|
345
167
|
desktop: fontSize[200],
|
|
346
|
-
// 12px
|
|
347
168
|
mobile: fontSize[100]
|
|
348
|
-
// 10px
|
|
349
169
|
},
|
|
350
170
|
fontWeight: fontWeight[700]
|
|
351
171
|
},
|
|
@@ -353,9 +173,7 @@ var subtitles = {
|
|
|
353
173
|
fontFamily: fontFamily.secondary,
|
|
354
174
|
fontSize: {
|
|
355
175
|
desktop: fontSize[200],
|
|
356
|
-
// 12px
|
|
357
176
|
mobile: fontSize[100]
|
|
358
|
-
// 10px
|
|
359
177
|
},
|
|
360
178
|
fontWeight: fontWeight[400]
|
|
361
179
|
}
|
|
@@ -365,9 +183,7 @@ var body = {
|
|
|
365
183
|
fontFamily: fontFamily.secondary,
|
|
366
184
|
fontSize: {
|
|
367
185
|
desktop: fontSize[400],
|
|
368
|
-
// 16px
|
|
369
186
|
mobile: fontSize[300]
|
|
370
|
-
// 14px
|
|
371
187
|
},
|
|
372
188
|
fontWeight: fontWeight[400]
|
|
373
189
|
},
|
|
@@ -375,9 +191,7 @@ var body = {
|
|
|
375
191
|
fontFamily: fontFamily.secondary,
|
|
376
192
|
fontSize: {
|
|
377
193
|
desktop: fontSize[300],
|
|
378
|
-
// 14px
|
|
379
194
|
mobile: fontSize[200]
|
|
380
|
-
// 12px
|
|
381
195
|
},
|
|
382
196
|
fontWeight: fontWeight[400]
|
|
383
197
|
},
|
|
@@ -385,9 +199,7 @@ var body = {
|
|
|
385
199
|
fontFamily: fontFamily.secondary,
|
|
386
200
|
fontSize: {
|
|
387
201
|
desktop: fontSize[200],
|
|
388
|
-
// 12px
|
|
389
202
|
mobile: fontSize[100]
|
|
390
|
-
// 10px
|
|
391
203
|
},
|
|
392
204
|
fontWeight: fontWeight[400]
|
|
393
205
|
},
|
|
@@ -395,9 +207,7 @@ var body = {
|
|
|
395
207
|
fontFamily: fontFamily.secondary,
|
|
396
208
|
fontSize: {
|
|
397
209
|
desktop: fontSize[100],
|
|
398
|
-
// 10px
|
|
399
210
|
mobile: fontSize[50]
|
|
400
|
-
// 8px
|
|
401
211
|
},
|
|
402
212
|
fontWeight: fontWeight[400]
|
|
403
213
|
}
|
|
@@ -418,71 +228,38 @@ var spacing = {
|
|
|
418
228
|
0: "0",
|
|
419
229
|
px: "1px",
|
|
420
230
|
0.5: "0.125rem",
|
|
421
|
-
// 2px
|
|
422
231
|
1: "0.25rem",
|
|
423
|
-
// 4px
|
|
424
232
|
1.5: "0.375rem",
|
|
425
|
-
// 6px
|
|
426
233
|
2: "0.5rem",
|
|
427
|
-
// 8px
|
|
428
234
|
2.5: "0.625rem",
|
|
429
|
-
// 10px
|
|
430
235
|
3: "0.75rem",
|
|
431
|
-
// 12px
|
|
432
236
|
3.5: "0.875rem",
|
|
433
|
-
// 14px
|
|
434
237
|
4: "1rem",
|
|
435
|
-
// 16px
|
|
436
238
|
5: "1.25rem",
|
|
437
|
-
// 20px
|
|
438
239
|
6: "1.5rem",
|
|
439
|
-
// 24px
|
|
440
240
|
7: "1.75rem",
|
|
441
|
-
// 28px
|
|
442
241
|
8: "2rem",
|
|
443
|
-
// 32px
|
|
444
242
|
9: "2.25rem",
|
|
445
|
-
// 36px
|
|
446
243
|
10: "2.5rem",
|
|
447
|
-
// 40px
|
|
448
244
|
11: "2.75rem",
|
|
449
|
-
// 44px
|
|
450
245
|
12: "3rem",
|
|
451
|
-
// 48px
|
|
452
246
|
14: "3.5rem",
|
|
453
|
-
// 56px
|
|
454
247
|
16: "4rem",
|
|
455
|
-
// 64px
|
|
456
248
|
20: "5rem",
|
|
457
|
-
// 80px
|
|
458
249
|
24: "6rem",
|
|
459
|
-
// 96px
|
|
460
250
|
28: "7rem",
|
|
461
|
-
// 112px
|
|
462
251
|
32: "8rem",
|
|
463
|
-
// 128px
|
|
464
252
|
36: "9rem",
|
|
465
|
-
// 144px
|
|
466
253
|
40: "10rem",
|
|
467
|
-
// 160px
|
|
468
254
|
44: "11rem",
|
|
469
|
-
// 176px
|
|
470
255
|
48: "12rem",
|
|
471
|
-
// 192px
|
|
472
256
|
52: "13rem",
|
|
473
|
-
// 208px
|
|
474
257
|
56: "14rem",
|
|
475
|
-
// 224px
|
|
476
258
|
60: "15rem",
|
|
477
|
-
// 240px
|
|
478
259
|
64: "16rem",
|
|
479
|
-
// 256px
|
|
480
260
|
72: "18rem",
|
|
481
|
-
// 288px
|
|
482
261
|
80: "20rem",
|
|
483
|
-
// 320px
|
|
484
262
|
96: "24rem"
|
|
485
|
-
// 384px
|
|
486
263
|
};
|
|
487
264
|
|
|
488
265
|
// src/tokens/shadows.ts
|
|
@@ -502,338 +279,571 @@ var shadows = {
|
|
|
502
279
|
var borderRadius = {
|
|
503
280
|
none: "0",
|
|
504
281
|
sm: "0.125rem",
|
|
505
|
-
// 2px
|
|
506
282
|
base: "0.25rem",
|
|
507
|
-
// 4px
|
|
508
283
|
md: "0.375rem",
|
|
509
|
-
// 6px
|
|
510
284
|
lg: "0.5rem",
|
|
511
|
-
// 8px
|
|
512
285
|
xl: "0.75rem",
|
|
513
|
-
// 12px
|
|
514
286
|
"2xl": "1rem",
|
|
515
|
-
// 16px
|
|
516
287
|
"3xl": "1.5rem",
|
|
517
|
-
// 24px
|
|
518
288
|
full: "9999px"
|
|
519
289
|
};
|
|
520
290
|
|
|
521
|
-
// src/theme.ts
|
|
522
|
-
var defaultTheme = {
|
|
523
|
-
colors,
|
|
524
|
-
typography,
|
|
525
|
-
spacing,
|
|
526
|
-
borderRadius,
|
|
527
|
-
shadows
|
|
528
|
-
};
|
|
529
|
-
function createTheme(overrides = {}) {
|
|
530
|
-
return {
|
|
531
|
-
...defaultTheme,
|
|
532
|
-
...overrides,
|
|
533
|
-
colors: {
|
|
534
|
-
...defaultTheme.colors,
|
|
535
|
-
...overrides.colors
|
|
536
|
-
},
|
|
537
|
-
typography: {
|
|
538
|
-
...defaultTheme.typography,
|
|
539
|
-
...overrides.typography
|
|
540
|
-
},
|
|
541
|
-
spacing: {
|
|
542
|
-
...defaultTheme.spacing,
|
|
543
|
-
...overrides.spacing
|
|
544
|
-
},
|
|
545
|
-
borderRadius: {
|
|
546
|
-
...defaultTheme.borderRadius,
|
|
547
|
-
...overrides.borderRadius
|
|
548
|
-
},
|
|
549
|
-
shadows: {
|
|
550
|
-
...defaultTheme.shadows,
|
|
551
|
-
...overrides.shadows
|
|
552
|
-
}
|
|
553
|
-
};
|
|
554
|
-
}
|
|
555
|
-
function themeToCSSVariables(theme) {
|
|
556
|
-
const cssVars = {};
|
|
557
|
-
Object.entries(theme.colors).forEach(([colorName, colorScale]) => {
|
|
558
|
-
Object.entries(colorScale).forEach(([shade, value]) => {
|
|
559
|
-
cssVars[`--xosmoz-color-${colorName}-${shade}`] = value;
|
|
560
|
-
});
|
|
561
|
-
});
|
|
562
|
-
Object.entries(theme.typography.fontSize).forEach(([key, value]) => {
|
|
563
|
-
cssVars[`--xosmoz-font-size-${key}`] = value;
|
|
564
|
-
});
|
|
565
|
-
Object.entries(theme.typography.fontWeight).forEach(([key, value]) => {
|
|
566
|
-
cssVars[`--xosmoz-font-weight-${key}`] = String(value);
|
|
567
|
-
});
|
|
568
|
-
Object.entries(theme.typography.lineHeight).forEach(([key, value]) => {
|
|
569
|
-
cssVars[`--xosmoz-line-height-${key}`] = value;
|
|
570
|
-
});
|
|
571
|
-
Object.entries(theme.spacing).forEach(([key, value]) => {
|
|
572
|
-
cssVars[`--xosmoz-spacing-${key}`] = value;
|
|
573
|
-
});
|
|
574
|
-
Object.entries(theme.borderRadius).forEach(([key, value]) => {
|
|
575
|
-
cssVars[`--xosmoz-radius-${key}`] = value;
|
|
576
|
-
});
|
|
577
|
-
Object.entries(theme.shadows).forEach(([key, value]) => {
|
|
578
|
-
cssVars[`--xosmoz-shadow-${key}`] = value;
|
|
579
|
-
});
|
|
580
|
-
return cssVars;
|
|
581
|
-
}
|
|
582
|
-
function generateCSSVariables(theme = defaultTheme) {
|
|
583
|
-
const cssVars = themeToCSSVariables(theme);
|
|
584
|
-
const cssLines = Object.entries(cssVars).map(
|
|
585
|
-
([key, value]) => ` ${key}: ${value};`
|
|
586
|
-
);
|
|
587
|
-
return `:root {
|
|
588
|
-
${cssLines.join("\n")}
|
|
589
|
-
}`;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
291
|
// src/themes/light.ts
|
|
292
|
+
var blackAlpha = {
|
|
293
|
+
100: "oklch(0 0 0 / 0.1)",
|
|
294
|
+
200: "oklch(0 0 0 / 0.2)",
|
|
295
|
+
300: "oklch(0 0 0 / 0.3)",
|
|
296
|
+
400: "oklch(0 0 0 / 0.4)",
|
|
297
|
+
500: "oklch(0 0 0 / 0.5)",
|
|
298
|
+
600: "oklch(0 0 0 / 0.6)",
|
|
299
|
+
700: "oklch(0 0 0 / 0.7)",
|
|
300
|
+
800: "oklch(0 0 0 / 0.8)",
|
|
301
|
+
900: "oklch(0 0 0 / 0.9)",
|
|
302
|
+
1e3: "oklch(0 0 0 / 1)"
|
|
303
|
+
};
|
|
304
|
+
var whiteAlpha = {
|
|
305
|
+
100: "oklch(1 0 0 / 0.1)",
|
|
306
|
+
200: "oklch(1 0 0 / 0.2)",
|
|
307
|
+
300: "oklch(1 0 0 / 0.3)",
|
|
308
|
+
400: "oklch(1 0 0 / 0.4)",
|
|
309
|
+
500: "oklch(1 0 0 / 0.5)",
|
|
310
|
+
600: "oklch(1 0 0 / 0.6)",
|
|
311
|
+
700: "oklch(1 0 0 / 0.7)",
|
|
312
|
+
800: "oklch(1 0 0 / 0.8)",
|
|
313
|
+
900: "oklch(1 0 0 / 0.9)",
|
|
314
|
+
1e3: "oklch(1 0 0 / 1)"
|
|
315
|
+
};
|
|
316
|
+
var fastwork = {
|
|
317
|
+
100: "oklch(0.96 .0223 260)",
|
|
318
|
+
200: "oklch(0.94 .0299 260)",
|
|
319
|
+
300: "oklch(0.92 .0369 260)",
|
|
320
|
+
400: "oklch(0.90 .0471 260)",
|
|
321
|
+
500: "oklch(0.84 .1018 260)",
|
|
322
|
+
600: "oklch(0.72 .1881 260)",
|
|
323
|
+
700: "oklch(0.58 .2524 260)",
|
|
324
|
+
800: "oklch(0.54 .2482 260)",
|
|
325
|
+
900: "oklch(0.54 .2320 260)",
|
|
326
|
+
1e3: "oklch(0.28 .1041 260)"
|
|
327
|
+
};
|
|
328
|
+
var gray = {
|
|
329
|
+
100: "oklch(0.96 0.005 260)",
|
|
330
|
+
200: "oklch(0.94 0.005 260)",
|
|
331
|
+
300: "oklch(0.92 0.005 260)",
|
|
332
|
+
400: "oklch(0.90 0.005 260)",
|
|
333
|
+
500: "oklch(0.84 0.005 260)",
|
|
334
|
+
600: "oklch(0.72 0.005 260)",
|
|
335
|
+
700: "oklch(0.62 0.005 260)",
|
|
336
|
+
800: "oklch(0.58 0.005 260)",
|
|
337
|
+
900: "oklch(0.54 0.005 260)",
|
|
338
|
+
1e3: "oklch(0.28 0.005 260)"
|
|
339
|
+
};
|
|
340
|
+
var green = {
|
|
341
|
+
100: "oklch(0.96 .0223 143)",
|
|
342
|
+
200: "oklch(0.94 .0299 143)",
|
|
343
|
+
300: "oklch(0.92 .0369 143)",
|
|
344
|
+
400: "oklch(0.90 .0471 143)",
|
|
345
|
+
500: "oklch(0.84 .1018 143)",
|
|
346
|
+
600: "oklch(0.72 .1881 143)",
|
|
347
|
+
700: "oklch(0.62 .2524 143)",
|
|
348
|
+
800: "oklch(0.58 .2482 143)",
|
|
349
|
+
900: "oklch(0.54 .2320 143)",
|
|
350
|
+
1e3: "oklch(0.28 .1041 143)"
|
|
351
|
+
};
|
|
352
|
+
var mint = {
|
|
353
|
+
100: "oklch(0.96 .0223 163)",
|
|
354
|
+
200: "oklch(0.94 .0299 163)",
|
|
355
|
+
300: "oklch(0.92 .0369 163)",
|
|
356
|
+
400: "oklch(0.90 .0471 163)",
|
|
357
|
+
500: "oklch(0.84 .1018 163)",
|
|
358
|
+
600: "oklch(0.72 .1881 163)",
|
|
359
|
+
700: "oklch(0.62 .2524 163)",
|
|
360
|
+
800: "oklch(0.58 .2482 163)",
|
|
361
|
+
900: "oklch(0.54 .2320 163)",
|
|
362
|
+
1e3: "oklch(0.28 .1041 163)"
|
|
363
|
+
};
|
|
364
|
+
var amber = {
|
|
365
|
+
100: "oklch(0.96 .0223 79)",
|
|
366
|
+
200: "oklch(0.94 .0299 79)",
|
|
367
|
+
300: "oklch(0.92 .0369 79)",
|
|
368
|
+
400: "oklch(0.90 .0471 79)",
|
|
369
|
+
500: "oklch(0.84 .1018 79)",
|
|
370
|
+
600: "oklch(0.72 .1881 79)",
|
|
371
|
+
700: "oklch(0.62 .2524 79)",
|
|
372
|
+
800: "oklch(0.58 .2482 79)",
|
|
373
|
+
900: "oklch(0.54 .2320 79)",
|
|
374
|
+
1e3: "oklch(0.28 .1041 79)"
|
|
375
|
+
};
|
|
376
|
+
var red = {
|
|
377
|
+
100: "oklch(0.96 .0223 30)",
|
|
378
|
+
200: "oklch(0.94 .0299 30)",
|
|
379
|
+
300: "oklch(0.92 .0369 30)",
|
|
380
|
+
400: "oklch(0.90 .0471 30)",
|
|
381
|
+
500: "oklch(0.84 .1018 30)",
|
|
382
|
+
600: "oklch(0.72 .1881 30)",
|
|
383
|
+
700: "oklch(0.62 .2524 30)",
|
|
384
|
+
800: "oklch(0.58 .2482 30)",
|
|
385
|
+
900: "oklch(0.54 .2320 30)",
|
|
386
|
+
1e3: "oklch(0.28 .1041 30)"
|
|
387
|
+
};
|
|
388
|
+
var orange = {
|
|
389
|
+
100: "oklch(0.96 .0223 48)",
|
|
390
|
+
200: "oklch(0.94 .0299 48)",
|
|
391
|
+
300: "oklch(0.92 .0369 48)",
|
|
392
|
+
400: "oklch(0.90 .0471 48)",
|
|
393
|
+
500: "oklch(0.84 .1018 48)",
|
|
394
|
+
600: "oklch(0.72 .1881 48)",
|
|
395
|
+
700: "oklch(0.62 .2524 48)",
|
|
396
|
+
800: "oklch(0.58 .2482 48)",
|
|
397
|
+
900: "oklch(0.54 .2320 48)",
|
|
398
|
+
1e3: "oklch(0.28 .1041 48)"
|
|
399
|
+
};
|
|
400
|
+
var purple = {
|
|
401
|
+
100: "oklch(0.96 .0223 293)",
|
|
402
|
+
200: "oklch(0.94 .0299 293)",
|
|
403
|
+
300: "oklch(0.92 .0369 293)",
|
|
404
|
+
400: "oklch(0.90 .0471 293)",
|
|
405
|
+
500: "oklch(0.84 .1018 293)",
|
|
406
|
+
600: "oklch(0.72 .1881 293)",
|
|
407
|
+
700: "oklch(0.62 .2524 293)",
|
|
408
|
+
800: "oklch(0.58 .2482 293)",
|
|
409
|
+
900: "oklch(0.54 .2320 293)",
|
|
410
|
+
1e3: "oklch(0.28 .1041 293)"
|
|
411
|
+
};
|
|
412
|
+
var cyan = {
|
|
413
|
+
100: "oklch(0.96 .0223 213)",
|
|
414
|
+
200: "oklch(0.94 .0299 213)",
|
|
415
|
+
300: "oklch(0.92 .0369 213)",
|
|
416
|
+
400: "oklch(0.90 .0471 213)",
|
|
417
|
+
500: "oklch(0.84 .1018 213)",
|
|
418
|
+
600: "oklch(0.72 .1881 213)",
|
|
419
|
+
700: "oklch(0.62 .2524 213)",
|
|
420
|
+
800: "oklch(0.58 .2482 213)",
|
|
421
|
+
900: "oklch(0.54 .2320 213)",
|
|
422
|
+
1e3: "oklch(0.28 .1041 213)"
|
|
423
|
+
};
|
|
593
424
|
var lightTheme = {
|
|
594
425
|
name: "light",
|
|
595
426
|
colors: {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
427
|
+
bg: {
|
|
428
|
+
100: "oklch(1.00 0.00 260)",
|
|
429
|
+
200: "oklch(0.98 0.005 260)",
|
|
430
|
+
300: "oklch(0.95 0.01 260)",
|
|
431
|
+
400: "oklch(0.92 0.01 260)"
|
|
432
|
+
},
|
|
433
|
+
content: {
|
|
434
|
+
100: "oklch(21% 0.006 285.885)",
|
|
435
|
+
200: "color-mix(in oklab, var(--xz-color-content-100) 60%, transparent)"
|
|
436
|
+
},
|
|
437
|
+
line: {
|
|
438
|
+
100: blackAlpha[100],
|
|
439
|
+
200: blackAlpha[200],
|
|
440
|
+
300: blackAlpha[300]
|
|
441
|
+
},
|
|
442
|
+
primary: {
|
|
443
|
+
soft: {
|
|
444
|
+
100: fastwork[100],
|
|
445
|
+
200: fastwork[200],
|
|
446
|
+
300: fastwork[300]
|
|
447
|
+
},
|
|
448
|
+
line: {
|
|
449
|
+
100: fastwork[400],
|
|
450
|
+
200: fastwork[500],
|
|
451
|
+
300: fastwork[600]
|
|
452
|
+
},
|
|
453
|
+
bg: {
|
|
454
|
+
100: fastwork[700],
|
|
455
|
+
200: fastwork[800]
|
|
456
|
+
},
|
|
457
|
+
content: {
|
|
458
|
+
100: fastwork[900],
|
|
459
|
+
200: fastwork[1e3]
|
|
460
|
+
},
|
|
461
|
+
fg: "oklch(1 0 0)"
|
|
462
|
+
},
|
|
463
|
+
danger: {
|
|
464
|
+
soft: {
|
|
465
|
+
100: red[100],
|
|
466
|
+
200: red[200],
|
|
467
|
+
300: red[300]
|
|
468
|
+
},
|
|
469
|
+
line: {
|
|
470
|
+
100: red[400],
|
|
471
|
+
200: red[500],
|
|
472
|
+
300: red[600]
|
|
473
|
+
},
|
|
474
|
+
bg: {
|
|
475
|
+
100: red[700],
|
|
476
|
+
200: red[800]
|
|
477
|
+
},
|
|
478
|
+
content: {
|
|
479
|
+
100: red[900],
|
|
480
|
+
200: red[1e3]
|
|
481
|
+
},
|
|
482
|
+
fg: "oklch(1 0 0)"
|
|
483
|
+
},
|
|
484
|
+
success: {
|
|
485
|
+
soft: {
|
|
486
|
+
100: green[100],
|
|
487
|
+
200: green[200],
|
|
488
|
+
300: green[300]
|
|
489
|
+
},
|
|
490
|
+
line: {
|
|
491
|
+
100: green[400],
|
|
492
|
+
200: green[500],
|
|
493
|
+
300: green[600]
|
|
494
|
+
},
|
|
495
|
+
bg: {
|
|
496
|
+
100: green[700],
|
|
497
|
+
200: green[800]
|
|
498
|
+
},
|
|
499
|
+
content: {
|
|
500
|
+
100: green[900],
|
|
501
|
+
200: green[1e3]
|
|
502
|
+
},
|
|
503
|
+
fg: "oklch(1 0 0)"
|
|
504
|
+
},
|
|
505
|
+
warning: {
|
|
506
|
+
soft: {
|
|
507
|
+
100: amber[100],
|
|
508
|
+
200: amber[200],
|
|
509
|
+
300: amber[300]
|
|
510
|
+
},
|
|
511
|
+
line: {
|
|
512
|
+
100: amber[400],
|
|
513
|
+
200: amber[500],
|
|
514
|
+
300: amber[600]
|
|
515
|
+
},
|
|
516
|
+
bg: {
|
|
517
|
+
100: amber[700],
|
|
518
|
+
200: amber[800]
|
|
519
|
+
},
|
|
520
|
+
content: {
|
|
521
|
+
100: amber[900],
|
|
522
|
+
200: amber[1e3]
|
|
523
|
+
},
|
|
524
|
+
fg: "oklch(1 0 0)"
|
|
525
|
+
},
|
|
526
|
+
info: {
|
|
527
|
+
soft: {
|
|
528
|
+
100: cyan[100],
|
|
529
|
+
200: cyan[200],
|
|
530
|
+
300: cyan[300]
|
|
531
|
+
},
|
|
532
|
+
line: {
|
|
533
|
+
100: cyan[400],
|
|
534
|
+
200: cyan[500],
|
|
535
|
+
300: cyan[600]
|
|
536
|
+
},
|
|
537
|
+
bg: {
|
|
538
|
+
100: cyan[700],
|
|
539
|
+
200: cyan[800]
|
|
540
|
+
},
|
|
541
|
+
content: {
|
|
542
|
+
100: cyan[900],
|
|
543
|
+
200: cyan[1e3]
|
|
544
|
+
},
|
|
545
|
+
fg: "oklch(1 0 0)"
|
|
546
|
+
},
|
|
547
|
+
// Color tokens
|
|
548
|
+
fastwork,
|
|
549
|
+
gray,
|
|
550
|
+
green,
|
|
551
|
+
mint,
|
|
552
|
+
amber,
|
|
553
|
+
red,
|
|
554
|
+
orange,
|
|
555
|
+
purple,
|
|
556
|
+
cyan,
|
|
557
|
+
blackAlpha,
|
|
558
|
+
whiteAlpha
|
|
633
559
|
}
|
|
634
560
|
};
|
|
635
561
|
|
|
636
562
|
// src/themes/dark.ts
|
|
637
|
-
var
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
input: colors.neutral[800],
|
|
649
|
-
ring: colors.primary[400],
|
|
650
|
-
// Card
|
|
651
|
-
card: colors.neutral[900],
|
|
652
|
-
cardForeground: colors.neutral[50],
|
|
653
|
-
// Popover
|
|
654
|
-
popover: colors.neutral[900],
|
|
655
|
-
popoverForeground: colors.neutral[50],
|
|
656
|
-
// Primary
|
|
657
|
-
primary: colors.primary[500],
|
|
658
|
-
primaryForeground: colors.neutral[50],
|
|
659
|
-
// Secondary
|
|
660
|
-
secondary: colors.neutral[400],
|
|
661
|
-
secondaryForeground: colors.neutral[900],
|
|
662
|
-
// Accent
|
|
663
|
-
accent: colors.primary[400],
|
|
664
|
-
accentForeground: colors.neutral[50],
|
|
665
|
-
// Destructive
|
|
666
|
-
destructive: colors.red[500],
|
|
667
|
-
destructiveForeground: colors.neutral[50],
|
|
668
|
-
// Success
|
|
669
|
-
success: colors.green[500],
|
|
670
|
-
successForeground: colors.neutral[50],
|
|
671
|
-
// Warning
|
|
672
|
-
warning: colors.yellow[500],
|
|
673
|
-
warningForeground: colors.neutral[900],
|
|
674
|
-
// Info
|
|
675
|
-
info: colors.cyan[500],
|
|
676
|
-
infoForeground: colors.neutral[50]
|
|
677
|
-
}
|
|
563
|
+
var blackAlpha2 = {
|
|
564
|
+
100: "oklch(0 0 0 / 0.1)",
|
|
565
|
+
200: "oklch(0 0 0 / 0.2)",
|
|
566
|
+
300: "oklch(0 0 0 / 0.3)",
|
|
567
|
+
400: "oklch(0 0 0 / 0.4)",
|
|
568
|
+
500: "oklch(0 0 0 / 0.5)",
|
|
569
|
+
600: "oklch(0 0 0 / 0.6)",
|
|
570
|
+
700: "oklch(0 0 0 / 0.7)",
|
|
571
|
+
800: "oklch(0 0 0 / 0.8)",
|
|
572
|
+
900: "oklch(0 0 0 / 0.9)",
|
|
573
|
+
1e3: "oklch(0 0 0 / 1)"
|
|
678
574
|
};
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
// Border and input - Neon purple
|
|
691
|
-
border: "#6d28d9",
|
|
692
|
-
input: "#4c1d95",
|
|
693
|
-
ring: "#a855f7",
|
|
694
|
-
// Card - Slightly lighter dark
|
|
695
|
-
card: "#150828",
|
|
696
|
-
cardForeground: "#e0e7ff",
|
|
697
|
-
// Popover
|
|
698
|
-
popover: "#1e1432",
|
|
699
|
-
popoverForeground: "#e0e7ff",
|
|
700
|
-
// Primary - Neon pink/magenta
|
|
701
|
-
primary: "#f0abfc",
|
|
702
|
-
primaryForeground: "#0a0118",
|
|
703
|
-
// Secondary - Neon cyan
|
|
704
|
-
secondary: "#22d3ee",
|
|
705
|
-
secondaryForeground: "#0a0118",
|
|
706
|
-
// Accent - Neon yellow
|
|
707
|
-
accent: "#fde047",
|
|
708
|
-
accentForeground: "#0a0118",
|
|
709
|
-
// Destructive - Hot pink
|
|
710
|
-
destructive: "#ec4899",
|
|
711
|
-
destructiveForeground: "#0a0118",
|
|
712
|
-
// Success - Neon green
|
|
713
|
-
success: "#10b981",
|
|
714
|
-
successForeground: "#0a0118",
|
|
715
|
-
// Warning - Electric orange
|
|
716
|
-
warning: "#fb923c",
|
|
717
|
-
warningForeground: "#0a0118",
|
|
718
|
-
// Info - Neon blue
|
|
719
|
-
info: "#3b82f6",
|
|
720
|
-
infoForeground: "#0a0118"
|
|
721
|
-
}
|
|
575
|
+
var whiteAlpha2 = {
|
|
576
|
+
100: "oklch(1 0 0 / 0.1)",
|
|
577
|
+
200: "oklch(1 0 0 / 0.2)",
|
|
578
|
+
300: "oklch(1 0 0 / 0.3)",
|
|
579
|
+
400: "oklch(1 0 0 / 0.4)",
|
|
580
|
+
500: "oklch(1 0 0 / 0.5)",
|
|
581
|
+
600: "oklch(1 0 0 / 0.6)",
|
|
582
|
+
700: "oklch(1 0 0 / 0.7)",
|
|
583
|
+
800: "oklch(1 0 0 / 0.8)",
|
|
584
|
+
900: "oklch(1 0 0 / 0.9)",
|
|
585
|
+
1e3: "oklch(1 0 0 / 1)"
|
|
722
586
|
};
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
// Border and input - Moss green
|
|
735
|
-
border: "#c4d9c4",
|
|
736
|
-
input: "#d4e4d4",
|
|
737
|
-
ring: "#2d7d46",
|
|
738
|
-
// Card - White with slight green tint
|
|
739
|
-
card: "#f5faf5",
|
|
740
|
-
cardForeground: "#1c3d29",
|
|
741
|
-
// Popover
|
|
742
|
-
popover: "#ffffff",
|
|
743
|
-
popoverForeground: "#1c3d29",
|
|
744
|
-
// Primary - Forest green
|
|
745
|
-
primary: "#2d7d46",
|
|
746
|
-
primaryForeground: "#ffffff",
|
|
747
|
-
// Secondary - Olive
|
|
748
|
-
secondary: "#6b8e4e",
|
|
749
|
-
secondaryForeground: "#ffffff",
|
|
750
|
-
// Accent - Amber
|
|
751
|
-
accent: "#d97706",
|
|
752
|
-
accentForeground: "#ffffff",
|
|
753
|
-
// Destructive - Rust red
|
|
754
|
-
destructive: "#b91c1c",
|
|
755
|
-
destructiveForeground: "#ffffff",
|
|
756
|
-
// Success - Vibrant green
|
|
757
|
-
success: "#059669",
|
|
758
|
-
successForeground: "#ffffff",
|
|
759
|
-
// Warning - Golden yellow
|
|
760
|
-
warning: "#ca8a04",
|
|
761
|
-
warningForeground: "#1c3d29",
|
|
762
|
-
// Info - Sky blue
|
|
763
|
-
info: "#0284c7",
|
|
764
|
-
infoForeground: "#ffffff"
|
|
765
|
-
}
|
|
587
|
+
var fastwork2 = {
|
|
588
|
+
100: "oklch(0.22 .069 260)",
|
|
589
|
+
200: "oklch(0.25 .081 260)",
|
|
590
|
+
300: "oklch(0.30 .102 260)",
|
|
591
|
+
400: "oklch(0.34 .121 260)",
|
|
592
|
+
500: "oklch(0.38 .140 260)",
|
|
593
|
+
600: "oklch(0.64 .198 260)",
|
|
594
|
+
700: "oklch(0.57 .232 260)",
|
|
595
|
+
800: "oklch(0.51 .230 260)",
|
|
596
|
+
900: "oklch(0.77 .164 260)",
|
|
597
|
+
1e3: "oklch(0.96 .017 260)"
|
|
766
598
|
};
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
599
|
+
var gray2 = {
|
|
600
|
+
100: "oklch(0.22 0.005 260)",
|
|
601
|
+
200: "oklch(0.25 0.005 260)",
|
|
602
|
+
300: "oklch(0.30 0.005 260)",
|
|
603
|
+
400: "oklch(0.34 0.005 260)",
|
|
604
|
+
500: "oklch(0.38 0.005 260)",
|
|
605
|
+
600: "oklch(0.64 0.005 260)",
|
|
606
|
+
700: "oklch(0.57 0.005 260)",
|
|
607
|
+
800: "oklch(0.51 0.005 260)",
|
|
608
|
+
900: "oklch(0.77 0.005 260)",
|
|
609
|
+
1e3: "oklch(0.96 0.005 260)"
|
|
610
|
+
};
|
|
611
|
+
var green2 = {
|
|
612
|
+
100: "oklch(0.22 .069 143)",
|
|
613
|
+
200: "oklch(0.25 .081 143)",
|
|
614
|
+
300: "oklch(0.30 .102 143)",
|
|
615
|
+
400: "oklch(0.34 .121 143)",
|
|
616
|
+
500: "oklch(0.38 .140 143)",
|
|
617
|
+
600: "oklch(0.64 .198 143)",
|
|
618
|
+
700: "oklch(0.57 .232 143)",
|
|
619
|
+
800: "oklch(0.51 .230 143)",
|
|
620
|
+
900: "oklch(0.77 .164 143)",
|
|
621
|
+
1e3: "oklch(0.96 .017 143)"
|
|
622
|
+
};
|
|
623
|
+
var mint2 = {
|
|
624
|
+
100: "oklch(0.22 .069 163)",
|
|
625
|
+
200: "oklch(0.25 .081 163)",
|
|
626
|
+
300: "oklch(0.30 .102 163)",
|
|
627
|
+
400: "oklch(0.34 .121 163)",
|
|
628
|
+
500: "oklch(0.38 .140 163)",
|
|
629
|
+
600: "oklch(0.64 .198 163)",
|
|
630
|
+
700: "oklch(0.57 .232 163)",
|
|
631
|
+
800: "oklch(0.51 .230 163)",
|
|
632
|
+
900: "oklch(0.77 .164 163)",
|
|
633
|
+
1e3: "oklch(0.96 .017 163)"
|
|
634
|
+
};
|
|
635
|
+
var amber2 = {
|
|
636
|
+
100: "oklch(0.22 .069 79)",
|
|
637
|
+
200: "oklch(0.25 .081 79)",
|
|
638
|
+
300: "oklch(0.30 .102 79)",
|
|
639
|
+
400: "oklch(0.34 .121 79)",
|
|
640
|
+
500: "oklch(0.38 .140 79)",
|
|
641
|
+
600: "oklch(0.64 .198 79)",
|
|
642
|
+
700: "oklch(0.57 .232 79)",
|
|
643
|
+
800: "oklch(0.51 .230 79)",
|
|
644
|
+
900: "oklch(0.77 .164 79)",
|
|
645
|
+
1e3: "oklch(0.96 .017 79)"
|
|
646
|
+
};
|
|
647
|
+
var red2 = {
|
|
648
|
+
100: "oklch(0.22 .069 30)",
|
|
649
|
+
200: "oklch(0.25 .081 30)",
|
|
650
|
+
300: "oklch(0.30 .102 30)",
|
|
651
|
+
400: "oklch(0.34 .121 30)",
|
|
652
|
+
500: "oklch(0.38 .140 30)",
|
|
653
|
+
600: "oklch(0.64 .198 30)",
|
|
654
|
+
700: "oklch(0.57 .232 30)",
|
|
655
|
+
800: "oklch(0.51 .230 30)",
|
|
656
|
+
900: "oklch(0.77 .164 30)",
|
|
657
|
+
1e3: "oklch(0.96 .017 30)"
|
|
658
|
+
};
|
|
659
|
+
var orange2 = {
|
|
660
|
+
100: "oklch(0.22 .069 48)",
|
|
661
|
+
200: "oklch(0.25 .081 48)",
|
|
662
|
+
300: "oklch(0.30 .102 48)",
|
|
663
|
+
400: "oklch(0.34 .121 48)",
|
|
664
|
+
500: "oklch(0.38 .140 48)",
|
|
665
|
+
600: "oklch(0.64 .198 48)",
|
|
666
|
+
700: "oklch(0.57 .232 48)",
|
|
667
|
+
800: "oklch(0.51 .230 48)",
|
|
668
|
+
900: "oklch(0.77 .164 48)",
|
|
669
|
+
1e3: "oklch(0.96 .017 48)"
|
|
670
|
+
};
|
|
671
|
+
var purple2 = {
|
|
672
|
+
100: "oklch(0.22 .069 293)",
|
|
673
|
+
200: "oklch(0.25 .081 293)",
|
|
674
|
+
300: "oklch(0.30 .102 293)",
|
|
675
|
+
400: "oklch(0.34 .121 293)",
|
|
676
|
+
500: "oklch(0.38 .140 293)",
|
|
677
|
+
600: "oklch(0.64 .198 293)",
|
|
678
|
+
700: "oklch(0.57 .232 293)",
|
|
679
|
+
800: "oklch(0.51 .230 293)",
|
|
680
|
+
900: "oklch(0.77 .164 293)",
|
|
681
|
+
1e3: "oklch(0.96 .017 293)"
|
|
682
|
+
};
|
|
683
|
+
var cyan2 = {
|
|
684
|
+
100: "oklch(0.22 .069 213)",
|
|
685
|
+
200: "oklch(0.25 .081 213)",
|
|
686
|
+
300: "oklch(0.30 .102 213)",
|
|
687
|
+
400: "oklch(0.34 .121 213)",
|
|
688
|
+
500: "oklch(0.38 .140 213)",
|
|
689
|
+
600: "oklch(0.64 .198 213)",
|
|
690
|
+
700: "oklch(0.57 .232 213)",
|
|
691
|
+
800: "oklch(0.51 .230 213)",
|
|
692
|
+
900: "oklch(0.77 .164 213)",
|
|
693
|
+
1e3: "oklch(0.96 .017 213)"
|
|
694
|
+
};
|
|
695
|
+
var darkTheme = {
|
|
696
|
+
name: "dark",
|
|
771
697
|
colors: {
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
698
|
+
bg: {
|
|
699
|
+
100: "oklch(0.165 0.01 260)",
|
|
700
|
+
200: "oklch(0.22 0.01 260)",
|
|
701
|
+
300: "oklch(0.27 0.01 260)",
|
|
702
|
+
400: "oklch(0.32 0.01 260)"
|
|
703
|
+
},
|
|
704
|
+
content: {
|
|
705
|
+
100: "oklch(96% 0.01 260)",
|
|
706
|
+
200: "color-mix(in oklab, var(--xz-color-content-100) 60%, transparent)"
|
|
707
|
+
},
|
|
708
|
+
line: {
|
|
709
|
+
100: whiteAlpha2[100],
|
|
710
|
+
200: whiteAlpha2[200],
|
|
711
|
+
300: whiteAlpha2[300]
|
|
712
|
+
},
|
|
713
|
+
primary: {
|
|
714
|
+
soft: {
|
|
715
|
+
100: fastwork2[100],
|
|
716
|
+
200: fastwork2[200],
|
|
717
|
+
300: fastwork2[300]
|
|
718
|
+
},
|
|
719
|
+
line: {
|
|
720
|
+
100: fastwork2[400],
|
|
721
|
+
200: fastwork2[500],
|
|
722
|
+
300: fastwork2[600]
|
|
723
|
+
},
|
|
724
|
+
bg: {
|
|
725
|
+
100: fastwork2[700],
|
|
726
|
+
200: fastwork2[800]
|
|
727
|
+
},
|
|
728
|
+
content: {
|
|
729
|
+
100: fastwork2[900],
|
|
730
|
+
200: fastwork2[1e3]
|
|
731
|
+
},
|
|
732
|
+
fg: "oklch(1 0 0)"
|
|
733
|
+
},
|
|
734
|
+
danger: {
|
|
735
|
+
soft: {
|
|
736
|
+
100: red2[100],
|
|
737
|
+
200: red2[200],
|
|
738
|
+
300: red2[300]
|
|
739
|
+
},
|
|
740
|
+
line: {
|
|
741
|
+
100: red2[400],
|
|
742
|
+
200: red2[500],
|
|
743
|
+
300: red2[600]
|
|
744
|
+
},
|
|
745
|
+
bg: {
|
|
746
|
+
100: red2[700],
|
|
747
|
+
200: red2[800]
|
|
748
|
+
},
|
|
749
|
+
content: {
|
|
750
|
+
100: red2[900],
|
|
751
|
+
200: red2[1e3]
|
|
752
|
+
},
|
|
753
|
+
fg: "oklch(1 0 0)"
|
|
754
|
+
},
|
|
755
|
+
success: {
|
|
756
|
+
soft: {
|
|
757
|
+
100: green2[100],
|
|
758
|
+
200: green2[200],
|
|
759
|
+
300: green2[300]
|
|
760
|
+
},
|
|
761
|
+
line: {
|
|
762
|
+
100: green2[400],
|
|
763
|
+
200: green2[500],
|
|
764
|
+
300: green2[600]
|
|
765
|
+
},
|
|
766
|
+
bg: {
|
|
767
|
+
100: green2[700],
|
|
768
|
+
200: green2[800]
|
|
769
|
+
},
|
|
770
|
+
content: {
|
|
771
|
+
100: green2[900],
|
|
772
|
+
200: green2[1e3]
|
|
773
|
+
},
|
|
774
|
+
fg: "oklch(1 0 0)"
|
|
775
|
+
},
|
|
776
|
+
warning: {
|
|
777
|
+
soft: {
|
|
778
|
+
100: amber2[100],
|
|
779
|
+
200: amber2[200],
|
|
780
|
+
300: amber2[300]
|
|
781
|
+
},
|
|
782
|
+
line: {
|
|
783
|
+
100: amber2[400],
|
|
784
|
+
200: amber2[500],
|
|
785
|
+
300: amber2[600]
|
|
786
|
+
},
|
|
787
|
+
bg: {
|
|
788
|
+
100: amber2[700],
|
|
789
|
+
200: amber2[800]
|
|
790
|
+
},
|
|
791
|
+
content: {
|
|
792
|
+
100: amber2[900],
|
|
793
|
+
200: amber2[1e3]
|
|
794
|
+
},
|
|
795
|
+
fg: "oklch(1 0 0)"
|
|
796
|
+
},
|
|
797
|
+
info: {
|
|
798
|
+
soft: {
|
|
799
|
+
100: cyan2[100],
|
|
800
|
+
200: cyan2[200],
|
|
801
|
+
300: cyan2[300]
|
|
802
|
+
},
|
|
803
|
+
line: {
|
|
804
|
+
100: cyan2[400],
|
|
805
|
+
200: cyan2[500],
|
|
806
|
+
300: cyan2[600]
|
|
807
|
+
},
|
|
808
|
+
bg: {
|
|
809
|
+
100: cyan2[700],
|
|
810
|
+
200: cyan2[800]
|
|
811
|
+
},
|
|
812
|
+
content: {
|
|
813
|
+
100: cyan2[900],
|
|
814
|
+
200: cyan2[1e3]
|
|
815
|
+
},
|
|
816
|
+
fg: "oklch(1 0 0)"
|
|
817
|
+
},
|
|
818
|
+
// Color tokens
|
|
819
|
+
fastwork: fastwork2,
|
|
820
|
+
gray: gray2,
|
|
821
|
+
green: green2,
|
|
822
|
+
mint: mint2,
|
|
823
|
+
amber: amber2,
|
|
824
|
+
red: red2,
|
|
825
|
+
orange: orange2,
|
|
826
|
+
purple: purple2,
|
|
827
|
+
cyan: cyan2,
|
|
828
|
+
blackAlpha: blackAlpha2,
|
|
829
|
+
whiteAlpha: whiteAlpha2
|
|
809
830
|
}
|
|
810
831
|
};
|
|
811
832
|
|
|
812
833
|
// src/themes/index.ts
|
|
813
834
|
var themes = {
|
|
814
835
|
light: lightTheme,
|
|
815
|
-
dark: darkTheme
|
|
816
|
-
cyberpunk: cyberpunkTheme,
|
|
817
|
-
forest: forestTheme,
|
|
818
|
-
ocean: oceanTheme
|
|
836
|
+
dark: darkTheme
|
|
819
837
|
};
|
|
820
838
|
function getTheme(name) {
|
|
821
839
|
return themes[name];
|
|
822
840
|
}
|
|
841
|
+
__name(getTheme, "getTheme");
|
|
823
842
|
function getThemeNames() {
|
|
824
843
|
return Object.keys(themes);
|
|
825
844
|
}
|
|
826
|
-
|
|
827
|
-
const base = themes[baseTheme];
|
|
828
|
-
return {
|
|
829
|
-
name,
|
|
830
|
-
colors: {
|
|
831
|
-
...base.colors,
|
|
832
|
-
...colors2
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
|
-
}
|
|
845
|
+
__name(getThemeNames, "getThemeNames");
|
|
836
846
|
|
|
837
|
-
export {
|
|
847
|
+
export { body, borderRadius, darkTheme, fontFamily, fontSize, fontWeight, getTheme, getThemeNames, headings, lightTheme, lineHeight, shadows, spacing, subtitles, themes, titles, typography };
|
|
838
848
|
//# sourceMappingURL=index.mjs.map
|
|
839
849
|
//# sourceMappingURL=index.mjs.map
|