uniskin 0.0.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cli/bin.d.ts +3 -0
  3. package/dist/cli/bin.d.ts.map +1 -0
  4. package/dist/cli/bin.js +9 -0
  5. package/dist/cli/bin.js.map +1 -0
  6. package/dist/cli/css.d.ts +25 -0
  7. package/dist/cli/css.d.ts.map +1 -0
  8. package/dist/cli/css.js +68 -0
  9. package/dist/cli/css.js.map +1 -0
  10. package/dist/cli/init.d.ts +20 -0
  11. package/dist/cli/init.d.ts.map +1 -0
  12. package/dist/cli/init.js +92 -0
  13. package/dist/cli/init.js.map +1 -0
  14. package/dist/cli/main.d.ts +5 -0
  15. package/dist/cli/main.d.ts.map +1 -0
  16. package/dist/cli/main.js +85 -0
  17. package/dist/cli/main.js.map +1 -0
  18. package/dist/cli/new-adapter.d.ts +11 -0
  19. package/dist/cli/new-adapter.d.ts.map +1 -0
  20. package/dist/cli/new-adapter.js +66 -0
  21. package/dist/cli/new-adapter.js.map +1 -0
  22. package/dist/cli/project.d.ts +30 -0
  23. package/dist/cli/project.d.ts.map +1 -0
  24. package/dist/cli/project.js +158 -0
  25. package/dist/cli/project.js.map +1 -0
  26. package/dist/default-theme.d.ts +693 -0
  27. package/dist/default-theme.d.ts.map +1 -0
  28. package/dist/default-theme.js +719 -0
  29. package/dist/default-theme.js.map +1 -0
  30. package/dist/emit.d.ts +23 -0
  31. package/dist/emit.d.ts.map +1 -0
  32. package/dist/emit.js +105 -0
  33. package/dist/emit.js.map +1 -0
  34. package/dist/index.d.ts +42 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +55 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/merge.d.ts +42 -0
  39. package/dist/merge.d.ts.map +1 -0
  40. package/dist/merge.js +177 -0
  41. package/dist/merge.js.map +1 -0
  42. package/dist/types.d.ts +94 -0
  43. package/dist/types.d.ts.map +1 -0
  44. package/dist/types.js +38 -0
  45. package/dist/types.js.map +1 -0
  46. package/package.json +53 -4
  47. package/README.md +0 -3
