svelte-multistyle-ui 0.0.3-alpha → 0.0.5-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.
Files changed (77) hide show
  1. package/README.md +1 -1
  2. package/cli/bin.js +90 -0
  3. package/cli/emit.js +228 -0
  4. package/cli/fixtures/sample.expected.svelte +69 -0
  5. package/cli/fixtures/sample.yaml +128 -0
  6. package/cli/generate.js +68 -0
  7. package/cli/registry.js +95 -0
  8. package/cli/schema.js +145 -0
  9. package/dist/components/Button.svelte +3 -1
  10. package/dist/components/Button.svelte.d.ts +2 -0
  11. package/dist/components/DatePicker.svelte +176 -55
  12. package/dist/components/FAB.svelte +3 -1
  13. package/dist/components/FAB.svelte.d.ts +2 -0
  14. package/dist/components/IconButton.svelte +3 -1
  15. package/dist/components/IconButton.svelte.d.ts +2 -0
  16. package/dist/components/Input.svelte +3 -3
  17. package/dist/components/MultiSelect.svelte +19 -2
  18. package/dist/components/Select.svelte +4 -3
  19. package/dist/components/Stepper.svelte +91 -33
  20. package/dist/components/Textarea.svelte +1 -2
  21. package/dist/components/accordion-styles.css +1 -9
  22. package/dist/components/alert-styles.css +1 -4
  23. package/dist/components/avatar-styles.css +1 -4
  24. package/dist/components/breadcrumb-styles.css +1 -7
  25. package/dist/components/button-styles.css +44 -52
  26. package/dist/components/buttongroup-styles.css +1 -5
  27. package/dist/components/card-styles.css +1 -9
  28. package/dist/components/carousel-styles.css +1 -5
  29. package/dist/components/charts/Chart.svelte +63 -3
  30. package/dist/components/charts/chart-config.d.ts +27 -2
  31. package/dist/components/charts/chart-config.js +180 -67
  32. package/dist/components/charts/chart-styles.css +32 -17
  33. package/dist/components/checkbox-styles.css +2 -10
  34. package/dist/components/chip-styles.css +1 -4
  35. package/dist/components/commandpalette-styles.css +0 -4
  36. package/dist/components/datepicker-styles.css +967 -1011
  37. package/dist/components/divider-styles.css +1 -4
  38. package/dist/components/drawer-styles.css +0 -4
  39. package/dist/components/dropdown-styles.css +0 -5
  40. package/dist/components/fab-styles.css +18 -12
  41. package/dist/components/fileupload-styles.css +2 -10
  42. package/dist/components/iconbutton-styles.css +33 -34
  43. package/dist/components/input-styles.css +17 -50
  44. package/dist/components/modal-styles.css +0 -8
  45. package/dist/components/multiselect-styles.css +167 -31
  46. package/dist/components/pagination-styles.css +2 -5
  47. package/dist/components/popover-styles.css +0 -4
  48. package/dist/components/progressbar-styles.css +1 -5
  49. package/dist/components/radio-styles.css +1 -8
  50. package/dist/components/rating-styles.css +1 -4
  51. package/dist/components/select-styles.css +50 -21
  52. package/dist/components/skeleton-styles.css +1 -4
  53. package/dist/components/slider-styles.css +1 -5
  54. package/dist/components/sortablelist-styles.css +0 -13
  55. package/dist/components/spinner-styles.css +1 -4
  56. package/dist/components/stepper-styles.css +59 -8
  57. package/dist/components/table-styles.css +1 -5
  58. package/dist/components/tabs-styles.css +3 -7
  59. package/dist/components/textarea-styles.css +6 -19
  60. package/dist/components/theme-base.css +19 -2
  61. package/dist/components/theme.css +329 -333
  62. package/dist/components/toast-styles.css +1 -4
  63. package/dist/components/toggle-styles.css +1 -11
  64. package/dist/components/tooltip-styles.css +1 -4
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.js +3 -0
  67. package/dist/themes/color.d.ts +52 -0
  68. package/dist/themes/color.js +91 -0
  69. package/dist/themes/generator.d.ts +41 -0
  70. package/dist/themes/generator.js +174 -0
  71. package/dist/themes/index.d.ts +3 -0
  72. package/dist/themes/index.js +4 -0
  73. package/dist/themes/presets.d.ts +445 -0
  74. package/dist/themes/presets.js +144 -0
  75. package/dist/themes/schema.d.ts +47 -0
  76. package/dist/themes/schema.js +34 -0
  77. package/package.json +19 -4
@@ -1,440 +1,436 @@
1
- @import "./theme-base.css";
2
-
3
- /* ===== THEME PRESETS =====
4
- * Each preset overrides the base tokens. Users can also define their own
5
- * `.theme-*` class and apply it to a parent element, then pass the same
6
- * name to components via the `theme` prop.
1
+ /* AUTO-GENERATED by scripts/gen-theme.js — DO NOT EDIT BY HAND.
2
+ * Source: src/lib/themes/presets.js + generator.js
3
+ * Regenerate with: pnpm run gen:theme
7
4
  */
5
+ @import "./theme-base.css";
8
6
 
