@zovaris/sephiro 1.0.0 → 1.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.
package/dist/index.css CHANGED
@@ -101,9 +101,9 @@
101
101
  --sph-border-strong: #9d6475;
102
102
  --sph-text: #f6edf0;
103
103
  --sph-text-muted: #cbb9be;
104
- --sph-accent: #b85c79;
105
- --sph-accent-hover: #c96c89;
106
- --sph-accent-pressed: #9f4c67;
104
+ --sph-accent: #a8506d;
105
+ --sph-accent-hover: #b0577a;
106
+ --sph-accent-pressed: #934360;
107
107
  --sph-accent-soft: var(--sph-accent);
108
108
  @supports (color: color-mix(in lab, red, red)) {
109
109
  --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 18%, transparent);
@@ -238,7 +238,7 @@
238
238
  --sph-on-accent: #ffffff;
239
239
  --sph-success: #4a9e5c;
240
240
  --sph-warning: #d4a843;
241
- --sph-danger: #d71921;
241
+ --sph-danger: #ff6b70;
242
242
  --sph-shadow-popover: 0 14px 36px rgb(0 0 0 / 0.5);
243
243
  color-scheme: dark;
244
244
  }
@@ -370,31 +370,31 @@
370
370
  --sph-border-strong: #3a3a3a;
371
371
  --sph-text: #f5f5f3;
372
372
  --sph-text-muted: #c4c4c0;
373
- --sph-accent: #d71921;
374
- --sph-accent-hover: #c4161d;
375
- --sph-accent-pressed: #a8141b;
376
- --sph-accent-strong: #ef4444;
373
+ --sph-accent: #d4a84a;
374
+ --sph-accent-hover: #dfb75e;
375
+ --sph-accent-pressed: #b8903a;
376
+ --sph-accent-strong: #e8c77a;
377
377
  --sph-accent-soft: var(--sph-accent);
378
378
  @supports (color: color-mix(in lab, red, red)) {
379
379
  --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 16%, transparent);
380
380
  }
381
- --sph-on-accent: #ffffff;
381
+ --sph-on-accent: #0a0a0a;
382
382
  --sph-success: #84a07c;
383
383
  --sph-success-soft: var(--sph-success);
384
384
  @supports (color: color-mix(in lab, red, red)) {
385
385
  --sph-success-soft: color-mix(in srgb, var(--sph-success) 15%, transparent);
386
386
  }
387
- --sph-warning: #d4a84a;
387
+ --sph-warning: #e8944a;
388
388
  --sph-warning-soft: var(--sph-warning);
389
389
  @supports (color: color-mix(in lab, red, red)) {
390
390
  --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 15%, transparent);
391
391
  }
392
- --sph-danger: #c25c4f;
392
+ --sph-danger: #d0695b;
393
393
  --sph-danger-soft: var(--sph-danger);
394
394
  @supports (color: color-mix(in lab, red, red)) {
395
395
  --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 15%, transparent);
396
396
  }
397
- --sph-focus: #ea343c;
397
+ --sph-focus: #dfb75e;
398
398
  --sph-focus-ring: var(--sph-accent);
399
399
  @supports (color: color-mix(in lab, red, red)) {
400
400
  --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 26%, transparent);
@@ -416,21 +416,21 @@
416
416
  --sph-border-strong: #b8b4a9;
417
417
  --sph-text: #18181b;
418
418
  --sph-text-muted: #3f3f46;
419
- --sph-accent: #c2151c;
420
- --sph-accent-hover: #a8141b;
421
- --sph-accent-pressed: #8f1017;
422
- --sph-accent-strong: #a8141b;
419
+ --sph-accent: #7a5a1c;
420
+ --sph-accent-hover: #66491a;
421
+ --sph-accent-pressed: #523a12;
422
+ --sph-accent-strong: #66491a;
423
423
  --sph-accent-soft: var(--sph-accent);
424
424
  @supports (color: color-mix(in lab, red, red)) {
425
425
  --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 13%, transparent);
426
426
  }
427
427
  --sph-on-accent: #fafaf8;
428
- --sph-success: #5a7a52;
428
+ --sph-success: #4b6a44;
429
429
  --sph-success-soft: var(--sph-success);
430
430
  @supports (color: color-mix(in lab, red, red)) {
431
431
  --sph-success-soft: color-mix(in srgb, var(--sph-success) 12%, transparent);
432
432
  }
433
- --sph-warning: #a88030;
433
+ --sph-warning: #9a5a12;
434
434
  --sph-warning-soft: var(--sph-warning);
435
435
  @supports (color: color-mix(in lab, red, red)) {
436
436
  --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 12%, transparent);
@@ -440,7 +440,7 @@
440
440
  @supports (color: color-mix(in lab, red, red)) {
441
441
  --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 12%, transparent);
442
442
  }
443
- --sph-focus: #c2151c;
443
+ --sph-focus: #7a5a1c;
444
444
  --sph-focus-ring: var(--sph-accent);
445
445
  @supports (color: color-mix(in lab, red, red)) {
446
446
  --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 20%, transparent);
@@ -448,6 +448,252 @@
448
448
  --sph-shadow-popover: 0 14px 36px rgb(0 0 0 / 0.14);
449
449
  color-scheme: light;
450
450
  }
