@leitware/composables 3.1.0 → 3.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.
@@ -0,0 +1,485 @@
1
+ /* ============================================================================
2
+ @leitware/composables - Oqita Preset
3
+ ============================================================================
4
+ Friendly and soft: expressive type, compact pill controls, quiet surfaces, and cobalt actions.
5
+
6
+ HOW TO USE:
7
+ 1. Copy this file into your project's global CSS (e.g. index.css)
8
+ 2. Or import the preset: @import "@leitware/composables/presets/oqita.css";
9
+ 3. Add class="dark" to <html> for dark mode.
10
+ ============================================================================ */
11
+
12
+ :root {
13
+ --bg-default: #faf8f3;
14
+ --bg-inverse: #202b43;
15
+ --bg-muted: #efebe3;
16
+ --bg-surface-default: #ffffff;
17
+ --bg-surface-popover: #ffffff;
18
+ --bg-surface-accent: #efebe3;
19
+ --bg-surface-field: #ffffff;
20
+ --bg-surface-input: #ffffff;
21
+ --bg-surface-info: #f0f1f3;
22
+ --bg-surface-success: #f0f1f3;
23
+ --bg-surface-warning: #f0f1f3;
24
+ --bg-surface-critical: #f0f1f3;
25
+ --bg-surface-emphasis: #f0f1f3;
26
+ --bg-surface-inverse: #202b43;
27
+ --bg-surface-transparent: #202b430a;
28
+ --bg-overlay: #111a32a6;
29
+ --bg-surface-brand: #f0f1f3;
30
+ --bg-surface-brand-2: #f0f1f3;
31
+ --bg-surface-brand-3: #f0f1f3;
32
+ --bg-surface-brand-4: #f0f1f3;
33
+ --bg-surface-brand-5: #f0f1f3;
34
+ --bg-surface-hover: #e7e2d8;
35
+ --bg-fill-default: #ffffff;
36
+ --bg-fill-primary: #2549e8;
37
+ --bg-fill-primary-hover: #1c3bc4;
38
+ --bg-fill-selected: #2549e8;
39
+ --bg-fill-brand: #ff7518;
40
+ --bg-fill-brand-2: #ffcc00;
41
+ --bg-fill-brand-3: #18b86a;
42
+ --bg-fill-brand-4: #00b7d4;
43
+ --bg-fill-brand-5: #ff6090;
44
+ --bg-fill-info: #137c99;
45
+ --bg-fill-success: #167347;
46
+ --bg-fill-warning: #946100;
47
+ --bg-fill-critical: #b92c37;
48
+ --bg-fill-emphasis: #2549e8;
49
+ --bg-fill-transparent: #202b430a;
50
+ --bg-fill-secondary: #efebe3;
51
+ --bg-fill-secondary-hover: #e3ded3;
52
+ --bg-fill-secondary-inverse: #ffffff;
53
+ --text-default: #202b43;
54
+ --text-secondary: #535b6c;
55
+ --text-muted: #616779;
56
+ --text-disabled: #9296a0;
57
+ --text-inverse: #ffffff;
58
+ --text-on-fill-primary: #ffffff;
59
+ --text-on-fill-selected: #ffffff;
60
+ --text-on-fill-brand: #202b43;
61
+ --text-on-fill-secondary: #202b43;
62
+ --text-on-surface-accent: #202b43;
63
+ --text-info: #103b50;
64
+ --text-success: #103d29;
65
+ --text-warning: #514000;
66
+ --text-critical: #641923;
67
+ --text-emphasis: #103b50;
68
+ --text-brand: #572600;
69
+ --text-brand-2: #514000;
70
+ --text-brand-3: #103d29;
71
+ --text-brand-4: #103b50;
72
+ --text-brand-5: #581a32;
73
+ --text-link: #2549c8;
74
+ --icon-default: #202b43;
75
+ --icon-secondary: #535b6c;
76
+ --icon-disabled: #9296a0;
77
+ --icon-inverse: #ffffff;
78
+ --icon-info: #103b50;
79
+ --icon-success: #103d29;
80
+ --icon-warning: #514000;
81
+ --icon-critical: #641923;
82
+ --icon-emphasis: #103b50;
83
+ --icon-brand: #572600;
84
+ --icon-brand-2: #514000;
85
+ --icon-brand-3: #103d29;
86
+ --icon-brand-4: #103b50;
87
+ --icon-brand-5: #581a32;
88
+ --border-default: #e2e4e8;
89
+ --border-secondary: #e2e4e8;
90
+ --border-input: #b3b9c3;
91
+ --border-tertiary: #cfd3da;
92
+ --border-disabled: #dcd7cd;
93
+ --border-inverse: #535b6c;
94
+ --border-focus: #2549e8;
95
+ --border-brand: #f0f1f3;
96
+ --border-brand-2: #f0f1f3;
97
+ --border-brand-3: #f0f1f3;
98
+ --border-brand-4: #f0f1f3;
99
+ --border-brand-5: #f0f1f3;
100
+ --border-info: #f0f1f3;
101
+ --border-success: #f0f1f3;
102
+ --border-warning: #f0f1f3;
103
+ --border-critical: #f0f1f3;
104
+ --border-emphasis: #f0f1f3;
105
+ --chart-1: #2549e8;
106
+ --chart-2: #ff7518;
107
+ --chart-3: #167347;
108
+ --chart-4: #946100;
109
+ --chart-5: #b92f63;
110
+ --sidebar-background: #202b43;
111
+ --sidebar-foreground: #ffffff;
112
+ --sidebar-primary: #ffcc00;
113
+ --sidebar-primary-foreground: #202b43;
114
+ --sidebar-accent: #34425d;
115
+ --sidebar-accent-foreground: #ffffff;
116
+ --sidebar-border: #303b50;
117
+ --sidebar-ring: #ffcc00;
118
+ --spacing: 0.25rem;
119
+ --border-width-base: 0.0625rem;
120
+ --radius: 0.875rem;
121
+ --font-size-base: 1rem;
122
+ --leading-base: 1.5;
123
+ --letter-spacing-base: 0.01em;
124
+ --opacity-disabled: 0.5;
125
+ --shadow-offset-y: 3px;
126
+ --shadow-blur: 8px;
127
+ --shadow-spread: -1px;
128
+ --shadow-base-color: #242d4512;
129
+ --container-sm: 576px;
130
+ --container-md: 768px;
131
+ --container-lg: 1056px;
132
+ --container-xl: 1248px;
133
+ --container-2xl: 1440px;
134
+ --dropdown-offset: 4;
135
+ --overlay-offset: 4;
136
+ --font-sans: 'DM Sans Variable', ui-sans-serif, system-ui, sans-serif;
137
+ --font-heading: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, sans-serif;
138
+ --font-brand: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, sans-serif;
139
+ --button-radius: 9999px;
140
+ --card-radius: calc(var(--radius) * 1.6);
141
+ --card-padding: calc(var(--spacing) * 5);
142
+ --input-radius: var(--radius-lg);
143
+ --control-size-md: calc(var(--spacing) * 11);
144
+ --badge-radius: 9999px;
145
+ --motion-duration-fast: 100ms;
146
+ --motion-duration-normal: 200ms;
147
+ --motion-duration-slow: 300ms;
148
+ --motion-duration-color: var(--motion-duration-fast);
149
+ --motion-duration-interaction: var(--motion-duration-fast);
150
+ --motion-duration-disclosure: var(--motion-duration-normal);
151
+ --motion-duration-overlay: var(--motion-duration-fast);
152
+ --motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
153
+ --motion-ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
154
+ --motion-ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
155
+ --motion-ease-linear: linear;
156
+ --transition-default: var(--motion-duration-normal) var(--motion-ease-standard);
157
+ --transition-fast: var(--motion-duration-fast) var(--motion-ease-standard);
158
+ --transition-slow: var(--motion-duration-slow) var(--motion-ease-decelerate);
159
+ --hover-transform: none;
160
+ --hover-shadow: none;
161
+ --active-scale: 0.98;
162
+ --control-size-sm: calc(var(--spacing) * 10);
163
+ --control-size-lg: calc(var(--spacing) * 12);
164
+ --control-font-size: var(--text-base);
165
+ --button-height: var(--control-size-md);
166
+ --button-height-xs: calc(var(--spacing) * 8);
167
+ --button-height-sm: var(--control-size-sm);
168
+ --button-height-lg: var(--control-size-lg);
169
+ --button-font-size: var(--text-base);
170
+ --button-font-size-xs: var(--text-sm);
171
+ --button-font-size-sm: var(--text-sm);
172
+ --button-gap: calc(var(--spacing) * 2);
173
+ --button-radius-xs: 9999px;
174
+ --button-radius-sm: 9999px;
175
+ --button-min-width-ratio: 2;
176
+ --button-brand-font-weight: 600;
177
+ --button-primary-shadow: 0 4px 0 #142b99, 0 8px 18px #2549e81f;
178
+ --button-primary-hover-shadow: var(--button-primary-shadow);
179
+ --button-primary-border: transparent;
180
+ --button-primary-hover-border: transparent;
181
+ --button-secondary-border: transparent;
182
+ --button-secondary-hover-bg: var(--bg-fill-secondary-hover);
183
+ --button-quiet-hover-bg: var(--bg-surface-hover);
184
+ --button-destructive-bg: #b92c37;
185
+ --button-destructive-text: #ffffff;
186
+ --button-destructive-border: transparent;
187
+ --button-destructive-hover-border: transparent;
188
+ --button-destructive-shadow: 0 4px 0 #7a1822, 0 8px 18px #b92c371f;
189
+ --button-destructive-hover-shadow: var(--button-destructive-shadow);
190
+ --button-destructive-hover-background-image: linear-gradient(#9f202b, #9f202b);
191
+ --label-font-size: var(--text-sm);
192
+ --body-font-size: var(--text-base);
193
+ --body-line-height: var(--text-base--line-height);
194
+ --title-font-size: var(--text-lg);
195
+ --title-line-height: var(--text-lg--line-height);
196
+ --heading-font-size: var(--text-xl);
197
+ --heading-line-height: var(--text-xl--line-height);
198
+ --card-border-width: calc(var(--border-width-base) * 0);
199
+ --alert-border-width: calc(var(--border-width-base) * 0);
200
+ --dialog-radius: calc(var(--radius) * 1.6);
201
+ --checkbox-radius: calc(var(--radius) * 0.4);
202
+ --choice-size: calc(var(--spacing) * 5);
203
+ --choice-border-color: var(--border-input);
204
+ --switch-height: calc(var(--spacing) * 6);
205
+ --slider-size: calc(var(--spacing) * 5);
206
+ --tabs-list-radius: 9999px;
207
+ --tabs-tab-radius: 9999px;
208
+ --tabs-list-padding: calc(var(--spacing) * 0.5);
209
+ --tabs-tab-height: var(--control-size-sm);
210
+ --focus-ring-color: var(--border-focus);
211
+ --focus-ring-width: 3px;
212
+ --focus-ring-offset: 3px;
213
+ --focus-ring-opacity: 100%;
214
+ --hover-ring-width: 0px;
215
+ --hover-ring-color: transparent;
216
+ --button-brand-bg: var(--bg-fill-brand);
217
+ --button-brand-text: var(--text-on-fill-brand);
218
+ --button-brand-border: transparent;
219
+ --button-brand-hover-border: transparent;
220
+ --button-brand-hover-shadow: none;
221
+ --button-brand-2-bg: var(--bg-fill-brand-2);
222
+ --button-brand-2-text: var(--text-on-fill-brand);
223
+ --button-brand-2-border: transparent;
224
+ --button-brand-2-hover-border: transparent;
225
+ --button-brand-2-hover-shadow: none;
226
+ --button-brand-3-bg: var(--bg-fill-brand-3);
227
+ --button-brand-3-text: var(--text-on-fill-brand);
228
+ --button-brand-3-border: transparent;
229
+ --button-brand-3-hover-border: transparent;
230
+ --button-brand-3-hover-shadow: none;
231
+ --button-brand-4-bg: var(--bg-fill-brand-4);
232
+ --button-brand-4-text: var(--text-on-fill-brand);
233
+ --button-brand-4-border: transparent;
234
+ --button-brand-4-hover-border: transparent;
235
+ --button-brand-4-hover-shadow: none;
236
+ --button-brand-5-bg: var(--bg-fill-brand-5);
237
+ --button-brand-5-text: var(--text-on-fill-brand);
238
+ --button-brand-5-border: transparent;
239
+ --button-brand-5-hover-border: transparent;
240
+ --button-brand-5-hover-shadow: none;
241
+ --background: var(--bg-default);
242
+ --foreground: var(--text-default);
243
+ --card: var(--bg-surface-default);
244
+ --card-foreground: var(--text-default);
245
+ --popover: var(--bg-surface-popover);
246
+ --popover-foreground: var(--text-default);
247
+ --primary: var(--bg-fill-primary);
248
+ --primary-foreground: var(--text-on-fill-primary);
249
+ --secondary: var(--bg-fill-secondary);
250
+ --secondary-foreground: var(--text-on-fill-secondary);
251
+ --muted: var(--bg-muted);
252
+ --muted-foreground: var(--text-muted);
253
+ --accent: var(--bg-surface-accent);
254
+ --accent-foreground: var(--text-on-surface-accent);
255
+ --destructive: var(--bg-fill-critical);
256
+ --border: var(--border-default);
257
+ --input: var(--border-input);
258
+ --ring: var(--border-focus);
259
+ }
260
+
261
+ .dark {
262
+ --bg-default: #131c2e;
263
+ --bg-inverse: #faf8f3;
264
+ --bg-muted: #27334a;
265
+ --bg-surface-default: #1d2940;
266
+ --bg-surface-popover: #1d2940;
267
+ --bg-surface-accent: #27334a;
268
+ --bg-surface-field: #131c2e;
269
+ --bg-surface-input: #131c2e;
270
+ --bg-surface-info: #27334a;
271
+ --bg-surface-success: #27334a;
272
+ --bg-surface-warning: #27334a;
273
+ --bg-surface-critical: #27334a;
274
+ --bg-surface-emphasis: #27334a;
275
+ --bg-surface-inverse: #faf8f3;
276
+ --bg-surface-transparent: #ffffff0f;
277
+ --bg-overlay: #070d19c4;
278
+ --bg-surface-brand: #27334a;
279
+ --bg-surface-brand-2: #27334a;
280
+ --bg-surface-brand-3: #27334a;
281
+ --bg-surface-brand-4: #27334a;
282
+ --bg-surface-brand-5: #27334a;
283
+ --bg-surface-hover: #34425d;
284
+ --bg-fill-default: #1d2940;
285
+ --bg-fill-primary: #2549e8;
286
+ --bg-fill-primary-hover: #3155f0;
287
+ --bg-fill-selected: #2549e8;
288
+ --bg-fill-brand: #ff7518;
289
+ --bg-fill-brand-2: #ffcc00;
290
+ --bg-fill-brand-3: #18b86a;
291
+ --bg-fill-brand-4: #00b7d4;
292
+ --bg-fill-brand-5: #ff6090;
293
+ --bg-fill-info: #00b7d4;
294
+ --bg-fill-success: #57d78b;
295
+ --bg-fill-warning: #ffcc00;
296
+ --bg-fill-critical: #ff8590;
297
+ --bg-fill-emphasis: #2549e8;
298
+ --bg-fill-transparent: #ffffff0f;
299
+ --bg-fill-secondary: #34425d;
300
+ --bg-fill-secondary-hover: #42516f;
301
+ --bg-fill-secondary-inverse: #1d2940;
302
+ --text-default: #faf8f3;
303
+ --text-secondary: #bac3d2;
304
+ --text-muted: #a3afc3;
305
+ --text-disabled: #6b7892;
306
+ --text-inverse: #202b43;
307
+ --text-on-fill-primary: #ffffff;
308
+ --text-on-fill-selected: #ffffff;
309
+ --text-on-fill-brand: #202b43;
310
+ --text-on-fill-secondary: #faf8f3;
311
+ --text-on-surface-accent: #faf8f3;
312
+ --text-info: #00b7d4;
313
+ --text-success: #57d78b;
314
+ --text-warning: #ffcc00;
315
+ --text-critical: #ff8590;
316
+ --text-emphasis: #00b7d4;
317
+ --text-brand: #ff9a40;
318
+ --text-brand-2: #ffcc00;
319
+ --text-brand-3: #57d78b;
320
+ --text-brand-4: #00b7d4;
321
+ --text-brand-5: #ff7ba8;
322
+ --text-link: #00b7d4;
323
+ --icon-default: #faf8f3;
324
+ --icon-secondary: #bac3d2;
325
+ --icon-disabled: #6b7892;
326
+ --icon-inverse: #202b43;
327
+ --icon-info: #00b7d4;
328
+ --icon-success: #57d78b;
329
+ --icon-warning: #ffcc00;
330
+ --icon-critical: #ff8590;
331
+ --icon-emphasis: #00b7d4;
332
+ --icon-brand: #ff9a40;
333
+ --icon-brand-2: #ffcc00;
334
+ --icon-brand-3: #57d78b;
335
+ --icon-brand-4: #00b7d4;
336
+ --icon-brand-5: #ff7ba8;
337
+ --border-default: #303b50;
338
+ --border-secondary: #303b50;
339
+ --border-input: #69758b;
340
+ --border-tertiary: #455167;
341
+ --border-disabled: #3d4b65;
342
+ --border-inverse: #cfcac0;
343
+ --border-focus: #ffcc00;
344
+ --border-brand: #27334a;
345
+ --border-brand-2: #27334a;
346
+ --border-brand-3: #27334a;
347
+ --border-brand-4: #27334a;
348
+ --border-brand-5: #27334a;
349
+ --border-info: #27334a;
350
+ --border-success: #27334a;
351
+ --border-warning: #27334a;
352
+ --border-critical: #27334a;
353
+ --border-emphasis: #27334a;
354
+ --chart-1: #00b7d4;
355
+ --chart-2: #ff7518;
356
+ --chart-3: #57d78b;
357
+ --chart-4: #ffcc00;
358
+ --chart-5: #ff7ba8;
359
+ --sidebar-background: #10182a;
360
+ --sidebar-foreground: #faf8f3;
361
+ --sidebar-primary: #ffcc00;
362
+ --sidebar-primary-foreground: #202b43;
363
+ --sidebar-accent: #27334a;
364
+ --sidebar-accent-foreground: #faf8f3;
365
+ --sidebar-border: #27334a;
366
+ --sidebar-ring: #ffcc00;
367
+ --font-sans: 'DM Sans Variable', ui-sans-serif, system-ui, sans-serif;
368
+ --font-heading: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, sans-serif;
369
+ --font-brand: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, sans-serif;
370
+ --spacing: 0.25rem;
371
+ --font-size-base: 1rem;
372
+ --leading-base: 1.5;
373
+ --letter-spacing-base: 0.01em;
374
+ --radius: 0.875rem;
375
+ --border-width-base: 0.0625rem;
376
+ --control-size-sm: calc(var(--spacing) * 10);
377
+ --control-size-md: calc(var(--spacing) * 11);
378
+ --control-size-lg: calc(var(--spacing) * 12);
379
+ --control-font-size: var(--text-base);
380
+ --button-height: var(--control-size-md);
381
+ --button-height-xs: calc(var(--spacing) * 8);
382
+ --button-height-sm: var(--control-size-sm);
383
+ --button-height-lg: var(--control-size-lg);
384
+ --button-font-size: var(--text-base);
385
+ --button-font-size-xs: var(--text-sm);
386
+ --button-font-size-sm: var(--text-sm);
387
+ --button-gap: calc(var(--spacing) * 2);
388
+ --button-radius: 9999px;
389
+ --button-radius-xs: 9999px;
390
+ --button-radius-sm: 9999px;
391
+ --button-min-width-ratio: 2;
392
+ --button-brand-font-weight: 600;
393
+ --button-primary-shadow: 0 4px 0 #142b99, 0 8px 18px #2549e81f;
394
+ --button-primary-hover-shadow: var(--button-primary-shadow);
395
+ --button-primary-border: transparent;
396
+ --button-primary-hover-border: transparent;
397
+ --button-secondary-border: transparent;
398
+ --button-secondary-hover-bg: var(--bg-fill-secondary-hover);
399
+ --button-quiet-hover-bg: var(--bg-surface-hover);
400
+ --button-destructive-bg: #b92c37;
401
+ --button-destructive-text: #ffffff;
402
+ --button-destructive-border: transparent;
403
+ --button-destructive-hover-border: transparent;
404
+ --button-destructive-shadow: 0 4px 0 #7a1822, 0 8px 18px #b92c371f;
405
+ --button-destructive-hover-shadow: var(--button-destructive-shadow);
406
+ --button-destructive-hover-background-image: linear-gradient(#9f202b, #9f202b);
407
+ --input-radius: var(--radius-lg);
408
+ --label-font-size: var(--text-sm);
409
+ --body-font-size: var(--text-base);
410
+ --body-line-height: var(--text-base--line-height);
411
+ --title-font-size: var(--text-lg);
412
+ --title-line-height: var(--text-lg--line-height);
413
+ --heading-font-size: var(--text-xl);
414
+ --heading-line-height: var(--text-xl--line-height);
415
+ --card-radius: calc(var(--radius) * 1.6);
416
+ --card-padding: calc(var(--spacing) * 5);
417
+ --card-border-width: calc(var(--border-width-base) * 0);
418
+ --alert-border-width: calc(var(--border-width-base) * 0);
419
+ --dialog-radius: calc(var(--radius) * 1.6);
420
+ --badge-radius: 9999px;
421
+ --checkbox-radius: calc(var(--radius) * 0.4);
422
+ --choice-size: calc(var(--spacing) * 5);
423
+ --choice-border-color: var(--border-input);
424
+ --switch-height: calc(var(--spacing) * 6);
425
+ --slider-size: calc(var(--spacing) * 5);
426
+ --tabs-list-radius: 9999px;
427
+ --tabs-tab-radius: 9999px;
428
+ --tabs-list-padding: calc(var(--spacing) * 0.5);
429
+ --tabs-tab-height: var(--control-size-sm);
430
+ --shadow-offset-y: 3px;
431
+ --shadow-blur: 8px;
432
+ --shadow-spread: -1px;
433
+ --shadow-base-color: #00000033;
434
+ --focus-ring-color: var(--border-focus);
435
+ --focus-ring-width: 3px;
436
+ --focus-ring-offset: 3px;
437
+ --focus-ring-opacity: 100%;
438
+ --hover-ring-width: 0px;
439
+ --hover-ring-color: transparent;
440
+ --hover-shadow: none;
441
+ --active-scale: 0.98;
442
+ --button-brand-bg: var(--bg-fill-brand);
443
+ --button-brand-text: var(--text-on-fill-brand);
444
+ --button-brand-border: transparent;
445
+ --button-brand-hover-border: transparent;
446
+ --button-brand-hover-shadow: none;
447
+ --button-brand-2-bg: var(--bg-fill-brand-2);
448
+ --button-brand-2-text: var(--text-on-fill-brand);
449
+ --button-brand-2-border: transparent;
450
+ --button-brand-2-hover-border: transparent;
451
+ --button-brand-2-hover-shadow: none;
452
+ --button-brand-3-bg: var(--bg-fill-brand-3);
453
+ --button-brand-3-text: var(--text-on-fill-brand);
454
+ --button-brand-3-border: transparent;
455
+ --button-brand-3-hover-border: transparent;
456
+ --button-brand-3-hover-shadow: none;
457
+ --button-brand-4-bg: var(--bg-fill-brand-4);
458
+ --button-brand-4-text: var(--text-on-fill-brand);
459
+ --button-brand-4-border: transparent;
460
+ --button-brand-4-hover-border: transparent;
461
+ --button-brand-4-hover-shadow: none;
462
+ --button-brand-5-bg: var(--bg-fill-brand-5);
463
+ --button-brand-5-text: var(--text-on-fill-brand);
464
+ --button-brand-5-border: transparent;
465
+ --button-brand-5-hover-border: transparent;
466
+ --button-brand-5-hover-shadow: none;
467
+ --background: var(--bg-default);
468
+ --foreground: var(--text-default);
469
+ --card: var(--bg-surface-default);
470
+ --card-foreground: var(--text-default);
471
+ --popover: var(--bg-surface-popover);
472
+ --popover-foreground: var(--text-default);
473
+ --primary: var(--bg-fill-primary);
474
+ --primary-foreground: var(--text-on-fill-primary);
475
+ --secondary: var(--bg-fill-secondary);
476
+ --secondary-foreground: var(--text-on-fill-secondary);
477
+ --muted: var(--bg-muted);
478
+ --muted-foreground: var(--text-muted);
479
+ --accent: var(--bg-surface-accent);
480
+ --accent-foreground: var(--text-on-surface-accent);
481
+ --destructive: var(--bg-fill-critical);
482
+ --border: var(--border-default);
483
+ --input: var(--border-input);
484
+ --ring: var(--border-focus);
485
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leitware/composables",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,485 @@
1
+ /* ============================================================================
2
+ @leitware/composables - Oqita Preset
3
+ ============================================================================
4
+ Friendly and soft: expressive type, compact pill controls, quiet surfaces, and cobalt actions.
5
+
6
+ HOW TO USE:
7
+ 1. Copy this file into your project's global CSS (e.g. index.css)
8
+ 2. Or import the preset: @import "@leitware/composables/presets/oqita.css";
9
+ 3. Add class="dark" to <html> for dark mode.
10
+ ============================================================================ */
11
+
12
+ :root {
13
+ --bg-default: #faf8f3;
14
+ --bg-inverse: #202b43;
15
+ --bg-muted: #efebe3;
16
+ --bg-surface-default: #ffffff;
17
+ --bg-surface-popover: #ffffff;
18
+ --bg-surface-accent: #efebe3;
19
+ --bg-surface-field: #ffffff;
20
+ --bg-surface-input: #ffffff;
21
+ --bg-surface-info: #f0f1f3;
22
+ --bg-surface-success: #f0f1f3;
23
+ --bg-surface-warning: #f0f1f3;
24
+ --bg-surface-critical: #f0f1f3;
25
+ --bg-surface-emphasis: #f0f1f3;
26
+ --bg-surface-inverse: #202b43;
27
+ --bg-surface-transparent: #202b430a;
28
+ --bg-overlay: #111a32a6;
29
+ --bg-surface-brand: #f0f1f3;
30
+ --bg-surface-brand-2: #f0f1f3;
31
+ --bg-surface-brand-3: #f0f1f3;
32
+ --bg-surface-brand-4: #f0f1f3;
33
+ --bg-surface-brand-5: #f0f1f3;
34
+ --bg-surface-hover: #e7e2d8;
35
+ --bg-fill-default: #ffffff;
36
+ --bg-fill-primary: #2549e8;
37
+ --bg-fill-primary-hover: #1c3bc4;
38
+ --bg-fill-selected: #2549e8;
39
+ --bg-fill-brand: #ff7518;
40
+ --bg-fill-brand-2: #ffcc00;
41
+ --bg-fill-brand-3: #18b86a;
42
+ --bg-fill-brand-4: #00b7d4;
43
+ --bg-fill-brand-5: #ff6090;
44
+ --bg-fill-info: #137c99;
45
+ --bg-fill-success: #167347;
46
+ --bg-fill-warning: #946100;
47
+ --bg-fill-critical: #b92c37;
48
+ --bg-fill-emphasis: #2549e8;
49
+ --bg-fill-transparent: #202b430a;
50
+ --bg-fill-secondary: #efebe3;
51
+ --bg-fill-secondary-hover: #e3ded3;
52
+ --bg-fill-secondary-inverse: #ffffff;
53
+ --text-default: #202b43;
54
+ --text-secondary: #535b6c;
55
+ --text-muted: #616779;
56
+ --text-disabled: #9296a0;
57
+ --text-inverse: #ffffff;
58
+ --text-on-fill-primary: #ffffff;
59
+ --text-on-fill-selected: #ffffff;
60
+ --text-on-fill-brand: #202b43;
61
+ --text-on-fill-secondary: #202b43;
62
+ --text-on-surface-accent: #202b43;
63
+ --text-info: #103b50;
64
+ --text-success: #103d29;
65
+ --text-warning: #514000;
66
+ --text-critical: #641923;
67
+ --text-emphasis: #103b50;
68
+ --text-brand: #572600;
69
+ --text-brand-2: #514000;
70
+ --text-brand-3: #103d29;
71
+ --text-brand-4: #103b50;
72
+ --text-brand-5: #581a32;
73
+ --text-link: #2549c8;
74
+ --icon-default: #202b43;
75
+ --icon-secondary: #535b6c;
76
+ --icon-disabled: #9296a0;
77
+ --icon-inverse: #ffffff;
78
+ --icon-info: #103b50;
79
+ --icon-success: #103d29;
80
+ --icon-warning: #514000;
81
+ --icon-critical: #641923;
82
+ --icon-emphasis: #103b50;
83
+ --icon-brand: #572600;
84
+ --icon-brand-2: #514000;
85
+ --icon-brand-3: #103d29;
86
+ --icon-brand-4: #103b50;
87
+ --icon-brand-5: #581a32;
88
+ --border-default: #e2e4e8;
89
+ --border-secondary: #e2e4e8;
90
+ --border-input: #b3b9c3;
91
+ --border-tertiary: #cfd3da;
92
+ --border-disabled: #dcd7cd;
93
+ --border-inverse: #535b6c;
94
+ --border-focus: #2549e8;
95
+ --border-brand: #f0f1f3;
96
+ --border-brand-2: #f0f1f3;
97
+ --border-brand-3: #f0f1f3;
98
+ --border-brand-4: #f0f1f3;
99
+ --border-brand-5: #f0f1f3;
100
+ --border-info: #f0f1f3;
101
+ --border-success: #f0f1f3;
102
+ --border-warning: #f0f1f3;
103
+ --border-critical: #f0f1f3;
104
+ --border-emphasis: #f0f1f3;
105
+ --chart-1: #2549e8;
106
+ --chart-2: #ff7518;
107
+ --chart-3: #167347;
108
+ --chart-4: #946100;
109
+ --chart-5: #b92f63;
110
+ --sidebar-background: #202b43;
111
+ --sidebar-foreground: #ffffff;
112
+ --sidebar-primary: #ffcc00;
113
+ --sidebar-primary-foreground: #202b43;
114
+ --sidebar-accent: #34425d;
115
+ --sidebar-accent-foreground: #ffffff;
116
+ --sidebar-border: #303b50;
117
+ --sidebar-ring: #ffcc00;
118
+ --spacing: 0.25rem;
119
+ --border-width-base: 0.0625rem;
120
+ --radius: 0.875rem;
121
+ --font-size-base: 1rem;
122
+ --leading-base: 1.5;
123
+ --letter-spacing-base: 0.01em;
124
+ --opacity-disabled: 0.5;
125
+ --shadow-offset-y: 3px;
126
+ --shadow-blur: 8px;
127
+ --shadow-spread: -1px;
128
+ --shadow-base-color: #242d4512;
129
+ --container-sm: 576px;
130
+ --container-md: 768px;
131
+ --container-lg: 1056px;
132
+ --container-xl: 1248px;
133
+ --container-2xl: 1440px;
134
+ --dropdown-offset: 4;
135
+ --overlay-offset: 4;
136
+ --font-sans: 'DM Sans Variable', ui-sans-serif, system-ui, sans-serif;
137
+ --font-heading: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, sans-serif;
138
+ --font-brand: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, sans-serif;
139
+ --button-radius: 9999px;
140
+ --card-radius: calc(var(--radius) * 1.6);
141
+ --card-padding: calc(var(--spacing) * 5);
142
+ --input-radius: var(--radius-lg);
143
+ --control-size-md: calc(var(--spacing) * 11);
144
+ --badge-radius: 9999px;
145
+ --motion-duration-fast: 100ms;
146
+ --motion-duration-normal: 200ms;
147
+ --motion-duration-slow: 300ms;
148
+ --motion-duration-color: var(--motion-duration-fast);
149
+ --motion-duration-interaction: var(--motion-duration-fast);
150
+ --motion-duration-disclosure: var(--motion-duration-normal);
151
+ --motion-duration-overlay: var(--motion-duration-fast);
152
+ --motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
153
+ --motion-ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
154
+ --motion-ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
155
+ --motion-ease-linear: linear;
156
+ --transition-default: var(--motion-duration-normal) var(--motion-ease-standard);
157
+ --transition-fast: var(--motion-duration-fast) var(--motion-ease-standard);
158
+ --transition-slow: var(--motion-duration-slow) var(--motion-ease-decelerate);
159
+ --hover-transform: none;
160
+ --hover-shadow: none;
161
+ --active-scale: 0.98;
162
+ --control-size-sm: calc(var(--spacing) * 10);
163
+ --control-size-lg: calc(var(--spacing) * 12);
164
+ --control-font-size: var(--text-base);
165
+ --button-height: var(--control-size-md);
166
+ --button-height-xs: calc(var(--spacing) * 8);
167
+ --button-height-sm: var(--control-size-sm);
168
+ --button-height-lg: var(--control-size-lg);
169
+ --button-font-size: var(--text-base);
170
+ --button-font-size-xs: var(--text-sm);
171
+ --button-font-size-sm: var(--text-sm);
172
+ --button-gap: calc(var(--spacing) * 2);
173
+ --button-radius-xs: 9999px;
174
+ --button-radius-sm: 9999px;
175
+ --button-min-width-ratio: 2;
176
+ --button-brand-font-weight: 600;
177
+ --button-primary-shadow: 0 4px 0 #142b99, 0 8px 18px #2549e81f;
178
+ --button-primary-hover-shadow: var(--button-primary-shadow);
179
+ --button-primary-border: transparent;
180
+ --button-primary-hover-border: transparent;
181
+ --button-secondary-border: transparent;
182
+ --button-secondary-hover-bg: var(--bg-fill-secondary-hover);
183
+ --button-quiet-hover-bg: var(--bg-surface-hover);
184
+ --button-destructive-bg: #b92c37;
185
+ --button-destructive-text: #ffffff;
186
+ --button-destructive-border: transparent;
187
+ --button-destructive-hover-border: transparent;
188
+ --button-destructive-shadow: 0 4px 0 #7a1822, 0 8px 18px #b92c371f;
189
+ --button-destructive-hover-shadow: var(--button-destructive-shadow);
190
+ --button-destructive-hover-background-image: linear-gradient(#9f202b, #9f202b);
191
+ --label-font-size: var(--text-sm);
192
+ --body-font-size: var(--text-base);
193
+ --body-line-height: var(--text-base--line-height);
194
+ --title-font-size: var(--text-lg);
195
+ --title-line-height: var(--text-lg--line-height);
196
+ --heading-font-size: var(--text-xl);
197
+ --heading-line-height: var(--text-xl--line-height);
198
+ --card-border-width: calc(var(--border-width-base) * 0);
199
+ --alert-border-width: calc(var(--border-width-base) * 0);
200
+ --dialog-radius: calc(var(--radius) * 1.6);
201
+ --checkbox-radius: calc(var(--radius) * 0.4);
202
+ --choice-size: calc(var(--spacing) * 5);
203
+ --choice-border-color: var(--border-input);
204
+ --switch-height: calc(var(--spacing) * 6);
205
+ --slider-size: calc(var(--spacing) * 5);
206
+ --tabs-list-radius: 9999px;
207
+ --tabs-tab-radius: 9999px;
208
+ --tabs-list-padding: calc(var(--spacing) * 0.5);
209
+ --tabs-tab-height: var(--control-size-sm);
210
+ --focus-ring-color: var(--border-focus);
211
+ --focus-ring-width: 3px;
212
+ --focus-ring-offset: 3px;
213
+ --focus-ring-opacity: 100%;
214
+ --hover-ring-width: 0px;
215
+ --hover-ring-color: transparent;
216
+ --button-brand-bg: var(--bg-fill-brand);
217
+ --button-brand-text: var(--text-on-fill-brand);
218
+ --button-brand-border: transparent;
219
+ --button-brand-hover-border: transparent;
220
+ --button-brand-hover-shadow: none;
221
+ --button-brand-2-bg: var(--bg-fill-brand-2);
222
+ --button-brand-2-text: var(--text-on-fill-brand);
223
+ --button-brand-2-border: transparent;
224
+ --button-brand-2-hover-border: transparent;
225
+ --button-brand-2-hover-shadow: none;
226
+ --button-brand-3-bg: var(--bg-fill-brand-3);
227
+ --button-brand-3-text: var(--text-on-fill-brand);
228
+ --button-brand-3-border: transparent;
229
+ --button-brand-3-hover-border: transparent;
230
+ --button-brand-3-hover-shadow: none;
231
+ --button-brand-4-bg: var(--bg-fill-brand-4);
232
+ --button-brand-4-text: var(--text-on-fill-brand);
233
+ --button-brand-4-border: transparent;
234
+ --button-brand-4-hover-border: transparent;
235
+ --button-brand-4-hover-shadow: none;
236
+ --button-brand-5-bg: var(--bg-fill-brand-5);
237
+ --button-brand-5-text: var(--text-on-fill-brand);
238
+ --button-brand-5-border: transparent;
239
+ --button-brand-5-hover-border: transparent;
240
+ --button-brand-5-hover-shadow: none;
241
+ --background: var(--bg-default);
242
+ --foreground: var(--text-default);
243
+ --card: var(--bg-surface-default);
244
+ --card-foreground: var(--text-default);
245
+ --popover: var(--bg-surface-popover);
246
+ --popover-foreground: var(--text-default);
247
+ --primary: var(--bg-fill-primary);
248
+ --primary-foreground: var(--text-on-fill-primary);
249
+ --secondary: var(--bg-fill-secondary);
250
+ --secondary-foreground: var(--text-on-fill-secondary);
251
+ --muted: var(--bg-muted);
252
+ --muted-foreground: var(--text-muted);
253
+ --accent: var(--bg-surface-accent);
254
+ --accent-foreground: var(--text-on-surface-accent);
255
+ --destructive: var(--bg-fill-critical);
256
+ --border: var(--border-default);
257
+ --input: var(--border-input);
258
+ --ring: var(--border-focus);
259
+ }
260
+
261
+ .dark {
262
+ --bg-default: #131c2e;
263
+ --bg-inverse: #faf8f3;
264
+ --bg-muted: #27334a;
265
+ --bg-surface-default: #1d2940;
266
+ --bg-surface-popover: #1d2940;
267
+ --bg-surface-accent: #27334a;
268
+ --bg-surface-field: #131c2e;
269
+ --bg-surface-input: #131c2e;
270
+ --bg-surface-info: #27334a;
271
+ --bg-surface-success: #27334a;
272
+ --bg-surface-warning: #27334a;
273
+ --bg-surface-critical: #27334a;
274
+ --bg-surface-emphasis: #27334a;
275
+ --bg-surface-inverse: #faf8f3;
276
+ --bg-surface-transparent: #ffffff0f;
277
+ --bg-overlay: #070d19c4;
278
+ --bg-surface-brand: #27334a;
279
+ --bg-surface-brand-2: #27334a;
280
+ --bg-surface-brand-3: #27334a;
281
+ --bg-surface-brand-4: #27334a;
282
+ --bg-surface-brand-5: #27334a;
283
+ --bg-surface-hover: #34425d;
284
+ --bg-fill-default: #1d2940;
285
+ --bg-fill-primary: #2549e8;
286
+ --bg-fill-primary-hover: #3155f0;
287
+ --bg-fill-selected: #2549e8;
288
+ --bg-fill-brand: #ff7518;
289
+ --bg-fill-brand-2: #ffcc00;
290
+ --bg-fill-brand-3: #18b86a;
291
+ --bg-fill-brand-4: #00b7d4;
292
+ --bg-fill-brand-5: #ff6090;
293
+ --bg-fill-info: #00b7d4;
294
+ --bg-fill-success: #57d78b;
295
+ --bg-fill-warning: #ffcc00;
296
+ --bg-fill-critical: #ff8590;
297
+ --bg-fill-emphasis: #2549e8;
298
+ --bg-fill-transparent: #ffffff0f;
299
+ --bg-fill-secondary: #34425d;
300
+ --bg-fill-secondary-hover: #42516f;
301
+ --bg-fill-secondary-inverse: #1d2940;
302
+ --text-default: #faf8f3;
303
+ --text-secondary: #bac3d2;
304
+ --text-muted: #a3afc3;
305
+ --text-disabled: #6b7892;
306
+ --text-inverse: #202b43;
307
+ --text-on-fill-primary: #ffffff;
308
+ --text-on-fill-selected: #ffffff;
309
+ --text-on-fill-brand: #202b43;
310
+ --text-on-fill-secondary: #faf8f3;
311
+ --text-on-surface-accent: #faf8f3;
312
+ --text-info: #00b7d4;
313
+ --text-success: #57d78b;
314
+ --text-warning: #ffcc00;
315
+ --text-critical: #ff8590;
316
+ --text-emphasis: #00b7d4;
317
+ --text-brand: #ff9a40;
318
+ --text-brand-2: #ffcc00;
319
+ --text-brand-3: #57d78b;
320
+ --text-brand-4: #00b7d4;
321
+ --text-brand-5: #ff7ba8;
322
+ --text-link: #00b7d4;
323
+ --icon-default: #faf8f3;
324
+ --icon-secondary: #bac3d2;
325
+ --icon-disabled: #6b7892;
326
+ --icon-inverse: #202b43;
327
+ --icon-info: #00b7d4;
328
+ --icon-success: #57d78b;
329
+ --icon-warning: #ffcc00;
330
+ --icon-critical: #ff8590;
331
+ --icon-emphasis: #00b7d4;
332
+ --icon-brand: #ff9a40;
333
+ --icon-brand-2: #ffcc00;
334
+ --icon-brand-3: #57d78b;
335
+ --icon-brand-4: #00b7d4;
336
+ --icon-brand-5: #ff7ba8;
337
+ --border-default: #303b50;
338
+ --border-secondary: #303b50;
339
+ --border-input: #69758b;
340
+ --border-tertiary: #455167;
341
+ --border-disabled: #3d4b65;
342
+ --border-inverse: #cfcac0;
343
+ --border-focus: #ffcc00;
344
+ --border-brand: #27334a;
345
+ --border-brand-2: #27334a;
346
+ --border-brand-3: #27334a;
347
+ --border-brand-4: #27334a;
348
+ --border-brand-5: #27334a;
349
+ --border-info: #27334a;
350
+ --border-success: #27334a;
351
+ --border-warning: #27334a;
352
+ --border-critical: #27334a;
353
+ --border-emphasis: #27334a;
354
+ --chart-1: #00b7d4;
355
+ --chart-2: #ff7518;
356
+ --chart-3: #57d78b;
357
+ --chart-4: #ffcc00;
358
+ --chart-5: #ff7ba8;
359
+ --sidebar-background: #10182a;
360
+ --sidebar-foreground: #faf8f3;
361
+ --sidebar-primary: #ffcc00;
362
+ --sidebar-primary-foreground: #202b43;
363
+ --sidebar-accent: #27334a;
364
+ --sidebar-accent-foreground: #faf8f3;
365
+ --sidebar-border: #27334a;
366
+ --sidebar-ring: #ffcc00;
367
+ --font-sans: 'DM Sans Variable', ui-sans-serif, system-ui, sans-serif;
368
+ --font-heading: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, sans-serif;
369
+ --font-brand: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, sans-serif;
370
+ --spacing: 0.25rem;
371
+ --font-size-base: 1rem;
372
+ --leading-base: 1.5;
373
+ --letter-spacing-base: 0.01em;
374
+ --radius: 0.875rem;
375
+ --border-width-base: 0.0625rem;
376
+ --control-size-sm: calc(var(--spacing) * 10);
377
+ --control-size-md: calc(var(--spacing) * 11);
378
+ --control-size-lg: calc(var(--spacing) * 12);
379
+ --control-font-size: var(--text-base);
380
+ --button-height: var(--control-size-md);
381
+ --button-height-xs: calc(var(--spacing) * 8);
382
+ --button-height-sm: var(--control-size-sm);
383
+ --button-height-lg: var(--control-size-lg);
384
+ --button-font-size: var(--text-base);
385
+ --button-font-size-xs: var(--text-sm);
386
+ --button-font-size-sm: var(--text-sm);
387
+ --button-gap: calc(var(--spacing) * 2);
388
+ --button-radius: 9999px;
389
+ --button-radius-xs: 9999px;
390
+ --button-radius-sm: 9999px;
391
+ --button-min-width-ratio: 2;
392
+ --button-brand-font-weight: 600;
393
+ --button-primary-shadow: 0 4px 0 #142b99, 0 8px 18px #2549e81f;
394
+ --button-primary-hover-shadow: var(--button-primary-shadow);
395
+ --button-primary-border: transparent;
396
+ --button-primary-hover-border: transparent;
397
+ --button-secondary-border: transparent;
398
+ --button-secondary-hover-bg: var(--bg-fill-secondary-hover);
399
+ --button-quiet-hover-bg: var(--bg-surface-hover);
400
+ --button-destructive-bg: #b92c37;
401
+ --button-destructive-text: #ffffff;
402
+ --button-destructive-border: transparent;
403
+ --button-destructive-hover-border: transparent;
404
+ --button-destructive-shadow: 0 4px 0 #7a1822, 0 8px 18px #b92c371f;
405
+ --button-destructive-hover-shadow: var(--button-destructive-shadow);
406
+ --button-destructive-hover-background-image: linear-gradient(#9f202b, #9f202b);
407
+ --input-radius: var(--radius-lg);
408
+ --label-font-size: var(--text-sm);
409
+ --body-font-size: var(--text-base);
410
+ --body-line-height: var(--text-base--line-height);
411
+ --title-font-size: var(--text-lg);
412
+ --title-line-height: var(--text-lg--line-height);
413
+ --heading-font-size: var(--text-xl);
414
+ --heading-line-height: var(--text-xl--line-height);
415
+ --card-radius: calc(var(--radius) * 1.6);
416
+ --card-padding: calc(var(--spacing) * 5);
417
+ --card-border-width: calc(var(--border-width-base) * 0);
418
+ --alert-border-width: calc(var(--border-width-base) * 0);
419
+ --dialog-radius: calc(var(--radius) * 1.6);
420
+ --badge-radius: 9999px;
421
+ --checkbox-radius: calc(var(--radius) * 0.4);
422
+ --choice-size: calc(var(--spacing) * 5);
423
+ --choice-border-color: var(--border-input);
424
+ --switch-height: calc(var(--spacing) * 6);
425
+ --slider-size: calc(var(--spacing) * 5);
426
+ --tabs-list-radius: 9999px;
427
+ --tabs-tab-radius: 9999px;
428
+ --tabs-list-padding: calc(var(--spacing) * 0.5);
429
+ --tabs-tab-height: var(--control-size-sm);
430
+ --shadow-offset-y: 3px;
431
+ --shadow-blur: 8px;
432
+ --shadow-spread: -1px;
433
+ --shadow-base-color: #00000033;
434
+ --focus-ring-color: var(--border-focus);
435
+ --focus-ring-width: 3px;
436
+ --focus-ring-offset: 3px;
437
+ --focus-ring-opacity: 100%;
438
+ --hover-ring-width: 0px;
439
+ --hover-ring-color: transparent;
440
+ --hover-shadow: none;
441
+ --active-scale: 0.98;
442
+ --button-brand-bg: var(--bg-fill-brand);
443
+ --button-brand-text: var(--text-on-fill-brand);
444
+ --button-brand-border: transparent;
445
+ --button-brand-hover-border: transparent;
446
+ --button-brand-hover-shadow: none;
447
+ --button-brand-2-bg: var(--bg-fill-brand-2);
448
+ --button-brand-2-text: var(--text-on-fill-brand);
449
+ --button-brand-2-border: transparent;
450
+ --button-brand-2-hover-border: transparent;
451
+ --button-brand-2-hover-shadow: none;
452
+ --button-brand-3-bg: var(--bg-fill-brand-3);
453
+ --button-brand-3-text: var(--text-on-fill-brand);
454
+ --button-brand-3-border: transparent;
455
+ --button-brand-3-hover-border: transparent;
456
+ --button-brand-3-hover-shadow: none;
457
+ --button-brand-4-bg: var(--bg-fill-brand-4);
458
+ --button-brand-4-text: var(--text-on-fill-brand);
459
+ --button-brand-4-border: transparent;
460
+ --button-brand-4-hover-border: transparent;
461
+ --button-brand-4-hover-shadow: none;
462
+ --button-brand-5-bg: var(--bg-fill-brand-5);
463
+ --button-brand-5-text: var(--text-on-fill-brand);
464
+ --button-brand-5-border: transparent;
465
+ --button-brand-5-hover-border: transparent;
466
+ --button-brand-5-hover-shadow: none;
467
+ --background: var(--bg-default);
468
+ --foreground: var(--text-default);
469
+ --card: var(--bg-surface-default);
470
+ --card-foreground: var(--text-default);
471
+ --popover: var(--bg-surface-popover);
472
+ --popover-foreground: var(--text-default);
473
+ --primary: var(--bg-fill-primary);
474
+ --primary-foreground: var(--text-on-fill-primary);
475
+ --secondary: var(--bg-fill-secondary);
476
+ --secondary-foreground: var(--text-on-fill-secondary);
477
+ --muted: var(--bg-muted);
478
+ --muted-foreground: var(--text-muted);
479
+ --accent: var(--bg-surface-accent);
480
+ --accent-foreground: var(--text-on-surface-accent);
481
+ --destructive: var(--bg-fill-critical);
482
+ --border: var(--border-default);
483
+ --input: var(--border-input);
484
+ --ring: var(--border-focus);
485
+ }
@@ -3,12 +3,14 @@ import { brutalist, brutalistDark } from './brutalist'
3
3
  import { signalPop, signalPopDark } from './signal-pop'
4
4
  import { editorialGrid, editorialGridDark } from './editorial-grid'
5
5
  import { kumo, kumoDark } from './kumo'
6
+ import { oqita, oqitaDark } from './oqita'
6
7
 
7
8
  export { defaultPreset, defaultPresetDark } from './default'
8
9
  export { brutalist, brutalistDark } from './brutalist'
9
10
  export { signalPop, signalPopDark } from './signal-pop'
10
11
  export { editorialGrid, editorialGridDark } from './editorial-grid'
11
12
  export { kumo, kumoDark } from './kumo'
13
+ export { oqita, oqitaDark } from './oqita'
12
14
 
13
15
  export interface PresetDefinition {
14
16
  name: string
@@ -57,6 +59,14 @@ export const presetDefinitions = [
57
59
  light: kumo,
58
60
  dark: kumoDark,
59
61
  },
62
+ {
63
+ name: 'oqita',
64
+ label: 'Oqita',
65
+ description:
66
+ 'Friendly and soft: expressive type, compact pill controls, quiet surfaces, and cobalt actions.',
67
+ light: oqita,
68
+ dark: oqitaDark,
69
+ },
60
70
  ] satisfies PresetDefinition[]
61
71
 
62
72
  export const presetDefinitionsByName = Object.fromEntries(
@@ -0,0 +1,262 @@
1
+ import { defaultPreset, defaultPresetDark } from './default'
2
+
3
+ /**
4
+ * Oqita: friendly, tactile, and quietly colourful. Softness comes from shape,
5
+ * typography, and spacing; colour stays saturated, never washed out.
6
+ * Bricolage Grotesque headings + DM Sans body (optional font peers).
7
+ */
8
+ const shape: Record<string, string> = {
9
+ '--spacing': '0.25rem',
10
+ '--font-sans': '"DM Sans Variable", ui-sans-serif, system-ui, sans-serif',
11
+ '--font-heading': '"Bricolage Grotesque Variable", ui-sans-serif, system-ui, sans-serif',
12
+ '--font-brand': '"Bricolage Grotesque Variable", ui-sans-serif, system-ui, sans-serif',
13
+ '--font-size-base': '1rem',
14
+ '--leading-base': '1.5',
15
+ '--letter-spacing-base': '0.01em',
16
+ '--radius': '0.875rem',
17
+ '--border-width-base': '0.0625rem',
18
+ '--control-size-sm': 'calc(var(--spacing) * 10)',
19
+ '--control-size-md': 'calc(var(--spacing) * 11)',
20
+ '--control-size-lg': 'calc(var(--spacing) * 12)',
21
+ '--control-font-size': 'var(--text-base)',
22
+ '--button-height': 'var(--control-size-md)',
23
+ '--button-height-xs': 'calc(var(--spacing) * 8)',
24
+ '--button-height-sm': 'var(--control-size-sm)',
25
+ '--button-height-lg': 'var(--control-size-lg)',
26
+ '--button-font-size': 'var(--text-base)',
27
+ '--button-font-size-xs': 'var(--text-sm)',
28
+ '--button-font-size-sm': 'var(--text-sm)',
29
+ '--button-gap': 'calc(var(--spacing) * 2)',
30
+ '--button-radius': '9999px',
31
+ '--button-radius-xs': '9999px',
32
+ '--button-radius-sm': '9999px',
33
+ '--button-min-width-ratio': '2',
34
+ '--button-brand-font-weight': '600',
35
+ '--button-primary-shadow': '0 4px 0 #142B99, 0 8px 18px #2549E81F',
36
+ '--button-primary-hover-shadow': 'var(--button-primary-shadow)',
37
+ '--button-primary-border': 'transparent',
38
+ '--button-primary-hover-border': 'transparent',
39
+ '--button-secondary-border': 'transparent',
40
+ '--button-secondary-hover-bg': 'var(--bg-fill-secondary-hover)',
41
+ '--button-quiet-hover-bg': 'var(--bg-surface-hover)',
42
+ '--button-destructive-bg': '#B92C37',
43
+ '--button-destructive-text': '#FFFFFF',
44
+ '--button-destructive-border': 'transparent',
45
+ '--button-destructive-hover-border': 'transparent',
46
+ '--button-destructive-shadow': '0 4px 0 #7A1822, 0 8px 18px #B92C371F',
47
+ '--button-destructive-hover-shadow': 'var(--button-destructive-shadow)',
48
+ '--button-destructive-hover-background-image': 'linear-gradient(#9F202B, #9F202B)',
49
+ '--input-radius': 'var(--radius-lg)',
50
+ '--label-font-size': 'var(--text-sm)',
51
+ '--body-font-size': 'var(--text-base)',
52
+ '--body-line-height': 'var(--text-base--line-height)',
53
+ '--title-font-size': 'var(--text-lg)',
54
+ '--title-line-height': 'var(--text-lg--line-height)',
55
+ '--heading-font-size': 'var(--text-xl)',
56
+ '--heading-line-height': 'var(--text-xl--line-height)',
57
+ '--card-radius': 'calc(var(--radius) * 1.6)',
58
+ '--card-padding': 'calc(var(--spacing) * 5)',
59
+ '--card-border-width': 'calc(var(--border-width-base) * 0)',
60
+ '--alert-border-width': 'calc(var(--border-width-base) * 0)',
61
+ '--dialog-radius': 'calc(var(--radius) * 1.6)',
62
+ '--badge-radius': '9999px',
63
+ '--checkbox-radius': 'calc(var(--radius) * 0.4)',
64
+ '--choice-size': 'calc(var(--spacing) * 5)',
65
+ '--choice-border-color': 'var(--border-input)',
66
+ '--switch-height': 'calc(var(--spacing) * 6)',
67
+ '--slider-size': 'calc(var(--spacing) * 5)',
68
+ '--tabs-list-radius': '9999px',
69
+ '--tabs-tab-radius': '9999px',
70
+ '--tabs-list-padding': 'calc(var(--spacing) * 0.5)',
71
+ '--tabs-tab-height': 'var(--control-size-sm)',
72
+ '--shadow-offset-y': '3px',
73
+ '--shadow-blur': '8px',
74
+ '--shadow-spread': '-1px',
75
+ '--shadow-base-color': '#242D4512',
76
+ '--focus-ring-color': 'var(--border-focus)',
77
+ '--focus-ring-width': '3px',
78
+ '--focus-ring-offset': '3px',
79
+ '--focus-ring-opacity': '100%',
80
+ '--hover-ring-width': '0px',
81
+ '--hover-ring-color': 'transparent',
82
+ '--hover-shadow': 'none',
83
+ '--active-scale': '0.98',
84
+ }
85
+
86
+ // Neutral status surfaces keep larger areas calm. Saturated fills remain available
87
+ // for deliberate brand accents; labels retain their semantic colour.
88
+ function colourRoles(
89
+ surface: string,
90
+ roles: Record<string, { fill: string; text: string }>,
91
+ ): Record<string, string> {
92
+ return Object.fromEntries(
93
+ Object.entries(roles).flatMap(([role, { fill, text }]) => [
94
+ [`--bg-surface-${role}`, surface],
95
+ [`--bg-fill-${role}`, fill],
96
+ [`--text-${role}`, text],
97
+ [`--icon-${role}`, text],
98
+ [`--border-${role}`, surface],
99
+ ]),
100
+ )
101
+ }
102
+
103
+ const lightColours = colourRoles('#F0F1F3', {
104
+ brand: { fill: '#FF7518', text: '#572600' },
105
+ 'brand-2': { fill: '#FFCC00', text: '#514000' },
106
+ 'brand-3': { fill: '#18B86A', text: '#103D29' },
107
+ 'brand-4': { fill: '#00B7D4', text: '#103B50' },
108
+ 'brand-5': { fill: '#FF6090', text: '#581A32' },
109
+ info: { fill: '#137C99', text: '#103B50' },
110
+ success: { fill: '#167347', text: '#103D29' },
111
+ warning: { fill: '#946100', text: '#514000' },
112
+ critical: { fill: '#B92C37', text: '#641923' },
113
+ emphasis: { fill: '#2549E8', text: '#103B50' },
114
+ })
115
+
116
+ const darkColours = colourRoles('#27334A', {
117
+ brand: { fill: '#FF7518', text: '#FF9A40' },
118
+ 'brand-2': { fill: '#FFCC00', text: '#FFCC00' },
119
+ 'brand-3': { fill: '#18B86A', text: '#57D78B' },
120
+ 'brand-4': { fill: '#00B7D4', text: '#00B7D4' },
121
+ 'brand-5': { fill: '#FF6090', text: '#FF7BA8' },
122
+ info: { fill: '#00B7D4', text: '#00B7D4' },
123
+ success: { fill: '#57D78B', text: '#57D78B' },
124
+ warning: { fill: '#FFCC00', text: '#FFCC00' },
125
+ critical: { fill: '#FF8590', text: '#FF8590' },
126
+ emphasis: { fill: '#2549E8', text: '#00B7D4' },
127
+ })
128
+
129
+ const brandButtons = Object.fromEntries(
130
+ ['brand', 'brand-2', 'brand-3', 'brand-4', 'brand-5'].flatMap((role) => [
131
+ [`--button-${role}-bg`, `var(--bg-fill-${role})`],
132
+ [`--button-${role}-text`, 'var(--text-on-fill-brand)'],
133
+ [`--button-${role}-border`, 'transparent'],
134
+ [`--button-${role}-hover-border`, 'transparent'],
135
+ [`--button-${role}-hover-shadow`, 'none'],
136
+ ]),
137
+ )
138
+
139
+ export const oqita: Record<string, string> = {
140
+ ...defaultPreset,
141
+ ...shape,
142
+ ...brandButtons,
143
+ ...lightColours,
144
+ '--bg-default': '#FAF8F3',
145
+ '--bg-inverse': '#202B43',
146
+ '--bg-muted': '#EFEBE3',
147
+ '--bg-surface-default': '#FFFFFF',
148
+ '--bg-surface-popover': '#FFFFFF',
149
+ '--bg-surface-accent': '#EFEBE3',
150
+ '--bg-surface-field': '#FFFFFF',
151
+ '--bg-surface-input': '#FFFFFF',
152
+ '--bg-surface-hover': '#E7E2D8',
153
+ '--bg-surface-inverse': '#202B43',
154
+ '--bg-surface-transparent': '#202B430A',
155
+ '--bg-overlay': '#111A32A6',
156
+ '--bg-fill-default': '#FFFFFF',
157
+ '--bg-fill-primary': '#2549E8',
158
+ '--bg-fill-primary-hover': '#1C3BC4',
159
+ '--bg-fill-selected': '#2549E8',
160
+ '--bg-fill-secondary': '#EFEBE3',
161
+ '--bg-fill-secondary-hover': '#E3DED3',
162
+ '--bg-fill-secondary-inverse': '#FFFFFF',
163
+ '--bg-fill-transparent': '#202B430A',
164
+ '--text-default': '#202B43',
165
+ '--text-secondary': '#535B6C',
166
+ '--text-muted': '#616779',
167
+ '--text-disabled': '#9296A0',
168
+ '--text-inverse': '#FFFFFF',
169
+ '--text-on-fill-primary': '#FFFFFF',
170
+ '--text-on-fill-selected': '#FFFFFF',
171
+ '--text-on-fill-brand': '#202B43',
172
+ '--text-on-fill-secondary': '#202B43',
173
+ '--text-on-surface-accent': '#202B43',
174
+ '--text-link': '#2549C8',
175
+ '--icon-default': '#202B43',
176
+ '--icon-secondary': '#535B6C',
177
+ '--icon-disabled': '#9296A0',
178
+ '--icon-inverse': '#FFFFFF',
179
+ '--border-default': '#E2E4E8',
180
+ '--border-secondary': '#E2E4E8',
181
+ '--border-input': '#B3B9C3',
182
+ '--border-tertiary': '#CFD3DA',
183
+ '--border-disabled': '#DCD7CD',
184
+ '--border-inverse': '#535B6C',
185
+ '--border-focus': '#2549E8',
186
+ '--chart-1': '#2549E8',
187
+ '--chart-2': '#FF7518',
188
+ '--chart-3': '#167347',
189
+ '--chart-4': '#946100',
190
+ '--chart-5': '#B92F63',
191
+ '--sidebar-background': '#202B43',
192
+ '--sidebar-foreground': '#FFFFFF',
193
+ '--sidebar-primary': '#FFCC00',
194
+ '--sidebar-primary-foreground': '#202B43',
195
+ '--sidebar-accent': '#34425D',
196
+ '--sidebar-accent-foreground': '#FFFFFF',
197
+ '--sidebar-border': '#303B50',
198
+ '--sidebar-ring': '#FFCC00',
199
+ }
200
+
201
+ export const oqitaDark: Record<string, string> = {
202
+ ...defaultPresetDark,
203
+ ...shape,
204
+ ...brandButtons,
205
+ ...darkColours,
206
+ '--shadow-base-color': '#00000033',
207
+ '--bg-default': '#131C2E',
208
+ '--bg-inverse': '#FAF8F3',
209
+ '--bg-muted': '#27334A',
210
+ '--bg-surface-default': '#1D2940',
211
+ '--bg-surface-popover': '#1D2940',
212
+ '--bg-surface-accent': '#27334A',
213
+ '--bg-surface-field': '#131C2E',
214
+ '--bg-surface-input': '#131C2E',
215
+ '--bg-surface-hover': '#34425D',
216
+ '--bg-surface-inverse': '#FAF8F3',
217
+ '--bg-surface-transparent': '#FFFFFF0F',
218
+ '--bg-overlay': '#070D19C4',
219
+ '--bg-fill-default': '#1D2940',
220
+ '--bg-fill-primary': '#2549E8',
221
+ '--bg-fill-primary-hover': '#3155F0',
222
+ '--bg-fill-selected': '#2549E8',
223
+ '--bg-fill-secondary': '#34425D',
224
+ '--bg-fill-secondary-hover': '#42516F',
225
+ '--bg-fill-secondary-inverse': '#1D2940',
226
+ '--bg-fill-transparent': '#FFFFFF0F',
227
+ '--text-default': '#FAF8F3',
228
+ '--text-secondary': '#BAC3D2',
229
+ '--text-muted': '#A3AFC3',
230
+ '--text-disabled': '#6B7892',
231
+ '--text-inverse': '#202B43',
232
+ '--text-on-fill-primary': '#FFFFFF',
233
+ '--text-on-fill-selected': '#FFFFFF',
234
+ '--text-on-fill-brand': '#202B43',
235
+ '--text-on-fill-secondary': '#FAF8F3',
236
+ '--text-on-surface-accent': '#FAF8F3',
237
+ '--text-link': '#00B7D4',
238
+ '--icon-default': '#FAF8F3',
239
+ '--icon-secondary': '#BAC3D2',
240
+ '--icon-disabled': '#6B7892',
241
+ '--icon-inverse': '#202B43',
242
+ '--border-default': '#303B50',
243
+ '--border-secondary': '#303B50',
244
+ '--border-input': '#69758B',
245
+ '--border-tertiary': '#455167',
246
+ '--border-disabled': '#3D4B65',
247
+ '--border-inverse': '#CFCAC0',
248
+ '--border-focus': '#FFCC00',
249
+ '--chart-1': '#00B7D4',
250
+ '--chart-2': '#FF7518',
251
+ '--chart-3': '#57D78B',
252
+ '--chart-4': '#FFCC00',
253
+ '--chart-5': '#FF7BA8',
254
+ '--sidebar-background': '#10182A',
255
+ '--sidebar-foreground': '#FAF8F3',
256
+ '--sidebar-primary': '#FFCC00',
257
+ '--sidebar-primary-foreground': '#202B43',
258
+ '--sidebar-accent': '#27334A',
259
+ '--sidebar-accent-foreground': '#FAF8F3',
260
+ '--sidebar-border': '#27334A',
261
+ '--sidebar-ring': '#FFCC00',
262
+ }