svelte-multistyle-ui 0.0.4-alpha → 0.0.6-alpha
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 +1 -1
- package/cli/bin.js +90 -0
- package/cli/emit.js +228 -0
- package/cli/fixtures/sample.expected.svelte +69 -0
- package/cli/fixtures/sample.yaml +128 -0
- package/cli/generate.js +68 -0
- package/cli/registry.js +95 -0
- package/cli/schema.js +145 -0
- package/dist/components/Button.svelte +3 -1
- package/dist/components/Button.svelte.d.ts +2 -0
- package/dist/components/DatePicker.svelte +47 -12
- package/dist/components/FAB.svelte +3 -1
- package/dist/components/FAB.svelte.d.ts +2 -0
- package/dist/components/IconButton.svelte +3 -1
- package/dist/components/IconButton.svelte.d.ts +2 -0
- package/dist/components/Input.svelte +0 -1
- package/dist/components/MultiSelect.svelte +0 -1
- package/dist/components/Select.svelte +0 -1
- package/dist/components/Stepper.svelte +91 -33
- package/dist/components/Textarea.svelte +0 -1
- package/dist/components/accordion-styles.css +1 -9
- package/dist/components/alert-styles.css +1 -4
- package/dist/components/avatar-styles.css +1 -4
- package/dist/components/breadcrumb-styles.css +1 -7
- package/dist/components/button-styles.css +44 -52
- package/dist/components/buttongroup-styles.css +1 -5
- package/dist/components/card-styles.css +1 -9
- package/dist/components/carousel-styles.css +1 -5
- package/dist/components/charts/Chart.svelte +63 -3
- package/dist/components/charts/chart-config.d.ts +27 -2
- package/dist/components/charts/chart-config.js +180 -67
- package/dist/components/charts/chart-styles.css +32 -17
- package/dist/components/checkbox-styles.css +2 -10
- package/dist/components/chip-styles.css +1 -4
- package/dist/components/commandpalette-styles.css +0 -4
- package/dist/components/datepicker-styles.css +967 -1027
- package/dist/components/divider-styles.css +1 -4
- package/dist/components/drawer-styles.css +0 -4
- package/dist/components/dropdown-styles.css +0 -5
- package/dist/components/fab-styles.css +18 -12
- package/dist/components/fileupload-styles.css +2 -10
- package/dist/components/iconbutton-styles.css +33 -34
- package/dist/components/input-styles.css +5 -37
- package/dist/components/modal-styles.css +0 -8
- package/dist/components/multiselect-styles.css +5 -32
- package/dist/components/pagination-styles.css +2 -5
- package/dist/components/popover-styles.css +0 -4
- package/dist/components/progressbar-styles.css +1 -5
- package/dist/components/radio-styles.css +1 -8
- package/dist/components/rating-styles.css +1 -4
- package/dist/components/select-styles.css +5 -18
- package/dist/components/skeleton-styles.css +1 -4
- package/dist/components/slider-styles.css +1 -5
- package/dist/components/sortablelist-styles.css +0 -13
- package/dist/components/spinner-styles.css +1 -4
- package/dist/components/stepper-styles.css +59 -8
- package/dist/components/table-styles.css +1 -5
- package/dist/components/tabs-styles.css +3 -7
- package/dist/components/textarea-styles.css +5 -18
- package/dist/components/theme-base.css +19 -2
- package/dist/components/theme.css +329 -333
- package/dist/components/toast-styles.css +1 -4
- package/dist/components/toggle-styles.css +1 -11
- package/dist/components/tooltip-styles.css +1 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/themes/color.d.ts +52 -0
- package/dist/themes/color.js +91 -0
- package/dist/themes/generator.d.ts +41 -0
- package/dist/themes/generator.js +174 -0
- package/dist/themes/index.d.ts +3 -0
- package/dist/themes/index.js +4 -0
- package/dist/themes/presets.d.ts +445 -0
- package/dist/themes/presets.js +144 -0
- package/dist/themes/schema.d.ts +47 -0
- package/dist/themes/schema.js +34 -0
- package/package.json +18 -4
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
export namespace DEFAULT {
|
|
2
|
+
namespace common {
|
|
3
|
+
let primary: string;
|
|
4
|
+
let secondary: string;
|
|
5
|
+
let info: string;
|
|
6
|
+
let success: string;
|
|
7
|
+
let warning: string;
|
|
8
|
+
let error: string;
|
|
9
|
+
let textOnPrimary: string;
|
|
10
|
+
let buttonRadius: string;
|
|
11
|
+
let cardRadius: string;
|
|
12
|
+
let inputRadius: string;
|
|
13
|
+
let borderWidth: string;
|
|
14
|
+
}
|
|
15
|
+
namespace light {
|
|
16
|
+
let text: string;
|
|
17
|
+
let surface: string;
|
|
18
|
+
let cardSurface: string;
|
|
19
|
+
}
|
|
20
|
+
namespace dark {
|
|
21
|
+
let text_1: any;
|
|
22
|
+
export { text_1 as text };
|
|
23
|
+
let surface_1: any;
|
|
24
|
+
export { surface_1 as surface };
|
|
25
|
+
let cardSurface_1: any;
|
|
26
|
+
export { cardSurface_1 as cardSurface };
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export namespace ocean {
|
|
30
|
+
export namespace common_1 {
|
|
31
|
+
let primary_1: string;
|
|
32
|
+
export { primary_1 as primary };
|
|
33
|
+
let secondary_1: string;
|
|
34
|
+
export { secondary_1 as secondary };
|
|
35
|
+
let info_1: string;
|
|
36
|
+
export { info_1 as info };
|
|
37
|
+
let success_1: string;
|
|
38
|
+
export { success_1 as success };
|
|
39
|
+
let warning_1: string;
|
|
40
|
+
export { warning_1 as warning };
|
|
41
|
+
let error_1: string;
|
|
42
|
+
export { error_1 as error };
|
|
43
|
+
let textOnPrimary_1: string;
|
|
44
|
+
export { textOnPrimary_1 as textOnPrimary };
|
|
45
|
+
let buttonRadius_1: string;
|
|
46
|
+
export { buttonRadius_1 as buttonRadius };
|
|
47
|
+
let cardRadius_1: string;
|
|
48
|
+
export { cardRadius_1 as cardRadius };
|
|
49
|
+
let inputRadius_1: string;
|
|
50
|
+
export { inputRadius_1 as inputRadius };
|
|
51
|
+
let borderWidth_1: string;
|
|
52
|
+
export { borderWidth_1 as borderWidth };
|
|
53
|
+
}
|
|
54
|
+
export { common_1 as common };
|
|
55
|
+
export namespace light_1 {
|
|
56
|
+
let text_2: string;
|
|
57
|
+
export { text_2 as text };
|
|
58
|
+
let surface_2: string;
|
|
59
|
+
export { surface_2 as surface };
|
|
60
|
+
let cardSurface_2: string;
|
|
61
|
+
export { cardSurface_2 as cardSurface };
|
|
62
|
+
}
|
|
63
|
+
export { light_1 as light };
|
|
64
|
+
export namespace dark_1 {
|
|
65
|
+
let text_3: any;
|
|
66
|
+
export { text_3 as text };
|
|
67
|
+
let surface_3: any;
|
|
68
|
+
export { surface_3 as surface };
|
|
69
|
+
let cardSurface_3: any;
|
|
70
|
+
export { cardSurface_3 as cardSurface };
|
|
71
|
+
}
|
|
72
|
+
export { dark_1 as dark };
|
|
73
|
+
}
|
|
74
|
+
export namespace forest {
|
|
75
|
+
export namespace common_2 {
|
|
76
|
+
let primary_2: string;
|
|
77
|
+
export { primary_2 as primary };
|
|
78
|
+
let secondary_2: string;
|
|
79
|
+
export { secondary_2 as secondary };
|
|
80
|
+
let info_2: string;
|
|
81
|
+
export { info_2 as info };
|
|
82
|
+
let success_2: string;
|
|
83
|
+
export { success_2 as success };
|
|
84
|
+
let warning_2: string;
|
|
85
|
+
export { warning_2 as warning };
|
|
86
|
+
let error_2: string;
|
|
87
|
+
export { error_2 as error };
|
|
88
|
+
let textOnPrimary_2: string;
|
|
89
|
+
export { textOnPrimary_2 as textOnPrimary };
|
|
90
|
+
let buttonRadius_2: string;
|
|
91
|
+
export { buttonRadius_2 as buttonRadius };
|
|
92
|
+
let cardRadius_2: string;
|
|
93
|
+
export { cardRadius_2 as cardRadius };
|
|
94
|
+
let inputRadius_2: string;
|
|
95
|
+
export { inputRadius_2 as inputRadius };
|
|
96
|
+
let borderWidth_2: string;
|
|
97
|
+
export { borderWidth_2 as borderWidth };
|
|
98
|
+
}
|
|
99
|
+
export { common_2 as common };
|
|
100
|
+
export namespace light_2 {
|
|
101
|
+
let text_4: string;
|
|
102
|
+
export { text_4 as text };
|
|
103
|
+
let surface_4: string;
|
|
104
|
+
export { surface_4 as surface };
|
|
105
|
+
let cardSurface_4: string;
|
|
106
|
+
export { cardSurface_4 as cardSurface };
|
|
107
|
+
}
|
|
108
|
+
export { light_2 as light };
|
|
109
|
+
export namespace dark_2 {
|
|
110
|
+
let text_5: any;
|
|
111
|
+
export { text_5 as text };
|
|
112
|
+
let surface_5: any;
|
|
113
|
+
export { surface_5 as surface };
|
|
114
|
+
let cardSurface_5: any;
|
|
115
|
+
export { cardSurface_5 as cardSurface };
|
|
116
|
+
}
|
|
117
|
+
export { dark_2 as dark };
|
|
118
|
+
}
|
|
119
|
+
export namespace rose {
|
|
120
|
+
export namespace common_3 {
|
|
121
|
+
let primary_3: string;
|
|
122
|
+
export { primary_3 as primary };
|
|
123
|
+
let secondary_3: string;
|
|
124
|
+
export { secondary_3 as secondary };
|
|
125
|
+
let info_3: string;
|
|
126
|
+
export { info_3 as info };
|
|
127
|
+
let success_3: string;
|
|
128
|
+
export { success_3 as success };
|
|
129
|
+
let warning_3: string;
|
|
130
|
+
export { warning_3 as warning };
|
|
131
|
+
let error_3: string;
|
|
132
|
+
export { error_3 as error };
|
|
133
|
+
let textOnPrimary_3: string;
|
|
134
|
+
export { textOnPrimary_3 as textOnPrimary };
|
|
135
|
+
let buttonRadius_3: string;
|
|
136
|
+
export { buttonRadius_3 as buttonRadius };
|
|
137
|
+
let cardRadius_3: string;
|
|
138
|
+
export { cardRadius_3 as cardRadius };
|
|
139
|
+
let inputRadius_3: string;
|
|
140
|
+
export { inputRadius_3 as inputRadius };
|
|
141
|
+
let borderWidth_3: string;
|
|
142
|
+
export { borderWidth_3 as borderWidth };
|
|
143
|
+
}
|
|
144
|
+
export { common_3 as common };
|
|
145
|
+
export namespace light_3 {
|
|
146
|
+
let text_6: string;
|
|
147
|
+
export { text_6 as text };
|
|
148
|
+
let surface_6: string;
|
|
149
|
+
export { surface_6 as surface };
|
|
150
|
+
let cardSurface_6: string;
|
|
151
|
+
export { cardSurface_6 as cardSurface };
|
|
152
|
+
}
|
|
153
|
+
export { light_3 as light };
|
|
154
|
+
export namespace dark_3 {
|
|
155
|
+
let text_7: any;
|
|
156
|
+
export { text_7 as text };
|
|
157
|
+
let surface_7: any;
|
|
158
|
+
export { surface_7 as surface };
|
|
159
|
+
let cardSurface_7: any;
|
|
160
|
+
export { cardSurface_7 as cardSurface };
|
|
161
|
+
}
|
|
162
|
+
export { dark_3 as dark };
|
|
163
|
+
}
|
|
164
|
+
export namespace midnight {
|
|
165
|
+
export namespace common_4 {
|
|
166
|
+
let primary_4: string;
|
|
167
|
+
export { primary_4 as primary };
|
|
168
|
+
let secondary_4: string;
|
|
169
|
+
export { secondary_4 as secondary };
|
|
170
|
+
let info_4: string;
|
|
171
|
+
export { info_4 as info };
|
|
172
|
+
let success_4: string;
|
|
173
|
+
export { success_4 as success };
|
|
174
|
+
let warning_4: string;
|
|
175
|
+
export { warning_4 as warning };
|
|
176
|
+
let error_4: string;
|
|
177
|
+
export { error_4 as error };
|
|
178
|
+
let textOnPrimary_4: string;
|
|
179
|
+
export { textOnPrimary_4 as textOnPrimary };
|
|
180
|
+
let buttonRadius_4: string;
|
|
181
|
+
export { buttonRadius_4 as buttonRadius };
|
|
182
|
+
let cardRadius_4: string;
|
|
183
|
+
export { cardRadius_4 as cardRadius };
|
|
184
|
+
let inputRadius_4: string;
|
|
185
|
+
export { inputRadius_4 as inputRadius };
|
|
186
|
+
let borderWidth_4: string;
|
|
187
|
+
export { borderWidth_4 as borderWidth };
|
|
188
|
+
}
|
|
189
|
+
export { common_4 as common };
|
|
190
|
+
export namespace light_4 {
|
|
191
|
+
let text_8: string;
|
|
192
|
+
export { text_8 as text };
|
|
193
|
+
let surface_8: string;
|
|
194
|
+
export { surface_8 as surface };
|
|
195
|
+
let cardSurface_8: string;
|
|
196
|
+
export { cardSurface_8 as cardSurface };
|
|
197
|
+
}
|
|
198
|
+
export { light_4 as light };
|
|
199
|
+
export namespace dark_4 {
|
|
200
|
+
let text_9: string;
|
|
201
|
+
export { text_9 as text };
|
|
202
|
+
let surface_9: string;
|
|
203
|
+
export { surface_9 as surface };
|
|
204
|
+
let cardSurface_9: string;
|
|
205
|
+
export { cardSurface_9 as cardSurface };
|
|
206
|
+
}
|
|
207
|
+
export { dark_4 as dark };
|
|
208
|
+
}
|
|
209
|
+
export namespace gold {
|
|
210
|
+
export namespace common_5 {
|
|
211
|
+
let primary_5: string;
|
|
212
|
+
export { primary_5 as primary };
|
|
213
|
+
let secondary_5: string;
|
|
214
|
+
export { secondary_5 as secondary };
|
|
215
|
+
let info_5: string;
|
|
216
|
+
export { info_5 as info };
|
|
217
|
+
let success_5: string;
|
|
218
|
+
export { success_5 as success };
|
|
219
|
+
let warning_5: string;
|
|
220
|
+
export { warning_5 as warning };
|
|
221
|
+
let error_5: string;
|
|
222
|
+
export { error_5 as error };
|
|
223
|
+
let textOnPrimary_5: string;
|
|
224
|
+
export { textOnPrimary_5 as textOnPrimary };
|
|
225
|
+
let buttonRadius_5: string;
|
|
226
|
+
export { buttonRadius_5 as buttonRadius };
|
|
227
|
+
let cardRadius_5: string;
|
|
228
|
+
export { cardRadius_5 as cardRadius };
|
|
229
|
+
let inputRadius_5: string;
|
|
230
|
+
export { inputRadius_5 as inputRadius };
|
|
231
|
+
let borderWidth_5: string;
|
|
232
|
+
export { borderWidth_5 as borderWidth };
|
|
233
|
+
}
|
|
234
|
+
export { common_5 as common };
|
|
235
|
+
export namespace light_5 {
|
|
236
|
+
let text_10: string;
|
|
237
|
+
export { text_10 as text };
|
|
238
|
+
let surface_10: string;
|
|
239
|
+
export { surface_10 as surface };
|
|
240
|
+
let cardSurface_10: string;
|
|
241
|
+
export { cardSurface_10 as cardSurface };
|
|
242
|
+
}
|
|
243
|
+
export { light_5 as light };
|
|
244
|
+
export namespace dark_5 {
|
|
245
|
+
let text_11: any;
|
|
246
|
+
export { text_11 as text };
|
|
247
|
+
let surface_11: any;
|
|
248
|
+
export { surface_11 as surface };
|
|
249
|
+
let cardSurface_11: any;
|
|
250
|
+
export { cardSurface_11 as cardSurface };
|
|
251
|
+
}
|
|
252
|
+
export { dark_5 as dark };
|
|
253
|
+
}
|
|
254
|
+
export namespace slate {
|
|
255
|
+
export namespace common_6 {
|
|
256
|
+
let primary_6: string;
|
|
257
|
+
export { primary_6 as primary };
|
|
258
|
+
let secondary_6: string;
|
|
259
|
+
export { secondary_6 as secondary };
|
|
260
|
+
let info_6: string;
|
|
261
|
+
export { info_6 as info };
|
|
262
|
+
let success_6: string;
|
|
263
|
+
export { success_6 as success };
|
|
264
|
+
let warning_6: string;
|
|
265
|
+
export { warning_6 as warning };
|
|
266
|
+
let error_6: string;
|
|
267
|
+
export { error_6 as error };
|
|
268
|
+
let textOnPrimary_6: string;
|
|
269
|
+
export { textOnPrimary_6 as textOnPrimary };
|
|
270
|
+
let buttonRadius_6: string;
|
|
271
|
+
export { buttonRadius_6 as buttonRadius };
|
|
272
|
+
let cardRadius_6: string;
|
|
273
|
+
export { cardRadius_6 as cardRadius };
|
|
274
|
+
let inputRadius_6: string;
|
|
275
|
+
export { inputRadius_6 as inputRadius };
|
|
276
|
+
let borderWidth_6: string;
|
|
277
|
+
export { borderWidth_6 as borderWidth };
|
|
278
|
+
}
|
|
279
|
+
export { common_6 as common };
|
|
280
|
+
export namespace light_6 {
|
|
281
|
+
let text_12: string;
|
|
282
|
+
export { text_12 as text };
|
|
283
|
+
let surface_12: string;
|
|
284
|
+
export { surface_12 as surface };
|
|
285
|
+
let cardSurface_12: string;
|
|
286
|
+
export { cardSurface_12 as cardSurface };
|
|
287
|
+
}
|
|
288
|
+
export { light_6 as light };
|
|
289
|
+
export namespace dark_6 {
|
|
290
|
+
let text_13: any;
|
|
291
|
+
export { text_13 as text };
|
|
292
|
+
let surface_13: any;
|
|
293
|
+
export { surface_13 as surface };
|
|
294
|
+
let cardSurface_13: any;
|
|
295
|
+
export { cardSurface_13 as cardSurface };
|
|
296
|
+
}
|
|
297
|
+
export { dark_6 as dark };
|
|
298
|
+
}
|
|
299
|
+
export namespace candy {
|
|
300
|
+
export namespace common_7 {
|
|
301
|
+
let primary_7: string;
|
|
302
|
+
export { primary_7 as primary };
|
|
303
|
+
let secondary_7: string;
|
|
304
|
+
export { secondary_7 as secondary };
|
|
305
|
+
let info_7: string;
|
|
306
|
+
export { info_7 as info };
|
|
307
|
+
let success_7: string;
|
|
308
|
+
export { success_7 as success };
|
|
309
|
+
let warning_7: string;
|
|
310
|
+
export { warning_7 as warning };
|
|
311
|
+
let error_7: string;
|
|
312
|
+
export { error_7 as error };
|
|
313
|
+
let textOnPrimary_7: string;
|
|
314
|
+
export { textOnPrimary_7 as textOnPrimary };
|
|
315
|
+
let buttonRadius_7: string;
|
|
316
|
+
export { buttonRadius_7 as buttonRadius };
|
|
317
|
+
let cardRadius_7: string;
|
|
318
|
+
export { cardRadius_7 as cardRadius };
|
|
319
|
+
let inputRadius_7: string;
|
|
320
|
+
export { inputRadius_7 as inputRadius };
|
|
321
|
+
let borderWidth_7: string;
|
|
322
|
+
export { borderWidth_7 as borderWidth };
|
|
323
|
+
}
|
|
324
|
+
export { common_7 as common };
|
|
325
|
+
export namespace light_7 {
|
|
326
|
+
let text_14: string;
|
|
327
|
+
export { text_14 as text };
|
|
328
|
+
let surface_14: string;
|
|
329
|
+
export { surface_14 as surface };
|
|
330
|
+
let cardSurface_14: string;
|
|
331
|
+
export { cardSurface_14 as cardSurface };
|
|
332
|
+
}
|
|
333
|
+
export { light_7 as light };
|
|
334
|
+
export namespace dark_7 {
|
|
335
|
+
let text_15: any;
|
|
336
|
+
export { text_15 as text };
|
|
337
|
+
let surface_15: any;
|
|
338
|
+
export { surface_15 as surface };
|
|
339
|
+
let cardSurface_15: any;
|
|
340
|
+
export { cardSurface_15 as cardSurface };
|
|
341
|
+
}
|
|
342
|
+
export { dark_7 as dark };
|
|
343
|
+
}
|
|
344
|
+
export namespace storm {
|
|
345
|
+
export namespace common_8 {
|
|
346
|
+
let primary_8: string;
|
|
347
|
+
export { primary_8 as primary };
|
|
348
|
+
let secondary_8: string;
|
|
349
|
+
export { secondary_8 as secondary };
|
|
350
|
+
let info_8: string;
|
|
351
|
+
export { info_8 as info };
|
|
352
|
+
let success_8: string;
|
|
353
|
+
export { success_8 as success };
|
|
354
|
+
let warning_8: string;
|
|
355
|
+
export { warning_8 as warning };
|
|
356
|
+
let error_8: string;
|
|
357
|
+
export { error_8 as error };
|
|
358
|
+
let textOnPrimary_8: string;
|
|
359
|
+
export { textOnPrimary_8 as textOnPrimary };
|
|
360
|
+
let buttonRadius_8: string;
|
|
361
|
+
export { buttonRadius_8 as buttonRadius };
|
|
362
|
+
let cardRadius_8: string;
|
|
363
|
+
export { cardRadius_8 as cardRadius };
|
|
364
|
+
let inputRadius_8: string;
|
|
365
|
+
export { inputRadius_8 as inputRadius };
|
|
366
|
+
let borderWidth_8: string;
|
|
367
|
+
export { borderWidth_8 as borderWidth };
|
|
368
|
+
}
|
|
369
|
+
export { common_8 as common };
|
|
370
|
+
export namespace light_8 {
|
|
371
|
+
let text_16: string;
|
|
372
|
+
export { text_16 as text };
|
|
373
|
+
let surface_16: string;
|
|
374
|
+
export { surface_16 as surface };
|
|
375
|
+
let cardSurface_16: string;
|
|
376
|
+
export { cardSurface_16 as cardSurface };
|
|
377
|
+
}
|
|
378
|
+
export { light_8 as light };
|
|
379
|
+
export namespace dark_8 {
|
|
380
|
+
let text_17: string;
|
|
381
|
+
export { text_17 as text };
|
|
382
|
+
let surface_17: string;
|
|
383
|
+
export { surface_17 as surface };
|
|
384
|
+
let cardSurface_17: string;
|
|
385
|
+
export { cardSurface_17 as cardSurface };
|
|
386
|
+
}
|
|
387
|
+
export { dark_8 as dark };
|
|
388
|
+
}
|
|
389
|
+
export namespace royal {
|
|
390
|
+
export namespace common_9 {
|
|
391
|
+
let primary_9: string;
|
|
392
|
+
export { primary_9 as primary };
|
|
393
|
+
let secondary_9: string;
|
|
394
|
+
export { secondary_9 as secondary };
|
|
395
|
+
let info_9: string;
|
|
396
|
+
export { info_9 as info };
|
|
397
|
+
let success_9: string;
|
|
398
|
+
export { success_9 as success };
|
|
399
|
+
let warning_9: string;
|
|
400
|
+
export { warning_9 as warning };
|
|
401
|
+
let error_9: string;
|
|
402
|
+
export { error_9 as error };
|
|
403
|
+
let textOnPrimary_9: string;
|
|
404
|
+
export { textOnPrimary_9 as textOnPrimary };
|
|
405
|
+
let buttonRadius_9: string;
|
|
406
|
+
export { buttonRadius_9 as buttonRadius };
|
|
407
|
+
let cardRadius_9: string;
|
|
408
|
+
export { cardRadius_9 as cardRadius };
|
|
409
|
+
let inputRadius_9: string;
|
|
410
|
+
export { inputRadius_9 as inputRadius };
|
|
411
|
+
let borderWidth_9: string;
|
|
412
|
+
export { borderWidth_9 as borderWidth };
|
|
413
|
+
}
|
|
414
|
+
export { common_9 as common };
|
|
415
|
+
export namespace light_9 {
|
|
416
|
+
let text_18: string;
|
|
417
|
+
export { text_18 as text };
|
|
418
|
+
let surface_18: string;
|
|
419
|
+
export { surface_18 as surface };
|
|
420
|
+
let cardSurface_18: string;
|
|
421
|
+
export { cardSurface_18 as cardSurface };
|
|
422
|
+
}
|
|
423
|
+
export { light_9 as light };
|
|
424
|
+
export namespace dark_9 {
|
|
425
|
+
let text_19: string;
|
|
426
|
+
export { text_19 as text };
|
|
427
|
+
let surface_19: string;
|
|
428
|
+
export { surface_19 as surface };
|
|
429
|
+
let cardSurface_19: string;
|
|
430
|
+
export { cardSurface_19 as cardSurface };
|
|
431
|
+
}
|
|
432
|
+
export { dark_9 as dark };
|
|
433
|
+
}
|
|
434
|
+
export namespace themes {
|
|
435
|
+
export { DEFAULT as default };
|
|
436
|
+
export { ocean };
|
|
437
|
+
export { forest };
|
|
438
|
+
export { rose };
|
|
439
|
+
export { midnight };
|
|
440
|
+
export { gold };
|
|
441
|
+
export { slate };
|
|
442
|
+
export { candy };
|
|
443
|
+
export { storm };
|
|
444
|
+
export { royal };
|
|
445
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/* ===== Theme presets =====
|
|
2
|
+
* Only the fields below are configurable. All other --t-* tokens are derived
|
|
3
|
+
* by generator.js (hint/muted/disabled = 50% text; card-bg = surface;
|
|
4
|
+
* card-border/surface-bg/brand-text from text+surface; status-text = status).
|
|
5
|
+
*
|
|
6
|
+
* dark.text/surface/cardSurface:
|
|
7
|
+
* null -> HSL-invert from the light counterpart (default behavior)
|
|
8
|
+
* "<hex>" -> explicit override (used by dark-native themes so their
|
|
9
|
+
* already-dark light palette is not flipped to light)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export const DEFAULT = {
|
|
13
|
+
common: {
|
|
14
|
+
primary: "#2563eb",
|
|
15
|
+
secondary: "#3b82f6",
|
|
16
|
+
info: "#3b82f6",
|
|
17
|
+
success: "#22c55e",
|
|
18
|
+
warning: "#eab308",
|
|
19
|
+
error: "#ef4444",
|
|
20
|
+
textOnPrimary: "#ffffff",
|
|
21
|
+
buttonRadius: "8px",
|
|
22
|
+
cardRadius: "12px",
|
|
23
|
+
inputRadius: "8px",
|
|
24
|
+
borderWidth: "1.5px",
|
|
25
|
+
},
|
|
26
|
+
light: { text: "#0f172a", surface: "#ffffff", cardSurface: "#f8fafc" },
|
|
27
|
+
dark: { text: null, surface: null, cardSurface: null },
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const ocean = {
|
|
31
|
+
common: {
|
|
32
|
+
primary: "#0ea5e9", secondary: "#06b6d4",
|
|
33
|
+
info: "#0ea5e9", success: "#22c55e", warning: "#eab308", error: "#f43f5e",
|
|
34
|
+
textOnPrimary: "#ffffff",
|
|
35
|
+
buttonRadius: "10px", cardRadius: "12px", inputRadius: "8px", borderWidth: "1.5px",
|
|
36
|
+
},
|
|
37
|
+
light: { text: "#0c4a6e", surface: "#ffffff", cardSurface: "#e0f2fe" },
|
|
38
|
+
dark: { text: null, surface: null, cardSurface: null },
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const forest = {
|
|
42
|
+
common: {
|
|
43
|
+
primary: "#22c55e", secondary: "#16a34a",
|
|
44
|
+
info: "#06b6d4", success: "#16a34a", warning: "#eab308", error: "#ef4444",
|
|
45
|
+
textOnPrimary: "#ffffff",
|
|
46
|
+
buttonRadius: "8px", cardRadius: "12px", inputRadius: "8px", borderWidth: "1.5px",
|
|
47
|
+
},
|
|
48
|
+
light: { text: "#14532d", surface: "#ffffff", cardSurface: "#dcfce7" },
|
|
49
|
+
dark: { text: null, surface: null, cardSurface: null },
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const rose = {
|
|
53
|
+
common: {
|
|
54
|
+
primary: "#f43f5e", secondary: "#e11d48",
|
|
55
|
+
info: "#fb7185", success: "#22c55e", warning: "#facc15", error: "#e11d48",
|
|
56
|
+
textOnPrimary: "#ffffff",
|
|
57
|
+
buttonRadius: "12px", cardRadius: "14px", inputRadius: "8px", borderWidth: "1.5px",
|
|
58
|
+
},
|
|
59
|
+
light: { text: "#881337", surface: "#ffffff", cardSurface: "#ffe4e6" },
|
|
60
|
+
dark: { text: null, surface: null, cardSurface: null },
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// Dark-native: light mode is already dark; dark.* explicit so inversion does not flip to light.
|
|
64
|
+
export const midnight = {
|
|
65
|
+
common: {
|
|
66
|
+
primary: "#818cf8", secondary: "#6366f1",
|
|
67
|
+
info: "#818cf8", success: "#4ade80", warning: "#facc15", error: "#fb7185",
|
|
68
|
+
textOnPrimary: "#ffffff",
|
|
69
|
+
buttonRadius: "8px", cardRadius: "12px", inputRadius: "8px", borderWidth: "1.5px",
|
|
70
|
+
},
|
|
71
|
+
light: { text: "#e0e7ff", surface: "#1e1b4b", cardSurface: "#312e81" },
|
|
72
|
+
dark: { text: "#e0e7ff", surface: "#0f0d2e", cardSurface: "#312e81" },
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const gold = {
|
|
76
|
+
common: {
|
|
77
|
+
primary: "#eab308", secondary: "#ca8a04",
|
|
78
|
+
info: "#38bdf8", success: "#22c55e", warning: "#eab308", error: "#ef4444",
|
|
79
|
+
textOnPrimary: "#ffffff",
|
|
80
|
+
buttonRadius: "8px", cardRadius: "10px", inputRadius: "8px", borderWidth: "1.5px",
|
|
81
|
+
},
|
|
82
|
+
light: { text: "#713f12", surface: "#ffffff", cardSurface: "#fef9c3" },
|
|
83
|
+
dark: { text: null, surface: null, cardSurface: null },
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const slate = {
|
|
87
|
+
common: {
|
|
88
|
+
primary: "#64748b", secondary: "#475569",
|
|
89
|
+
info: "#0ea5e9", success: "#22c55e", warning: "#facc15", error: "#f43f5e",
|
|
90
|
+
textOnPrimary: "#ffffff",
|
|
91
|
+
buttonRadius: "6px", cardRadius: "8px", inputRadius: "6px", borderWidth: "1px",
|
|
92
|
+
},
|
|
93
|
+
light: { text: "#1e293b", surface: "#ffffff", cardSurface: "#f1f5f9" },
|
|
94
|
+
dark: { text: null, surface: null, cardSurface: null },
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export const candy = {
|
|
98
|
+
common: {
|
|
99
|
+
primary: "#ec4899", secondary: "#f472b6",
|
|
100
|
+
info: "#06b6d4", success: "#22c55e", warning: "#facc15", error: "#ec4899",
|
|
101
|
+
textOnPrimary: "#ffffff",
|
|
102
|
+
buttonRadius: "20px", cardRadius: "24px", inputRadius: "12px", borderWidth: "1.5px",
|
|
103
|
+
},
|
|
104
|
+
light: { text: "#831843", surface: "#ffffff", cardSurface: "#fce7f3" },
|
|
105
|
+
dark: { text: null, surface: null, cardSurface: null },
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
// Dark-native
|
|
109
|
+
export const storm = {
|
|
110
|
+
common: {
|
|
111
|
+
primary: "#94a3b8", secondary: "#64748b",
|
|
112
|
+
info: "#0ea5e9", success: "#22c55e", warning: "#facc15", error: "#fb7185",
|
|
113
|
+
textOnPrimary: "#ffffff",
|
|
114
|
+
buttonRadius: "6px", cardRadius: "10px", inputRadius: "6px", borderWidth: "1px",
|
|
115
|
+
},
|
|
116
|
+
light: { text: "#e2e8f0", surface: "#0f172a", cardSurface: "#334155" },
|
|
117
|
+
dark: { text: "#e2e8f0", surface: "#0a0f1a", cardSurface: "#1e293b" },
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// Dark-native
|
|
121
|
+
export const royal = {
|
|
122
|
+
common: {
|
|
123
|
+
primary: "#7c3aed", secondary: "#6d28d9",
|
|
124
|
+
info: "#38bdf8", success: "#4ade80", warning: "#facc15", error: "#fb7185",
|
|
125
|
+
textOnPrimary: "#ffffff",
|
|
126
|
+
buttonRadius: "8px", cardRadius: "12px", inputRadius: "8px", borderWidth: "1.5px",
|
|
127
|
+
},
|
|
128
|
+
light: { text: "#ddd6fe", surface: "#2e1065", cardSurface: "#4c1d95" },
|
|
129
|
+
dark: { text: "#ddd6fe", surface: "#1a0840", cardSurface: "#3b0764" },
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
/** All presets keyed by name. */
|
|
133
|
+
export const themes = {
|
|
134
|
+
default: DEFAULT,
|
|
135
|
+
ocean,
|
|
136
|
+
forest,
|
|
137
|
+
rose,
|
|
138
|
+
midnight,
|
|
139
|
+
gold,
|
|
140
|
+
slate,
|
|
141
|
+
candy,
|
|
142
|
+
storm,
|
|
143
|
+
royal,
|
|
144
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type ThemeCommon = {
|
|
2
|
+
primary: string;
|
|
3
|
+
secondary: string;
|
|
4
|
+
info: string;
|
|
5
|
+
success: string;
|
|
6
|
+
warning: string;
|
|
7
|
+
error: string;
|
|
8
|
+
/**
|
|
9
|
+
* text color when background is primary
|
|
10
|
+
*/
|
|
11
|
+
textOnPrimary: string;
|
|
12
|
+
/**
|
|
13
|
+
* css length
|
|
14
|
+
*/
|
|
15
|
+
buttonRadius: string;
|
|
16
|
+
/**
|
|
17
|
+
* css length
|
|
18
|
+
*/
|
|
19
|
+
cardRadius: string;
|
|
20
|
+
/**
|
|
21
|
+
* css length
|
|
22
|
+
*/
|
|
23
|
+
inputRadius: string;
|
|
24
|
+
/**
|
|
25
|
+
* css length
|
|
26
|
+
*/
|
|
27
|
+
borderWidth: string;
|
|
28
|
+
};
|
|
29
|
+
export type ThemeMode = {
|
|
30
|
+
text: string | null;
|
|
31
|
+
surface: string | null;
|
|
32
|
+
cardSurface: string | null;
|
|
33
|
+
};
|
|
34
|
+
export type ThemeConfig = {
|
|
35
|
+
/**
|
|
36
|
+
* applies to both light and dark
|
|
37
|
+
*/
|
|
38
|
+
common: ThemeCommon;
|
|
39
|
+
/**
|
|
40
|
+
* text/surface/cardSurface required (non-null hex)
|
|
41
|
+
*/
|
|
42
|
+
light: ThemeMode;
|
|
43
|
+
/**
|
|
44
|
+
* null = HSL-invert from the light counterpart
|
|
45
|
+
*/
|
|
46
|
+
dark: ThemeMode;
|
|
47
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* ===== Theme config types (JSDoc) =====
|
|
2
|
+
* No runtime code — type reference for presets.js / generator.js / editor.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @typedef {Object} ThemeCommon
|
|
7
|
+
* @property {string} primary
|
|
8
|
+
* @property {string} secondary
|
|
9
|
+
* @property {string} info
|
|
10
|
+
* @property {string} success
|
|
11
|
+
* @property {string} warning
|
|
12
|
+
* @property {string} error
|
|
13
|
+
* @property {string} textOnPrimary text color when background is primary
|
|
14
|
+
* @property {string} buttonRadius css length
|
|
15
|
+
* @property {string} cardRadius css length
|
|
16
|
+
* @property {string} inputRadius css length
|
|
17
|
+
* @property {string} borderWidth css length
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} ThemeMode
|
|
22
|
+
* @property {string|null} text
|
|
23
|
+
* @property {string|null} surface
|
|
24
|
+
* @property {string|null} cardSurface
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @typedef {Object} ThemeConfig
|
|
29
|
+
* @property {ThemeCommon} common applies to both light and dark
|
|
30
|
+
* @property {ThemeMode} light text/surface/cardSurface required (non-null hex)
|
|
31
|
+
* @property {ThemeMode} dark null = HSL-invert from the light counterpart
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
export {};
|