451
+ [data-sephiro-theme="tinta"] {
452
+ --sph-bg: #111110;
453
+ --sph-surface: #191918;
454
+ --sph-surface-elevated: #222221;
455
+ --sph-raised: #2a2a28;
456
+ --sph-border: #3b3a37;
457
+ --sph-border-strong: #494844;
458
+ --sph-text: #eeeeec;
459
+ --sph-text-muted: #b5b3ad;
460
+ --sph-accent: #3e63dd;
461
+ --sph-accent-hover: #4a6ae0;
462
+ --sph-accent-pressed: #3358d4;
463
+ --sph-accent-strong: #9eb1ff;
464
+ --sph-accent-soft: var(--sph-accent);
465
+ @supports (color: color-mix(in lab, red, red)) {
466
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 18%, transparent);
467
+ }
468
+ --sph-on-accent: #ffffff;
469
+ --sph-success: #71d083;
470
+ --sph-success-soft: var(--sph-success);
471
+ @supports (color: color-mix(in lab, red, red)) {
472
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 14%, transparent);
473
+ }
474
+ --sph-warning: #ffca16;
475
+ --sph-warning-soft: var(--sph-warning);
476
+ @supports (color: color-mix(in lab, red, red)) {
477
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 14%, transparent);
478
+ }
479
+ --sph-danger: #ff9592;
480
+ --sph-danger-soft: var(--sph-danger);
481
+ @supports (color: color-mix(in lab, red, red)) {
482
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 14%, transparent);
483
+ }
484
+ --sph-focus: #9eb1ff;
485
+ --sph-focus-ring: var(--sph-accent);
486
+ @supports (color: color-mix(in lab, red, red)) {
487
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 32%, transparent);
488
+ }
489
+ --sph-shadow-popover: 0 14px 36px rgb(0 0 0 / 0.5);
490
+ color-scheme: dark;
491
+ }
492
+ [data-sephiro-theme="tinta"][data-theme="light"], [data-theme="light"] [data-sephiro-theme="tinta"] {
493
+ --sph-bg: #fdfdfc;
494
+ --sph-surface: #f9f9f8;
495
+ --sph-surface-elevated: #f1f0ef;
496
+ --sph-raised: #e9e8e6;
497
+ --sph-border: #dad9d6;
498
+ --sph-border-strong: #cfceca;
499
+ --sph-text: #21201c;
500
+ --sph-text-muted: #63635e;
501
+ --sph-accent: #3e63dd;
502
+ --sph-accent-hover: #3358d4;
503
+ --sph-accent-pressed: #2f4fbf;
504
+ --sph-accent-strong: #3a5bc7;
505
+ --sph-accent-soft: var(--sph-accent);
506
+ @supports (color: color-mix(in lab, red, red)) {
507
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 12%, transparent);
508
+ }
509
+ --sph-on-accent: #ffffff;
510
+ --sph-success: #2a7e3b;
511
+ --sph-success-soft: var(--sph-success);
512
+ @supports (color: color-mix(in lab, red, red)) {
513
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 12%, transparent);
514
+ }
515
+ --sph-warning: #985800;
516
+ --sph-warning-soft: var(--sph-warning);
517
+ @supports (color: color-mix(in lab, red, red)) {
518
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 12%, transparent);
519
+ }
520
+ --sph-danger: #ce2c31;
521
+ --sph-danger-soft: var(--sph-danger);
522
+ @supports (color: color-mix(in lab, red, red)) {
523
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 10%, transparent);
524
+ }
525
+ --sph-focus: #3a5bc7;
526
+ --sph-focus-ring: var(--sph-accent);
527
+ @supports (color: color-mix(in lab, red, red)) {
528
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 24%, transparent);
529
+ }
530
+ --sph-shadow-popover: 0 8px 24px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.05);
531
+ color-scheme: light;
532
+ }
533
+ [data-sephiro-theme="flexoki"] {
534
+ --sph-bg: #100f0f;
535
+ --sph-surface: #1c1b1a;
536
+ --sph-surface-elevated: #282726;
537
+ --sph-raised: #343331;
538
+ --sph-border: #403e3c;
539
+ --sph-border-strong: #575653;
540
+ --sph-text: #cecdc3;
541
+ --sph-text-muted: #b7b5ac;
542
+ --sph-accent: #3aa99f;
543
+ --sph-accent-hover: #5abdac;
544
+ --sph-accent-pressed: #2f968d;
545
+ --sph-accent-strong: #5abdac;
546
+ --sph-accent-soft: var(--sph-accent);
547
+ @supports (color: color-mix(in lab, red, red)) {
548
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 18%, transparent);
549
+ }
550
+ --sph-on-accent: #100f0f;
551
+ --sph-success: #a0af54;
552
+ --sph-success-soft: var(--sph-success);
553
+ @supports (color: color-mix(in lab, red, red)) {
554
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 14%, transparent);
555
+ }
556
+ --sph-warning: #dfb431;
557
+ --sph-warning-soft: var(--sph-warning);
558
+ @supports (color: color-mix(in lab, red, red)) {
559
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 14%, transparent);
560
+ }
561
+ --sph-danger: #e8705f;
562
+ --sph-danger-soft: var(--sph-danger);
563
+ @supports (color: color-mix(in lab, red, red)) {
564
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 14%, transparent);
565
+ }
566
+ --sph-focus: #5abdac;
567
+ --sph-focus-ring: var(--sph-accent);
568
+ @supports (color: color-mix(in lab, red, red)) {
569
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 32%, transparent);
570
+ }
571
+ --sph-shadow-popover: 0 14px 36px rgb(0 0 0 / 0.5);
572
+ color-scheme: dark;
573
+ }
574
+ [data-sephiro-theme="flexoki"][data-theme="light"], [data-theme="light"] [data-sephiro-theme="flexoki"] {
575
+ --sph-bg: #fffcf0;
576
+ --sph-surface: #f2f0e5;
577
+ --sph-surface-elevated: #fffcf0;
578
+ --sph-raised: #e6e4d9;
579
+ --sph-border: #dad8ce;
580
+ --sph-border-strong: #b7b5ac;
581
+ --sph-text: #100f0f;
582
+ --sph-text-muted: #575653;
583
+ --sph-accent: #24837b;
584
+ --sph-accent-hover: #1c6c66;
585
+ --sph-accent-pressed: #164f4a;
586
+ --sph-accent-strong: #1c6c66;
587
+ --sph-accent-soft: var(--sph-accent);
588
+ @supports (color: color-mix(in lab, red, red)) {
589
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 12%, transparent);
590
+ }
591
+ --sph-on-accent: #ffffff;
592
+ --sph-success: #536907;
593
+ --sph-success-soft: var(--sph-success);
594
+ @supports (color: color-mix(in lab, red, red)) {
595
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 12%, transparent);
596
+ }
597
+ --sph-warning: #664d01;
598
+ --sph-warning-soft: var(--sph-warning);
599
+ @supports (color: color-mix(in lab, red, red)) {
600
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 12%, transparent);
601
+ }
602
+ --sph-danger: #af3029;
603
+ --sph-danger-soft: var(--sph-danger);
604
+ @supports (color: color-mix(in lab, red, red)) {
605
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 10%, transparent);
606
+ }
607
+ --sph-focus: #1c6c66;
608
+ --sph-focus-ring: var(--sph-accent);
609
+ @supports (color: color-mix(in lab, red, red)) {
610
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 24%, transparent);
611
+ }
612
+ --sph-shadow-popover: 0 8px 24px rgb(16 15 15 / 0.08), 0 1px 2px rgb(16 15 15 / 0.05);
613
+ color-scheme: light;
614
+ }
615
+ [data-sephiro-theme="pizarra"] {
616
+ --sph-bg: #111113;
617
+ --sph-surface: #18191b;
618
+ --sph-surface-elevated: #212225;
619
+ --sph-raised: #272a2d;
620
+ --sph-border: #363a3f;
621
+ --sph-border-strong: #43484e;
622
+ --sph-text: #edeef0;
623
+ --sph-text-muted: #b0b4ba;
624
+ --sph-accent: #12a594;
625
+ --sph-accent-hover: #0eb39e;
626
+ --sph-accent-pressed: #1a9a8a;
627
+ --sph-accent-strong: #0bd8b6;
628
+ --sph-accent-soft: var(--sph-accent);
629
+ @supports (color: color-mix(in lab, red, red)) {
630
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 18%, transparent);
631
+ }
632
+ --sph-on-accent: #111113;
633
+ --sph-success: #71d083;
634
+ --sph-success-soft: var(--sph-success);
635
+ @supports (color: color-mix(in lab, red, red)) {
636
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 14%, transparent);
637
+ }
638
+ --sph-warning: #ffca16;
639
+ --sph-warning-soft: var(--sph-warning);
640
+ @supports (color: color-mix(in lab, red, red)) {
641
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 14%, transparent);
642
+ }
643
+ --sph-danger: #ff9592;
644
+ --sph-danger-soft: var(--sph-danger);
645
+ @supports (color: color-mix(in lab, red, red)) {
646
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 14%, transparent);
647
+ }
648
+ --sph-focus: #0bd8b6;
649
+ --sph-focus-ring: var(--sph-accent);
650
+ @supports (color: color-mix(in lab, red, red)) {
651
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 32%, transparent);
652
+ }
653
+ --sph-shadow-popover: 0 14px 36px rgb(0 0 0 / 0.5);
654
+ color-scheme: dark;
655
+ }
656
+ [data-sephiro-theme="pizarra"][data-theme="light"], [data-theme="light"] [data-sephiro-theme="pizarra"] {
657
+ --sph-bg: #fcfcfd;
658
+ --sph-surface: #f9f9fb;
659
+ --sph-surface-elevated: #f0f0f3;
660
+ --sph-raised: #e0e1e6;
661
+ --sph-border: #d9d9e0;
662
+ --sph-border-strong: #cdced6;
663
+ --sph-text: #1c2024;
664
+ --sph-text-muted: #60646c;
665
+ --sph-accent: #008573;
666
+ --sph-accent-hover: #027c6c;
667
+ --sph-accent-pressed: #047162;
668
+ --sph-accent-strong: #0d3d38;
669
+ --sph-accent-soft: var(--sph-accent);
670
+ @supports (color: color-mix(in lab, red, red)) {
671
+ --sph-accent-soft: color-mix(in srgb, var(--sph-accent) 12%, transparent);
672
+ }
673
+ --sph-on-accent: #ffffff;
674
+ --sph-success: #2a7e3b;
675
+ --sph-success-soft: var(--sph-success);
676
+ @supports (color: color-mix(in lab, red, red)) {
677
+ --sph-success-soft: color-mix(in srgb, var(--sph-success) 12%, transparent);
678
+ }
679
+ --sph-warning: #985800;
680
+ --sph-warning-soft: var(--sph-warning);
681
+ @supports (color: color-mix(in lab, red, red)) {
682
+ --sph-warning-soft: color-mix(in srgb, var(--sph-warning) 12%, transparent);
683
+ }
684
+ --sph-danger: #ce2c31;
685
+ --sph-danger-soft: var(--sph-danger);
686
+ @supports (color: color-mix(in lab, red, red)) {
687
+ --sph-danger-soft: color-mix(in srgb, var(--sph-danger) 10%, transparent);
688
+ }
689
+ --sph-focus: #008573;
690
+ --sph-focus-ring: var(--sph-accent);
691
+ @supports (color: color-mix(in lab, red, red)) {
692
+ --sph-focus-ring: color-mix(in srgb, var(--sph-accent) 24%, transparent);
693
+ }
694
+ --sph-shadow-popover: 0 8px 24px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.05);
695
+ color-scheme: light;
696
+ }
451
697
  @supports (animation-timing-function: linear(0, 1)) {
452
698
  :where(:root, [data-sephiro-theme="default"], [data-sephiro-theme="dark"]) {
453
699
  --sph-ease-spring: linear(
@@ -6259,26 +6505,35 @@ a.sph-breadcrumb__crumb:focus-visible, button.sph-breadcrumb__crumb:focus-visibl
6259
6505
  }
6260
6506
  }
6261
6507
  [data-sonner-toaster].sph-toast-viewport {
6262
- --width: min(380px, calc(100vw - 32px));
6508
+ --width: min(360px, calc(100vw - 32px));
6263
6509
  --offset-right: 16px;
6264
6510
  --offset-bottom: 16px;
6511
+ --sph-toast-bg: var(--sph-surface-elevated, var(--sph-surface));
6512
+ --sph-toast-fg: var(--sph-text);
6513
+ --sph-toast-muted: var(--sph-text-muted);
6514
+ --sph-toast-border: var(--sph-border);
6515
+ --sph-toast-radius: 12px;
6516
+ --sph-toast-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.28);
6265
6517
  font-family: var(--sph-font-sans);
6266
6518
  }