9
- /* 1. Default — Corporate blue (matches theme-base.css defaults) */
10
7
  .theme-default {
11
- /* No overrides needed; this is the base look. */
8
+ --t-primary: #2563eb;
9
+ --t-secondary: #3b82f6;
10
+ --t-info: #3b82f6;
11
+ --t-success: #22c55e;
12
+ --t-warning: #eab308;
13
+ --t-error: #ef4444;
14
+ --t-text-on-primary: #ffffff;
15
+ --t-surface: #ffffff;
16
+ --t-card-bg: #ffffff;
17
+ --t-card-surface: #f8fafc;
18
+ --t-card-border-color: color-mix(in srgb, #0f172a 14%, #ffffff);
19
+ --t-surface-bg: color-mix(in srgb, #ffffff 85%, #000);
20
+ --t-text: #0f172a;
21
+ --t-text-hint: color-mix(in srgb, #0f172a 50%, transparent);
22
+ --t-text-muted: color-mix(in srgb, #0f172a 50%, transparent);
23
+ --t-text-disabled: color-mix(in srgb, #0f172a 50%, transparent);
24
+ --t-text-primary: #2563eb;
25
+ --t-text-secondary: #3b82f6;
26
+ --t-text-info: #3b82f6;
27
+ --t-text-success: #22c55e;
28
+ --t-text-warning: #eab308;
29
+ --t-text-error: #ef4444;
30
+ --t-btn-bg: #2563eb;
31
+ --t-btn-border-color: transparent;
32
+ --t-btn-radius: 8px;
33
+ --t-card-radius: 12px;
34
+ --t-input-radius: 8px;
35
+ --t-border-width: 1.5px;
36
+ }
37
+
38
+ html.dark .theme-default {
39
+ --t-surface: hsl(0, 0%, 10%);
40
+ --t-card-bg: hsl(0, 0%, 10%);
41
+ --t-card-surface: hsl(210, 40%, 16%);
42
+ --t-card-border-color: color-mix(in srgb, hsl(222, 47%, 100%) 14%, hsl(0, 0%, 10%));
43
+ --t-surface-bg: color-mix(in srgb, hsl(0, 0%, 10%) 85%, #000);
44
+ --t-text: hsl(222, 47%, 100%);
45
+ --t-text-hint: color-mix(in srgb, hsl(222, 47%, 100%) 50%, transparent);
46
+ --t-text-muted: color-mix(in srgb, hsl(222, 47%, 100%) 50%, transparent);
47
+ --t-text-disabled: color-mix(in srgb, hsl(222, 47%, 100%) 50%, transparent);
12
48
  }
13
49
 
14
- /* 2. Ocean — Blue/cyan */
15
50
  .theme-ocean {
16
51
  --t-primary: #0ea5e9;
17
52
  --t-secondary: #06b6d4;
18
- --t-card-bg: #f0f9ff;
19
- --t-card-surface: #e0f2fe;
20
- --t-card-border-color: #bae6fd;
21
- --t-text: #0c4a6e;
22
- --t-text-hint: #7dd3fc;
23
- --t-text-primary: #0284c7;
24
- --t-text-secondary: #0891b2;
25
53
  --t-info: #0ea5e9;
26
54
  --t-success: #22c55e;
27
55
  --t-warning: #eab308;
28
56
  --t-error: #f43f5e;
29
- --t-text-info: #0369a1;
30
- --t-text-success: #15803d;
31
- --t-text-warning: #a16207;
32
- --t-text-error: #be123c;
33
- --t-surface-bg: #f0f9ff;
57
+ --t-text-on-primary: #ffffff;
58
+ --t-surface: #ffffff;
59
+ --t-card-bg: #ffffff;
60
+ --t-card-surface: #e0f2fe;
61
+ --t-card-border-color: color-mix(in srgb, #0c4a6e 14%, #ffffff);
62
+ --t-surface-bg: color-mix(in srgb, #ffffff 85%, #000);
63
+ --t-text: #0c4a6e;
64
+ --t-text-hint: color-mix(in srgb, #0c4a6e 50%, transparent);
65
+ --t-text-muted: color-mix(in srgb, #0c4a6e 50%, transparent);
66
+ --t-text-disabled: color-mix(in srgb, #0c4a6e 50%, transparent);
67
+ --t-text-primary: #0ea5e9;
68
+ --t-text-secondary: #06b6d4;
69
+ --t-text-info: #0ea5e9;
70
+ --t-text-success: #22c55e;
71
+ --t-text-warning: #eab308;
72
+ --t-text-error: #f43f5e;
34
73
  --t-btn-bg: #0ea5e9;
74
+ --t-btn-border-color: transparent;
35
75
  --t-btn-radius: 10px;
76
+ --t-card-radius: 12px;
77
+ --t-input-radius: 8px;
78
+ --t-border-width: 1.5px;
79
+ }
80
+
81
+ html.dark .theme-ocean {
82
+ --t-surface: hsl(0, 0%, 10%);
83
+ --t-card-bg: hsl(0, 0%, 10%);
84
+ --t-card-surface: hsl(204, 94%, 20%);
85
+ --t-card-border-color: color-mix(in srgb, hsl(202, 80%, 96%) 14%, hsl(0, 0%, 10%));
86
+ --t-surface-bg: color-mix(in srgb, hsl(0, 0%, 10%) 85%, #000);
87
+ --t-text: hsl(202, 80%, 96%);
88
+ --t-text-hint: color-mix(in srgb, hsl(202, 80%, 96%) 50%, transparent);
89
+ --t-text-muted: color-mix(in srgb, hsl(202, 80%, 96%) 50%, transparent);
90
+ --t-text-disabled: color-mix(in srgb, hsl(202, 80%, 96%) 50%, transparent);
36
91
  }
37
92
 
38
- /* 3. Forest — Green */
39
93
  .theme-forest {
40
94
  --t-primary: #22c55e;
41
95
  --t-secondary: #16a34a;
42
- --t-card-bg: #f0fdf4;
43
- --t-card-surface: #dcfce7;
44
- --t-card-border-color: #bbf7d0;
45
- --t-text: #14532d;
46
- --t-text-hint: #86efac;
47
- --t-text-primary: #16a34a;
48
- --t-text-secondary: #15803d;
49
96
  --t-info: #06b6d4;
50
97
  --t-success: #16a34a;
51
98
  --t-warning: #eab308;
52
99
  --t-error: #ef4444;
53
- --t-text-info: #0e7490;
54
- --t-text-success: #15803d;
55
- --t-text-warning: #a16207;
56
- --t-text-error: #b91c1c;
57
- --t-surface-bg: #f0fdf4;
100
+ --t-text-on-primary: #ffffff;
101
+ --t-surface: #ffffff;
102
+ --t-card-bg: #ffffff;
103
+ --t-card-surface: #dcfce7;
104
+ --t-card-border-color: color-mix(in srgb, #14532d 14%, #ffffff);
105
+ --t-surface-bg: color-mix(in srgb, #ffffff 85%, #000);
106
+ --t-text: #14532d;
107
+ --t-text-hint: color-mix(in srgb, #14532d 50%, transparent);
108
+ --t-text-muted: color-mix(in srgb, #14532d 50%, transparent);
109
+ --t-text-disabled: color-mix(in srgb, #14532d 50%, transparent);
110
+ --t-text-primary: #22c55e;
111
+ --t-text-secondary: #16a34a;
112
+ --t-text-info: #06b6d4;
113
+ --t-text-success: #16a34a;
114
+ --t-text-warning: #eab308;
115
+ --t-text-error: #ef4444;
58
116
  --t-btn-bg: #22c55e;
117
+ --t-btn-border-color: transparent;
118
+ --t-btn-radius: 8px;
119
+ --t-card-radius: 12px;
120
+ --t-input-radius: 8px;
121
+ --t-border-width: 1.5px;
122
+ }
123
+
124
+ html.dark .theme-forest {
125
+ --t-surface: hsl(0, 0%, 10%);
126
+ --t-card-bg: hsl(0, 0%, 10%);
127
+ --t-card-surface: hsl(141, 84%, 21%);
128
+ --t-card-border-color: color-mix(in srgb, hsl(144, 61%, 100%) 14%, hsl(0, 0%, 10%));
129
+ --t-surface-bg: color-mix(in srgb, hsl(0, 0%, 10%) 85%, #000);
130
+ --t-text: hsl(144, 61%, 100%);
131
+ --t-text-hint: color-mix(in srgb, hsl(144, 61%, 100%) 50%, transparent);
132
+ --t-text-muted: color-mix(in srgb, hsl(144, 61%, 100%) 50%, transparent);
133
+ --t-text-disabled: color-mix(in srgb, hsl(144, 61%, 100%) 50%, transparent);
59
134
  }
60
135
 
61
- /* 4. Rose — Pink/red */
62
136
  .theme-rose {
63
137
  --t-primary: #f43f5e;
64
138
  --t-secondary: #e11d48;
65
- --t-card-bg: #fff1f2;
66
- --t-card-surface: #ffe4e6;
67
- --t-card-border-color: #fecdd3;
68
- --t-text: #881337;
69
- --t-text-hint: #fda4af;
70
- --t-text-primary: #e11d48;
71
- --t-text-secondary: #be123c;
72
139
  --t-info: #fb7185;
73
140
  --t-success: #22c55e;
74
141
  --t-warning: #facc15;
75
142
  --t-error: #e11d48;
76
- --t-text-info: #be123c;
77
- --t-text-success: #16a34a;
78
- --t-text-warning: #a16207;
79
- --t-text-error: #be123c;
80
- --t-surface-bg: #fff1f2;
143
+ --t-text-on-primary: #ffffff;
144
+ --t-surface: #ffffff;
145
+ --t-card-bg: #ffffff;
146
+ --t-card-surface: #ffe4e6;
147
+ --t-card-border-color: color-mix(in srgb, #881337 14%, #ffffff);
148
+ --t-surface-bg: color-mix(in srgb, #ffffff 85%, #000);
149
+ --t-text: #881337;
150
+ --t-text-hint: color-mix(in srgb, #881337 50%, transparent);
151
+ --t-text-muted: color-mix(in srgb, #881337 50%, transparent);
152
+ --t-text-disabled: color-mix(in srgb, #881337 50%, transparent);
153
+ --t-text-primary: #f43f5e;
154
+ --t-text-secondary: #e11d48;
155
+ --t-text-info: #fb7185;
156
+ --t-text-success: #22c55e;
157
+ --t-text-warning: #facc15;
158
+ --t-text-error: #e11d48;
81
159
  --t-btn-bg: #f43f5e;
160
+ --t-btn-border-color: transparent;
82
161
  --t-btn-radius: 12px;
83
162
  --t-card-radius: 14px;
163
+ --t-input-radius: 8px;
164
+ --t-border-width: 1.5px;
165
+ }
166
+
167
+ html.dark .theme-rose {
168
+ --t-surface: hsl(0, 0%, 10%);
169
+ --t-card-bg: hsl(0, 0%, 10%);
170
+ --t-card-surface: hsl(356, 100%, 19%);
171
+ --t-card-border-color: color-mix(in srgb, hsl(342, 75%, 90%) 14%, hsl(0, 0%, 10%));
172
+ --t-surface-bg: color-mix(in srgb, hsl(0, 0%, 10%) 85%, #000);
173
+ --t-text: hsl(342, 75%, 90%);
174
+ --t-text-hint: color-mix(in srgb, hsl(342, 75%, 90%) 50%, transparent);
175
+ --t-text-muted: color-mix(in srgb, hsl(342, 75%, 90%) 50%, transparent);
176
+ --t-text-disabled: color-mix(in srgb, hsl(342, 75%, 90%) 50%, transparent);
84
177
  }
85
178
 
86
- /* 5. Midnight — Dark native, deep indigo */
87
179
  .theme-midnight {
88
180
  --t-primary: #818cf8;
89
181
  --t-secondary: #6366f1;
90
- --t-surface: #1e1b4b;
91
- --t-card-bg: #1e1b4b;
92
- --t-card-surface: #312e81;
93
- --t-card-border-color: #3730a3;
94
- --t-text: #e0e7ff;
95
- --t-text-hint: #6366f1;
96
- --t-text-primary: #a5b4fc;
97
- --t-text-secondary: #818cf8;
98
182
  --t-info: #818cf8;
99
183
  --t-success: #4ade80;
100
184
  --t-warning: #facc15;
101
185
  --t-error: #fb7185;
102
- --t-text-info: #c4b5fd;
103
- --t-text-success: #bbf7d0;
104
- --t-text-warning: #fef08a;
105
- --t-text-error: #fecdd3;
106
- --t-surface-bg: #0f0d2e;
186
+ --t-text-on-primary: #ffffff;
187
+ --t-surface: #1e1b4b;
188
+ --t-card-bg: #1e1b4b;
189
+ --t-card-surface: #312e81;
190
+ --t-card-border-color: color-mix(in srgb, #e0e7ff 14%, #1e1b4b);
191
+ --t-surface-bg: color-mix(in srgb, #1e1b4b 85%, #000);
192
+ --t-text: #e0e7ff;
193
+ --t-text-hint: color-mix(in srgb, #e0e7ff 50%, transparent);
194
+ --t-text-muted: color-mix(in srgb, #e0e7ff 50%, transparent);
195
+ --t-text-disabled: color-mix(in srgb, #e0e7ff 50%, transparent);
196
+ --t-text-primary: #818cf8;
197
+ --t-text-secondary: #6366f1;
198
+ --t-text-info: #818cf8;
199
+ --t-text-success: #4ade80;
200
+ --t-text-warning: #facc15;
201
+ --t-text-error: #fb7185;
107
202
  --t-btn-bg: #818cf8;
203
+ --t-btn-border-color: transparent;
204
+ --t-btn-radius: 8px;
205
+ --t-card-radius: 12px;
206
+ --t-input-radius: 8px;
207
+ --t-border-width: 1.5px;
208
+ }
209
+
210
+ html.dark .theme-midnight {
211
+ --t-surface: #0f0d2e;
212
+ --t-card-bg: #0f0d2e;
213
+ --t-card-surface: #312e81;
214
+ --t-card-border-color: color-mix(in srgb, #e0e7ff 14%, #0f0d2e);
215
+ --t-surface-bg: color-mix(in srgb, #0f0d2e 85%, #000);
216
+ --t-text: #e0e7ff;
217
+ --t-text-hint: color-mix(in srgb, #e0e7ff 50%, transparent);
218
+ --t-text-muted: color-mix(in srgb, #e0e7ff 50%, transparent);
219
+ --t-text-disabled: color-mix(in srgb, #e0e7ff 50%, transparent);
108
220
  }
109
221
 
110
- /* 6. Gold — Amber/yellow */
111
222
  .theme-gold {
112
223
  --t-primary: #eab308;
113
224
  --t-secondary: #ca8a04;
114
- --t-card-bg: #fefce8;
115
- --t-card-surface: #fef9c3;
116
- --t-card-border-color: #fde047;
117
- --t-text: #713f12;
118
- --t-text-hint: #facc15;
119
- --t-text-primary: #ca8a04;
120
- --t-text-secondary: #a16207;
121
225
  --t-info: #38bdf8;
122
226
  --t-success: #22c55e;
123
227
  --t-warning: #eab308;
124
228
  --t-error: #ef4444;
125
- --t-text-info: #0369a1;
126
- --t-text-success: #15803d;
127
- --t-text-warning: #a16207;
128
- --t-text-error: #b91c1c;
129
- --t-surface-bg: #fefce8;
229
+ --t-text-on-primary: #ffffff;
230
+ --t-surface: #ffffff;
231
+ --t-card-bg: #ffffff;
232
+ --t-card-surface: #fef9c3;
233
+ --t-card-border-color: color-mix(in srgb, #713f12 14%, #ffffff);
234
+ --t-surface-bg: color-mix(in srgb, #ffffff 85%, #000);
235
+ --t-text: #713f12;
236
+ --t-text-hint: color-mix(in srgb, #713f12 50%, transparent);
237
+ --t-text-muted: color-mix(in srgb, #713f12 50%, transparent);
238
+ --t-text-disabled: color-mix(in srgb, #713f12 50%, transparent);
239
+ --t-text-primary: #eab308;
240
+ --t-text-secondary: #ca8a04;
241
+ --t-text-info: #38bdf8;
242
+ --t-text-success: #22c55e;
243
+ --t-text-warning: #eab308;
244
+ --t-text-error: #ef4444;
130
245
  --t-btn-bg: #eab308;
246
+ --t-btn-border-color: transparent;
247
+ --t-btn-radius: 8px;
131
248
  --t-card-radius: 10px;
249
+ --t-input-radius: 8px;
250
+ --t-border-width: 1.5px;
251
+ }
252
+
253
+ html.dark .theme-gold {
254
+ --t-surface: hsl(0, 0%, 10%);
255
+ --t-card-bg: hsl(0, 0%, 10%);
256
+ --t-card-surface: hsl(55, 97%, 26%);
257
+ --t-card-border-color: color-mix(in srgb, hsl(28, 73%, 94%) 14%, hsl(0, 0%, 10%));
258
+ --t-surface-bg: color-mix(in srgb, hsl(0, 0%, 10%) 85%, #000);
259
+ --t-text: hsl(28, 73%, 94%);
260
+ --t-text-hint: color-mix(in srgb, hsl(28, 73%, 94%) 50%, transparent);
261
+ --t-text-muted: color-mix(in srgb, hsl(28, 73%, 94%) 50%, transparent);
262
+ --t-text-disabled: color-mix(in srgb, hsl(28, 73%, 94%) 50%, transparent);
132
263
  }
133
264
 
134
- /* 7. Slate — Gray, neutral, minimal */
135
265
  .theme-slate {
136
266
  --t-primary: #64748b;
137
267
  --t-secondary: #475569;
138
- --t-card-bg: #f8fafc;
268
+ --t-info: #0ea5e9;
269
+ --t-success: #22c55e;
270
+ --t-warning: #facc15;
271
+ --t-error: #f43f5e;
272
+ --t-text-on-primary: #ffffff;
273
+ --t-surface: #ffffff;
274
+ --t-card-bg: #ffffff;
139
275
  --t-card-surface: #f1f5f9;
140
- --t-card-border-color: #cbd5e1;
276
+ --t-card-border-color: color-mix(in srgb, #1e293b 14%, #ffffff);
277
+ --t-surface-bg: color-mix(in srgb, #ffffff 85%, #000);
141
278
  --t-text: #1e293b;
142
- --t-text-hint: #94a3b8;
143
- --t-text-primary: #475569;
144
- --t-text-secondary: #334155;
145
- --t-surface-bg: #f1f5f9;
279
+ --t-text-hint: color-mix(in srgb, #1e293b 50%, transparent);
280
+ --t-text-muted: color-mix(in srgb, #1e293b 50%, transparent);
281
+ --t-text-disabled: color-mix(in srgb, #1e293b 50%, transparent);
282
+ --t-text-primary: #64748b;
283
+ --t-text-secondary: #475569;
284
+ --t-text-info: #0ea5e9;
285
+ --t-text-success: #22c55e;
286
+ --t-text-warning: #facc15;
287
+ --t-text-error: #f43f5e;
146
288
  --t-btn-bg: #64748b;
147
- --t-border-width: 1px;
289
+ --t-btn-border-color: transparent;
148
290
  --t-btn-radius: 6px;
149
291
  --t-card-radius: 8px;
150
- --t-info: #0ea5e9;
151
- --t-success: #22c55e;
152
- --t-warning: #facc15;
153
- --t-error: #f43f5e;
154
- --t-text-info: #0369a1;
155
- --t-text-success: #15803d;
156
- --t-text-warning: #a16207;
157
- --t-text-error: #be123c;
292
+ --t-input-radius: 6px;
293
+ --t-border-width: 1px;
294
+ }
295
+
296
+ html.dark .theme-slate {
297
+ --t-surface: hsl(0, 0%, 10%);
298
+ --t-card-bg: hsl(0, 0%, 10%);
299
+ --t-card-surface: hsl(210, 40%, 18%);
300
+ --t-card-border-color: color-mix(in srgb, hsl(217, 33%, 100%) 14%, hsl(0, 0%, 10%));
301
+ --t-surface-bg: color-mix(in srgb, hsl(0, 0%, 10%) 85%, #000);
302
+ --t-text: hsl(217, 33%, 100%);
303
+ --t-text-hint: color-mix(in srgb, hsl(217, 33%, 100%) 50%, transparent);
304
+ --t-text-muted: color-mix(in srgb, hsl(217, 33%, 100%) 50%, transparent);
305
+ --t-text-disabled: color-mix(in srgb, hsl(217, 33%, 100%) 50%, transparent);
158
306
  }
159
307
 
160
- /* 8. Candy — Hot pink, playful */
161
308
  .theme-candy {
162
309
  --t-primary: #ec4899;
163
310
  --t-secondary: #f472b6;
164
- --t-card-bg: #fdf2f8;
311
+ --t-info: #06b6d4;
312
+ --t-success: #22c55e;
313
+ --t-warning: #facc15;
314
+ --t-error: #ec4899;
315
+ --t-text-on-primary: #ffffff;
316
+ --t-surface: #ffffff;
317
+ --t-card-bg: #ffffff;
165
318
  --t-card-surface: #fce7f3;
166
- --t-card-border-color: #f9a8d4;
319
+ --t-card-border-color: color-mix(in srgb, #831843 14%, #ffffff);
320
+ --t-surface-bg: color-mix(in srgb, #ffffff 85%, #000);
167
321
  --t-text: #831843;
168
- --t-text-hint: #f9a8d4;
169
- --t-text-primary: #db2777;
170
- --t-text-secondary: #be185d;
171
- --t-surface-bg: #fdf2f8;
322
+ --t-text-hint: color-mix(in srgb, #831843 50%, transparent);
323
+ --t-text-muted: color-mix(in srgb, #831843 50%, transparent);
324
+ --t-text-disabled: color-mix(in srgb, #831843 50%, transparent);
325
+ --t-text-primary: #ec4899;
326
+ --t-text-secondary: #f472b6;
327
+ --t-text-info: #06b6d4;
328
+ --t-text-success: #22c55e;
329
+ --t-text-warning: #facc15;
330
+ --t-text-error: #ec4899;
172
331
  --t-btn-bg: #ec4899;
332
+ --t-btn-border-color: transparent;
173
333
  --t-btn-radius: 20px;
174
334
  --t-card-radius: 24px;
175
- --t-info: #06b6d4;
176
- --t-success: #22c55e;
177
- --t-warning: #facc15;
178
- --t-error: #ec4899;
179
- --t-text-info: #0e7490;
180
- --t-text-success: #15803d;
181
- --t-text-warning: #a16207;
182
- --t-text-error: #be123c;
335
+ --t-input-radius: 12px;
336
+ --t-border-width: 1.5px;
337
+ }
338
+
339
+ html.dark .theme-candy {
340
+ --t-surface: hsl(0, 0%, 10%);
341
+ --t-card-bg: hsl(0, 0%, 10%);
342
+ --t-card-surface: hsl(326, 78%, 19%);
343
+ --t-card-border-color: color-mix(in srgb, hsl(336, 69%, 90%) 14%, hsl(0, 0%, 10%));
344
+ --t-surface-bg: color-mix(in srgb, hsl(0, 0%, 10%) 85%, #000);
345
+ --t-text: hsl(336, 69%, 90%);
346
+ --t-text-hint: color-mix(in srgb, hsl(336, 69%, 90%) 50%, transparent);
347
+ --t-text-muted: color-mix(in srgb, hsl(336, 69%, 90%) 50%, transparent);
348
+ --t-text-disabled: color-mix(in srgb, hsl(336, 69%, 90%) 50%, transparent);
183
349
  }
184
350
 
185
- /* 9. Storm — Dark native, cool gray */
186
351
  .theme-storm {
187
352
  --t-primary: #94a3b8;
188
353
  --t-secondary: #64748b;
189
- --t-surface: #0f172a;
190
- --t-card-bg: #1e293b;
191
- --t-card-surface: #334155;
192
- --t-card-border-color: #334155;
193
- --t-text: #e2e8f0;
194
- --t-text-hint: #64748b;
195
- --t-text-primary: #cbd5e1;
196
- --t-text-secondary: #94a3b8;
197
- --t-surface-bg: #0f172a;
198
- --t-btn-bg: #94a3b8;
199
- --t-border-width: 1px;
200
- --t-btn-radius: 6px;
201
- --t-card-radius: 10px;
202
354
  --t-info: #0ea5e9;
203
355
  --t-success: #22c55e;
204
356
  --t-warning: #facc15;
205
357
  --t-error: #fb7185;
206
- --t-text-info: #0369a1;
207
- --t-text-success: #86efac;
208
- --t-text-warning: #fde047;
209
- --t-text-error: #fecdd3;
210
- }
211
-
212
- /* 10. Royal — Purple, dark native */
213
- .theme-royal {
214
- --t-primary: #7c3aed;
215
- --t-secondary: #6d28d9;
216
- --t-surface: #2e1065;
217
- --t-card-bg: #3b0764;
218
- --t-card-surface: #4c1d95;
219
- --t-card-border-color: #7c3aed;
220
- --t-text: #ddd6fe;
221
- --t-text-hint: #7c3aed;
222
- --t-text-primary: #a78bfa;
223
- --t-text-secondary: #8b5cf6;
224
- --t-surface-bg: #1e0a4e;
225
- --t-btn-bg: #7c3aed;
226
- --t-info: #38bdf8;
227
- --t-success: #4ade80;
228
- --t-warning: #facc15;
229
- --t-error: #fb7185;
230
- --t-text-info: #0369a1;
231
- --t-text-success: #86efac;
232
- --t-text-warning: #fde047;
233
- --t-text-error: #fecdd3;
234
- }
235
-
236
- /* ===== DARK MODE OVERRIDES =====
237
- * Dark-native themes (midnight, storm, royal) keep their own surface values.
238
- * All other light themes switch to a dark surface palette.
239
- */
240
-
241
- html.dark .theme-default,
242
- html.dark .theme-ocean,
243
- html.dark .theme-forest,
244
- html.dark .theme-rose,
245
- html.dark .theme-gold,
246
- html.dark .theme-slate,
247
- html.dark .theme-candy {
358
+ --t-text-on-primary: #ffffff;
248
359
  --t-surface: #0f172a;
249
- --t-card-bg: #1e293b;
360
+ --t-card-bg: #0f172a;
250
361
  --t-card-surface: #334155;
251
- --t-card-border-color: #334155;
362
+ --t-card-border-color: color-mix(in srgb, #e2e8f0 14%, #0f172a);
363
+ --t-surface-bg: color-mix(in srgb, #0f172a 85%, #000);
252
364
  --t-text: #e2e8f0;
253
- --t-text-hint: #64748b;
254
- --t-surface-bg: #0a1120;
255
- }
256
-
257
- html.dark .theme-default {
258
- --t-text-primary: #60a5fa;
259
- --t-text-secondary: #93c5fd;
260
- --t-info: #60a5fa;
261
- --t-success: #4ade80;
262
- --t-warning: #facc15;
263
- --t-error: #fb7185;
264
- --t-text-info: #bfdbfe;
265
- --t-text-success: #bbf7d0;
266
- --t-text-warning: #fef08a;
267
- --t-text-error: #fecdd3;
268
- }
269
-
270
- html.dark .theme-ocean {
271
- --t-surface: #0c1929;
272
- --t-card-bg: #0e2a3f;
273
- --t-card-surface: #164e63;
274
- --t-card-border-color: #164e63;
275
- --t-text: #bae6fd;
276
- --t-text-hint: #0369a1;
277
- --t-text-primary: #38bdf8;
278
- --t-text-secondary: #22d3ee;
279
- --t-surface-bg: #082035;
280
- --t-info: #38bdf8;
281
- --t-success: #4ade80;
282
- --t-warning: #facc15;
283
- --t-error: #fb7185;
284
- --t-text-info: #7dd3fc;
285
- --t-text-success: #bbf7d0;
286
- --t-text-warning: #fef08a;
287
- --t-text-error: #fecdd3;
288
- }
289
-
290
- html.dark .theme-forest {
291
- --t-surface: #071a0e;
292
- --t-card-bg: #0a2614;
293
- --t-card-surface: #14532d;
294
- --t-card-border-color: #14532d;
295
- --t-text: #bbf7d0;
296
- --t-text-hint: #166534;
297
- --t-text-primary: #4ade80;
298
- --t-text-secondary: #22c55e;
299
- --t-surface-bg: #052e10;
300
- --t-info: #06b6d4;
301
- --t-success: #86efac;
302
- --t-warning: #facc15;
303
- --t-error: #fb7185;
304
- --t-text-info: #22d3ee;
305
- --t-text-success: #bbf7d0;
306
- --t-text-warning: #fef08a;
307
- --t-text-error: #fecdd3;
308
- }
309
-
310
- html.dark .theme-rose {
311
- --t-surface: #1c0a10;
312
- --t-card-bg: #2a0e18;
313
- --t-card-surface: #4c0519;
314
- --t-card-border-color: #881337;
315
- --t-text: #fecdd3;
316
- --t-text-hint: #9f1239;
317
- --t-text-primary: #fb7185;
318
- --t-text-secondary: #f43f5e;
319
- --t-surface-bg: #14080c;
320
- --t-info: #38bdf8;
321
- --t-success: #86efac;
322
- --t-warning: #facc15;
323
- --t-error: #fb7185;
324
- --t-text-info: #7dd3fc;
325
- --t-text-success: #bbf7d0;
326
- --t-text-warning: #fef08a;
327
- --t-text-error: #fecdd3;
328
- }
329
-
330
- html.dark .theme-gold {
331
- --t-surface: #1a1505;
332
- --t-card-bg: #261e08;
333
- --t-card-surface: #422006;
334
- --t-card-border-color: #713f12;
335
- --t-text: #fef08a;
336
- --t-text-hint: #a16207;
337
- --t-text-primary: #facc15;
338
- --t-text-secondary: #eab308;
339
- --t-surface-bg: #120e03;
340
- }
341
-
342
- html.dark .theme-slate {
343
- --t-surface: #0f172a;
344
- --t-card-bg: #1e293b;
345
- --t-card-surface: #334155;
346
- --t-card-border-color: #475569;
347
- --t-text: #cbd5e1;
348
- --t-text-hint: #475569;
365
+ --t-text-hint: color-mix(in srgb, #e2e8f0 50%, transparent);
366
+ --t-text-muted: color-mix(in srgb, #e2e8f0 50%, transparent);
367
+ --t-text-disabled: color-mix(in srgb, #e2e8f0 50%, transparent);
349
368
  --t-text-primary: #94a3b8;
350
369
  --t-text-secondary: #64748b;
351
- --t-surface-bg: #0a1120;
352
- --t-info: #0ea5e9;
353
- --t-success: #4ade80;
354
- --t-warning: #facc15;
355
- --t-error: #f472b6;
356
- --t-text-info: #7dd3fc;
357
- --t-text-success: #bbf7d0;
358
- --t-text-warning: #fef08a;
359
- --t-text-error: #fbcfe8;
360
- }
361
-
362
- html.dark .theme-candy {
363
- --t-surface: #1c0a16;
364
- --t-card-bg: #2a0e22;
365
- --t-card-surface: #500724;
366
- --t-card-border-color: #831843;
367
- --t-text: #fbcfe8;
368
- --t-text-hint: #9d174d;
369
- --t-text-primary: #f472b6;
370
- --t-text-secondary: #ec4899;
371
- --t-surface-bg: #14080f;
372
- --t-info: #0ea5e9;
373
- --t-success: #4ade80;
374
- --t-warning: #facc15;
375
- --t-error: #fb7185;
376
- --t-text-info: #7dd3fc;
377
- --t-text-success: #bbf7d0;
378
- --t-text-warning: #fef08a;
379
- --t-text-error: #fbcfe8;
380
- }
381
-
382
- html.dark .theme-midnight {
383
- --t-surface: #0f0d2e;
384
- --t-card-bg: #1e1b4b;
385
- --t-card-surface: #312e81;
386
- --t-card-border-color: #3730a3;
387
- --t-text: #e0e7ff;
388
- --t-text-hint: #4f46e5;
389
- --t-text-primary: #a5b4fc;
390
- --t-text-secondary: #818cf8;
391
- --t-surface-bg: #080720;
392
- --t-info: #0ea5e9;
393
- --t-success: #4ade80;
394
- --t-warning: #facc15;
395
- --t-error: #fb7185;
396
- --t-text-info: #7dd3fc;
397
- --t-text-success: #bbf7d0;
398
- --t-text-warning: #fef08a;
399
- --t-text-error: #fbcfe8;
370
+ --t-text-info: #0ea5e9;
371
+ --t-text-success: #22c55e;
372
+ --t-text-warning: #facc15;
373
+ --t-text-error: #fb7185;
374
+ --t-btn-bg: #94a3b8;
375
+ --t-btn-border-color: transparent;
376
+ --t-btn-radius: 6px;
377
+ --t-card-radius: 10px;
378
+ --t-input-radius: 6px;
379
+ --t-border-width: 1px;
400
380
  }
401
381
 
402
382
  html.dark .theme-storm {
403
383
  --t-surface: #0a0f1a;
404
- --t-card-bg: #0f172a;
384
+ --t-card-bg: #0a0f1a;
405
385
  --t-card-surface: #1e293b;
406
- --t-card-border-color: #334155;
386
+ --t-card-border-color: color-mix(in srgb, #e2e8f0 14%, #0a0f1a);
387
+ --t-surface-bg: color-mix(in srgb, #0a0f1a 85%, #000);
407
388
  --t-text: #e2e8f0;
408
- --t-text-hint: #475569;
409
- --t-text-primary: #cbd5e1;
410
- --t-text-secondary: #94a3b8;
411
- --t-surface-bg: #060a12;
412
- --t-info: #0ea5e9;
389
+ --t-text-hint: color-mix(in srgb, #e2e8f0 50%, transparent);
390
+ --t-text-muted: color-mix(in srgb, #e2e8f0 50%, transparent);
391
+ --t-text-disabled: color-mix(in srgb, #e2e8f0 50%, transparent);
392
+ }
393
+
394
+ .theme-royal {
395
+ --t-primary: #7c3aed;
396
+ --t-secondary: #6d28d9;
397
+ --t-info: #38bdf8;
413
398
  --t-success: #4ade80;
414
399
  --t-warning: #facc15;
415
400
  --t-error: #fb7185;
416
- --t-text-info: #7dd3fc;
417
- --t-text-success: #bbf7d0;
418
- --t-text-warning: #fef08a;
419
- --t-text-error: #fbcfe8;
401
+ --t-text-on-primary: #ffffff;
402
+ --t-surface: #2e1065;
403
+ --t-card-bg: #2e1065;
404
+ --t-card-surface: #4c1d95;
405
+ --t-card-border-color: color-mix(in srgb, #ddd6fe 14%, #2e1065);
406
+ --t-surface-bg: color-mix(in srgb, #2e1065 85%, #000);
407
+ --t-text: #ddd6fe;
408
+ --t-text-hint: color-mix(in srgb, #ddd6fe 50%, transparent);
409
+ --t-text-muted: color-mix(in srgb, #ddd6fe 50%, transparent);
410
+ --t-text-disabled: color-mix(in srgb, #ddd6fe 50%, transparent);
411
+ --t-text-primary: #7c3aed;
412
+ --t-text-secondary: #6d28d9;
413
+ --t-text-info: #38bdf8;
414
+ --t-text-success: #4ade80;
415
+ --t-text-warning: #facc15;
416
+ --t-text-error: #fb7185;
417
+ --t-btn-bg: #7c3aed;
418
+ --t-btn-border-color: transparent;
419
+ --t-btn-radius: 8px;
420
+ --t-card-radius: 12px;
421
+ --t-input-radius: 8px;
422
+ --t-border-width: 1.5px;
420
423
  }
421
424
 
422
425
  html.dark .theme-royal {
423
426
  --t-surface: #1a0840;
424
- --t-card-bg: #2e1065;
427
+ --t-card-bg: #1a0840;
425
428
  --t-card-surface: #3b0764;
426
- --t-card-border-color: #6d28d9;
429
+ --t-card-border-color: color-mix(in srgb, #ddd6fe 14%, #1a0840);
430
+ --t-surface-bg: color-mix(in srgb, #1a0840 85%, #000);
427
431
  --t-text: #ddd6fe;
428
- --t-text-hint: #6d28d9;
429
- --t-text-primary: #a78bfa;
430
- --t-text-secondary: #8b5cf6;
431
- --t-surface-bg: #0f0525;
432
- --t-info: #38bdf8;
433
- --t-success: #4ade80;
434
- --t-warning: #facc15;
435
- --t-error: #fb7185;
436
- --t-text-info: #7dd3fc;
437
- --t-text-success: #bbf7d0;
438
- --t-text-warning: #fef08a;
439
- --t-text-error: #fbcfe8;
432
+ --t-text-hint: color-mix(in srgb, #ddd6fe 50%, transparent);
433
+ --t-text-muted: color-mix(in srgb, #ddd6fe 50%, transparent);
434
+ --t-text-disabled: color-mix(in srgb, #ddd6fe 50%, transparent);
440
435
  }
436
+