ui-style-kit-css 1.2.2 → 2.0.1

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.
@@ -11,10 +11,17 @@
11
11
  ========================================================= */
12
12
 
13
13
 
14
+ @import url("./theme-colors.css");
15
+ @import url("./native-elements.css");
16
+
14
17
  @layer ui-style-kit.neumorphism {
15
18
  :root {
16
19
  --neo-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
17
20
  --neo-font-display: Inter, ui-sans-serif, system-ui, sans-serif;
21
+ --neo-font-body: var(--neo-font-sans);
22
+ --neo-font-heading: var(--neo-font-display);
23
+ --neo-font-control: var(--neo-font-display);
24
+ --neo-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
18
25
  --neo-radius-xs: .25rem;
19
26
  --neo-radius-sm: .5rem;
20
27
  --neo-radius-md: 0.9rem;
@@ -60,19 +67,85 @@
60
67
  }
61
68
 
62
69
  [data-ui="neumorphism"][data-theme][data-mode] {
70
+ /* Shared scheme aliases preserve the existing prefixed token API. */
71
+ --neo-bg-rgb: var(--usk-bg-rgb);
72
+ --neo-surface-rgb: var(--usk-surface-rgb);
73
+ --neo-surface-strong-rgb: var(--usk-surface-strong-rgb);
74
+ --neo-surface-soft-rgb: var(--usk-surface-soft-rgb);
75
+ --neo-text-rgb: var(--usk-text-rgb);
76
+ --neo-text-muted-rgb: var(--usk-text-muted-rgb);
77
+ --neo-border-rgb: var(--usk-border-rgb);
78
+ --neo-primary-rgb: var(--usk-primary-rgb);
79
+ --neo-primary-hover-rgb: var(--usk-primary-hover-rgb);
80
+ --neo-primary-text-rgb: var(--usk-primary-text-rgb);
81
+ --neo-secondary-rgb: var(--usk-secondary-rgb);
82
+ --neo-secondary-hover-rgb: var(--usk-secondary-hover-rgb);
83
+ --neo-secondary-text-rgb: var(--usk-secondary-text-rgb);
84
+ --neo-accent-rgb: var(--usk-accent-rgb);
85
+ --neo-success-rgb: var(--usk-success-rgb);
86
+ --neo-warning-rgb: var(--usk-warning-rgb);
87
+ --neo-danger-rgb: var(--usk-danger-rgb);
88
+ --neo-link-rgb: var(--usk-link-rgb);
89
+ --neo-accent-text-rgb: var(--usk-accent-text-rgb);
90
+ --neo-success-text-rgb: var(--usk-success-text-rgb);
91
+ --neo-warning-text-rgb: var(--usk-warning-text-rgb);
92
+ --neo-danger-text-rgb: var(--usk-danger-text-rgb);
93
+ --neo-focus-rgb: var(--usk-focus-rgb);
94
+ /* Native fallback selectors inherit visual identity through shared tokens. */
95
+ --usk-native-surface: var(--neo-surface);
96
+ --usk-native-surface-strong: var(--neo-surface-strong);
97
+ --usk-native-surface-soft: var(--neo-surface-soft);
98
+ --usk-native-card-bg: var(--neo-card-bg);
99
+ --usk-native-control-bg: var(--neo-control-bg);
100
+ --usk-native-text: var(--neo-text);
101
+ --usk-native-text-muted: var(--neo-text-muted);
102
+ --usk-native-border: var(--neo-border);
103
+ --usk-native-primary: var(--neo-primary);
104
+ --usk-native-primary-hover: var(--neo-primary-hover);
105
+ --usk-native-on-primary: var(--neo-on-primary);
106
+ --usk-native-focus: var(--neo-focus);
107
+ --usk-native-success: var(--neo-success);
108
+ --usk-native-warning: var(--neo-warning);
109
+ --usk-native-danger: var(--neo-danger);
110
+ --usk-native-link: var(--neo-link);
111
+ --usk-native-font-body: var(--neo-font-body);
112
+ --usk-native-font-heading: var(--neo-font-heading);
113
+ --usk-native-font-control: var(--neo-font-control);
114
+ --usk-native-font-mono: var(--neo-font-mono);
115
+ --usk-native-radius-sm: var(--neo-radius-sm);
116
+ --usk-native-radius: var(--neo-radius-md);
117
+ --usk-native-radius-lg: var(--neo-radius-lg);
118
+ --usk-native-shadow: var(--neo-shadow-sm, none);
119
+ --usk-native-shadow-md: var(--neo-shadow-md, var(--usk-native-shadow));
120
+ --usk-native-focus-ring: var(--neo-focus-ring, 0 0 0 3px rgb(var(--neo-focus-rgb) / .28));
121
+ --usk-native-border-width: 1px;
122
+ --usk-native-field-gap: .5rem;
123
+ --usk-native-panel-padding: var(--neo-space-5);
124
+ --usk-native-shadow: var(--neo-shadow-sm);
125
+ --usk-native-shadow-md: var(--neo-shadow-md);
63
126
  --neo-bg: rgb(var(--neo-bg-rgb));
64
127
  --neo-surface: rgb(var(--neo-surface-rgb) / var(--neo-panel-alpha));
65
128
  --neo-surface-strong: rgb(var(--neo-surface-strong-rgb) / var(--neo-panel-alpha));
66
129
  --neo-surface-soft: rgb(var(--neo-surface-soft-rgb) / var(--neo-panel-soft-alpha));
67
130
  --neo-text: rgb(var(--neo-text-rgb));
68
131
  --neo-text-muted: rgb(var(--neo-text-muted-rgb));
132
+ --neo-fg: var(--neo-text);
133
+ --neo-surface-fg: var(--neo-text);
134
+ --neo-muted: var(--neo-text-muted);
69
135
  --neo-border: rgb(var(--neo-border-rgb) / var(--neo-border-alpha));
136
+ --neo-control-fg: var(--neo-text);
70
137
  --neo-primary: rgb(var(--neo-primary-rgb));
71
138
  --neo-primary-hover: rgb(var(--neo-primary-hover-rgb));
72
139
  --neo-primary-text: rgb(var(--neo-primary-text-rgb));
73
140
  --neo-secondary: rgb(var(--neo-secondary-rgb));
74
141
  --neo-secondary-hover: rgb(var(--neo-secondary-hover-rgb));
75
142
  --neo-secondary-text: rgb(var(--neo-secondary-text-rgb));
143
+ --neo-on-primary: var(--neo-primary-text);
144
+ --neo-on-secondary: var(--neo-secondary-text);
145
+ --neo-on-accent: rgb(var(--neo-accent-text-rgb));
146
+ --neo-on-success: rgb(var(--neo-success-text-rgb));
147
+ --neo-on-warning: rgb(var(--neo-warning-text-rgb));
148
+ --neo-on-danger: rgb(var(--neo-danger-text-rgb));
76
149
  --neo-accent: rgb(var(--neo-accent-rgb));
77
150
  --neo-success: rgb(var(--neo-success-rgb));
78
151
  --neo-warning: rgb(var(--neo-warning-rgb));
@@ -80,667 +153,44 @@
80
153
  --neo-link: rgb(var(--neo-link-rgb));
81
154
  --neo-focus: rgb(var(--neo-focus-rgb));
82
155
  --neo-focus-ring: 0 0 0 3px rgb(var(--neo-focus-rgb) / var(--neo-focus-alpha));
156
+ --neo-theme-bg-size: auto;
157
+ --neo-theme-bg: radial-gradient(circle at 0% 0%, rgb(var(--neo-primary-rgb) / .16), transparent 32rem), radial-gradient(circle at 100% 0%, rgb(var(--neo-accent-rgb) / .12), transparent 30rem), radial-gradient(circle at 50% 100%, rgb(var(--neo-secondary-rgb) / .10), transparent 34rem), var(--neo-bg);
158
+ --neo-card-bg: linear-gradient(135deg, rgb(var(--neo-primary-rgb) / .10), rgb(var(--neo-accent-rgb) / .055) 42%, rgb(var(--neo-surface-strong-rgb) / var(--neo-panel-alpha)) 100%), var(--neo-surface);
159
+ --neo-control-bg: linear-gradient(180deg, rgb(var(--neo-surface-strong-rgb) / var(--neo-panel-alpha)), rgb(var(--neo-surface-soft-rgb) / var(--neo-panel-soft-alpha)));
160
+ --neo-spinner-track: rgb(var(--neo-border-rgb) / max(.28, calc(var(--neo-border-alpha) * .7)));
161
+ --neo-spinner-stroke: var(--neo-primary);
162
+ --neo-spinner-accent: var(--neo-accent);
83
163
  }
84
164
 
85
- [data-ui="neumorphism"][data-theme="midnight-gold"][data-mode="light"] {
86
- --neo-bg-rgb: 246 243 234;
87
- --neo-surface-rgb: 255 250 240;
88
- --neo-surface-strong-rgb: 255 255 255;
89
- --neo-surface-soft-rgb: 237 230 211;
90
- --neo-text-rgb: 23 32 51;
91
- --neo-text-muted-rgb: 95 104 121;
92
- --neo-border-rgb: 214 200 165;
93
- --neo-primary-rgb: 184 135 47;
94
- --neo-primary-hover-rgb: 148 104 31;
95
- --neo-primary-text-rgb: 16 16 16;
96
- --neo-secondary-rgb: 34 49 79;
97
- --neo-secondary-hover-rgb: 23 36 60;
98
- --neo-secondary-text-rgb: 255 255 255;
99
- --neo-accent-rgb: 217 164 65;
100
- --neo-success-rgb: 47 125 84;
101
- --neo-warning-rgb: 167 106 0;
102
- --neo-danger-rgb: 185 63 63;
103
- --neo-link-rgb: 138 100 31;
104
- --neo-focus-rgb: 217 164 65;
105
- }
106
165
 
107
- [data-ui="neumorphism"][data-theme="midnight-gold"][data-mode="dark"] {
108
- --neo-bg-rgb: 7 17 31;
109
- --neo-surface-rgb: 16 27 45;
110
- --neo-surface-strong-rgb: 23 36 58;
111
- --neo-surface-soft-rgb: 12 22 39;
112
- --neo-text-rgb: 247 237 215;
113
- --neo-text-muted-rgb: 185 192 204;
114
- --neo-border-rgb: 57 72 97;
115
- --neo-primary-rgb: 214 168 79;
116
- --neo-primary-hover-rgb: 240 200 109;
117
- --neo-primary-text-rgb: 16 16 16;
118
- --neo-secondary-rgb: 111 134 184;
119
- --neo-secondary-hover-rgb: 146 167 209;
120
- --neo-secondary-text-rgb: 8 16 29;
121
- --neo-accent-rgb: 243 210 122;
122
- --neo-success-rgb: 107 214 156;
123
- --neo-warning-rgb: 255 203 91;
124
- --neo-danger-rgb: 255 123 123;
125
- --neo-link-rgb: 243 210 122;
126
- --neo-focus-rgb: 255 214 107;
127
- }
128
166
 
129
- [data-ui="neumorphism"][data-theme="midnight-gold"][data-mode="contrast"] {
130
- --neo-bg-rgb: 0 0 0;
131
- --neo-surface-rgb: 8 8 8;
132
- --neo-surface-strong-rgb: 17 17 17;
133
- --neo-surface-soft-rgb: 5 5 5;
134
- --neo-text-rgb: 255 255 255;
135
- --neo-text-muted-rgb: 245 245 245;
136
- --neo-border-rgb: 255 255 255;
137
- --neo-primary-rgb: 255 212 0;
138
- --neo-primary-hover-rgb: 255 255 255;
139
- --neo-primary-text-rgb: 0 0 0;
140
- --neo-secondary-rgb: 0 217 255;
141
- --neo-secondary-hover-rgb: 255 255 255;
142
- --neo-secondary-text-rgb: 0 0 0;
143
- --neo-accent-rgb: 255 234 0;
144
- --neo-success-rgb: 0 255 117;
145
- --neo-warning-rgb: 255 191 0;
146
- --neo-danger-rgb: 255 77 77;
147
- --neo-link-rgb: 0 217 255;
148
- --neo-focus-rgb: 255 255 255;
149
- }
150
167
 
151
- [data-ui="neumorphism"][data-theme="ocean-steel"][data-mode="light"] {
152
- --neo-bg-rgb: 238 248 251;
153
- --neo-surface-rgb: 255 255 255;
154
- --neo-surface-strong-rgb: 248 253 255;
155
- --neo-surface-soft-rgb: 220 236 242;
156
- --neo-text-rgb: 16 36 46;
157
- --neo-text-muted-rgb: 78 101 112;
158
- --neo-border-rgb: 184 211 221;
159
- --neo-primary-rgb: 8 125 157;
160
- --neo-primary-hover-rgb: 6 100 126;
161
- --neo-primary-text-rgb: 255 255 255;
162
- --neo-secondary-rgb: 57 86 107;
163
- --neo-secondary-hover-rgb: 44 67 84;
164
- --neo-secondary-text-rgb: 255 255 255;
165
- --neo-accent-rgb: 21 184 200;
166
- --neo-success-rgb: 38 122 92;
167
- --neo-warning-rgb: 167 101 0;
168
- --neo-danger-rgb: 182 70 70;
169
- --neo-link-rgb: 6 100 126;
170
- --neo-focus-rgb: 21 184 200;
171
- }
172
168
 
173
- [data-ui="neumorphism"][data-theme="ocean-steel"][data-mode="dark"] {
174
- --neo-bg-rgb: 6 22 29;
175
- --neo-surface-rgb: 13 37 48;
176
- --neo-surface-strong-rgb: 20 52 66;
177
- --neo-surface-soft-rgb: 8 29 38;
178
- --neo-text-rgb: 233 251 255;
179
- --neo-text-muted-rgb: 167 192 201;
180
- --neo-border-rgb: 49 86 102;
181
- --neo-primary-rgb: 54 196 221;
182
- --neo-primary-hover-rgb: 115 227 244;
183
- --neo-primary-text-rgb: 4 18 22;
184
- --neo-secondary-rgb: 140 183 201;
185
- --neo-secondary-hover-rgb: 178 213 226;
186
- --neo-secondary-text-rgb: 6 22 29;
187
- --neo-accent-rgb: 83 240 255;
188
- --neo-success-rgb: 103 216 166;
189
- --neo-warning-rgb: 255 192 97;
190
- --neo-danger-rgb: 255 123 123;
191
- --neo-link-rgb: 115 227 244;
192
- --neo-focus-rgb: 83 240 255;
193
- }
194
169
 
195
- [data-ui="neumorphism"][data-theme="ocean-steel"][data-mode="contrast"] {
196
- --neo-bg-rgb: 0 8 10;
197
- --neo-surface-rgb: 0 16 20;
198
- --neo-surface-strong-rgb: 0 26 32;
199
- --neo-surface-soft-rgb: 0 0 0;
200
- --neo-text-rgb: 255 255 255;
201
- --neo-text-muted-rgb: 234 255 255;
202
- --neo-border-rgb: 255 255 255;
203
- --neo-primary-rgb: 0 229 255;
204
- --neo-primary-hover-rgb: 255 255 255;
205
- --neo-primary-text-rgb: 0 0 0;
206
- --neo-secondary-rgb: 255 255 0;
207
- --neo-secondary-hover-rgb: 255 255 255;
208
- --neo-secondary-text-rgb: 0 0 0;
209
- --neo-accent-rgb: 0 255 255;
210
- --neo-success-rgb: 0 255 144;
211
- --neo-warning-rgb: 255 208 0;
212
- --neo-danger-rgb: 255 59 59;
213
- --neo-link-rgb: 0 229 255;
214
- --neo-focus-rgb: 255 255 255;
215
- }
216
170
 
217
- [data-ui="neumorphism"][data-theme="forest-moss"][data-mode="light"] {
218
- --neo-bg-rgb: 242 247 239;
219
- --neo-surface-rgb: 255 255 255;
220
- --neo-surface-strong-rgb: 251 255 248;
221
- --neo-surface-soft-rgb: 226 234 219;
222
- --neo-text-rgb: 24 36 23;
223
- --neo-text-muted-rgb: 88 104 82;
224
- --neo-border-rgb: 197 211 186;
225
- --neo-primary-rgb: 63 125 58;
226
- --neo-primary-hover-rgb: 47 97 43;
227
- --neo-primary-text-rgb: 255 255 255;
228
- --neo-secondary-rgb: 106 95 56;
229
- --neo-secondary-hover-rgb: 81 73 43;
230
- --neo-secondary-text-rgb: 255 255 255;
231
- --neo-accent-rgb: 156 186 82;
232
- --neo-success-rgb: 47 125 84;
233
- --neo-warning-rgb: 154 106 0;
234
- --neo-danger-rgb: 173 69 69;
235
- --neo-link-rgb: 47 97 43;
236
- --neo-focus-rgb: 156 186 82;
237
- }
238
171
 
239
- [data-ui="neumorphism"][data-theme="forest-moss"][data-mode="dark"] {
240
- --neo-bg-rgb: 7 16 6;
241
- --neo-surface-rgb: 16 28 15;
242
- --neo-surface-strong-rgb: 26 42 24;
243
- --neo-surface-soft-rgb: 11 22 10;
244
- --neo-text-rgb: 237 247 232;
245
- --neo-text-muted-rgb: 180 197 173;
246
- --neo-border-rgb: 61 83 56;
247
- --neo-primary-rgb: 130 210 122;
248
- --neo-primary-hover-rgb: 162 237 153;
249
- --neo-primary-text-rgb: 7 16 6;
250
- --neo-secondary-rgb: 210 189 114;
251
- --neo-secondary-hover-rgb: 239 217 139;
252
- --neo-secondary-text-rgb: 20 16 6;
253
- --neo-accent-rgb: 185 239 107;
254
- --neo-success-rgb: 117 223 167;
255
- --neo-warning-rgb: 255 210 99;
256
- --neo-danger-rgb: 255 133 133;
257
- --neo-link-rgb: 162 237 153;
258
- --neo-focus-rgb: 185 239 107;
259
- }
260
172
 
261
- [data-ui="neumorphism"][data-theme="forest-moss"][data-mode="contrast"] {
262
- --neo-bg-rgb: 0 0 0;
263
- --neo-surface-rgb: 7 16 7;
264
- --neo-surface-strong-rgb: 11 25 11;
265
- --neo-surface-soft-rgb: 0 0 0;
266
- --neo-text-rgb: 255 255 255;
267
- --neo-text-muted-rgb: 240 255 240;
268
- --neo-border-rgb: 255 255 255;
269
- --neo-primary-rgb: 108 255 95;
270
- --neo-primary-hover-rgb: 255 255 255;
271
- --neo-primary-text-rgb: 0 0 0;
272
- --neo-secondary-rgb: 255 223 0;
273
- --neo-secondary-hover-rgb: 255 255 255;
274
- --neo-secondary-text-rgb: 0 0 0;
275
- --neo-accent-rgb: 182 255 0;
276
- --neo-success-rgb: 0 255 117;
277
- --neo-warning-rgb: 255 208 0;
278
- --neo-danger-rgb: 255 64 64;
279
- --neo-link-rgb: 108 255 95;
280
- --neo-focus-rgb: 255 255 255;
281
- }
282
173
 
283
- [data-ui="neumorphism"][data-theme="sunset-ember"][data-mode="light"] {
284
- --neo-bg-rgb: 255 244 236;
285
- --neo-surface-rgb: 255 255 255;
286
- --neo-surface-strong-rgb: 255 250 246;
287
- --neo-surface-soft-rgb: 244 222 210;
288
- --neo-text-rgb: 42 23 17;
289
- --neo-text-muted-rgb: 118 88 77;
290
- --neo-border-rgb: 227 189 170;
291
- --neo-primary-rgb: 196 81 43;
292
- --neo-primary-hover-rgb: 159 63 32;
293
- --neo-primary-text-rgb: 255 255 255;
294
- --neo-secondary-rgb: 124 63 92;
295
- --neo-secondary-hover-rgb: 97 48 71;
296
- --neo-secondary-text-rgb: 255 255 255;
297
- --neo-accent-rgb: 230 154 58;
298
- --neo-success-rgb: 49 122 87;
299
- --neo-warning-rgb: 184 111 0;
300
- --neo-danger-rgb: 189 61 61;
301
- --neo-link-rgb: 159 63 32;
302
- --neo-focus-rgb: 230 154 58;
303
- }
304
174
 
305
- [data-ui="neumorphism"][data-theme="sunset-ember"][data-mode="dark"] {
306
- --neo-bg-rgb: 23 9 5;
307
- --neo-surface-rgb: 38 17 11;
308
- --neo-surface-strong-rgb: 53 25 18;
309
- --neo-surface-soft-rgb: 30 12 7;
310
- --neo-text-rgb: 255 240 232;
311
- --neo-text-muted-rgb: 208 177 165;
312
- --neo-border-rgb: 106 59 45;
313
- --neo-primary-rgb: 255 138 91;
314
- --neo-primary-hover-rgb: 255 173 138;
315
- --neo-primary-text-rgb: 26 8 3;
316
- --neo-secondary-rgb: 227 138 181;
317
- --neo-secondary-hover-rgb: 255 175 208;
318
- --neo-secondary-text-rgb: 26 7 18;
319
- --neo-accent-rgb: 255 193 102;
320
- --neo-success-rgb: 112 215 163;
321
- --neo-warning-rgb: 255 209 102;
322
- --neo-danger-rgb: 255 119 119;
323
- --neo-link-rgb: 255 173 138;
324
- --neo-focus-rgb: 255 193 102;
325
- }
326
175
 
327
- [data-ui="neumorphism"][data-theme="sunset-ember"][data-mode="contrast"] {
328
- --neo-bg-rgb: 0 0 0;
329
- --neo-surface-rgb: 18 4 0;
330
- --neo-surface-strong-rgb: 29 7 0;
331
- --neo-surface-soft-rgb: 0 0 0;
332
- --neo-text-rgb: 255 255 255;
333
- --neo-text-muted-rgb: 255 245 239;
334
- --neo-border-rgb: 255 255 255;
335
- --neo-primary-rgb: 255 106 0;
336
- --neo-primary-hover-rgb: 255 255 255;
337
- --neo-primary-text-rgb: 0 0 0;
338
- --neo-secondary-rgb: 255 79 184;
339
- --neo-secondary-hover-rgb: 255 255 255;
340
- --neo-secondary-text-rgb: 0 0 0;
341
- --neo-accent-rgb: 255 208 0;
342
- --neo-success-rgb: 0 255 144;
343
- --neo-warning-rgb: 255 191 0;
344
- --neo-danger-rgb: 255 48 48;
345
- --neo-link-rgb: 255 157 0;
346
- --neo-focus-rgb: 255 255 255;
347
- }
348
176
 
349
- [data-ui="neumorphism"][data-theme="royal-plum"][data-mode="light"] {
350
- --neo-bg-rgb: 248 241 251;
351
- --neo-surface-rgb: 255 255 255;
352
- --neo-surface-strong-rgb: 253 248 255;
353
- --neo-surface-soft-rgb: 234 220 240;
354
- --neo-text-rgb: 36 21 45;
355
- --neo-text-muted-rgb: 105 86 113;
356
- --neo-border-rgb: 213 187 221;
357
- --neo-primary-rgb: 123 63 160;
358
- --neo-primary-hover-rgb: 99 49 127;
359
- --neo-primary-text-rgb: 255 255 255;
360
- --neo-secondary-rgb: 63 76 154;
361
- --neo-secondary-hover-rgb: 48 58 119;
362
- --neo-secondary-text-rgb: 255 255 255;
363
- --neo-accent-rgb: 192 90 198;
364
- --neo-success-rgb: 49 124 92;
365
- --neo-warning-rgb: 166 106 0;
366
- --neo-danger-rgb: 183 65 95;
367
- --neo-link-rgb: 99 49 127;
368
- --neo-focus-rgb: 192 90 198;
369
- }
370
177
 
371
- [data-ui="neumorphism"][data-theme="royal-plum"][data-mode="dark"] {
372
- --neo-bg-rgb: 16 6 20;
373
- --neo-surface-rgb: 29 16 36;
374
- --neo-surface-strong-rgb: 42 23 52;
375
- --neo-surface-soft-rgb: 22 11 27;
376
- --neo-text-rgb: 250 236 255;
377
- --neo-text-muted-rgb: 200 176 209;
378
- --neo-border-rgb: 85 57 100;
379
- --neo-primary-rgb: 216 145 242;
380
- --neo-primary-hover-rgb: 235 184 255;
381
- --neo-primary-text-rgb: 19 6 23;
382
- --neo-secondary-rgb: 157 168 255;
383
- --neo-secondary-hover-rgb: 195 202 255;
384
- --neo-secondary-text-rgb: 8 11 31;
385
- --neo-accent-rgb: 255 156 246;
386
- --neo-success-rgb: 118 220 169;
387
- --neo-warning-rgb: 255 209 102;
388
- --neo-danger-rgb: 255 122 156;
389
- --neo-link-rgb: 235 184 255;
390
- --neo-focus-rgb: 255 156 246;
391
- }
392
178
 
393
- [data-ui="neumorphism"][data-theme="royal-plum"][data-mode="contrast"] {
394
- --neo-bg-rgb: 0 0 0;
395
- --neo-surface-rgb: 16 0 20;
396
- --neo-surface-strong-rgb: 26 0 34;
397
- --neo-surface-soft-rgb: 0 0 0;
398
- --neo-text-rgb: 255 255 255;
399
- --neo-text-muted-rgb: 255 240 255;
400
- --neo-border-rgb: 255 255 255;
401
- --neo-primary-rgb: 228 92 255;
402
- --neo-primary-hover-rgb: 255 255 255;
403
- --neo-primary-text-rgb: 0 0 0;
404
- --neo-secondary-rgb: 0 217 255;
405
- --neo-secondary-hover-rgb: 255 255 255;
406
- --neo-secondary-text-rgb: 0 0 0;
407
- --neo-accent-rgb: 255 0 245;
408
- --neo-success-rgb: 0 255 144;
409
- --neo-warning-rgb: 255 225 0;
410
- --neo-danger-rgb: 255 63 110;
411
- --neo-link-rgb: 228 92 255;
412
- --neo-focus-rgb: 255 255 255;
413
- }
414
179
 
415
- [data-ui="neumorphism"][data-theme="graphite-cyan"][data-mode="light"] {
416
- --neo-bg-rgb: 242 245 246;
417
- --neo-surface-rgb: 255 255 255;
418
- --neo-surface-strong-rgb: 249 251 252;
419
- --neo-surface-soft-rgb: 225 231 234;
420
- --neo-text-rgb: 23 29 33;
421
- --neo-text-muted-rgb: 93 104 112;
422
- --neo-border-rgb: 197 206 212;
423
- --neo-primary-rgb: 0 124 137;
424
- --neo-primary-hover-rgb: 0 99 110;
425
- --neo-primary-text-rgb: 255 255 255;
426
- --neo-secondary-rgb: 63 72 80;
427
- --neo-secondary-hover-rgb: 47 54 60;
428
- --neo-secondary-text-rgb: 255 255 255;
429
- --neo-accent-rgb: 34 184 199;
430
- --neo-success-rgb: 40 122 91;
431
- --neo-warning-rgb: 167 103 0;
432
- --neo-danger-rgb: 182 64 64;
433
- --neo-link-rgb: 0 99 110;
434
- --neo-focus-rgb: 34 184 199;
435
- }
436
180
 
437
- [data-ui="neumorphism"][data-theme="graphite-cyan"][data-mode="dark"] {
438
- --neo-bg-rgb: 8 11 13;
439
- --neo-surface-rgb: 18 24 28;
440
- --neo-surface-strong-rgb: 28 37 43;
441
- --neo-surface-soft-rgb: 13 17 20;
442
- --neo-text-rgb: 237 246 248;
443
- --neo-text-muted-rgb: 174 187 193;
444
- --neo-border-rgb: 59 72 79;
445
- --neo-primary-rgb: 62 217 232;
446
- --neo-primary-hover-rgb: 123 243 255;
447
- --neo-primary-text-rgb: 6 16 18;
448
- --neo-secondary-rgb: 170 181 188;
449
- --neo-secondary-hover-rgb: 210 219 224;
450
- --neo-secondary-text-rgb: 8 11 13;
451
- --neo-accent-rgb: 123 243 255;
452
- --neo-success-rgb: 110 218 165;
453
- --neo-warning-rgb: 255 200 97;
454
- --neo-danger-rgb: 255 125 125;
455
- --neo-link-rgb: 123 243 255;
456
- --neo-focus-rgb: 62 217 232;
457
- }
458
181
 
459
- [data-ui="neumorphism"][data-theme="graphite-cyan"][data-mode="contrast"] {
460
- --neo-bg-rgb: 0 0 0;
461
- --neo-surface-rgb: 7 7 7;
462
- --neo-surface-strong-rgb: 17 17 17;
463
- --neo-surface-soft-rgb: 0 0 0;
464
- --neo-text-rgb: 255 255 255;
465
- --neo-text-muted-rgb: 245 245 245;
466
- --neo-border-rgb: 255 255 255;
467
- --neo-primary-rgb: 0 240 255;
468
- --neo-primary-hover-rgb: 255 255 255;
469
- --neo-primary-text-rgb: 0 0 0;
470
- --neo-secondary-rgb: 242 242 242;
471
- --neo-secondary-hover-rgb: 255 255 255;
472
- --neo-secondary-text-rgb: 0 0 0;
473
- --neo-accent-rgb: 0 240 255;
474
- --neo-success-rgb: 0 255 117;
475
- --neo-warning-rgb: 255 208 0;
476
- --neo-danger-rgb: 255 64 64;
477
- --neo-link-rgb: 0 240 255;
478
- --neo-focus-rgb: 255 255 255;
479
- }
480
182
 
481
- [data-ui="neumorphism"][data-theme="desert-sage"][data-mode="light"] {
482
- --neo-bg-rgb: 248 242 231;
483
- --neo-surface-rgb: 255 255 255;
484
- --neo-surface-strong-rgb: 255 250 241;
485
- --neo-surface-soft-rgb: 234 223 205;
486
- --neo-text-rgb: 43 36 25;
487
- --neo-text-muted-rgb: 113 103 84;
488
- --neo-border-rgb: 215 198 167;
489
- --neo-primary-rgb: 140 106 61;
490
- --neo-primary-hover-rgb: 112 83 47;
491
- --neo-primary-text-rgb: 255 255 255;
492
- --neo-secondary-rgb: 95 118 85;
493
- --neo-secondary-hover-rgb: 72 92 64;
494
- --neo-secondary-text-rgb: 255 255 255;
495
- --neo-accent-rgb: 201 151 74;
496
- --neo-success-rgb: 81 125 72;
497
- --neo-warning-rgb: 166 107 0;
498
- --neo-danger-rgb: 174 74 63;
499
- --neo-link-rgb: 112 83 47;
500
- --neo-focus-rgb: 201 151 74;
501
- }
502
183
 
503
- [data-ui="neumorphism"][data-theme="desert-sage"][data-mode="dark"] {
504
- --neo-bg-rgb: 18 15 9;
505
- --neo-surface-rgb: 33 27 18;
506
- --neo-surface-strong-rgb: 47 40 27;
507
- --neo-surface-soft-rgb: 25 20 13;
508
- --neo-text-rgb: 248 239 223;
509
- --neo-text-muted-rgb: 199 186 163;
510
- --neo-border-rgb: 91 78 56;
511
- --neo-primary-rgb: 217 184 120;
512
- --neo-primary-hover-rgb: 240 211 154;
513
- --neo-primary-text-rgb: 21 16 6;
514
- --neo-secondary-rgb: 168 206 153;
515
- --neo-secondary-hover-rgb: 200 233 187;
516
- --neo-secondary-text-rgb: 9 20 7;
517
- --neo-accent-rgb: 241 196 110;
518
- --neo-success-rgb: 141 219 125;
519
- --neo-warning-rgb: 255 209 102;
520
- --neo-danger-rgb: 255 136 122;
521
- --neo-link-rgb: 240 211 154;
522
- --neo-focus-rgb: 241 196 110;
523
- }
524
184
 
525
- [data-ui="neumorphism"][data-theme="desert-sage"][data-mode="contrast"] {
526
- --neo-bg-rgb: 0 0 0;
527
- --neo-surface-rgb: 15 11 3;
528
- --neo-surface-strong-rgb: 26 18 5;
529
- --neo-surface-soft-rgb: 0 0 0;
530
- --neo-text-rgb: 255 255 255;
531
- --neo-text-muted-rgb: 255 248 232;
532
- --neo-border-rgb: 255 255 255;
533
- --neo-primary-rgb: 255 209 102;
534
- --neo-primary-hover-rgb: 255 255 255;
535
- --neo-primary-text-rgb: 0 0 0;
536
- --neo-secondary-rgb: 157 255 107;
537
- --neo-secondary-hover-rgb: 255 255 255;
538
- --neo-secondary-text-rgb: 0 0 0;
539
- --neo-accent-rgb: 255 176 0;
540
- --neo-success-rgb: 0 255 117;
541
- --neo-warning-rgb: 255 225 0;
542
- --neo-danger-rgb: 255 77 77;
543
- --neo-link-rgb: 255 209 102;
544
- --neo-focus-rgb: 255 255 255;
545
- }
546
185
 
547
- [data-ui="neumorphism"][data-theme="rose-quartz"][data-mode="light"] {
548
- --neo-bg-rgb: 255 242 245;
549
- --neo-surface-rgb: 255 255 255;
550
- --neo-surface-strong-rgb: 255 248 250;
551
- --neo-surface-soft-rgb: 242 220 227;
552
- --neo-text-rgb: 43 21 29;
553
- --neo-text-muted-rgb: 118 90 99;
554
- --neo-border-rgb: 223 184 198;
555
- --neo-primary-rgb: 184 71 109;
556
- --neo-primary-hover-rgb: 150 55 87;
557
- --neo-primary-text-rgb: 255 255 255;
558
- --neo-secondary-rgb: 122 85 126;
559
- --neo-secondary-hover-rgb: 96 65 99;
560
- --neo-secondary-text-rgb: 255 255 255;
561
- --neo-accent-rgb: 223 125 157;
562
- --neo-success-rgb: 49 122 92;
563
- --neo-warning-rgb: 166 106 0;
564
- --neo-danger-rgb: 189 63 85;
565
- --neo-link-rgb: 150 55 87;
566
- --neo-focus-rgb: 223 125 157;
567
- }
568
186
 
569
- [data-ui="neumorphism"][data-theme="rose-quartz"][data-mode="dark"] {
570
- --neo-bg-rgb: 22 7 12;
571
- --neo-surface-rgb: 37 16 24;
572
- --neo-surface-strong-rgb: 53 24 36;
573
- --neo-surface-soft-rgb: 28 11 17;
574
- --neo-text-rgb: 255 240 244;
575
- --neo-text-muted-rgb: 210 174 185;
576
- --neo-border-rgb: 101 55 71;
577
- --neo-primary-rgb: 255 143 179;
578
- --neo-primary-hover-rgb: 255 182 205;
579
- --neo-primary-text-rgb: 24 6 13;
580
- --neo-secondary-rgb: 217 160 223;
581
- --neo-secondary-hover-rgb: 239 194 244;
582
- --neo-secondary-text-rgb: 22 6 24;
583
- --neo-accent-rgb: 255 173 197;
584
- --neo-success-rgb: 119 219 169;
585
- --neo-warning-rgb: 255 209 102;
586
- --neo-danger-rgb: 255 120 144;
587
- --neo-link-rgb: 255 182 205;
588
- --neo-focus-rgb: 255 173 197;
589
- }
590
187
 
591
- [data-ui="neumorphism"][data-theme="rose-quartz"][data-mode="contrast"] {
592
- --neo-bg-rgb: 0 0 0;
593
- --neo-surface-rgb: 18 0 6;
594
- --neo-surface-strong-rgb: 32 0 13;
595
- --neo-surface-soft-rgb: 0 0 0;
596
- --neo-text-rgb: 255 255 255;
597
- --neo-text-muted-rgb: 255 240 245;
598
- --neo-border-rgb: 255 255 255;
599
- --neo-primary-rgb: 255 79 147;
600
- --neo-primary-hover-rgb: 255 255 255;
601
- --neo-primary-text-rgb: 0 0 0;
602
- --neo-secondary-rgb: 240 0 255;
603
- --neo-secondary-hover-rgb: 255 255 255;
604
- --neo-secondary-text-rgb: 0 0 0;
605
- --neo-accent-rgb: 255 138 179;
606
- --neo-success-rgb: 0 255 144;
607
- --neo-warning-rgb: 255 225 0;
608
- --neo-danger-rgb: 255 48 48;
609
- --neo-link-rgb: 255 138 179;
610
- --neo-focus-rgb: 255 255 255;
611
- }
612
188
 
613
- [data-ui="neumorphism"][data-theme="cyber-lime"][data-mode="light"] {
614
- --neo-bg-rgb: 244 250 237;
615
- --neo-surface-rgb: 255 255 255;
616
- --neo-surface-strong-rgb: 251 255 246;
617
- --neo-surface-soft-rgb: 226 239 211;
618
- --neo-text-rgb: 23 34 20;
619
- --neo-text-muted-rgb: 89 105 82;
620
- --neo-border-rgb: 198 216 179;
621
- --neo-primary-rgb: 95 159 31;
622
- --neo-primary-hover-rgb: 73 125 23;
623
- --neo-primary-text-rgb: 16 16 16;
624
- --neo-secondary-rgb: 20 127 134;
625
- --neo-secondary-hover-rgb: 14 98 104;
626
- --neo-secondary-text-rgb: 255 255 255;
627
- --neo-accent-rgb: 164 215 46;
628
- --neo-success-rgb: 47 125 84;
629
- --neo-warning-rgb: 156 104 0;
630
- --neo-danger-rgb: 179 65 65;
631
- --neo-link-rgb: 73 125 23;
632
- --neo-focus-rgb: 164 215 46;
633
- }
634
189
 
635
- [data-ui="neumorphism"][data-theme="cyber-lime"][data-mode="dark"] {
636
- --neo-bg-rgb: 5 11 5;
637
- --neo-surface-rgb: 13 24 12;
638
- --neo-surface-strong-rgb: 22 37 21;
639
- --neo-surface-soft-rgb: 8 17 8;
640
- --neo-text-rgb: 239 255 233;
641
- --neo-text-muted-rgb: 180 199 173;
642
- --neo-border-rgb: 57 82 54;
643
- --neo-primary-rgb: 168 255 61;
644
- --neo-primary-hover-rgb: 202 255 127;
645
- --neo-primary-text-rgb: 6 16 5;
646
- --neo-secondary-rgb: 61 235 242;
647
- --neo-secondary-hover-rgb: 134 248 255;
648
- --neo-secondary-text-rgb: 3 16 18;
649
- --neo-accent-rgb: 198 255 77;
650
- --neo-success-rgb: 111 240 168;
651
- --neo-warning-rgb: 255 218 98;
652
- --neo-danger-rgb: 255 119 119;
653
- --neo-link-rgb: 202 255 127;
654
- --neo-focus-rgb: 168 255 61;
655
- }
656
190
 
657
- [data-ui="neumorphism"][data-theme="cyber-lime"][data-mode="contrast"] {
658
- --neo-bg-rgb: 0 0 0;
659
- --neo-surface-rgb: 5 11 0;
660
- --neo-surface-strong-rgb: 11 22 0;
661
- --neo-surface-soft-rgb: 0 0 0;
662
- --neo-text-rgb: 255 255 255;
663
- --neo-text-muted-rgb: 244 255 232;
664
- --neo-border-rgb: 255 255 255;
665
- --neo-primary-rgb: 170 255 0;
666
- --neo-primary-hover-rgb: 255 255 255;
667
- --neo-primary-text-rgb: 0 0 0;
668
- --neo-secondary-rgb: 0 240 255;
669
- --neo-secondary-hover-rgb: 255 255 255;
670
- --neo-secondary-text-rgb: 0 0 0;
671
- --neo-accent-rgb: 204 255 0;
672
- --neo-success-rgb: 0 255 117;
673
- --neo-warning-rgb: 255 225 0;
674
- --neo-danger-rgb: 255 48 48;
675
- --neo-link-rgb: 170 255 0;
676
- --neo-focus-rgb: 255 255 255;
677
- }
678
191
 
679
- [data-ui="neumorphism"][data-theme="arctic-indigo"][data-mode="light"] {
680
- --neo-bg-rgb: 241 245 255;
681
- --neo-surface-rgb: 255 255 255;
682
- --neo-surface-strong-rgb: 248 251 255;
683
- --neo-surface-soft-rgb: 223 231 246;
684
- --neo-text-rgb: 20 27 46;
685
- --neo-text-muted-rgb: 88 100 122;
686
- --neo-border-rgb: 190 203 227;
687
- --neo-primary-rgb: 64 94 184;
688
- --neo-primary-hover-rgb: 49 72 148;
689
- --neo-primary-text-rgb: 255 255 255;
690
- --neo-secondary-rgb: 46 125 157;
691
- --neo-secondary-hover-rgb: 35 97 122;
692
- --neo-secondary-text-rgb: 255 255 255;
693
- --neo-accent-rgb: 123 147 232;
694
- --neo-success-rgb: 47 125 84;
695
- --neo-warning-rgb: 166 106 0;
696
- --neo-danger-rgb: 182 64 82;
697
- --neo-link-rgb: 49 72 148;
698
- --neo-focus-rgb: 123 147 232;
699
- }
700
192
 
701
- [data-ui="neumorphism"][data-theme="arctic-indigo"][data-mode="dark"] {
702
- --neo-bg-rgb: 6 10 22;
703
- --neo-surface-rgb: 16 24 43;
704
- --neo-surface-strong-rgb: 24 35 66;
705
- --neo-surface-soft-rgb: 10 16 32;
706
- --neo-text-rgb: 237 243 255;
707
- --neo-text-muted-rgb: 178 191 217;
708
- --neo-border-rgb: 58 75 120;
709
- --neo-primary-rgb: 145 168 255;
710
- --neo-primary-hover-rgb: 183 197 255;
711
- --neo-primary-text-rgb: 5 8 22;
712
- --neo-secondary-rgb: 118 216 243;
713
- --neo-secondary-hover-rgb: 165 234 255;
714
- --neo-secondary-text-rgb: 4 17 22;
715
- --neo-accent-rgb: 194 206 255;
716
- --neo-success-rgb: 114 219 166;
717
- --neo-warning-rgb: 255 209 102;
718
- --neo-danger-rgb: 255 125 145;
719
- --neo-link-rgb: 183 197 255;
720
- --neo-focus-rgb: 145 168 255;
721
- }
722
193
 
723
- [data-ui="neumorphism"][data-theme="arctic-indigo"][data-mode="contrast"] {
724
- --neo-bg-rgb: 0 0 0;
725
- --neo-surface-rgb: 3 8 22;
726
- --neo-surface-strong-rgb: 8 18 42;
727
- --neo-surface-soft-rgb: 0 0 0;
728
- --neo-text-rgb: 255 255 255;
729
- --neo-text-muted-rgb: 238 244 255;
730
- --neo-border-rgb: 255 255 255;
731
- --neo-primary-rgb: 111 140 255;
732
- --neo-primary-hover-rgb: 255 255 255;
733
- --neo-primary-text-rgb: 0 0 0;
734
- --neo-secondary-rgb: 0 217 255;
735
- --neo-secondary-hover-rgb: 255 255 255;
736
- --neo-secondary-text-rgb: 0 0 0;
737
- --neo-accent-rgb: 184 196 255;
738
- --neo-success-rgb: 0 255 144;
739
- --neo-warning-rgb: 255 225 0;
740
- --neo-danger-rgb: 255 63 95;
741
- --neo-link-rgb: 159 178 255;
742
- --neo-focus-rgb: 255 255 255;
743
- }
744
194
 
745
195
  /* =========================================================
746
196
  Base Page + Layout
@@ -750,16 +200,19 @@
750
200
  min-height: 100vh;
751
201
  background: radial-gradient(circle at 50% -10%, rgb(255 255 255 / .08), transparent 30rem), var(--neo-bg);
752
202
  color: var(--neo-text);
753
- font-family: var(--neo-font-sans);
203
+ font-family: var(--neo-font-body);
754
204
  line-height: 1.5;
755
205
  text-rendering: optimizeLegibility;
756
206
  -webkit-font-smoothing: antialiased;
207
+ -moz-osx-font-smoothing: grayscale;
757
208
  }
758
209
 
759
210
  [data-ui="neumorphism"] *,
760
211
  [data-ui="neumorphism"] *::before,
761
212
  [data-ui="neumorphism"] *::after { box-sizing: border-box; }
762
213
 
214
+ [data-ui="neumorphism"][data-theme][data-mode] { background: var(--neo-theme-bg); background-size: var(--neo-theme-bg-size); }
215
+
763
216
  .neo-page { min-height: 100vh; padding: clamp(1rem, 4vw, 3rem); }
764
217
  .neo-container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
765
218
  .neo-section { display: grid; gap: var(--neo-space-5); padding: clamp(1rem, 3vw, 2rem); }
@@ -772,7 +225,7 @@
772
225
  Typography
773
226
  ========================================================= */
774
227
 
775
- .neo-title, .neo-heading, .neo-kicker, .neo-button, .neo-badge, .neo-nav-link { font-family: var(--neo-font-display); }
228
+ .neo-title, .neo-heading, .neo-kicker, .neo-button, .neo-badge, .neo-nav-link { font-family: var(--neo-font-heading); }
776
229
  .neo-title { margin: 0; color: var(--neo-text); font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.02; letter-spacing: -0.045em; }
777
230
  .neo-heading { margin: 0; color: var(--neo-text); font-size: clamp(1.2rem, 2.5vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; }
778
231
  .neo-kicker { margin: 0; color: var(--neo-primary); font-size: .82rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
@@ -808,20 +261,27 @@
808
261
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--neo-space-2);
809
262
  min-height: 2.75rem; padding: .75rem 1.1rem; background: var(--neo-surface); color: var(--neo-text);
810
263
  border: 1px solid var(--neo-border); border-radius: var(--neo-radius-md); box-shadow: 0 6px 18px rgb(0 0 0 / var(--neo-shadow-alpha));
811
- font: inherit; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; user-select: none;
264
+ font: inherit; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none;
812
265
  transition: color var(--neo-transition-fast), background var(--neo-transition-fast), border-color var(--neo-transition-fast), box-shadow var(--neo-transition-fast), transform var(--neo-transition-fast);
813
266
  }
814
267
  .neo-button:hover, .neo-icon-button:hover { transform: translateY(-1px); border-color: var(--neo-primary); }
815
268
  .neo-button:active, .neo-icon-button:active, .neo-button[aria-pressed="true"], .neo-icon-button[aria-pressed="true"], .neo-button.is-active, .neo-icon-button.is-active { transform: translateY(1px); box-shadow: inset 0 3px 10px rgb(0 0 0 / .18); }
816
- .neo-button-primary { background: var(--neo-primary); color: var(--neo-primary-text); border-color: var(--neo-primary); }
269
+ .neo-button-primary { background: var(--neo-primary); color: var(--neo-on-primary); border-color: var(--neo-primary); }
817
270
  .neo-button-primary:hover { background: var(--neo-primary-hover); border-color: var(--neo-primary-hover); }
818
- .neo-button-secondary { background: var(--neo-secondary); color: var(--neo-secondary-text); border-color: var(--neo-secondary); }
271
+ .neo-button-secondary { background: var(--neo-secondary); color: var(--neo-on-secondary); border-color: var(--neo-secondary); }
819
272
  .neo-button-secondary:hover { background: var(--neo-secondary-hover); border-color: var(--neo-secondary-hover); }
820
- .neo-button-danger { background: var(--neo-danger); color: #fff; border-color: var(--neo-danger); }
273
+ .neo-button-danger { background: var(--neo-danger); color: var(--neo-on-danger); border-color: var(--neo-danger); }
821
274
  .neo-button-ghost { background: transparent; color: var(--neo-text); box-shadow: none; }
822
275
  .neo-icon-button { width: 2.75rem; padding: 0; border-radius: var(--neo-radius-pill); }
823
276
  .neo-button:disabled, .neo-icon-button:disabled, .neo-disabled { opacity: .55; cursor: not-allowed; transform: none; }
824
277
 
278
+ /* Theme-responsive component defaults */
279
+ .neo-card, .neo-panel { background: var(--neo-card-bg); }
280
+ .neo-toolbar, .neo-table-wrap { background: var(--neo-control-bg); }
281
+ .neo-button:not(.neo-button-primary):not(.neo-button-secondary):not(.neo-button-danger):not(.neo-button-ghost), .neo-icon-button { background: var(--neo-control-bg); }
282
+ .neo-button, .neo-icon-button, .neo-badge, .neo-nav-link { font-family: var(--neo-font-control); }
283
+
284
+
825
285
  /* =========================================================
826
286
  Forms
827
287
  ========================================================= */
@@ -846,8 +306,8 @@
846
306
  .neo-check-control { border-radius: var(--neo-radius-xs); }
847
307
  .neo-radio-control { border-radius: 50%; }
848
308
  .neo-check input:checked + .neo-check-control, .neo-radio input:checked + .neo-radio-control { background: var(--neo-primary); border-color: var(--neo-primary); box-shadow: var(--neo-focus-ring); }
849
- .neo-check input:checked + .neo-check-control::after { content: "✓"; color: var(--neo-primary-text); font-size: .9rem; font-weight: 900; }
850
- .neo-radio input:checked + .neo-radio-control::after { content: ""; width: .55rem; height: .55rem; background: var(--neo-primary-text); border-radius: 50%; }
309
+ .neo-check input:checked + .neo-check-control::after { content: "✓"; color: var(--neo-on-primary); font-size: .9rem; font-weight: 900; }
310
+ .neo-radio input:checked + .neo-radio-control::after { content: ""; width: .55rem; height: .55rem; background: var(--neo-on-primary); border-radius: 50%; }
851
311
 
852
312
  /* Switch */
853
313
  .neo-switch { display: inline-flex; align-items: center; gap: var(--neo-space-3); color: var(--neo-text); cursor: pointer; }
@@ -855,23 +315,32 @@
855
315
  .neo-switch-track { position: relative; width: 3.5rem; height: 1.9rem; background: var(--neo-surface-soft); border: 1px solid var(--neo-border); border-radius: var(--neo-radius-pill); transition: background var(--neo-transition-fast), box-shadow var(--neo-transition-fast); }
856
316
  .neo-switch-thumb { position: absolute; top: .22rem; left: .22rem; width: 1.34rem; height: 1.34rem; background: var(--neo-surface-strong); border: 1px solid var(--neo-border); border-radius: 50%; box-shadow: 0 4px 12px rgb(0 0 0 / var(--neo-shadow-alpha)); transition: left var(--neo-transition-fast), background var(--neo-transition-fast); }
857
317
  .neo-switch input:checked + .neo-switch-track { background: var(--neo-primary); border-color: var(--neo-primary); }
858
- .neo-switch input:checked + .neo-switch-track .neo-switch-thumb { left: calc(100% - 1.34rem - .22rem); background: var(--neo-primary-text); }
318
+ .neo-switch input:checked + .neo-switch-track .neo-switch-thumb { left: calc(100% - 1.34rem - .22rem); background: var(--neo-on-primary); }
859
319
 
860
320
  /* =========================================================
861
321
  Badges / Nav / Progress / Alerts / Tables
862
322
  ========================================================= */
863
323
 
864
324
  .neo-badge { display: inline-flex; align-items: center; gap: var(--neo-space-1); min-height: 1.75rem; padding: .35rem .7rem; background: var(--neo-surface-soft); color: var(--neo-text); border: 1px solid var(--neo-border); border-radius: var(--neo-radius-pill); font-size: .8125rem; font-weight: 850; line-height: 1; }
865
- .neo-badge-primary { background: var(--neo-primary); color: var(--neo-primary-text); border-color: var(--neo-primary); }
866
- .neo-badge-secondary { background: var(--neo-secondary); color: var(--neo-secondary-text); border-color: var(--neo-secondary); }
867
- .neo-badge-success { background: var(--neo-success); color: #fff; border-color: var(--neo-success); }
868
- .neo-badge-warning { background: var(--neo-warning); color: #111; border-color: var(--neo-warning); }
869
- .neo-badge-danger { background: var(--neo-danger); color: #fff; border-color: var(--neo-danger); }
325
+ .neo-badge-primary { background: var(--neo-primary); color: var(--neo-on-primary); border-color: var(--neo-primary); }
326
+ .neo-badge-secondary { background: var(--neo-secondary); color: var(--neo-on-secondary); border-color: var(--neo-secondary); }
327
+ .neo-badge-success { background: var(--neo-success); color: var(--neo-on-success); border-color: var(--neo-success); }
328
+ .neo-badge-warning { background: var(--neo-warning); color: var(--neo-on-warning); border-color: var(--neo-warning); }
329
+ .neo-badge-danger { background: var(--neo-danger); color: var(--neo-on-danger); border-color: var(--neo-danger); }
870
330
 
871
331
  .neo-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--neo-space-2); padding: var(--neo-space-2); background: var(--neo-surface); border: 1px solid var(--neo-border); border-radius: var(--neo-radius-xl); box-shadow: 0 10px 30px rgb(0 0 0 / var(--neo-shadow-alpha)); }
872
332
  .neo-nav-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: .65rem 1rem; color: var(--neo-text-muted); border-radius: var(--neo-radius-pill); text-decoration: none; font-weight: 850; transition: color var(--neo-transition-fast), background var(--neo-transition-fast), box-shadow var(--neo-transition-fast); }
873
333
  .neo-nav-link:hover { color: var(--neo-text); background: var(--neo-surface-soft); }
874
- .neo-nav-link[aria-current="page"], .neo-nav-link.is-active { color: var(--neo-primary-text); background: var(--neo-primary); }
334
+ .neo-nav-link[aria-current="page"], .neo-nav-link.is-active { color: var(--neo-on-primary); background: var(--neo-primary); }
335
+
336
+ /* Tooltips use compact contrast surfaces that stay readable across theme modes. */
337
+ .neo-tooltip, [data-ui="neumorphism"] :where(.ui-tooltip, [role="tooltip"], [data-tooltip]) {
338
+ display: inline-flex; align-items: center; gap: .45rem; max-inline-size: 16rem; padding: .62rem .86rem;
339
+ background: var(--neo-surface); color: var(--neo-text); border: 1px solid transparent; border-radius: var(--neo-radius-pill);
340
+ box-shadow: -.35rem -.35rem .8rem rgb(255 255 255 / .28), .35rem .35rem .8rem rgb(0 0 0 / .18);
341
+ font-size: .82rem; font-weight: 850; line-height: 1.35;
342
+ }
343
+ .neo-tooltip-arrow { inline-size: .58rem; block-size: .58rem; flex: 0 0 auto; background: var(--neo-surface); border-radius: 50%; box-shadow: inset .12rem .12rem .24rem rgb(0 0 0 / .12); }
875
344
 
876
345
  .neo-progress { width: 100%; height: .9rem; overflow: hidden; background: var(--neo-surface-soft); border: 1px solid var(--neo-border); border-radius: var(--neo-radius-pill); }
877
346
  .neo-progress-bar { height: 100%; width: var(--neo-progress-value, 50%); background: linear-gradient(90deg, var(--neo-primary), var(--neo-accent)); border-radius: inherit; }
@@ -895,10 +364,10 @@
895
364
  ========================================================= */
896
365
 
897
366
  .neo-text-primary { color: var(--neo-primary); } .neo-text-secondary { color: var(--neo-secondary); } .neo-text-accent { color: var(--neo-accent); } .neo-text-success { color: var(--neo-success); } .neo-text-warning { color: var(--neo-warning); } .neo-text-danger { color: var(--neo-danger); }
898
- .neo-bg-primary { background: var(--neo-primary); color: var(--neo-primary-text); } .neo-bg-secondary { background: var(--neo-secondary); color: var(--neo-secondary-text); }
367
+ .neo-bg-primary { background: var(--neo-primary); color: var(--neo-on-primary); } .neo-bg-secondary { background: var(--neo-secondary); color: var(--neo-on-secondary); }
899
368
  .neo-border { border: 1px solid var(--neo-border); } .neo-rounded { border-radius: var(--neo-radius-md); } .neo-rounded-lg { border-radius: var(--neo-radius-lg); } .neo-rounded-xl { border-radius: var(--neo-radius-xl); } .neo-pill { border-radius: var(--neo-radius-pill); }
900
369
  .neo-sr-only, .neo-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
901
- .neo-skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 9999; transform: translateY(-150%); padding: .75rem 1rem; background: var(--neo-primary); color: var(--neo-primary-text); border-radius: var(--neo-radius-md); font-weight: 900; }
370
+ .neo-skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 9999; transform: translateY(-150%); padding: .75rem 1rem; background: var(--neo-primary); color: var(--neo-on-primary); border-radius: var(--neo-radius-md); font-weight: 900; }
902
371
  .neo-skip-link:focus { transform: translateY(0); }