6267
6519
  [data-sonner-toast].sph-toast {
6520
+ --normal-bg: transparent;
6521
+ --normal-text: var(--sph-toast-muted);
6522
+ --normal-border: transparent;
6523
+ --gray2: var(--sph-raised);
6524
+ --gray5: transparent;
6525
+ --toast-close-button-transform: none;
6268
6526
  box-sizing: border-box;
6269
- display: grid;
6270
- grid-template-columns: 40px minmax(0, 1fr) auto;
6527
+ display: flex;
6271
6528
  align-items: center;
6272
- gap: 12px;
6529
+ gap: 8px;
6273
6530
  width: var(--width);
6274
- min-height: 72px;
6275
- padding: 12px;
6276
- overflow: visible;
6277
- border: 1px solid var(--sph-border);
6278
- border-radius: 16px;
6279
- background: var(--sph-surface);
6280
- color: var(--sph-text);
6281
- box-shadow: 0 14px 32px rgb(0 0 0 / 0.18);
6531
+ padding: 11px 10px 11px 12px;
6532
+ border: 1px solid var(--sph-toast-border);
6533
+ border-radius: var(--sph-toast-radius);
6534
+ background: var(--sph-toast-bg);
6535
+ color: var(--sph-toast-fg);
6536
+ box-shadow: var(--sph-toast-shadow);
6282
6537
  font-family: var(--sph-font-sans);
6283
6538
  }
