@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 CHANGED
@@ -396,8 +396,9 @@ Kumo takes its cues from [Cloudflare's Kumo](https://kumo-ui.com/components/butt
396
396
  neutral light/dark surfaces, blue primary actions, an orange brand accent, and
397
397
  solid red destructive buttons. Primary (`variant="default"`) and destructive
398
398
  buttons have darker borders, vertical gradients, and inset top highlights.
399
- All five brand button variants use the same finish in their own colours; alerts
400
- and badges continue to use the coordinated tinted surfaces.
399
+ All five brand button variants use vivid colour gradients and brighter upper
400
+ highlights, with semibold white labels and a subtle text shadow; alerts and
401
+ badges continue to use the coordinated tinted surfaces.
401
402
  Its default and large buttons are 36px and 40px tall; small and extra-small
402
403
  buttons are 26px and 20px tall. The preset also styles fields, cards, status
403
404
  surfaces, and the sidebar through the existing token system.
@@ -406,6 +407,7 @@ Button finishes can be tuned with `--button-primary-border`,
406
407
  `--button-primary-background-image`, `--button-primary-hover-background-image`,
407
408
  and `--button-primary-shadow`, with equivalent `--button-destructive-*`, `--button-brand-*`, and
408
409
  `--button-brand-2-*` through `--button-brand-5-*` tokens.
410
+ Brand labels use `--button-brand-font-weight` and `--button-brand-text-shadow`.
409
411
  Destructive fill and text use `--button-destructive-bg` and
410
412
  `--button-destructive-text`, independently of the tinted critical surfaces used
411
413
  by alerts and badges. Button sizes use `--button-height`, `--button-height-xs`,
@@ -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-border: color-mix(in oklch, #d43c00, black 10%);
229
- --button-brand-hover-border: color-mix(in oklch, #d43c00, black 10%);
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
- color-mix(in oklch, #d43c00, white 1%),
233
- #d43c00
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
- color-mix(in oklch, #d43c00, white 2%),
238
- #d43c00
242
+ #ff8a00 0%,
243
+ #f45b00 20%,
244
+ color-mix(in oklch, #e04400, #f45b00 25%) 100%
239
245
  );
240
- --button-brand-shadow: inset 0 1px 0 color-mix(in oklch, #d43c00, white 30%), 0 1px 2px #0000000d;
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, #d43c00, white 30%), 0 1px 2px #0000000d;
243
- --button-brand-bg: #d43c00;
244
- --button-brand-text: #ffffff;
245
- --button-brand-2-border: color-mix(in oklch, #008090, black 10%);
246
- --button-brand-2-hover-border: color-mix(in oklch, #008090, black 10%);
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
- color-mix(in oklch, #008090, white 1%),
250
- #008090
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
- color-mix(in oklch, #008090, white 2%),
255
- #008090
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, #008090, white 30%), 0 1px 2px #0000000d;
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, #008090, white 30%), 0 1px 2px #0000000d;
261
- --button-brand-2-bg: #008090;
262
- --button-brand-2-text: #ffffff;
263
- --button-brand-3-border: color-mix(in oklch, #8a00f5, black 10%);
264
- --button-brand-3-hover-border: color-mix(in oklch, #8a00f5, black 10%);
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
- color-mix(in oklch, #8a00f5, white 3%),
268
- #8a00f5
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
- color-mix(in oklch, #8a00f5, white 5%),
273
- #8a00f5
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, #8a00f5, white 30%), 0 1px 2px #0000000d;
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, #8a00f5, white 30%), 0 1px 2px #0000000d;
279
- --button-brand-3-bg: #8a00f5;
280
- --button-brand-3-text: #ffffff;
281
- --button-brand-4-border: color-mix(in oklch, #0057ff, black 10%);
282
- --button-brand-4-hover-border: color-mix(in oklch, #0057ff, black 10%);
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
- color-mix(in oklch, #0057ff, white 3%),
286
- #0057ff
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
- color-mix(in oklch, #0057ff, white 5%),
291
- #0057ff
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, #0057ff, white 30%), 0 1px 2px #0000000d;
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, #0057ff, white 30%), 0 1px 2px #0000000d;
297
- --button-brand-4-bg: #0057ff;
298
- --button-brand-4-text: #ffffff;
299
- --button-brand-5-border: color-mix(in oklch, #008700, black 10%);
300
- --button-brand-5-hover-border: color-mix(in oklch, #008700, black 10%);
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
- color-mix(in oklch, #008700, white 1%),
304
- #008700
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
- color-mix(in oklch, #008700, white 2%),
309
- #008700
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, #008700, white 30%), 0 1px 2px #0000000d;
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, #008700, white 30%), 0 1px 2px #0000000d;
315
- --button-brand-5-bg: #008700;
316
- --button-brand-5-text: #ffffff;
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-border: color-mix(in oklch, #d43c00, black 10%);
524
- --button-brand-hover-border: color-mix(in oklch, #d43c00, black 10%);
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
- color-mix(in oklch, #d43c00, white 1%),
528
- #d43c00
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
- color-mix(in oklch, #d43c00, white 2%),
533
- #d43c00
570
+ #ff8a00 0%,
571
+ #f45b00 20%,
572
+ color-mix(in oklch, #e04400, #f45b00 25%) 100%
534
573
  );
535
- --button-brand-shadow: inset 0 1px 0 color-mix(in oklch, #d43c00, white 30%), 0 1px 2px #0000000d;
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, #d43c00, white 30%), 0 1px 2px #0000000d;
538
- --button-brand-bg: #d43c00;
539
- --button-brand-text: #ffffff;
540
- --button-brand-2-border: color-mix(in oklch, #008090, black 10%);
541
- --button-brand-2-hover-border: color-mix(in oklch, #008090, black 10%);
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
- color-mix(in oklch, #008090, white 1%),
545
- #008090
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
- color-mix(in oklch, #008090, white 2%),
550
- #008090
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, #008090, white 30%), 0 1px 2px #0000000d;
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, #008090, white 30%), 0 1px 2px #0000000d;
556
- --button-brand-2-bg: #008090;
557
- --button-brand-2-text: #ffffff;
558
- --button-brand-3-border: color-mix(in oklch, #8a00f5, black 10%);
559
- --button-brand-3-hover-border: color-mix(in oklch, #8a00f5, black 10%);
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
- color-mix(in oklch, #8a00f5, white 3%),
563
- #8a00f5
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
- color-mix(in oklch, #8a00f5, white 5%),
568
- #8a00f5
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, #8a00f5, white 30%), 0 1px 2px #0000000d;
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, #8a00f5, white 30%), 0 1px 2px #0000000d;
574
- --button-brand-3-bg: #8a00f5;
575
- --button-brand-3-text: #ffffff;
576
- --button-brand-4-border: color-mix(in oklch, #0057ff, black 10%);
577
- --button-brand-4-hover-border: color-mix(in oklch, #0057ff, black 10%);
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
- color-mix(in oklch, #0057ff, white 3%),
581
- #0057ff
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
- color-mix(in oklch, #0057ff, white 5%),
586
- #0057ff
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, #0057ff, white 30%), 0 1px 2px #0000000d;
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, #0057ff, white 30%), 0 1px 2px #0000000d;
592
- --button-brand-4-bg: #0057ff;
593
- --button-brand-4-text: #ffffff;
594
- --button-brand-5-border: color-mix(in oklch, #008700, black 10%);
595
- --button-brand-5-hover-border: color-mix(in oklch, #008700, black 10%);
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
- color-mix(in oklch, #008700, white 1%),
599
- #008700
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
- color-mix(in oklch, #008700, white 2%),
604
- #008700
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, #008700, white 30%), 0 1px 2px #0000000d;
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, #008700, white 30%), 0 1px 2px #0000000d;
610
- --button-brand-5-bg: #008700;
611
- --button-brand-5-text: #ffffff;
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);