903
372
 
904
373
 
@@ -935,62 +404,35 @@
935
404
  box-shadow: inset 4px 4px 9px var(--neo-nm-dark), inset -4px -4px 9px var(--neo-nm-light);
936
405
  }
937
406
 
407
+ /* Spinner geometry follows the neumorphism preset's soft extruded surfaces. */
408
+ .neo-spinner, .neo-loading-spinner, [data-ui="neumorphism"] :where(.ui-spinner, .loading-spinner, [data-loading-spinner]) {
409
+ display: inline-block;
410
+ inline-size: 2rem;
411
+ block-size: 2rem;
412
+ border: .2rem solid transparent;
413
+ border-block-start-color: var(--neo-spinner-stroke);
414
+ border-inline-end-color: var(--neo-spinner-accent);
415
+ border-radius: 50%;
416
+ background: conic-gradient(from 45deg, var(--neo-spinner-stroke), transparent 34%, var(--neo-spinner-accent), var(--neo-spinner-track));
417
+ box-shadow: -.35rem -.35rem .8rem rgb(255 255 255 / .32), .35rem .35rem .8rem rgb(0 0 0 / .18), inset 0 0 0 .38rem var(--neo-surface);
418
+ vertical-align: -.2em;
419
+ animation: neo-spin 1s linear infinite;
420
+ }
421
+ .neo-spinner-sm { inline-size: 1rem; block-size: 1rem; border-width: .12rem; }
422
+ .neo-spinner-lg { inline-size: 3rem; block-size: 3rem; border-width: .28rem; }
423
+ .neo-button[aria-busy="true"], .neo-icon-button[aria-busy="true"], [data-ui="neumorphism"] :where(button[aria-busy="true"], input[type="button"][aria-busy="true"], input[type="submit"][aria-busy="true"], input[type="reset"][aria-busy="true"]) { gap: .55rem; cursor: progress; }
424
+ .neo-button[aria-busy="true"]::after, .neo-icon-button[aria-busy="true"]::after, [data-ui="neumorphism"] :where(button[aria-busy="true"], input[type="button"][aria-busy="true"], input[type="submit"][aria-busy="true"], input[type="reset"][aria-busy="true"])::after {
425
+ content: "";
426
+ display: inline-block;
427
+ inline-size: 1em;
428
+ block-size: 1em;
429
+ border: .16em solid rgb(var(--neo-primary-text-rgb) / .42);
430
+ border-block-start-color: currentColor;
431
+ border-radius: 50%;
432
+ animation: neo-spin .75s linear infinite;
433
+ }
434
+ @keyframes neo-spin { to { transform: rotate(360deg); } }
938
435
 