6284
6539
  [data-sonner-toast].sph-toast:not([data-swiping="true"]) {
@@ -6295,132 +6550,105 @@ a.sph-breadcrumb__crumb:focus-visible, button.sph-breadcrumb__crumb:focus-visibl
6295
6550
  }
6296
6551
  [data-sonner-toast].sph-toast[data-type="success"] {
6297
6552
  --sph-toast-tone: var(--sph-success);
6298
- --sph-toast-tone-soft: var(--sph-success-soft);
6299
- }
6300
- [data-sonner-toast].sph-toast[data-type="info"] {
6301
- --sph-toast-tone: var(--sph-accent);
6302
- --sph-toast-tone-soft: var(--sph-accent-soft);
6303
6553
  }
6304
6554
  [data-sonner-toast].sph-toast[data-type="warning"] {
6305
6555
  --sph-toast-tone: var(--sph-warning);
6306
- --sph-toast-tone-soft: var(--sph-warning-soft);
6307
6556
  }
6308
6557
  [data-sonner-toast].sph-toast[data-type="error"] {
6309
6558
  --sph-toast-tone: var(--sph-danger);
6310
- --sph-toast-tone-soft: var(--sph-danger-soft);
6311
6559
  }
6312
6560
  [data-sonner-toast].sph-toast [data-icon] {
6313
6561
  display: flex;
6314
- width: calc(var(--spacing, 0.25rem) * 10);
6315
- height: calc(var(--spacing, 0.25rem) * 10);
6562
+ flex: none;
6563
+ order: 0;
6316
6564
  align-items: center;
6317
6565
  justify-content: center;
6318
- border-radius: var(--sph-radius-md);
6319
- grid-column: 1;
6320
- grid-row: 1;
6321
- align-self: center;
6566
+ width: 18px;
6567
+ height: 18px;
6322
6568
  margin: 0;
6323
- background: var(--sph-toast-tone-soft, var(--sph-raised));
6324
- color: var(--sph-toast-tone, var(--sph-text-muted));
6569
+ color: var(--sph-toast-tone, var(--sph-toast-muted));
6325
6570
  }