@@ -0,0 +1,693 @@
1
+ import { type CssRuleObject } from "./types.js";
2
+ /**
3
+ * Built-in default skin. Every Uniskin class has a complete style here;
4
+ * adapters deep-merge over this object, so anything they omit falls back
5
+ * to these rules.
6
+ *
7
+ * Composition model: every intent sets five per-element variables
8
+ * (`--ui-c`, `--ui-on-c`, `--ui-c-hover`, `--ui-c-soft`,
9
+ * `--ui-c-soft-fg`) and every style maps those variables onto real
10
+ * properties. That is why intents and styles combine freely
11
+ * (`ui-danger ui-outline`) without 5×4 hand-written rules.
12
+ */
13
+ export declare const defaultAdapter: {
14
+ readonly name: "default";
15
+ readonly tokens: {
16
+ readonly "--ui-font-sans": "ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif";
17
+ readonly "--ui-neutral": "oklch(0.28 0.02 265)";
18
+ readonly "--ui-neutral-fg": "oklch(0.98 0 0)";
19
+ readonly "--ui-neutral-soft": "oklch(0.94 0.01 265)";
20
+ readonly "--ui-neutral-soft-fg": "oklch(0.32 0.02 265)";
21
+ readonly "--ui-primary": "oklch(0.55 0.21 267)";
22
+ readonly "--ui-primary-fg": "oklch(0.98 0 0)";
23
+ readonly "--ui-secondary": "oklch(0.55 0.05 285)";
24
+ readonly "--ui-secondary-fg": "oklch(0.98 0 0)";
25
+ readonly "--ui-success": "oklch(0.5 0.14 163)";
26
+ readonly "--ui-success-fg": "oklch(0.98 0 0)";
27
+ readonly "--ui-warning": "oklch(0.78 0.15 85)";
28
+ readonly "--ui-warning-fg": "oklch(0.28 0.04 90)";
29
+ readonly "--ui-danger": "oklch(0.56 0.2 27)";
30
+ readonly "--ui-danger-fg": "oklch(0.98 0 0)";
31
+ readonly "--ui-surface": "oklch(1 0 0)";
32
+ readonly "--ui-surface-fg": "oklch(0.24 0.02 265)";
33
+ readonly "--ui-surface-muted": "oklch(0.96 0.005 265)";
34
+ readonly "--ui-border": "oklch(0.89 0.008 265)";
35
+ readonly "--ui-ring": "oklch(0.62 0.18 262)";
36
+ readonly "--ui-radius": "0.5rem";
37
+ readonly "--ui-text-sm": "0.8125rem";
38
+ readonly "--ui-text-md": "0.9375rem";
39
+ readonly "--ui-text-lg": "1.0625rem";
40
+ };
41
+ readonly darkTokens: {
42
+ readonly "--ui-neutral": "oklch(0.92 0.01 265)";
43
+ readonly "--ui-neutral-fg": "oklch(0.2 0.02 265)";
44
+ readonly "--ui-neutral-soft": "oklch(0.3 0.015 265)";
45
+ readonly "--ui-neutral-soft-fg": "oklch(0.92 0.01 265)";
46
+ readonly "--ui-primary": "oklch(0.68 0.17 267)";
47
+ readonly "--ui-primary-fg": "oklch(0.15 0.02 265)";
48
+ readonly "--ui-secondary": "oklch(0.7 0.07 285)";
49
+ readonly "--ui-secondary-fg": "oklch(0.15 0.02 285)";
50
+ readonly "--ui-success": "oklch(0.72 0.15 163)";
51
+ readonly "--ui-success-fg": "oklch(0.15 0.03 163)";
52
+ readonly "--ui-warning": "oklch(0.82 0.15 85)";
53
+ readonly "--ui-warning-fg": "oklch(0.2 0.04 90)";
54
+ readonly "--ui-danger": "oklch(0.68 0.19 27)";
55
+ readonly "--ui-danger-fg": "oklch(0.15 0.03 27)";
56
+ readonly "--ui-surface": "oklch(0.21 0.015 265)";
57
+ readonly "--ui-surface-fg": "oklch(0.95 0.005 265)";
58
+ readonly "--ui-surface-muted": "oklch(0.26 0.015 265)";
59
+ readonly "--ui-border": "oklch(0.34 0.015 265)";
60
+ readonly "--ui-ring": "oklch(0.7 0.15 262)";
61
+ };
62
+ readonly components: {
63
+ readonly button: {
64
+ readonly base: {
65
+ readonly "--ui-c": "var(--ui-neutral)";
66
+ readonly "--ui-c-text": "var(--ui-surface-fg)";
67
+ readonly "--ui-on-c": "var(--ui-neutral-fg)";
68
+ readonly "--ui-c-hover": "color-mix(in oklab, var(--ui-c) 85%, black)";
69
+ readonly "--ui-c-soft": "var(--ui-neutral-soft)";
70
+ readonly "--ui-c-soft-fg": "var(--ui-neutral-soft-fg)";
71
+ readonly display: "inline-flex";
72
+ readonly "align-items": "center";
73
+ readonly "justify-content": "center";
74
+ readonly gap: "0.5rem";
75
+ readonly "font-family": "var(--ui-font-sans)";
76
+ readonly "font-weight": "500";
77
+ readonly "font-size": "var(--ui-text-md)";
78
+ readonly "line-height": "1.25";
79
+ readonly padding: "0.5rem 1rem";
80
+ readonly "border-radius": "var(--ui-radius)";
81
+ readonly border: "1px solid transparent";
82
+ readonly "background-color": "var(--ui-c)";
83
+ readonly color: "var(--ui-on-c)";
84
+ readonly "border-color": "var(--ui-c)";
85
+ readonly cursor: "pointer";
86
+ readonly "user-select": "none";
87
+ readonly "text-decoration": "none";
88
+ readonly transition: "background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease";
89
+ readonly "&:hover": {
90
+ readonly "background-color": "var(--ui-c-hover)";
91
+ readonly "border-color": "var(--ui-c-hover)";
92
+ };
93
+ readonly "&:focus-visible": {
94
+ readonly outline: "2px solid var(--ui-ring)";
95
+ readonly "outline-offset": "2px";
96
+ };
97
+ };
98
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
99
+ readonly styles: {
100
+ readonly outline: {
101
+ readonly "background-color": "transparent";
102
+ readonly color: "var(--ui-c-text)";
103
+ readonly "border-color": "var(--ui-c)";
104
+ readonly "&:hover": {
105
+ readonly "background-color": "var(--ui-c)";
106
+ readonly "border-color": "var(--ui-c)";
107
+ readonly color: "var(--ui-on-c)";
108
+ };
109
+ };
110
+ readonly ghost: {
111
+ readonly "background-color": "transparent";
112
+ readonly "border-color": "transparent";
113
+ readonly color: "var(--ui-c-text)";
114
+ readonly "&:hover": {
115
+ readonly "background-color": "var(--ui-c-soft)";
116
+ readonly "border-color": "transparent";
117
+ readonly color: "var(--ui-c-soft-fg)";
118
+ };
119
+ };
120
+ readonly soft: {
121
+ readonly "background-color": "var(--ui-c-soft)";
122
+ readonly "border-color": "transparent";
123
+ readonly color: "var(--ui-c-soft-fg)";
124
+ readonly "&:hover": {
125
+ readonly "background-color": "var(--ui-c)";
126
+ readonly "border-color": "var(--ui-c)";
127
+ readonly color: "var(--ui-on-c)";
128
+ };
129
+ };
130
+ };
131
+ readonly sizes: {
132
+ readonly sm: {
133
+ readonly "font-size": "var(--ui-text-sm)";
134
+ readonly padding: "0.375rem 0.75rem";
135
+ };
136
+ readonly lg: {
137
+ readonly "font-size": "var(--ui-text-lg)";
138
+ readonly padding: "0.75rem 1.5rem";
139
+ };
140
+ };
141
+ readonly states: {
142
+ readonly disabled: {
143
+ readonly opacity: "0.5";
144
+ readonly cursor: "not-allowed";
145
+ readonly "pointer-events": "none";
146
+ };
147
+ readonly loading: {
148
+ readonly cursor: "progress";
149
+ readonly "pointer-events": "none";
150
+ readonly "&::after": {
151
+ readonly content: "\"\"";
152
+ readonly width: "1em";
153
+ readonly height: "1em";
154
+ readonly "flex-shrink": "0";
155
+ readonly "border-radius": "9999px";
156
+ readonly border: "2px solid currentColor";
157
+ readonly "border-top-color": "transparent";
158
+ readonly animation: "ui-spin 0.6s linear infinite";
159
+ };
160
+ };
161
+ readonly active: {
162
+ readonly "box-shadow": "inset 0 2px 4px rgb(0 0 0 / 0.2)";
163
+ };
164
+ };
165
+ };
166
+ readonly input: {
167
+ readonly base: {
168
+ readonly [key: string]: string | CssRuleObject | undefined;
169
+ };
170
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
171
+ readonly styles: Record<"outline" | "ghost" | "soft", CssRuleObject>;
172
+ readonly sizes: {
173
+ sm: {
174
+ "font-size": string;
175
+ padding: string;
176
+ };
177
+ lg: {
178
+ "font-size": string;
179
+ padding: string;
180
+ };
181
+ };
182
+ readonly states: Record<"disabled" | "loading" | "active", CssRuleObject>;
183
+ };
184
+ readonly textarea: {
185
+ readonly base: {
186
+ readonly "line-height": "1.5";
187
+ readonly "min-height": "5rem";
188
+ readonly resize: "vertical";
189
+ };
190
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
191
+ readonly styles: Record<"outline" | "ghost" | "soft", CssRuleObject>;
192
+ readonly sizes: {
193
+ sm: {
194
+ "font-size": string;
195
+ padding: string;
196
+ };
197
+ lg: {
198
+ "font-size": string;
199
+ padding: string;
200
+ };
201
+ };
202
+ readonly states: Record<"disabled" | "loading" | "active", CssRuleObject>;
203
+ };
204
+ readonly select: {
205
+ readonly base: {
206
+ readonly appearance: "none";
207
+ readonly cursor: "pointer";
208
+ readonly "padding-right": "2.25rem";
209
+ readonly "background-image": "linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%)";
210
+ readonly "background-position": "calc(100% - 1.1rem) 55%, calc(100% - 0.75rem) 55%";
211
+ readonly "background-size": "0.35rem 0.35rem, 0.35rem 0.35rem";
212
+ readonly "background-repeat": "no-repeat";
213
+ };
214
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
215
+ readonly styles: Record<"outline" | "ghost" | "soft", CssRuleObject>;
216
+ readonly sizes: {
217
+ readonly sm: {
218
+ readonly "padding-right": "2rem";
219
+ readonly "font-size": string;
220
+ readonly padding: string;
221
+ };
222
+ readonly lg: {
223
+ readonly "padding-right": "2.5rem";
224
+ readonly "font-size": string;
225
+ readonly padding: string;
226
+ };
227
+ };
228
+ readonly states: Record<"disabled" | "loading" | "active", CssRuleObject>;
229
+ };
230
+ readonly checkbox: {
231
+ readonly base: {
232
+ readonly appearance: "none";
233
+ readonly display: "inline-grid";
234
+ readonly "place-content": "center";
235
+ readonly "flex-shrink": "0";
236
+ readonly "box-sizing": "border-box";
237
+ readonly width: "var(--ui-check-size, 1.125rem)";
238
+ readonly height: "var(--ui-check-size, 1.125rem)";
239
+ readonly margin: "0";
240
+ readonly "vertical-align": "middle";
241
+ readonly cursor: "pointer";
242
+ readonly "background-color": "var(--ui-surface)";
243
+ readonly border: "1px solid color-mix(in oklab, var(--ui-border) 55%, var(--ui-surface-fg))";
244
+ readonly "border-radius": "calc(var(--ui-radius) * 0.5)";
245
+ readonly transition: string;
246
+ readonly "&::after": {
247
+ readonly content: "\"\"";
248
+ readonly width: "0.3125em";
249
+ readonly height: "0.5625em";
250
+ readonly "box-sizing": "border-box";
251
+ readonly border: "solid var(--ui-check-mark, var(--ui-on-c))";
252
+ readonly "border-width": "0 2px 2px 0";
253
+ readonly transform: "translateY(-8%) rotate(45deg) scale(0)";
254
+ readonly transition: "transform 0.12s ease";
255
+ readonly "font-size": "var(--ui-check-size, 1.125rem)";
256
+ };
257
+ readonly "&:hover": {
258
+ readonly "border-color": "var(--ui-c)";
259
+ };
260
+ readonly "&:checked, &:indeterminate": {
261
+ readonly "background-color": "var(--ui-c)";
262
+ readonly "border-color": "var(--ui-c)";
263
+ };
264
+ readonly "&:checked::after": {
265
+ readonly transform: "translateY(-8%) rotate(45deg) scale(1)";
266
+ };
267
+ readonly "&:indeterminate::after": {
268
+ readonly width: "0.55em";
269
+ readonly height: "2px";
270
+ readonly "border-width": "0";
271
+ readonly "background-color": "var(--ui-check-mark, var(--ui-on-c))";
272
+ readonly transform: "scale(1)";
273
+ };
274
+ readonly "&:focus-visible": CssRuleObject;
275
+ };
276
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
277
+ readonly styles: {
278
+ readonly outline: {
279
+ readonly "--ui-check-mark": "var(--ui-c)";
280
+ readonly "border-color": "var(--ui-c)";
281
+ readonly "&:checked, &:indeterminate": {
282
+ readonly "background-color": "transparent";
283
+ };
284
+ };
285
+ readonly ghost: {
286
+ readonly "--ui-check-mark": "var(--ui-c-soft-fg)";
287
+ readonly "background-color": "var(--ui-surface-muted)";
288
+ readonly "border-color": "transparent";
289
+ readonly "&:checked, &:indeterminate": {
290
+ readonly "background-color": "var(--ui-c-soft)";
291
+ readonly "border-color": "transparent";
292
+ };
293
+ };
294
+ readonly soft: {
295
+ readonly "--ui-check-mark": "var(--ui-c-soft-fg)";
296
+ readonly "&:checked, &:indeterminate": {
297
+ readonly "background-color": "var(--ui-c-soft)";
298
+ readonly "border-color": "var(--ui-c)";
299
+ };
300
+ };
301
+ };
302
+ readonly sizes: {
303
+ readonly sm: {
304
+ readonly "--ui-check-size": "0.9375rem";
305
+ };
306
+ readonly lg: {
307
+ readonly "--ui-check-size": "1.5rem";
308
+ };
309
+ };
310
+ readonly states: {
311
+ readonly disabled: {
312
+ readonly opacity: "0.5";
313
+ readonly cursor: "not-allowed";
314
+ };
315
+ readonly loading: {
316
+ readonly cursor: "progress";
317
+ readonly animation: "ui-pulse 1.2s ease-in-out infinite";
318
+ };
319
+ readonly active: {
320
+ readonly "box-shadow": "0 0 0 3px color-mix(in oklab, var(--ui-c) 30%, transparent)";
321
+ };
322
+ };
323
+ };
324
+ readonly card: {
325
+ readonly base: {
326
+ readonly display: "flex";
327
+ readonly "flex-direction": "column";
328
+ readonly "box-sizing": "border-box";
329
+ readonly "font-family": "var(--ui-font-sans)";
330
+ readonly "font-size": "var(--ui-text-md)";
331
+ readonly color: "var(--ui-surface-fg)";
332
+ readonly "background-color": "var(--ui-surface)";
333
+ readonly border: "1px solid var(--ui-card-border, var(--ui-border))";
334
+ readonly "border-radius": "calc(var(--ui-radius) * 1.5)";
335
+ readonly "box-shadow": "0 1px 3px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04)";
336
+ readonly overflow: "hidden";
337
+ readonly transition: string;
338
+ };
339
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
340
+ readonly styles: {
341
+ readonly outline: {
342
+ readonly "box-shadow": "none";
343
+ readonly "border-color": "var(--ui-c)";
344
+ };
345
+ readonly ghost: {
346
+ readonly "box-shadow": "none";
347
+ readonly "background-color": "transparent";
348
+ readonly "border-color": "transparent";
349
+ };
350
+ readonly soft: {
351
+ readonly "box-shadow": "none";
352
+ readonly "background-color": "var(--ui-c-soft)";
353
+ readonly color: "var(--ui-c-soft-fg)";
354
+ readonly "border-color": "transparent";
355
+ };
356
+ };
357
+ readonly sizes: {
358
+ readonly sm: {
359
+ readonly "--ui-card-pad": "0.75rem";
360
+ readonly "font-size": "var(--ui-text-sm)";
361
+ };
362
+ readonly lg: {
363
+ readonly "--ui-card-pad": "1.75rem";
364
+ readonly "font-size": "var(--ui-text-lg)";
365
+ };
366
+ };
367
+ readonly states: {
368
+ readonly disabled: {
369
+ readonly opacity: "0.5";
370
+ readonly "pointer-events": "none";
371
+ };
372
+ readonly loading: {
373
+ readonly "pointer-events": "none";
374
+ readonly animation: "ui-pulse 1.2s ease-in-out infinite";
375
+ };
376
+ readonly active: {
377
+ readonly "border-color": "var(--ui-c)";
378
+ readonly "box-shadow": "0 0 0 3px color-mix(in oklab, var(--ui-c) 25%, transparent)";
379
+ };
380
+ };
381
+ };
382
+ readonly "card-header": {
383
+ readonly base: {
384
+ readonly padding: "calc(var(--ui-card-pad, 1.25rem) * 0.8) var(--ui-card-pad, 1.25rem)";
385
+ readonly "font-weight": "600";
386
+ readonly "border-bottom": "1px solid var(--ui-border)";
387
+ };
388
+ };
389
+ readonly "card-body": {
390
+ readonly base: {
391
+ readonly flex: "1 1 auto";
392
+ readonly padding: "var(--ui-card-pad, 1.25rem)";
393
+ };
394
+ };
395
+ readonly "card-footer": {
396
+ readonly base: {
397
+ readonly display: "flex";
398
+ readonly "align-items": "center";
399
+ readonly "justify-content": "flex-end";
400
+ readonly gap: "0.5rem";
401
+ readonly padding: "calc(var(--ui-card-pad, 1.25rem) * 0.8) var(--ui-card-pad, 1.25rem)";
402
+ readonly "border-top": "1px solid var(--ui-border)";
403
+ readonly "background-color": "var(--ui-surface-muted)";
404
+ };
405
+ };
406
+ readonly badge: {
407
+ readonly base: {
408
+ readonly display: "inline-flex";
409
+ readonly "align-items": "center";
410
+ readonly gap: "0.25rem";
411
+ readonly "box-sizing": "border-box";
412
+ readonly "font-family": "var(--ui-font-sans)";
413
+ readonly "font-size": "0.75rem";
414
+ readonly "font-weight": "600";
415
+ readonly "line-height": "1";
416
+ readonly padding: "0.3125rem 0.625rem";
417
+ readonly "border-radius": "9999px";
418
+ readonly border: "1px solid var(--ui-c)";
419
+ readonly "background-color": "var(--ui-c)";
420
+ readonly color: "var(--ui-on-c)";
421
+ readonly "white-space": "nowrap";
422
+ };
423
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
424
+ readonly styles: {
425
+ readonly outline: {
426
+ readonly "background-color": "transparent";
427
+ readonly color: "var(--ui-c-text)";
428
+ };
429
+ readonly ghost: {
430
+ readonly "background-color": "transparent";
431
+ readonly "border-color": "transparent";
432
+ readonly color: "var(--ui-c-text)";
433
+ };
434
+ readonly soft: {
435
+ readonly "background-color": "var(--ui-c-soft)";
436
+ readonly "border-color": "transparent";
437
+ readonly color: "var(--ui-c-soft-fg)";
438
+ };
439
+ };
440
+ readonly sizes: {
441
+ readonly sm: {
442
+ readonly "font-size": "0.6875rem";
443
+ readonly padding: "0.1875rem 0.5rem";
444
+ };
445
+ readonly lg: {
446
+ readonly "font-size": "0.875rem";
447
+ readonly padding: "0.4375rem 0.875rem";
448
+ };
449
+ };
450
+ readonly states: Record<"disabled" | "loading" | "active", CssRuleObject>;
451
+ };
452
+ readonly alert: {
453
+ readonly base: {
454
+ readonly display: "flex";
455
+ readonly "align-items": "flex-start";
456
+ readonly gap: "0.75rem";
457
+ readonly "box-sizing": "border-box";
458
+ readonly "font-family": "var(--ui-font-sans)";
459
+ readonly "font-size": "var(--ui-text-md)";
460
+ readonly "line-height": "1.4";
461
+ readonly padding: "0.875rem 1rem";
462
+ readonly "border-radius": "var(--ui-radius)";
463
+ readonly border: "1px solid var(--ui-c)";
464
+ readonly "background-color": "var(--ui-c)";
465
+ readonly color: "var(--ui-on-c)";
466
+ };
467
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
468
+ readonly styles: {
469
+ readonly outline: {
470
+ readonly "background-color": "var(--ui-surface)";
471
+ readonly color: "var(--ui-surface-fg)";
472
+ };
473
+ readonly ghost: {
474
+ readonly "background-color": "transparent";
475
+ readonly "border-color": "transparent";
476
+ readonly color: "var(--ui-c-text)";
477
+ };
478
+ readonly soft: {
479
+ readonly "background-color": "var(--ui-c-soft)";
480
+ readonly "border-color": "color-mix(in oklab, var(--ui-c) 28%, transparent)";
481
+ readonly color: "var(--ui-c-soft-fg)";
482
+ };
483
+ };
484
+ readonly sizes: {
485
+ readonly sm: {
486
+ readonly "font-size": "var(--ui-text-sm)";
487
+ readonly padding: "0.5rem 0.75rem";
488
+ };
489
+ readonly lg: {
490
+ readonly "font-size": "var(--ui-text-lg)";
491
+ readonly padding: "1.125rem 1.375rem";
492
+ };
493
+ };
494
+ readonly states: Record<"disabled" | "loading" | "active", CssRuleObject>;
495
+ };
496
+ readonly modal: {
497
+ readonly base: {
498
+ readonly position: "fixed";
499
+ readonly inset: "0";
500
+ readonly "z-index": "1000";
501
+ readonly display: "flex";
502
+ readonly "align-items": "center";
503
+ readonly "justify-content": "center";
504
+ readonly "box-sizing": "border-box";
505
+ readonly width: "100%";
506
+ readonly height: "100%";
507
+ readonly "max-width": "none";
508
+ readonly "max-height": "none";
509
+ readonly margin: "0";
510
+ readonly padding: "1rem";
511
+ readonly border: "0";
512
+ readonly "background-color": "rgb(0 0 0 / 0.5)";
513
+ readonly visibility: "hidden";
514
+ readonly opacity: "0";
515
+ readonly "pointer-events": "none";
516
+ readonly transition: "opacity 0.2s ease, visibility 0s linear 0.2s";
517
+ readonly "&[open], &:target": {
518
+ readonly visibility: "visible";
519
+ readonly opacity: "1";
520
+ readonly "pointer-events": "auto";
521
+ readonly "transition-delay": "0s";
522
+ };
523
+ readonly "&::backdrop": {
524
+ readonly background: "transparent";
525
+ };
526
+ readonly "@media (prefers-reduced-motion: reduce)": {
527
+ readonly transition: "none";
528
+ };
529
+ };
530
+ readonly styles: {
531
+ readonly ghost: {
532
+ readonly "background-color": "transparent";
533
+ };
534
+ readonly soft: {
535
+ readonly "background-color": "rgb(255 255 255 / 0.6)";
536
+ readonly "backdrop-filter": "blur(6px)";
537
+ };
538
+ };
539
+ readonly sizes: {
540
+ readonly sm: {
541
+ readonly "--ui-modal-w": "24rem";
542
+ };
543
+ readonly lg: {
544
+ readonly "--ui-modal-w": "48rem";
545
+ };
546
+ };
547
+ readonly states: {
548
+ readonly active: {
549
+ readonly visibility: "visible";
550
+ readonly opacity: "1";
551
+ readonly "pointer-events": "auto";
552
+ readonly "transition-delay": "0s";
553
+ };
554
+ };
555
+ };
556
+ readonly "modal-box": {
557
+ readonly base: {
558
+ readonly "box-sizing": "border-box";
559
+ readonly width: "min(var(--ui-modal-w, 32rem), 100%)";
560
+ readonly "max-height": "100%";
561
+ readonly overflow: "auto";
562
+ readonly padding: "1.5rem";
563
+ readonly "font-family": "var(--ui-font-sans)";
564
+ readonly "font-size": "var(--ui-text-md)";
565
+ readonly color: "var(--ui-surface-fg)";
566
+ readonly "background-color": "var(--ui-surface)";
567
+ readonly "border-radius": "calc(var(--ui-radius) * 1.5)";
568
+ readonly "border-top": "3px solid transparent";
569
+ readonly "box-shadow": "0 20px 40px -8px rgb(0 0 0 / 0.3), 0 4px 10px rgb(0 0 0 / 0.1)";
570
+ };
571
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
572
+ readonly sizes: {
573
+ readonly sm: {
574
+ readonly padding: "1rem";
575
+ readonly "font-size": "var(--ui-text-sm)";
576
+ };
577
+ readonly lg: {
578
+ readonly padding: "2rem";
579
+ readonly "font-size": "var(--ui-text-lg)";
580
+ };
581
+ };
582
+ };
583
+ readonly tabs: {
584
+ readonly base: {
585
+ readonly display: "flex";
586
+ readonly "flex-wrap": "wrap";
587
+ readonly gap: "0.25rem";
588
+ readonly "font-family": "var(--ui-font-sans)";
589
+ readonly "border-bottom": "1px solid var(--ui-border)";
590
+ };
591
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
592
+ readonly styles: {
593
+ readonly outline: {
594
+ readonly "--ui-tab-active-line": "transparent";
595
+ readonly "--ui-tab-active-shadow": "inset 0 0 0 1px var(--ui-c)";
596
+ readonly "--ui-tab-radius": "var(--ui-radius)";
597
+ readonly "border-bottom-color": "transparent";
598
+ };
599
+ readonly ghost: {
600
+ readonly "--ui-tab-active-line": "transparent";
601
+ readonly "--ui-tab-hover-bg": "var(--ui-surface-muted)";
602
+ readonly "--ui-tab-radius": "var(--ui-radius)";
603
+ readonly "border-bottom-color": "transparent";
604
+ };
605
+ readonly soft: {
606
+ readonly "--ui-tab-active-line": "transparent";
607
+ readonly "--ui-tab-active-bg": "var(--ui-c-soft)";
608
+ readonly "--ui-tab-active-fg": "var(--ui-c-soft-fg)";
609
+ readonly "--ui-tab-hover-bg": "var(--ui-surface-muted)";
610
+ readonly "--ui-tab-radius": "var(--ui-radius)";
611
+ readonly "border-bottom-color": "transparent";
612
+ };
613
+ };
614
+ readonly sizes: {
615
+ readonly sm: {
616
+ readonly "--ui-tab-fs": "var(--ui-text-sm)";
617
+ readonly "--ui-tab-px": "0.75rem";
618
+ readonly "--ui-tab-py": "0.375rem";
619
+ };
620
+ readonly lg: {
621
+ readonly "--ui-tab-fs": "var(--ui-text-lg)";
622
+ readonly "--ui-tab-px": "1.25rem";
623
+ readonly "--ui-tab-py": "0.75rem";
624
+ };
625
+ };
626
+ };
627
+ readonly tab: {
628
+ readonly base: {
629
+ readonly appearance: "none";
630
+ readonly margin: "0 0 -1px";
631
+ readonly padding: "var(--ui-tab-py, 0.5rem) var(--ui-tab-px, 1rem)";
632
+ readonly "font-family": "inherit";
633
+ readonly "font-size": "var(--ui-tab-fs, var(--ui-text-md))";
634
+ readonly "font-weight": "500";
635
+ readonly "line-height": "1.25";
636
+ readonly color: "color-mix(in oklab, var(--ui-surface-fg) 62%, transparent)";
637
+ readonly "background-color": "transparent";
638
+ readonly border: "0";
639
+ readonly "border-bottom": "2px solid transparent";
640
+ readonly "border-radius": "var(--ui-tab-radius, 0)";
641
+ readonly cursor: "pointer";
642
+ readonly "white-space": "nowrap";
643
+ readonly transition: string;
644
+ readonly "&:hover": {
645
+ readonly color: "var(--ui-surface-fg)";
646
+ readonly "background-color": "var(--ui-tab-hover-bg, transparent)";
647
+ };
648
+ readonly "&:focus-visible": {
649
+ readonly "outline-offset": "-2px";
650
+ };
651
+ };
652
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
653
+ readonly sizes: {
654
+ readonly sm: {
655
+ readonly "font-size": "var(--ui-text-sm)";
656
+ readonly padding: "0.375rem 0.75rem";
657
+ };
658
+ readonly lg: {
659
+ readonly "font-size": "var(--ui-text-lg)";
660
+ readonly padding: "0.75rem 1.25rem";
661
+ };
662
+ };
663
+ readonly states: {
664
+ readonly disabled: {
665
+ readonly opacity: "0.45";
666
+ readonly cursor: "not-allowed";
667
+ readonly "pointer-events": "none";
668
+ };
669
+ readonly loading: {
670
+ readonly cursor: "progress";
671
+ readonly animation: "ui-pulse 1.2s ease-in-out infinite";
672
+ };
673
+ readonly active: {
674
+ readonly color: "var(--ui-tab-active-fg, var(--ui-c-text, var(--ui-surface-fg)))";
675
+ readonly "background-color": "var(--ui-tab-active-bg, transparent)";
676
+ readonly "border-bottom-color": "var(--ui-tab-active-line, var(--ui-c, var(--ui-surface-fg)))";
677
+ readonly "box-shadow": "var(--ui-tab-active-shadow, none)";
678
+ readonly "&:hover": {
679
+ readonly color: "var(--ui-tab-active-fg, var(--ui-c-text, var(--ui-surface-fg)))";
680
+ readonly "background-color": "var(--ui-tab-active-bg, transparent)";
681
+ };
682
+ };
683
+ };
684
+ };
685
+ };
686
+ };
687
+ /**
688
+ * Base-layer keyframes that can't live inside a component rule.
689
+ * Emitted as `@keyframes <prefix>-<name>`; `animation:` values in this
690
+ * theme reference them as `ui-<name>` and are re-prefixed in buildRules.
691
+ */
692
+ export declare const defaultKeyframes: Record<string, CssRuleObject>;
693
+ //# sourceMappingURL=default-theme.d.ts.map