@leitware/composables 1.6.0 → 1.6.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.
- package/README.md +4 -2
- package/dist/presets/kumo.css +166 -100
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/_internal/button.tsx +5 -5
- package/src/styles/presets/kumo.css +166 -100
- package/src/styles/presets-data/kumo.ts +28 -50
- package/src/styles/tokens/components.css +2 -0
package/package.json
CHANGED
package/src/_internal/button.tsx
CHANGED
|
@@ -24,15 +24,15 @@ const buttonVariants = cva(
|
|
|
24
24
|
warning: 'bg-surface-warning text-warning border-stroke-warning',
|
|
25
25
|
info: 'bg-surface-info text-info border-stroke-info',
|
|
26
26
|
brand:
|
|
27
|
-
'bg-[var(--button-brand-bg,var(--bg-surface-brand))] text-[var(--button-brand-text,var(--text-brand))] border-[var(--button-brand-border,var(--border-brand))] bg-[image:var(--button-brand-background-image)] shadow-(--button-brand-shadow) hover:shadow-[var(--button-brand-hover-shadow,var(--hover-shadow))] hover:bg-[image:var(--button-brand-hover-background-image)] hover:border-[var(--button-brand-hover-border,var(--hover-ring-color))]',
|
|
27
|
+
'font-(--button-brand-font-weight) text-shadow-(--button-brand-text-shadow) bg-[var(--button-brand-bg,var(--bg-surface-brand))] text-[var(--button-brand-text,var(--text-brand))] border-[var(--button-brand-border,var(--border-brand))] bg-[image:var(--button-brand-background-image)] shadow-(--button-brand-shadow) hover:shadow-[var(--button-brand-hover-shadow,var(--hover-shadow))] hover:bg-[image:var(--button-brand-hover-background-image)] hover:border-[var(--button-brand-hover-border,var(--hover-ring-color))]',
|
|
28
28
|
'brand-2':
|
|
29
|
-
'bg-[var(--button-brand-2-bg,var(--bg-surface-brand-2))] text-[var(--button-brand-2-text,var(--text-brand-2))] border-[var(--button-brand-2-border,var(--border-brand-2))] bg-[image:var(--button-brand-2-background-image)] shadow-(--button-brand-2-shadow) hover:shadow-[var(--button-brand-2-hover-shadow,var(--hover-shadow))] hover:bg-[image:var(--button-brand-2-hover-background-image)] hover:border-[var(--button-brand-2-hover-border,var(--hover-ring-color))]',
|
|
29
|
+
'font-(--button-brand-font-weight) text-shadow-(--button-brand-text-shadow) bg-[var(--button-brand-2-bg,var(--bg-surface-brand-2))] text-[var(--button-brand-2-text,var(--text-brand-2))] border-[var(--button-brand-2-border,var(--border-brand-2))] bg-[image:var(--button-brand-2-background-image)] shadow-(--button-brand-2-shadow) hover:shadow-[var(--button-brand-2-hover-shadow,var(--hover-shadow))] hover:bg-[image:var(--button-brand-2-hover-background-image)] hover:border-[var(--button-brand-2-hover-border,var(--hover-ring-color))]',
|
|
30
30
|
'brand-3':
|
|
31
|
-
'bg-[var(--button-brand-3-bg,var(--bg-surface-brand-3))] text-[var(--button-brand-3-text,var(--text-brand-3))] border-[var(--button-brand-3-border,var(--border-brand-3))] bg-[image:var(--button-brand-3-background-image)] shadow-(--button-brand-3-shadow) hover:shadow-[var(--button-brand-3-hover-shadow,var(--hover-shadow))] hover:bg-[image:var(--button-brand-3-hover-background-image)] hover:border-[var(--button-brand-3-hover-border,var(--hover-ring-color))]',
|
|
31
|
+
'font-(--button-brand-font-weight) text-shadow-(--button-brand-text-shadow) bg-[var(--button-brand-3-bg,var(--bg-surface-brand-3))] text-[var(--button-brand-3-text,var(--text-brand-3))] border-[var(--button-brand-3-border,var(--border-brand-3))] bg-[image:var(--button-brand-3-background-image)] shadow-(--button-brand-3-shadow) hover:shadow-[var(--button-brand-3-hover-shadow,var(--hover-shadow))] hover:bg-[image:var(--button-brand-3-hover-background-image)] hover:border-[var(--button-brand-3-hover-border,var(--hover-ring-color))]',
|
|
32
32
|
'brand-4':
|
|
33
|
-
'bg-[var(--button-brand-4-bg,var(--bg-surface-brand-4))] text-[var(--button-brand-4-text,var(--text-brand-4))] border-[var(--button-brand-4-border,var(--border-brand-4))] bg-[image:var(--button-brand-4-background-image)] shadow-(--button-brand-4-shadow) hover:shadow-[var(--button-brand-4-hover-shadow,var(--hover-shadow))] hover:bg-[image:var(--button-brand-4-hover-background-image)] hover:border-[var(--button-brand-4-hover-border,var(--hover-ring-color))]',
|
|
33
|
+
'font-(--button-brand-font-weight) text-shadow-(--button-brand-text-shadow) bg-[var(--button-brand-4-bg,var(--bg-surface-brand-4))] text-[var(--button-brand-4-text,var(--text-brand-4))] border-[var(--button-brand-4-border,var(--border-brand-4))] bg-[image:var(--button-brand-4-background-image)] shadow-(--button-brand-4-shadow) hover:shadow-[var(--button-brand-4-hover-shadow,var(--hover-shadow))] hover:bg-[image:var(--button-brand-4-hover-background-image)] hover:border-[var(--button-brand-4-hover-border,var(--hover-ring-color))]',
|
|
34
34
|
'brand-5':
|
|
35
|
-
'bg-[var(--button-brand-5-bg,var(--bg-surface-brand-5))] text-[var(--button-brand-5-text,var(--text-brand-5))] border-[var(--button-brand-5-border,var(--border-brand-5))] bg-[image:var(--button-brand-5-background-image)] shadow-(--button-brand-5-shadow) hover:shadow-[var(--button-brand-5-hover-shadow,var(--hover-shadow))] hover:bg-[image:var(--button-brand-5-hover-background-image)] hover:border-[var(--button-brand-5-hover-border,var(--hover-ring-color))]',
|
|
35
|
+
'font-(--button-brand-font-weight) text-shadow-(--button-brand-text-shadow) bg-[var(--button-brand-5-bg,var(--bg-surface-brand-5))] text-[var(--button-brand-5-text,var(--text-brand-5))] border-[var(--button-brand-5-border,var(--border-brand-5))] bg-[image:var(--button-brand-5-background-image)] shadow-(--button-brand-5-shadow) hover:shadow-[var(--button-brand-5-hover-shadow,var(--hover-shadow))] hover:bg-[image:var(--button-brand-5-hover-background-image)] hover:border-[var(--button-brand-5-hover-border,var(--hover-ring-color))]',
|
|
36
36
|
emphasis: 'bg-surface-emphasis text-emphasis border-stroke-emphasis',
|
|
37
37
|
link: 'text-primary underline-offset-4 hover:underline hover:ring-0',
|
|
38
38
|
},
|
|
@@ -180,6 +180,8 @@
|
|
|
180
180
|
--button-font-size-xs: var(--text-xs);
|
|
181
181
|
--button-font-size-sm: var(--text-xs);
|
|
182
182
|
--button-gap: calc(var(--spacing) * 1.5);
|
|
183
|
+
--button-brand-font-weight: 600;
|
|
184
|
+
--button-brand-text-shadow: 0 1px 1px #00000059, 0 0 1px #00000040;
|
|
183
185
|
--button-secondary-border: var(--border-secondary);
|
|
184
186
|
--button-secondary-hover-bg: var(--bg-surface-hover);
|
|
185
187
|
--button-secondary-shadow: 0 1px 2px #0000000d;
|
|
@@ -225,95 +227,126 @@
|
|
|
225
227
|
inset 0 1px 0 color-mix(in oklch, var(--bg-fill-critical), white 30%), 0 1px 2px #0000000d;
|
|
226
228
|
--button-destructive-hover-shadow:
|
|
227
229
|
inset 0 1px 0 color-mix(in oklch, var(--bg-fill-critical), white 30%), 0 1px 2px #0000000d;
|
|
228
|
-
--button-brand-
|
|
229
|
-
--button-brand-
|
|
230
|
+
--button-brand-bg: #f45b00;
|
|
231
|
+
--button-brand-text: #ffffff;
|
|
232
|
+
--button-brand-border: color-mix(in oklch, #f45b00, black 8%);
|
|
233
|
+
--button-brand-hover-border: #f45b00;
|
|
230
234
|
--button-brand-background-image: linear-gradient(
|
|
231
235
|
to bottom,
|
|
232
|
-
|
|
233
|
-
#
|
|
236
|
+
#ff8a00 0%,
|
|
237
|
+
#f45b00 20%,
|
|
238
|
+
#e04400 100%
|
|
234
239
|
);
|
|
235
240
|
--button-brand-hover-background-image: linear-gradient(
|
|
236
241
|
to bottom,
|
|
237
|
-
|
|
238
|
-
#
|
|
242
|
+
#ff8a00 0%,
|
|
243
|
+
#f45b00 20%,
|
|
244
|
+
color-mix(in oklch, #e04400, #f45b00 25%) 100%
|
|
239
245
|
);
|
|
240
|
-
--button-brand-shadow:
|
|
246
|
+
--button-brand-shadow:
|
|
247
|
+
inset 0 1px 0 color-mix(in oklch, #ff8a00, white 15%),
|
|
248
|
+
inset 0 -1px 0 color-mix(in oklch, #f45b00, black 8%),
|
|
249
|
+
0 2px 3px color-mix(in srgb, #f45b00, transparent 82%);
|
|
241
250
|
--button-brand-hover-shadow:
|
|
242
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
--button-brand-2-
|
|
246
|
-
--button-brand-2-
|
|
251
|
+
inset 0 1px 0 color-mix(in oklch, #ff8a00, white 15%),
|
|
252
|
+
inset 0 -1px 0 color-mix(in oklch, #f45b00, black 8%),
|
|
253
|
+
0 2px 6px color-mix(in srgb, #f45b00, transparent 75%);
|
|
254
|
+
--button-brand-2-bg: #009db8;
|
|
255
|
+
--button-brand-2-text: #ffffff;
|
|
256
|
+
--button-brand-2-border: color-mix(in oklch, #009db8, black 8%);
|
|
257
|
+
--button-brand-2-hover-border: #009db8;
|
|
247
258
|
--button-brand-2-background-image: linear-gradient(
|
|
248
259
|
to bottom,
|
|
249
|
-
|
|
250
|
-
#
|
|
260
|
+
#00d8ea 0%,
|
|
261
|
+
#009db8 20%,
|
|
262
|
+
#007dab 100%
|
|
251
263
|
);
|
|
252
264
|
--button-brand-2-hover-background-image: linear-gradient(
|
|
253
265
|
to bottom,
|
|
254
|
-
|
|
255
|
-
#
|
|
266
|
+
#00d8ea 0%,
|
|
267
|
+
#009db8 20%,
|
|
268
|
+
color-mix(in oklch, #007dab, #009db8 25%) 100%
|
|
256
269
|
);
|
|
257
270
|
--button-brand-2-shadow:
|
|
258
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
271
|
+
inset 0 1px 0 color-mix(in oklch, #00d8ea, white 15%),
|
|
272
|
+
inset 0 -1px 0 color-mix(in oklch, #009db8, black 8%),
|
|
273
|
+
0 2px 3px color-mix(in srgb, #009db8, transparent 82%);
|
|
259
274
|
--button-brand-2-hover-shadow:
|
|
260
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
--button-brand-3-
|
|
264
|
-
--button-brand-3-
|
|
275
|
+
inset 0 1px 0 color-mix(in oklch, #00d8ea, white 15%),
|
|
276
|
+
inset 0 -1px 0 color-mix(in oklch, #009db8, black 8%),
|
|
277
|
+
0 2px 6px color-mix(in srgb, #009db8, transparent 75%);
|
|
278
|
+
--button-brand-3-bg: #aa0aff;
|
|
279
|
+
--button-brand-3-text: #ffffff;
|
|
280
|
+
--button-brand-3-border: color-mix(in oklch, #aa0aff, black 8%);
|
|
281
|
+
--button-brand-3-hover-border: #aa0aff;
|
|
265
282
|
--button-brand-3-background-image: linear-gradient(
|
|
266
283
|
to bottom,
|
|
267
|
-
|
|
268
|
-
#
|
|
284
|
+
#e04bff 0%,
|
|
285
|
+
#aa0aff 20%,
|
|
286
|
+
#7c00e5 100%
|
|
269
287
|
);
|
|
270
288
|
--button-brand-3-hover-background-image: linear-gradient(
|
|
271
289
|
to bottom,
|
|
272
|
-
|
|
273
|
-
#
|
|
290
|
+
#e04bff 0%,
|
|
291
|
+
#aa0aff 20%,
|
|
292
|
+
color-mix(in oklch, #7c00e5, #aa0aff 25%) 100%
|
|
274
293
|
);
|
|
275
294
|
--button-brand-3-shadow:
|
|
276
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
295
|
+
inset 0 1px 0 color-mix(in oklch, #e04bff, white 15%),
|
|
296
|
+
inset 0 -1px 0 color-mix(in oklch, #aa0aff, black 8%),
|
|
297
|
+
0 2px 3px color-mix(in srgb, #aa0aff, transparent 82%);
|
|
277
298
|
--button-brand-3-hover-shadow:
|
|
278
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
--button-brand-4-
|
|
282
|
-
--button-brand-4-
|
|
299
|
+
inset 0 1px 0 color-mix(in oklch, #e04bff, white 15%),
|
|
300
|
+
inset 0 -1px 0 color-mix(in oklch, #aa0aff, black 8%),
|
|
301
|
+
0 2px 6px color-mix(in srgb, #aa0aff, transparent 75%);
|
|
302
|
+
--button-brand-4-bg: #1464ff;
|
|
303
|
+
--button-brand-4-text: #ffffff;
|
|
304
|
+
--button-brand-4-border: color-mix(in oklch, #1464ff, black 8%);
|
|
305
|
+
--button-brand-4-hover-border: #1464ff;
|
|
283
306
|
--button-brand-4-background-image: linear-gradient(
|
|
284
307
|
to bottom,
|
|
285
|
-
|
|
286
|
-
#
|
|
308
|
+
#388bff 0%,
|
|
309
|
+
#1464ff 20%,
|
|
310
|
+
#0045ef 100%
|
|
287
311
|
);
|
|
288
312
|
--button-brand-4-hover-background-image: linear-gradient(
|
|
289
313
|
to bottom,
|
|
290
|
-
|
|
291
|
-
#
|
|
314
|
+
#388bff 0%,
|
|
315
|
+
#1464ff 20%,
|
|
316
|
+
color-mix(in oklch, #0045ef, #1464ff 25%) 100%
|
|
292
317
|
);
|
|
293
318
|
--button-brand-4-shadow:
|
|
294
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
319
|
+
inset 0 1px 0 color-mix(in oklch, #388bff, white 15%),
|
|
320
|
+
inset 0 -1px 0 color-mix(in oklch, #1464ff, black 8%),
|
|
321
|
+
0 2px 3px color-mix(in srgb, #1464ff, transparent 82%);
|
|
295
322
|
--button-brand-4-hover-shadow:
|
|
296
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
--button-brand-5-
|
|
300
|
-
--button-brand-5-
|
|
323
|
+
inset 0 1px 0 color-mix(in oklch, #388bff, white 15%),
|
|
324
|
+
inset 0 -1px 0 color-mix(in oklch, #1464ff, black 8%),
|
|
325
|
+
0 2px 6px color-mix(in srgb, #1464ff, transparent 75%);
|
|
326
|
+
--button-brand-5-bg: #00ab38;
|
|
327
|
+
--button-brand-5-text: #ffffff;
|
|
328
|
+
--button-brand-5-border: color-mix(in oklch, #00ab38, black 8%);
|
|
329
|
+
--button-brand-5-hover-border: #00ab38;
|
|
301
330
|
--button-brand-5-background-image: linear-gradient(
|
|
302
331
|
to bottom,
|
|
303
|
-
|
|
304
|
-
#
|
|
332
|
+
#63e600 0%,
|
|
333
|
+
#00ab38 20%,
|
|
334
|
+
#008d21 100%
|
|
305
335
|
);
|
|
306
336
|
--button-brand-5-hover-background-image: linear-gradient(
|
|
307
337
|
to bottom,
|
|
308
|
-
|
|
309
|
-
#
|
|
338
|
+
#63e600 0%,
|
|
339
|
+
#00ab38 20%,
|
|
340
|
+
color-mix(in oklch, #008d21, #00ab38 25%) 100%
|
|
310
341
|
);
|
|
311
342
|
--button-brand-5-shadow:
|
|
312
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
343
|
+
inset 0 1px 0 color-mix(in oklch, #63e600, white 15%),
|
|
344
|
+
inset 0 -1px 0 color-mix(in oklch, #00ab38, black 8%),
|
|
345
|
+
0 2px 3px color-mix(in srgb, #00ab38, transparent 82%);
|
|
313
346
|
--button-brand-5-hover-shadow:
|
|
314
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
315
|
-
|
|
316
|
-
|
|
347
|
+
inset 0 1px 0 color-mix(in oklch, #63e600, white 15%),
|
|
348
|
+
inset 0 -1px 0 color-mix(in oklch, #00ab38, black 8%),
|
|
349
|
+
0 2px 6px color-mix(in srgb, #00ab38, transparent 75%);
|
|
317
350
|
--background: var(--bg-default);
|
|
318
351
|
--foreground: var(--text-default);
|
|
319
352
|
--card: var(--bg-surface-default);
|
|
@@ -459,6 +492,8 @@
|
|
|
459
492
|
--button-font-size-xs: var(--text-xs);
|
|
460
493
|
--button-font-size-sm: var(--text-xs);
|
|
461
494
|
--button-gap: calc(var(--spacing) * 1.5);
|
|
495
|
+
--button-brand-font-weight: 600;
|
|
496
|
+
--button-brand-text-shadow: 0 1px 1px #00000059, 0 0 1px #00000040;
|
|
462
497
|
--card-radius: var(--radius-xl);
|
|
463
498
|
--input-radius: var(--radius-lg);
|
|
464
499
|
--input-height: calc(var(--spacing) * 9);
|
|
@@ -520,95 +555,126 @@
|
|
|
520
555
|
inset 0 1px 0 color-mix(in oklch, var(--bg-fill-critical), white 30%), 0 1px 2px #0000000d;
|
|
521
556
|
--button-destructive-hover-shadow:
|
|
522
557
|
inset 0 1px 0 color-mix(in oklch, var(--bg-fill-critical), white 30%), 0 1px 2px #0000000d;
|
|
523
|
-
--button-brand-
|
|
524
|
-
--button-brand-
|
|
558
|
+
--button-brand-bg: #f45b00;
|
|
559
|
+
--button-brand-text: #ffffff;
|
|
560
|
+
--button-brand-border: color-mix(in oklch, #f45b00, black 8%);
|
|
561
|
+
--button-brand-hover-border: #f45b00;
|
|
525
562
|
--button-brand-background-image: linear-gradient(
|
|
526
563
|
to bottom,
|
|
527
|
-
|
|
528
|
-
#
|
|
564
|
+
#ff8a00 0%,
|
|
565
|
+
#f45b00 20%,
|
|
566
|
+
#e04400 100%
|
|
529
567
|
);
|
|
530
568
|
--button-brand-hover-background-image: linear-gradient(
|
|
531
569
|
to bottom,
|
|
532
|
-
|
|
533
|
-
#
|
|
570
|
+
#ff8a00 0%,
|
|
571
|
+
#f45b00 20%,
|
|
572
|
+
color-mix(in oklch, #e04400, #f45b00 25%) 100%
|
|
534
573
|
);
|
|
535
|
-
--button-brand-shadow:
|
|
574
|
+
--button-brand-shadow:
|
|
575
|
+
inset 0 1px 0 color-mix(in oklch, #ff8a00, white 15%),
|
|
576
|
+
inset 0 -1px 0 color-mix(in oklch, #f45b00, black 8%),
|
|
577
|
+
0 2px 3px color-mix(in srgb, #f45b00, transparent 82%);
|
|
536
578
|
--button-brand-hover-shadow:
|
|
537
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
--button-brand-2-
|
|
541
|
-
--button-brand-2-
|
|
579
|
+
inset 0 1px 0 color-mix(in oklch, #ff8a00, white 15%),
|
|
580
|
+
inset 0 -1px 0 color-mix(in oklch, #f45b00, black 8%),
|
|
581
|
+
0 2px 6px color-mix(in srgb, #f45b00, transparent 75%);
|
|
582
|
+
--button-brand-2-bg: #009db8;
|
|
583
|
+
--button-brand-2-text: #ffffff;
|
|
584
|
+
--button-brand-2-border: color-mix(in oklch, #009db8, black 8%);
|
|
585
|
+
--button-brand-2-hover-border: #009db8;
|
|
542
586
|
--button-brand-2-background-image: linear-gradient(
|
|
543
587
|
to bottom,
|
|
544
|
-
|
|
545
|
-
#
|
|
588
|
+
#00d8ea 0%,
|
|
589
|
+
#009db8 20%,
|
|
590
|
+
#007dab 100%
|
|
546
591
|
);
|
|
547
592
|
--button-brand-2-hover-background-image: linear-gradient(
|
|
548
593
|
to bottom,
|
|
549
|
-
|
|
550
|
-
#
|
|
594
|
+
#00d8ea 0%,
|
|
595
|
+
#009db8 20%,
|
|
596
|
+
color-mix(in oklch, #007dab, #009db8 25%) 100%
|
|
551
597
|
);
|
|
552
598
|
--button-brand-2-shadow:
|
|
553
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
599
|
+
inset 0 1px 0 color-mix(in oklch, #00d8ea, white 15%),
|
|
600
|
+
inset 0 -1px 0 color-mix(in oklch, #009db8, black 8%),
|
|
601
|
+
0 2px 3px color-mix(in srgb, #009db8, transparent 82%);
|
|
554
602
|
--button-brand-2-hover-shadow:
|
|
555
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
--button-brand-3-
|
|
559
|
-
--button-brand-3-
|
|
603
|
+
inset 0 1px 0 color-mix(in oklch, #00d8ea, white 15%),
|
|
604
|
+
inset 0 -1px 0 color-mix(in oklch, #009db8, black 8%),
|
|
605
|
+
0 2px 6px color-mix(in srgb, #009db8, transparent 75%);
|
|
606
|
+
--button-brand-3-bg: #aa0aff;
|
|
607
|
+
--button-brand-3-text: #ffffff;
|
|
608
|
+
--button-brand-3-border: color-mix(in oklch, #aa0aff, black 8%);
|
|
609
|
+
--button-brand-3-hover-border: #aa0aff;
|
|
560
610
|
--button-brand-3-background-image: linear-gradient(
|
|
561
611
|
to bottom,
|
|
562
|
-
|
|
563
|
-
#
|
|
612
|
+
#e04bff 0%,
|
|
613
|
+
#aa0aff 20%,
|
|
614
|
+
#7c00e5 100%
|
|
564
615
|
);
|
|
565
616
|
--button-brand-3-hover-background-image: linear-gradient(
|
|
566
617
|
to bottom,
|
|
567
|
-
|
|
568
|
-
#
|
|
618
|
+
#e04bff 0%,
|
|
619
|
+
#aa0aff 20%,
|
|
620
|
+
color-mix(in oklch, #7c00e5, #aa0aff 25%) 100%
|
|
569
621
|
);
|
|
570
622
|
--button-brand-3-shadow:
|
|
571
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
623
|
+
inset 0 1px 0 color-mix(in oklch, #e04bff, white 15%),
|
|
624
|
+
inset 0 -1px 0 color-mix(in oklch, #aa0aff, black 8%),
|
|
625
|
+
0 2px 3px color-mix(in srgb, #aa0aff, transparent 82%);
|
|
572
626
|
--button-brand-3-hover-shadow:
|
|
573
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
--button-brand-4-
|
|
577
|
-
--button-brand-4-
|
|
627
|
+
inset 0 1px 0 color-mix(in oklch, #e04bff, white 15%),
|
|
628
|
+
inset 0 -1px 0 color-mix(in oklch, #aa0aff, black 8%),
|
|
629
|
+
0 2px 6px color-mix(in srgb, #aa0aff, transparent 75%);
|
|
630
|
+
--button-brand-4-bg: #1464ff;
|
|
631
|
+
--button-brand-4-text: #ffffff;
|
|
632
|
+
--button-brand-4-border: color-mix(in oklch, #1464ff, black 8%);
|
|
633
|
+
--button-brand-4-hover-border: #1464ff;
|
|
578
634
|
--button-brand-4-background-image: linear-gradient(
|
|
579
635
|
to bottom,
|
|
580
|
-
|
|
581
|
-
#
|
|
636
|
+
#388bff 0%,
|
|
637
|
+
#1464ff 20%,
|
|
638
|
+
#0045ef 100%
|
|
582
639
|
);
|
|
583
640
|
--button-brand-4-hover-background-image: linear-gradient(
|
|
584
641
|
to bottom,
|
|
585
|
-
|
|
586
|
-
#
|
|
642
|
+
#388bff 0%,
|
|
643
|
+
#1464ff 20%,
|
|
644
|
+
color-mix(in oklch, #0045ef, #1464ff 25%) 100%
|
|
587
645
|
);
|
|
588
646
|
--button-brand-4-shadow:
|
|
589
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
647
|
+
inset 0 1px 0 color-mix(in oklch, #388bff, white 15%),
|
|
648
|
+
inset 0 -1px 0 color-mix(in oklch, #1464ff, black 8%),
|
|
649
|
+
0 2px 3px color-mix(in srgb, #1464ff, transparent 82%);
|
|
590
650
|
--button-brand-4-hover-shadow:
|
|
591
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
--button-brand-5-
|
|
595
|
-
--button-brand-5-
|
|
651
|
+
inset 0 1px 0 color-mix(in oklch, #388bff, white 15%),
|
|
652
|
+
inset 0 -1px 0 color-mix(in oklch, #1464ff, black 8%),
|
|
653
|
+
0 2px 6px color-mix(in srgb, #1464ff, transparent 75%);
|
|
654
|
+
--button-brand-5-bg: #00ab38;
|
|
655
|
+
--button-brand-5-text: #ffffff;
|
|
656
|
+
--button-brand-5-border: color-mix(in oklch, #00ab38, black 8%);
|
|
657
|
+
--button-brand-5-hover-border: #00ab38;
|
|
596
658
|
--button-brand-5-background-image: linear-gradient(
|
|
597
659
|
to bottom,
|
|
598
|
-
|
|
599
|
-
#
|
|
660
|
+
#63e600 0%,
|
|
661
|
+
#00ab38 20%,
|
|
662
|
+
#008d21 100%
|
|
600
663
|
);
|
|
601
664
|
--button-brand-5-hover-background-image: linear-gradient(
|
|
602
665
|
to bottom,
|
|
603
|
-
|
|
604
|
-
#
|
|
666
|
+
#63e600 0%,
|
|
667
|
+
#00ab38 20%,
|
|
668
|
+
color-mix(in oklch, #008d21, #00ab38 25%) 100%
|
|
605
669
|
);
|
|
606
670
|
--button-brand-5-shadow:
|
|
607
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
671
|
+
inset 0 1px 0 color-mix(in oklch, #63e600, white 15%),
|
|
672
|
+
inset 0 -1px 0 color-mix(in oklch, #00ab38, black 8%),
|
|
673
|
+
0 2px 3px color-mix(in srgb, #00ab38, transparent 82%);
|
|
608
674
|
--button-brand-5-hover-shadow:
|
|
609
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
610
|
-
|
|
611
|
-
|
|
675
|
+
inset 0 1px 0 color-mix(in oklch, #63e600, white 15%),
|
|
676
|
+
inset 0 -1px 0 color-mix(in oklch, #00ab38, black 8%),
|
|
677
|
+
0 2px 6px color-mix(in srgb, #00ab38, transparent 75%);
|
|
612
678
|
--background: var(--bg-default);
|
|
613
679
|
--foreground: var(--text-default);
|
|
614
680
|
--card: var(--bg-surface-default);
|
|
@@ -28,44 +28,38 @@ function emphasisFinish(
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
// Vivid body colours and a bright upper edge make the brand actions pop.
|
|
32
|
+
// White labels use a heavier weight and a subtle shadow over these gradients.
|
|
33
|
+
const brandButtonColors: Record<BrandButton, { top: string; bottom: string; highlight: string }> = {
|
|
34
|
+
brand: { top: '#F45B00', bottom: '#E04400', highlight: '#FF8A00' },
|
|
35
|
+
'brand-2': { top: '#009DB8', bottom: '#007DAB', highlight: '#00D8EA' },
|
|
36
|
+
'brand-3': { top: '#AA0AFF', bottom: '#7C00E5', highlight: '#E04BFF' },
|
|
37
|
+
'brand-4': { top: '#1464FF', bottom: '#0045EF', highlight: '#388BFF' },
|
|
38
|
+
'brand-5': { top: '#00AB38', bottom: '#008D21', highlight: '#63E600' },
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function brandFinishes(): Record<string, string> {
|
|
36
42
|
return Object.assign(
|
|
37
43
|
{},
|
|
38
|
-
...
|
|
39
|
-
const
|
|
44
|
+
...Object.entries(brandButtonColors).map(([variant, { top, bottom, highlight }]) => {
|
|
45
|
+
const edge = `color-mix(in oklch, ${top}, black 8%)`
|
|
46
|
+
const rim = `color-mix(in oklch, ${highlight}, white 15%)`
|
|
47
|
+
const shadow = `color-mix(in srgb, ${top}, transparent 82%)`
|
|
48
|
+
const hoverShadow = `color-mix(in srgb, ${top}, transparent 75%)`
|
|
40
49
|
return {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
? { start: 3, hover: 5 }
|
|
50
|
-
: { start: 5, hover: 10 },
|
|
51
|
-
),
|
|
52
|
-
[`--button-${variant}-bg`]: fill,
|
|
53
|
-
[`--button-${variant}-text`]: text[variant],
|
|
50
|
+
[`--button-${variant}-bg`]: top,
|
|
51
|
+
[`--button-${variant}-text`]: '#FFFFFF',
|
|
52
|
+
[`--button-${variant}-border`]: edge,
|
|
53
|
+
[`--button-${variant}-hover-border`]: top,
|
|
54
|
+
[`--button-${variant}-background-image`]: `linear-gradient(to bottom, ${highlight} 0%, ${top} 20%, ${bottom} 100%)`,
|
|
55
|
+
[`--button-${variant}-hover-background-image`]: `linear-gradient(to bottom, ${highlight} 0%, ${top} 20%, color-mix(in oklch, ${bottom}, ${top} 25%) 100%)`,
|
|
56
|
+
[`--button-${variant}-shadow`]: `inset 0 1px 0 ${rim}, inset 0 -1px 0 ${edge}, 0 2px 3px ${shadow}`,
|
|
57
|
+
[`--button-${variant}-hover-shadow`]: `inset 0 1px 0 ${rim}, inset 0 -1px 0 ${edge}, 0 2px 6px ${hoverShadow}`,
|
|
54
58
|
}
|
|
55
59
|
}),
|
|
56
60
|
)
|
|
57
61
|
}
|
|
58
62
|
|
|
59
|
-
// Saturated action fills keep their energy in both themes. Orange, turquoise,
|
|
60
|
-
// and green use deeper shades than the shared accents for readable white labels.
|
|
61
|
-
const brandButtonFills: Record<BrandButton, string> = {
|
|
62
|
-
brand: '#D43C00',
|
|
63
|
-
'brand-2': '#008090',
|
|
64
|
-
'brand-3': '#8A00F5',
|
|
65
|
-
'brand-4': '#0057FF',
|
|
66
|
-
'brand-5': '#008700',
|
|
67
|
-
}
|
|
68
|
-
|
|
69
63
|
const shape: Record<string, string> = {
|
|
70
64
|
'--spacing': '0.25rem',
|
|
71
65
|
'--border-width-base': '0.0625rem',
|
|
@@ -91,6 +85,8 @@ const shape: Record<string, string> = {
|
|
|
91
85
|
'--button-font-size-xs': 'var(--text-xs)',
|
|
92
86
|
'--button-font-size-sm': 'var(--text-xs)',
|
|
93
87
|
'--button-gap': 'calc(var(--spacing) * 1.5)',
|
|
88
|
+
'--button-brand-font-weight': '600',
|
|
89
|
+
'--button-brand-text-shadow': '0 1px 1px #00000059, 0 0 1px #00000040',
|
|
94
90
|
'--card-radius': 'var(--radius-xl)',
|
|
95
91
|
'--input-radius': 'var(--radius-lg)',
|
|
96
92
|
'--input-height': 'calc(var(--spacing) * 9)',
|
|
@@ -127,16 +123,7 @@ export const kumo: Record<string, string> = {
|
|
|
127
123
|
...shape,
|
|
128
124
|
...emphasisFinish('primary', 'var(--bg-fill-primary)'),
|
|
129
125
|
...emphasisFinish('destructive', 'var(--bg-fill-critical)'),
|
|
130
|
-
...brandFinishes(
|
|
131
|
-
{
|
|
132
|
-
brand: '#FFFFFF',
|
|
133
|
-
'brand-2': '#FFFFFF',
|
|
134
|
-
'brand-3': '#FFFFFF',
|
|
135
|
-
'brand-4': '#FFFFFF',
|
|
136
|
-
'brand-5': '#FFFFFF',
|
|
137
|
-
},
|
|
138
|
-
brandButtonFills,
|
|
139
|
-
),
|
|
126
|
+
...brandFinishes(),
|
|
140
127
|
|
|
141
128
|
'--bg-default': '#FBFBFB',
|
|
142
129
|
'--bg-inverse': '#080808',
|
|
@@ -245,16 +232,7 @@ export const kumoDark: Record<string, string> = {
|
|
|
245
232
|
...shape,
|
|
246
233
|
...emphasisFinish('primary', 'var(--bg-fill-primary)'),
|
|
247
234
|
...emphasisFinish('destructive', 'var(--bg-fill-critical)'),
|
|
248
|
-
...brandFinishes(
|
|
249
|
-
{
|
|
250
|
-
brand: '#FFFFFF',
|
|
251
|
-
'brand-2': '#FFFFFF',
|
|
252
|
-
'brand-3': '#FFFFFF',
|
|
253
|
-
'brand-4': '#FFFFFF',
|
|
254
|
-
'brand-5': '#FFFFFF',
|
|
255
|
-
},
|
|
256
|
-
brandButtonFills,
|
|
257
|
-
),
|
|
235
|
+
...brandFinishes(),
|
|
258
236
|
|
|
259
237
|
'--shadow-base-color': '#0000004D',
|
|
260
238
|
'--bg-default': '#030303',
|
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
--button-quiet-hover-bg: initial;
|
|
62
62
|
|
|
63
63
|
/* Brand buttons can opt into the same filled finishes per colour. */
|
|
64
|
+
--button-brand-font-weight: 500;
|
|
65
|
+
--button-brand-text-shadow: none;
|
|
64
66
|
--button-brand-bg: initial;
|
|
65
67
|
--button-brand-text: initial;
|
|
66
68
|
--button-brand-border: initial;
|