6326
6571
  .sph-toast__status-icon {
6327
6572
  display: flex;
6328
- width: calc(var(--spacing, 0.25rem) * 5);
6329
- height: calc(var(--spacing, 0.25rem) * 5);
6330
6573
  align-items: center;
6331
6574
  justify-content: center;
6332
- animation: sph-toast-status-in var(--sph-motion-normal) var(--sph-ease-spring) both;
6333
- }
6334
- @keyframes sph-toast-status-in {
6335
- from {
6336
- opacity: 0;
6337
- transform: translateY(4px) scale(0.92);
6338
- }
6339
- to {
6340
- opacity: 1;
6341
- transform: translateY(0) scale(1);
6342
- }
6343
6575
  }
6344
6576
  .sph-toast__status-icon svg {
6345
6577
  display: block;
6346
- width: calc(var(--spacing, 0.25rem) * 5);
6347
- height: calc(var(--spacing, 0.25rem) * 5);
6348
6578
  }
6349
6579
  [data-sonner-toast].sph-toast [data-content] {
6350
6580
  display: flex;
6351
- min-width: 0px;
6581
+ flex: 1 1 auto;
6582
+ order: 1;
6583
+ min-width: 0;
6352
6584
  flex-direction: column;
6353
- gap: calc(var(--spacing, 0.25rem) * 0.5);
6354
- grid-column: 2;
6355
- grid-row: 1;
6356
- align-self: center;
6585
+ gap: 2px;
6357
6586
  }
6358
6587
  [data-sonner-toast].sph-toast [data-title] {
6359
- margin: 0px;
6360
- font-size: var(--text-sm, 0.875rem);
6361
- line-height: var(--tw-leading, var(--text-sm--line-height, calc(1.25 / 0.875)));
6362
- --tw-font-weight: var(--font-weight-semibold, 600);
6363
- font-weight: var(--font-weight-semibold, 600);
6364
- color: var(--sph-text);
6588
+ margin: 0;
6589
+ font-size: 13.5px;
6590
+ font-weight: 500;
6365
6591
  line-height: 1.35;
6592
+ color: var(--sph-toast-fg);
6366
6593
  }
6367
6594
  [data-sonner-toast].sph-toast [data-description] {
6368
- margin: 0px;
6369
- font-size: var(--text-xs, 0.75rem);
6370
- line-height: var(--tw-leading, var(--text-xs--line-height, calc(1 / 0.75)));
6371
- color: var(--sph-text-muted);
6372
- line-height: 1.4;
6595
+ margin: 0;
6596
+ font-size: 12.5px;
6597
+ line-height: 1.45;
6598
+ color: var(--sph-toast-muted);
6373
6599
  }
6374
6600
  [data-sonner-toast].sph-toast [data-button] {
6375
- height: calc(var(--spacing, 0.25rem) * 8);
6376
- border-radius: var(--sph-radius-sm);
6377
- border-style: var(--tw-border-style);
6378
- border-width: 0px;
6379
- background-color: var(--sph-raised);
6380
- padding-inline: calc(var(--spacing, 0.25rem) * 2.5);
6381
- font-size: var(--text-xs, 0.75rem);
6382
- line-height: var(--tw-leading, var(--text-xs--line-height, calc(1 / 0.75)));
6383
- --tw-font-weight: var(--font-weight-medium, 500);
6384
- font-weight: var(--font-weight-medium, 500);
6385
- color: var(--sph-text);
6386
- cursor: pointer;
6601
+ flex: none;
6602
+ order: 2;
6603
+ height: 26px;
6604
+ padding: 0 10px;
6605
+ border: 1px solid var(--sph-toast-border);
6606
+ border-radius: 7px;
6607
+ background: transparent;
6608
+ color: var(--sph-toast-fg);
6387
6609
  font-family: var(--sph-font-sans);
6610
+ font-size: 12px;
6611
+ font-weight: 500;
6612
+ white-space: nowrap;
6613
+ cursor: pointer;
6614
+ transition: background-color var(--sph-motion-fast) var(--sph-ease-standard);
6388
6615
  }
6389
6616
  [data-sonner-toast].sph-toast [data-button]:hover {
6390
- background: var(--sph-toast-tone-soft, var(--sph-raised));
6391
- color: var(--sph-toast-tone, var(--sph-text));
6617
+ background: var(--sph-raised);
6392
6618
  }
6393
6619
  [data-sonner-toast].sph-toast [data-button]:focus-visible, [data-sonner-toast].sph-toast [data-close-button]:focus-visible {
6394
6620
  outline: 2px solid var(--sph-focus);
6395
6621
  outline-offset: 2px;
6396
6622
  }
6397
6623
  [data-sonner-toast].sph-toast [data-close-button] {
6398
- margin: auto;
6624
+ position: static;
6399
6625
  display: inline-flex;
6626
+ flex: none;
6627
+ order: 3;
6400
6628
  align-items: center;
6401
6629
  justify-content: center;
6402
- border-radius: var(--sph-radius-sm);
6403
- border-style: var(--tw-border-style);
6404
- border-width: 0px;
6405
- background-color: transparent;
6406
- padding: 0px;
6407
- color: var(--sph-text-muted);
6408
- grid-column: 3;
6409
- grid-row: 1;
6410
- align-self: start;
6411
- width: 28px;
6412
- height: 28px;
6630
+ width: 22px;
6631
+ height: 22px;
6632
+ margin: 0;
6633
+ padding: 0;
6634
+ border: 0;
6635
+ border-radius: 6px;
6636
+ background: transparent;
6637
+ color: var(--sph-toast-muted);
6413
6638
  cursor: pointer;
6414
6639
  transform: none;
6640
+ transition: color var(--sph-motion-fast) var(--sph-ease-standard);
6415
6641
  }
6416
6642
  [data-sonner-toast].sph-toast [data-close-button]:hover {
6417
- background-color: var(--sph-raised);
6418
- color: var(--sph-text);
6643
+ color: var(--sph-toast-fg);
6419
6644
  }
6420
6645
  [data-sonner-toast].sph-toast [data-close-button] svg {
6421
- width: 13px;
6422
- height: 13px;
6423
- stroke-width: 2.5;
6646
+ width: 12px;
6647
+ height: 12px;
6648
+ }
6649
+ [data-sonner-toast].sph-toast [data-icon] .sonner-loader {
6650
+ position: static !important;
6651
+ transform: none !important;
6424
6652
  }
6425
6653
  [data-sonner-toast].sph-toast[data-expanded="false"][data-front="false"] > * {
6426
6654
  opacity: 0;
@@ -6436,7 +6664,7 @@ a.sph-breadcrumb__crumb:focus-visible, button.sph-breadcrumb__crumb:focus-visibl
6436
6664
  }
6437
6665
  }
6438
6666
  @media (prefers-reduced-motion: reduce) {
6439
- [data-sonner-toast].sph-toast, [data-sonner-toast].sph-toast > *, .sph-toast__status-icon {
6667
+ [data-sonner-toast].sph-toast, [data-sonner-toast].sph-toast > *, .sph-toast-progress__value {
6440
6668
  animation: none !important;
6441
6669
  transition: none !important;
6442
6670
  }
@@ -6452,66 +6680,86 @@ a.sph-breadcrumb__crumb:focus-visible, button.sph-breadcrumb__crumb:focus-visibl
6452
6680
  }
6453
6681
  .sph-spring-toast-region[data-position$="left"] {
6454
6682
  left: 16px;
6683
+ justify-content: flex-start;
6455
6684
  }
6456
6685
  .sph-spring-toast-region[data-position$="right"] {
6457
6686
  right: 16px;
6687
+ justify-content: flex-end;
6458
6688
  }
6459
6689
  .sph-spring-toast-region[data-position$="center"] {
6460
6690
  left: 50%;
6461
6691
  translate: -50% 0;
6462
6692
  }
6463
6693
  .sph-spring-toast {
6464
- --sph-spring-toast-shift: -10px;
6694
+ --sph-spring-toast-shift: -14px;
6695
+ --sph-spring-toast-bg: var(--sph-text);
6696
+ --sph-spring-toast-fg: var(--sph-bg);
6697
+ --sph-spring-toast-muted: var(--sph-spring-toast-fg);
6698
+ @supports (color: color-mix(in lab, red, red)) {
6699
+ --sph-spring-toast-muted: color-mix(
6700
+ in srgb,
6701
+ var(--sph-spring-toast-fg) 62%,
6702
+ var(--sph-spring-toast-bg)
6703
+ );
6704
+ }
6705
+ --sph-spring-toast-hover: var(--sph-spring-toast-fg);
6706
+ @supports (color: color-mix(in lab, red, red)) {
6707
+ --sph-spring-toast-hover: color-mix(
6708
+ in srgb,
6709
+ var(--sph-spring-toast-fg) 14%,
6710
+ var(--sph-spring-toast-bg)
6711
+ );
6712
+ }
6465
6713
  pointer-events: auto;
6466
6714
  position: relative;
6467
6715
  box-sizing: border-box;
6468
- display: grid;
6469
- grid-template-columns: auto minmax(0, 1fr) auto auto;
6716
+ display: flex;
6470
6717
  align-items: center;
6471
- gap: 10px;
6472
- width: 100%;
6473
- padding: 12px 12px 12px 14px;
6718
+ gap: 8px;
6719
+ width: max-content;
6720
+ max-width: 100%;
6721
+ min-height: 44px;
6722
+ padding: 8px 8px 8px 14px;
6474
6723
  overflow: hidden;
6475
- border: 1px solid var(--sph-border);
6476
- border-radius: 14px;
6477
- background: var(--sph-surface-elevated, var(--sph-surface));
6478
- color: var(--sph-text);
6479
- box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.4);
6724
+ border-radius: 22px;
6725
+ background: var(--sph-spring-toast-bg);
6726
+ color: var(--sph-spring-toast-fg);
6727
+ box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 16px 36px -14px rgb(0 0 0 / 0.45);
6480
6728
  font-family: var(--sph-font-sans);
6481
- animation: sph-spring-toast-in calc(var(--sph-motion-slow) * 1.75) var(--sph-ease-spring) both;
6482
- transition: height var(--sph-motion-normal) var(--sph-ease-emphasis);
6729
+ transform-origin: top center;
6730
+ animation: sph-spring-toast-in calc(var(--sph-motion-slow) * 2) var(--sph-ease-spring) both;
6731
+ transition: width var(--sph-motion-slow) var(--sph-ease-spring), height var(--sph-motion-slow) var(--sph-ease-spring);
6483
6732
  }
6484
6733
  .sph-spring-toast-region[data-position^="bottom"] .sph-spring-toast {
6485
- --sph-spring-toast-shift: 10px;
6734
+ --sph-spring-toast-shift: 14px;
6735
+ transform-origin: bottom center;
6486
6736
  }
6487
6737
  .sph-spring-toast[data-closing="true"] {
6488
6738
  animation: sph-spring-toast-out var(--sph-motion-normal) var(--sph-ease-exit) both;
6489
6739
  }
6490
6740
  .sph-spring-toast[data-tone="success"] {
6491
6741
  --sph-spring-toast-tone: var(--sph-success);
6492
- --sph-spring-toast-soft: var(--sph-success-soft);
6493
6742
  }
6494
6743
  .sph-spring-toast[data-tone="warning"] {
6495
6744
  --sph-spring-toast-tone: var(--sph-warning);
6496
- --sph-spring-toast-soft: var(--sph-warning-soft);
6497
6745
  }
6498
6746
  .sph-spring-toast[data-tone="error"] {
6499
6747
  --sph-spring-toast-tone: var(--sph-danger);
6500
- --sph-spring-toast-soft: var(--sph-danger-soft);
6501
- }
6502
- .sph-spring-toast[data-tone="loading"] {
6503
- --sph-spring-toast-tone: var(--sph-accent);
6504
- --sph-spring-toast-soft: var(--sph-accent-soft);
6505
6748
  }
6506
6749
  .sph-spring-toast__icon {
6507
6750
  display: inline-flex;
6751
+ flex: none;
6508
6752
  align-items: center;
6509
6753
  justify-content: center;
6510
- width: 30px;
6511
- height: 30px;
6512
- border-radius: 9px;
6513
- background: var(--sph-spring-toast-soft, var(--sph-raised));
6514
- color: var(--sph-spring-toast-tone, var(--sph-text-muted));
6754
+ width: 18px;
6755
+ height: 18px;
6756
+ color: var(--sph-spring-toast-tone, var(--sph-spring-toast-muted));
6757
+ }
6758
+ .sph-spring-toast__icon > * {
6759
+ display: inline-flex;
6760
+ align-items: center;
6761
+ justify-content: center;
6762
+ animation: sph-spring-toast-icon calc(var(--sph-motion-slow) * 1.5) var(--sph-ease-spring) both;
6515
6763
  }