939
- /* =========================================================
940
- Native HTML Coverage + CSS Accessibility Layer
941
- ========================================================= */
942
-
943
- [data-ui="neumorphism"] :where(h1, h2, h3, h4, h5, h6) { color: var(--neo-text); font-family: var(--neo-font-display); line-height: 1.15; margin: 0 0 .65em; text-wrap: balance; }
944
- [data-ui="neumorphism"] :where(h1) { font-size: clamp(2rem, 5vw, 3.5rem); }
945
- [data-ui="neumorphism"] :where(h2) { font-size: clamp(1.55rem, 3vw, 2.35rem); }
946
- [data-ui="neumorphism"] :where(h3) { font-size: clamp(1.25rem, 2vw, 1.65rem); }
947
- [data-ui="neumorphism"] :where(p) { margin: 0 0 1rem; color: var(--neo-text-muted); line-height: 1.7; }
948
- [data-ui="neumorphism"] :where(a) { color: var(--neo-link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
949
- [data-ui="neumorphism"] :where(a:hover) { color: var(--neo-primary-hover); }
950
- [data-ui="neumorphism"] :where(ul, ol) { margin: 0 0 1rem; padding-left: 1.35rem; color: var(--neo-text-muted); }
951
- [data-ui="neumorphism"] :where(li) { margin-block: .25rem; }
952
- [data-ui="neumorphism"] :where(blockquote) { margin: 1.25rem 0; padding: 1rem 1.25rem; color: var(--neo-text); background: var(--neo-surface-soft); border-left: .35rem solid var(--neo-primary); border-radius: var(--neo-radius-md); }
953
- [data-ui="neumorphism"] :where(code, kbd, samp) { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: .92em; background: var(--neo-surface-soft); color: var(--neo-text); border: 1px solid rgb(var(--neo-border-rgb) / .45); border-radius: var(--neo-radius-xs); padding: .15em .35em; }
954
- [data-ui="neumorphism"] :where(pre) { overflow: auto; margin: 1rem 0; padding: 1rem; background: var(--neo-surface-soft); color: var(--neo-text); border: 1px solid var(--neo-border); border-radius: var(--neo-radius-md); }
955
- [data-ui="neumorphism"] :where(pre code) { display: block; padding: 0; border: 0; background: transparent; }
956
- [data-ui="neumorphism"] :where(hr) { height: 1px; border: 0; margin: 2rem 0; background: var(--neo-border); }
957
- [data-ui="neumorphism"] :where(mark) { background: rgb(var(--neo-warning-rgb) / .32); color: var(--neo-text); border-radius: .2em; padding-inline: .15em; }
958
- [data-ui="neumorphism"] :where(small) { color: var(--neo-text-muted); }
959
- [data-ui="neumorphism"] :where(abbr[title]) { text-decoration: underline dotted var(--neo-primary); text-underline-offset: .18em; cursor: help; }
960
- [data-ui="neumorphism"] :where(img, video, canvas, svg, iframe) { max-width: 100%; height: auto; }
961
- [data-ui="neumorphism"] :where(figure) { margin: 1.25rem 0; }
962
- [data-ui="neumorphism"] :where(figcaption) { margin-top: .5rem; color: var(--neo-text-muted); font-size: .9rem; }
963
- [data-ui="neumorphism"] :where(fieldset) { min-inline-size: 0; margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--neo-border); border-radius: var(--neo-radius-md); }
964
- [data-ui="neumorphism"] :where(legend) { padding-inline: .35rem; color: var(--neo-text); font-weight: 900; }
965
- [data-ui="neumorphism"] :where(label) { color: var(--neo-text); font-weight: 750; }
966
- [data-ui="neumorphism"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), textarea, select) { width: 100%; min-height: 2.75rem; padding: .72rem .95rem; background: var(--neo-surface-soft); color: var(--neo-text); border: 1px solid var(--neo-border); border-radius: var(--neo-radius-md); font: inherit; }
967
- [data-ui="neumorphism"] :where(textarea) { resize: vertical; min-height: 7rem; }
968
- [data-ui="neumorphism"] :where(input, textarea, select, button) { font: inherit; }
969
- [data-ui="neumorphism"] :where(button, input[type="button"], input[type="submit"], input[type="reset"]) { min-height: 2.75rem; padding: .7rem 1rem; background: var(--neo-primary); color: var(--neo-primary-text); border: 1px solid var(--neo-primary); border-radius: var(--neo-radius-md); font-weight: 850; cursor: pointer; }
970
- [data-ui="neumorphism"] :where(button:hover, input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover) { background: var(--neo-primary-hover); border-color: var(--neo-primary-hover); }
971
- [data-ui="neumorphism"] :where(input[type="checkbox"], input[type="radio"]) { inline-size: 1.1rem; block-size: 1.1rem; accent-color: var(--neo-primary); }
972
- [data-ui="neumorphism"] :where(input[type="range"]) { width: 100%; accent-color: var(--neo-primary); }
973
- [data-ui="neumorphism"] :where(input[type="color"]) { inline-size: 3rem; block-size: 2.4rem; padding: .2rem; background: var(--neo-surface-soft); border: 1px solid var(--neo-border); border-radius: var(--neo-radius-sm); }
974
- [data-ui="neumorphism"] :where(input[type="file"]) { color: var(--neo-text-muted); }
975
- [data-ui="neumorphism"] :where(input[type="file"]::file-selector-button) { margin-inline-end: .75rem; padding: .55rem .8rem; border: 1px solid var(--neo-primary); border-radius: var(--neo-radius-sm); background: var(--neo-primary); color: var(--neo-primary-text); font-weight: 800; cursor: pointer; }
976
- [data-ui="neumorphism"] :where(input:disabled, textarea:disabled, select:disabled, button:disabled, [aria-disabled="true"]) { opacity: .55; cursor: not-allowed; }
977
- [data-ui="neumorphism"] :where(input:invalid, textarea:invalid, select:invalid) { border-color: var(--neo-danger); }
978
- [data-ui="neumorphism"] :where(table) { width: 100%; border-collapse: collapse; margin: 1rem 0; background: var(--neo-surface); border: 1px solid var(--neo-border); border-radius: var(--neo-radius-md); overflow: hidden; }
979
- [data-ui="neumorphism"] :where(caption) { caption-side: bottom; padding: .75rem; color: var(--neo-text-muted); font-size: .9rem; }
980
- [data-ui="neumorphism"] :where(th, td) { padding: .8rem .9rem; text-align: left; border-bottom: 1px solid var(--neo-border); }
981
- [data-ui="neumorphism"] :where(th) { color: var(--neo-text); background: rgb(var(--neo-primary-rgb) / .08); }
982
- [data-ui="neumorphism"] :where(td) { color: var(--neo-text-muted); }
983
- [data-ui="neumorphism"] :where(details) { margin: 1rem 0; padding: .9rem 1rem; background: var(--neo-surface); border: 1px solid var(--neo-border); border-radius: var(--neo-radius-md); }
984
- [data-ui="neumorphism"] :where(summary) { color: var(--neo-text); font-weight: 900; cursor: pointer; }
985
- [data-ui="neumorphism"] :where(dialog) { max-width: min(92vw, 42rem); padding: 0; background: var(--neo-surface-strong); color: var(--neo-text); border: 1px solid var(--neo-border); border-radius: var(--neo-radius-lg); box-shadow: 0 30px 80px rgb(0 0 0 / .42); }
986
- [data-ui="neumorphism"] :where(dialog::backdrop) { background: rgb(0 0 0 / .62); }
987
- [data-ui="neumorphism"] :where(progress, meter) { width: 100%; min-height: .9rem; accent-color: var(--neo-primary); }
988
- [data-ui="neumorphism"] :where(:focus-visible) { outline: 3px solid var(--neo-focus); outline-offset: 3px; box-shadow: var(--neo-focus-ring); }
989
- [data-ui="neumorphism"] :where(:target) { scroll-margin-top: 6rem; outline: 3px solid var(--neo-focus); outline-offset: .35rem; }
990
- [data-ui="neumorphism"] :where([aria-current="page"]) { font-weight: 900; }
991
- [data-ui="neumorphism"] :where([aria-busy="true"]) { cursor: progress; }
992
- [data-ui="neumorphism"] :where([hidden]) { display: none !important; }
993
- [data-ui="neumorphism"] ::selection { background: var(--neo-primary); color: var(--neo-primary-text); }
994
436
 
995
437
  @media (prefers-reduced-motion: reduce) {
996
438
  [data-ui="neumorphism"] *, [data-ui="neumorphism"] *::before, [data-ui="neumorphism"] *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }