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