6516
6764
  .sph-spring-toast__icon svg {
6517
6765
  display: block;
@@ -6519,8 +6767,11 @@ a.sph-breadcrumb__crumb:focus-visible, button.sph-breadcrumb__crumb:focus-visibl
6519
6767
  .sph-spring-toast__body {
6520
6768
  display: flex;
6521
6769
  min-width: 0;
6770
+ flex: 1 1 auto;
6522
6771
  flex-direction: column;
6523
6772
  gap: 1px;
6773
+ padding-block: 4px;
6774
+ animation: sph-spring-toast-content var(--sph-motion-normal) var(--sph-ease-standard) both;
6524
6775
  }
6525
6776
  .sph-spring-toast__title {
6526
6777
  display: flex;
@@ -6534,75 +6785,113 @@ a.sph-breadcrumb__crumb:focus-visible, button.sph-breadcrumb__crumb:focus-visibl
6534
6785
  font-family: var(--sph-font-mono, ui-monospace, monospace);
6535
6786
  font-size: 10.5px;
6536
6787
  font-weight: 500;
6537
- color: var(--sph-text-muted);
6788
+ color: var(--sph-spring-toast-muted);
6538
6789
  font-variant-numeric: tabular-nums;
6539
6790
  }
6540
6791
  .sph-spring-toast__description {
6541
6792
  font-size: 12.5px;
6542
6793
  line-height: 1.45;
6543
- color: var(--sph-text-muted);
6794
+ color: var(--sph-spring-toast-muted);
6544
6795
  }
6545
6796
  .sph-spring-toast__action {
6797
+ flex: none;
6546
6798
  height: 28px;
6547
- padding: 0 10px;
6799
+ padding: 0 12px;
6548
6800
  border: 0;
6549
- border-radius: var(--sph-radius-sm, 6px);
6550
- background: var(--sph-spring-toast-soft, var(--sph-raised));
6551
- color: var(--sph-spring-toast-tone, var(--sph-text));
6801
+ border-radius: 999px;
6802
+ background: var(--sph-spring-toast-fg);
6803
+ color: var(--sph-spring-toast-bg);
6552
6804
  font-family: var(--sph-font-sans);
6553
6805
  font-size: 12px;
6554
- font-weight: 500;
6806
+ font-weight: 600;
6555
6807
  cursor: pointer;
6556
- transition: background-color var(--sph-motion-fast) var(--sph-ease-standard);
6808
+ transition: opacity var(--sph-motion-fast) var(--sph-ease-standard);
6557
6809
  }
6558
6810
  .sph-spring-toast__action:hover {
6559
- background: var(--sph-spring-toast-tone, var(--sph-text));
6560
- @supports (color: color-mix(in lab, red, red)) {
6561
- background: color-mix( in srgb, var(--sph-spring-toast-tone, var(--sph-text)) 22%, var(--sph-surface-elevated, var(--sph-surface)) );
6562
- }
6811
+ opacity: 0.86;
6563
6812
  }
6564
6813
  .sph-spring-toast__close {
6565
6814
  display: inline-flex;
6815
+ flex: none;
6566
6816
  align-items: center;
6567
6817
  justify-content: center;
6568
- width: 24px;
6569
- height: 24px;
6818
+ width: 28px;
6819
+ height: 28px;
6570
6820
  padding: 0;
6571
6821
  border: 0;
6572
- border-radius: var(--sph-radius-sm, 6px);
6822
+ border-radius: 999px;
6573
6823
  background: transparent;
6574
- color: var(--sph-text-muted);
6824
+ color: var(--sph-spring-toast-muted);
6575
6825
  cursor: pointer;
6576
6826
  transition: background-color var(--sph-motion-fast) var(--sph-ease-standard), color var(--sph-motion-fast) var(--sph-ease-standard);
6577
6827
  }
6578
6828
  .sph-spring-toast__close:hover {
6579
- background: var(--sph-raised);
6580
- color: var(--sph-text);
6829
+ background: var(--sph-spring-toast-hover);
6830
+ color: var(--sph-spring-toast-fg);
6581
6831
  }
6582
6832
  .sph-spring-toast__action:focus-visible, .sph-spring-toast__close:focus-visible, .sph-spring-toast:focus-visible {
6583
6833
  outline: 2px solid var(--sph-focus);
6584
6834
  outline-offset: 2px;
6585
6835
  }
6586
- .sph-spring-toast__progress {
6587
- position: absolute;
6588
- inset-inline: 0;
6589
- bottom: 0;
6590
- height: 2px;
6591
- background: var(--sph-spring-toast-tone, var(--sph-accent));
6592
- transform: scaleX(0);
6593
- transform-origin: left;
6594
- transition: transform var(--sph-motion-slow) var(--sph-ease-standard);
6836
+ .sph-toast__status-icon, .sph-spring-toast__icon > * {
6837
+ width: 18px;
6838
+ height: 18px;
6839
+ }
6840
+ .sph-toast__status-icon .sph-spinner, .sph-spring-toast__icon .sph-spinner {
6841
+ --sph-spinner-size: 14px;
6842
+ --sph-spinner-thickness: 1.75px;
6843
+ }
6844
+ [data-sonner-toast].sph-toast:has([data-description]), .sph-spring-toast:has(.sph-spring-toast__description) {
6845
+ align-items: flex-start;
6846
+ }
6847
+ [data-sonner-toast].sph-toast:has([data-description]) [data-close-button] {
6848
+ margin-top: -2px;
6849
+ }
6850
+ .sph-spring-toast:has(.sph-spring-toast__description) .sph-spring-toast__icon {
6851
+ margin-top: 4px;
6852
+ }
6853
+ .sph-spring-toast:has(.sph-spring-toast__description) .sph-spring-toast__close {
6854
+ margin-top: 1px;
6855
+ }
6856
+ .sph-toast-progress {
6857
+ display: block;
6858
+ transform: rotate(-90deg);
6859
+ }
6860
+ .sph-toast-progress circle {
6861
+ fill: none;
6862
+ stroke-width: 1.75;
6863
+ }
6864
+ .sph-toast-progress__track {
6865
+ stroke: currentColor;
6866
+ opacity: 0.2;
6867
+ }
6868
+ .sph-toast-progress__value {
6869
+ stroke: var(--sph-accent);
6870
+ stroke-linecap: round;
6871
+ transition: stroke-dashoffset var(--sph-motion-slow) var(--sph-ease-standard);
6595
6872
  }
6596
6873
  @keyframes sph-spring-toast-in {
6597
6874
  from {
6598
6875
  opacity: 0;
6599
- transform: translateY(var(--sph-spring-toast-shift, -10px)) scale(0.96);
6876
+ transform: translateY(var(--sph-spring-toast-shift, -14px)) scale(0.6, 0.8);
6600
6877
  }
6601
6878
  }
6602
6879
  @keyframes sph-spring-toast-out {
6603
6880
  to {
6604
6881
  opacity: 0;
6605
- transform: translateY(var(--sph-spring-toast-shift, -10px)) scale(0.98);
6882
+ transform: translateY(var(--sph-spring-toast-shift, -14px)) scale(0.7, 0.85);
6883
+ }
6884
+ }
6885
+ @keyframes sph-spring-toast-icon {
6886
+ from {
6887
+ opacity: 0;
6888
+ transform: scale(0.4) rotate(-30deg);
6889
+ }
6890
+ }
6891
+ @keyframes sph-spring-toast-content {
6892
+ from {
6893
+ opacity: 0;
6894
+ filter: blur(3px);
6606
6895
  }
6607
6896
  }
6608
6897
  @media (max-width: 600px) {
@@ -6614,7 +6903,7 @@ a.sph-breadcrumb__crumb:focus-visible, button.sph-breadcrumb__crumb:focus-visibl
6614
6903
  }
6615
6904
  }
6616
6905
  @media (prefers-reduced-motion: reduce) {
6617
- .sph-spring-toast, .sph-spring-toast__progress {
6906
+ .sph-spring-toast, .sph-spring-toast__icon > *, .sph-spring-toast__body, .sph-toast-progress__value {
6618
6907
  animation: none !important;
6619
6908
  transition: none !important;
6620
6909
  }