@unpunnyfuns/swatchbook-blocks 0.16.0 → 0.18.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/style.css CHANGED
@@ -173,6 +173,10 @@
173
173
  min-width: 200px;
174
174
  }
175
175
 
176
+ .sb-color-table__th--expand {
177
+ width: 28px;
178
+ }
179
+
176
180
  .sb-color-table__row {
177
181
  cursor: pointer;
178
182
  }
@@ -182,12 +186,20 @@
182
186
  outline-offset: -2px;
183
187
  }
184
188
 
189
+ .sb-color-table__row--expanded {
190
+ background: var(--swatchbook-surface-muted, #8080800f);
191
+ }
192
+
185
193
  .sb-color-table__td {
186
194
  border-bottom: 1px solid var(--swatchbook-border-default, #80808026);
187
195
  vertical-align: middle;
188
196
  padding: 8px 12px;
189
197
  }
190
198
 
199
+ .sb-color-table__row--expanded > .sb-color-table__td {
200
+ border-bottom: 0;
201
+ }
202
+
191
203
  .sb-color-table__path {
192
204
  white-space: nowrap;
193
205
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
@@ -199,20 +211,44 @@
199
211
  display: inline-block;
200
212
  }
201
213
 
214
+ .sb-color-table__variant-pills {
215
+ vertical-align: middle;
216
+ gap: 4px;
217
+ margin-left: 8px;
218
+ display: inline-flex;
219
+ }
220
+
202
221
  .sb-color-table__variant-pill {
203
222
  letter-spacing: .5px;
204
223
  text-transform: uppercase;
205
224
  background: var(--swatchbook-surface-muted, #80808026);
206
225
  color: var(--swatchbook-text-muted, CanvasText);
207
- vertical-align: middle;
226
+ cursor: pointer;
227
+ border: 0;
208
228
  border-radius: 4px;
209
- margin-left: 6px;
229
+ margin: 0;
210
230
  padding: 1px 6px;
211
231
  font-family: inherit;
212
232
  font-size: 10px;
233
+ transition: background-color .12s, color .12s;
213
234
  display: inline-block;
214
235
  }
215
236
 
237
+ .sb-color-table__variant-pill:hover {
238
+ background: var(--swatchbook-surface-raised, #80808040);
239
+ color: var(--swatchbook-text-default, CanvasText);
240
+ }
241
+
242
+ .sb-color-table__variant-pill:focus-visible {
243
+ outline: 2px solid var(--swatchbook-accent-bg, #1d4ed8);
244
+ outline-offset: 1px;
245
+ }
246
+
247
+ .sb-color-table__variant-pill--active, .sb-color-table__variant-pill--active:hover {
248
+ background: var(--swatchbook-accent-bg, #1d4ed8);
249
+ color: var(--swatchbook-accent-fg, white);
250
+ }
251
+
216
252
  .sb-color-table__swatch-cell {
217
253
  width: 32px;
218
254
  }
@@ -277,6 +313,113 @@
277
313
  opacity: .4;
278
314
  }
279
315
 
316
+ .sb-color-table__expand-cell {
317
+ text-align: center;
318
+ width: 28px;
319
+ color: var(--swatchbook-text-muted, CanvasText);
320
+ }
321
+
322
+ .sb-color-table__chevron {
323
+ transition: transform .12s;
324
+ display: inline-block;
325
+ }
326
+
327
+ .sb-color-table__chevron--expanded {
328
+ transform: rotate(90deg);
329
+ }
330
+
331
+ .sb-color-table__detail-row {
332
+ background: var(--swatchbook-surface-muted, #8080800f);
333
+ }
334
+
335
+ .sb-color-table__detail-cell {
336
+ padding: 12px 16px 20px;
337
+ }
338
+
339
+ .sb-color-table__detail {
340
+ color: var(--swatchbook-text-default, CanvasText);
341
+ flex-direction: column;
342
+ gap: 10px;
343
+ font-size: 12px;
344
+ display: flex;
345
+ }
346
+
347
+ .sb-color-table__description {
348
+ margin: 0;
349
+ font-size: 13px;
350
+ line-height: 1.5;
351
+ }
352
+
353
+ .sb-color-table__chain {
354
+ color: var(--swatchbook-text-muted, CanvasText);
355
+ margin: 0;
356
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
357
+ font-size: 12px;
358
+ }
359
+
360
+ .sb-color-table__detail-label {
361
+ text-transform: uppercase;
362
+ letter-spacing: .5px;
363
+ margin-right: 4px;
364
+ font-family: inherit;
365
+ font-size: 10px;
366
+ }
367
+
368
+ .sb-color-table__detail-empty {
369
+ color: var(--swatchbook-text-muted, CanvasText);
370
+ margin: 0;
371
+ font-style: italic;
372
+ }
373
+
374
+ .sb-color-table__variant-grid {
375
+ margin-top: 4px;
376
+ }
377
+
378
+ .sb-color-table__variant-grid-header {
379
+ text-transform: uppercase;
380
+ letter-spacing: .5px;
381
+ color: var(--swatchbook-text-muted, CanvasText);
382
+ margin-bottom: 6px;
383
+ font-size: 10px;
384
+ }
385
+
386
+ .sb-color-table__subtable {
387
+ border-collapse: collapse;
388
+ width: 100%;
389
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
390
+ font-size: 11px;
391
+ }
392
+
393
+ .sb-color-table__subth {
394
+ text-align: left;
395
+ text-transform: uppercase;
396
+ letter-spacing: .5px;
397
+ color: var(--swatchbook-text-muted, CanvasText);
398
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808026);
399
+ padding: 4px 8px;
400
+ font-family: inherit;
401
+ font-size: 10px;
402
+ }
403
+
404
+ .sb-color-table__subtd {
405
+ border-bottom: 1px solid var(--swatchbook-border-default, #8080801a);
406
+ vertical-align: middle;
407
+ padding: 4px 8px;
408
+ }
409
+
410
+ .sb-color-table__subtd--path {
411
+ color: var(--swatchbook-text-muted, CanvasText);
412
+ }
413
+
414
+ .sb-color-table__subrow--active {
415
+ background: var(--swatchbook-surface-raised, #8080801f);
416
+ }
417
+
418
+ .sb-color-table__subrow--active > .sb-color-table__subtd {
419
+ color: var(--swatchbook-text-default, CanvasText);
420
+ font-weight: 600;
421
+ }
422
+
280
423
  .sb-color-table__sr-only {
281
424
  clip: rect(0, 0, 0, 0);
282
425
  white-space: nowrap;
@@ -338,462 +481,315 @@
338
481
  .sb-copy-button--copied {
339
482
  color: var(--swatchbook-accent-default, Highlight);
340
483
  }
341
- .sb-detail-overlay__backdrop {
342
- z-index: 10000;
343
- background: #0006;
344
- justify-content: flex-end;
345
- align-items: stretch;
484
+ .sb-diagnostics__summary {
485
+ cursor: pointer;
486
+ align-items: center;
487
+ gap: 8px;
488
+ padding: 4px 0;
489
+ font-size: 13px;
490
+ font-weight: 600;
491
+ list-style: none;
346
492
  display: flex;
347
- position: fixed;
348
- inset: 0;
349
493
  }
350
494
 
351
- .sb-detail-overlay__panel {
352
- background: var(--swatchbook-surface-default, Canvas);
353
- width: min(560px, 100%);
354
- height: 100%;
355
- color: var(--swatchbook-text-default, CanvasText);
356
- padding: 16px;
357
- position: relative;
358
- overflow-y: auto;
359
- box-shadow: -8px 0 24px #0003;
495
+ .sb-diagnostics__summary--ok {
496
+ color: #30a46c;
360
497
  }
361
498
 
362
- .sb-detail-overlay__close {
363
- border: 1px solid var(--swatchbook-border-default, #8080804d);
364
- width: 32px;
365
- height: 32px;
366
- color: inherit;
367
- cursor: pointer;
368
- background: none;
369
- border-radius: 4px;
370
- font-size: 16px;
371
- line-height: 1;
372
- position: absolute;
373
- top: 16px;
374
- right: 16px;
499
+ .sb-diagnostics__summary--error {
500
+ color: #d64545;
375
501
  }
376
- .sb-token-detail {
377
- border: 1px solid var(--swatchbook-border-default, #80808033);
378
- padding: 16px;
502
+
503
+ .sb-diagnostics__summary--warn {
504
+ color: #b08900;
379
505
  }
380
506
 
381
- .sb-token-detail__heading {
382
- margin: 0;
383
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
384
- font-size: 16px;
507
+ .sb-diagnostics__list {
508
+ flex-direction: column;
509
+ margin: 8px 0 0;
510
+ padding: 0;
511
+ list-style: none;
512
+ display: flex;
385
513
  }
386
514
 
387
- .sb-token-detail__subline {
388
- opacity: .8;
389
- align-items: center;
390
- gap: 8px;
391
- margin: 4px 0 12px;
515
+ .sb-diagnostics__row {
516
+ border-top: 1px solid var(--swatchbook-border-default, #80808026);
517
+ grid-template-columns: 60px 1fr;
518
+ gap: 12px;
519
+ padding: 8px 4px;
392
520
  font-size: 12px;
393
- display: flex;
521
+ display: grid;
394
522
  }
395
523
 
396
- .sb-token-detail__type-pill {
524
+ .sb-diagnostics__label {
397
525
  letter-spacing: .5px;
398
- text-transform: uppercase;
399
- background: var(--swatchbook-surface-muted, #80808026);
400
- border-radius: 4px;
401
- padding: 2px 6px;
402
526
  font-size: 10px;
403
- display: inline-block;
527
+ font-weight: 600;
404
528
  }
405
529
 
406
- .sb-token-detail__description {
407
- opacity: .85;
408
- margin: 0 0 12px;
530
+ .sb-diagnostics__label--error {
531
+ color: #d64545;
409
532
  }
410
533
 
411
- .sb-token-detail__section-header {
412
- text-transform: uppercase;
413
- letter-spacing: .5px;
414
- opacity: .6;
415
- margin: 12px 0 6px;
416
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
417
- font-size: 11px;
534
+ .sb-diagnostics__label--warn {
535
+ color: #b08900;
418
536
  }
419
537
 
420
- .sb-token-detail__chain {
421
- flex-wrap: wrap;
538
+ .sb-diagnostics__meta {
539
+ color: var(--swatchbook-text-muted, CanvasText);
540
+ opacity: .7;
541
+ margin-top: 4px;
542
+ font-size: 11px;
543
+ }
544
+ .sb-dimension-scale__row {
545
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
546
+ grid-template-columns: minmax(160px, 220px) 1fr auto;
422
547
  align-items: center;
423
- gap: 6px;
424
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
425
- font-size: 12px;
426
- display: flex;
548
+ gap: 16px;
549
+ padding: 10px 0;
550
+ display: grid;
427
551
  }
428
552
 
429
- .sb-token-detail__chain-node {
430
- border: 1px solid var(--swatchbook-border-default, #80808033);
431
- border-radius: 4px;
432
- padding: 2px 6px;
553
+ .sb-dimension-scale__meta {
554
+ flex-direction: column;
555
+ gap: 2px;
556
+ min-width: 0;
557
+ display: flex;
433
558
  }
434
559
 
435
- .sb-token-detail__arrow {
436
- opacity: .5;
560
+ .sb-dimension-scale__path {
561
+ text-overflow: ellipsis;
562
+ white-space: nowrap;
563
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
564
+ font-size: 12px;
565
+ overflow: hidden;
437
566
  }
438
567
 
439
- .sb-token-detail__theme-table {
440
- border-collapse: collapse;
441
- table-layout: fixed;
442
- width: 100%;
443
- font-size: 12px;
568
+ .sb-dimension-scale__specs {
569
+ opacity: .7;
570
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
571
+ font-size: 11px;
444
572
  }
445
573
 
446
- .sb-token-detail__theme-row {
447
- border-bottom: 1px solid var(--swatchbook-border-default, #80808026);
574
+ .sb-dimension-scale__visual-cell {
575
+ align-items: center;
576
+ min-width: 0;
577
+ display: flex;
448
578
  }
449
579
 
450
- .sb-token-detail__theme-cell {
451
- vertical-align: middle;
452
- padding: 6px 8px;
580
+ .sb-dimension-scale__css-var {
581
+ opacity: .7;
582
+ white-space: nowrap;
583
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
584
+ font-size: 11px;
453
585
  }
454
586
 
455
- .sb-token-detail__swatch {
456
- vertical-align: middle;
457
- border: 1px solid var(--swatchbook-border-default, #80808033);
458
- border-radius: 3px;
459
- width: 14px;
460
- height: 14px;
461
- margin-right: 6px;
462
- display: inline-block;
463
- }
464
-
465
- .sb-token-detail__snippet {
466
- background: var(--swatchbook-surface-muted, #80808026);
467
- white-space: pre;
468
- border-radius: 4px;
469
- flex: 1;
470
- min-width: 0;
471
- padding: 8px 10px;
587
+ .sb-dimension-scale__cap {
588
+ opacity: .6;
589
+ margin-left: 6px;
472
590
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
473
- font-size: 12px;
474
- display: block;
475
- overflow: auto;
476
- }
477
-
478
- .sb-token-detail__snippet-row {
479
- align-items: center;
480
- gap: 8px;
481
- display: flex;
482
- }
483
-
484
- .sb-token-detail__missing {
485
- opacity: .7;
486
- padding: 12px;
487
- }
488
-
489
- .sb-token-detail__typography-sample {
490
- padding: 8px 0;
491
- }
492
-
493
- .sb-token-detail__shadow-sample {
494
- background: var(--swatchbook-surface-raised, Canvas);
495
- border: 1px solid var(--swatchbook-border-default, #80808026);
496
- border-radius: 6px;
497
- width: 140px;
498
- height: 56px;
499
- }
500
-
501
- .sb-token-detail__border-sample {
502
- background: var(--swatchbook-surface-raised, Canvas);
503
- border-radius: 6px;
504
- width: 140px;
505
- height: 56px;
506
- }
507
-
508
- .sb-token-detail__gradient-sample {
509
- border: 1px solid var(--swatchbook-border-default, #80808026);
510
- border-radius: 6px;
511
- width: 220px;
512
- height: 56px;
591
+ font-size: 10px;
513
592
  }
514
-
515
- .sb-token-detail__stroke-style-line {
516
- border-top-width: 4px;
517
- border-top-color: var(--swatchbook-text-default, CanvasText);
518
- width: 220px;
519
- height: 0;
593
+ .sb-font-family-sample__row {
594
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
595
+ grid-template-columns: minmax(160px, 220px) 1fr auto;
596
+ align-items: baseline;
597
+ gap: 16px;
598
+ padding: 14px 0;
599
+ display: grid;
520
600
  }
521
601
 
522
- .sb-token-detail__stroke-style-svg {
523
- width: 220px;
524
- height: 24px;
525
- color: var(--swatchbook-text-default, CanvasText);
602
+ .sb-font-family-sample__meta {
603
+ flex-direction: column;
604
+ gap: 2px;
605
+ min-width: 0;
606
+ display: flex;
526
607
  }
527
608
 
528
- .sb-token-detail__stroke-style-fallback {
529
- color: var(--swatchbook-text-muted, CanvasText);
609
+ .sb-font-family-sample__path {
610
+ text-overflow: ellipsis;
611
+ white-space: nowrap;
530
612
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
531
613
  font-size: 12px;
532
- }
533
-
534
- .sb-token-detail__color-swatch-row {
535
- border: 1px solid var(--swatchbook-border-default, #80808033);
536
- border-radius: 6px;
537
- gap: 1px;
538
- width: 220px;
539
- height: 56px;
540
- display: flex;
541
614
  overflow: hidden;
542
615
  }
543
616
 
544
- .sb-token-detail__color-swatch-light {
545
- flex: 1;
546
- box-shadow: inset 0 0 0 8px #ffffffe6;
617
+ .sb-font-family-sample__stack {
618
+ color: var(--swatchbook-text-muted, CanvasText);
619
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
620
+ font-size: 11px;
547
621
  }
548
622
 
549
- .sb-token-detail__color-swatch-dark {
550
- flex: 1;
551
- box-shadow: inset 0 0 0 8px #111111e6;
623
+ .sb-font-family-sample__sample {
624
+ font-size: 22px;
625
+ line-height: 1.2;
552
626
  }
553
627
 
554
- .sb-token-detail__breakdown-section {
555
- grid-template-columns: auto 1fr;
556
- gap: 3px 12px;
557
- margin-top: 6px;
628
+ .sb-font-family-sample__css-var {
629
+ color: var(--swatchbook-text-muted, CanvasText);
558
630
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
559
- font-size: 12px;
560
- display: grid;
631
+ font-size: 11px;
561
632
  }
562
-
563
- .sb-token-detail__breakdown-key {
564
- color: var(--swatchbook-text-muted, CanvasText);
633
+ .sb-font-weight-scale__row {
634
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
635
+ grid-template-columns: minmax(160px, 220px) 1fr auto;
636
+ align-items: baseline;
637
+ gap: 16px;
638
+ padding: 12px 0;
639
+ display: grid;
565
640
  }
566
641
 
567
- .sb-token-detail__breakdown-value {
642
+ .sb-font-weight-scale__meta {
568
643
  flex-direction: column;
569
- align-items: flex-start;
570
- gap: 4px;
644
+ gap: 2px;
571
645
  min-width: 0;
572
646
  display: flex;
573
647
  }
574
648
 
575
- .sb-token-detail__breakdown-alias {
576
- opacity: .8;
577
- flex-wrap: wrap;
578
- align-items: center;
579
- gap: 4px;
580
- font-size: 11px;
581
- display: flex;
582
- }
583
-
584
- .sb-token-detail__breakdown-alias-step {
585
- align-items: center;
586
- gap: 4px;
587
- display: inline-flex;
649
+ .sb-font-weight-scale__path {
650
+ text-overflow: ellipsis;
651
+ white-space: nowrap;
652
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
653
+ font-size: 12px;
654
+ overflow: hidden;
588
655
  }
589
656
 
590
- .sb-token-detail__breakdown-layer-header {
591
- text-transform: uppercase;
592
- letter-spacing: .5px;
657
+ .sb-font-weight-scale__value {
593
658
  color: var(--swatchbook-text-muted, CanvasText);
594
- grid-column: 1 / -1;
595
- margin-top: 4px;
596
- font-size: 10px;
597
- }
598
-
599
- .sb-token-detail__font-family-sample {
600
- padding: 4px 0;
601
- font-size: 22px;
602
- line-height: 1.2;
659
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
660
+ font-size: 11px;
603
661
  }
604
662
 
605
- .sb-token-detail__font-weight-sample {
606
- padding: 4px 0;
607
- font-size: 32px;
663
+ .sb-font-weight-scale__sample {
664
+ font-size: 28px;
608
665
  line-height: 1;
609
666
  }
610
667
 
611
- .sb-token-detail__dimension-track {
612
- align-items: center;
613
- max-width: 100%;
614
- height: 32px;
615
- display: flex;
616
- overflow: hidden;
617
- }
618
-
619
- .sb-token-detail__dimension-bar {
620
- background: var(--swatchbook-accent-bg, #3b82f6);
621
- border-radius: 3px;
622
- max-width: 100%;
623
- height: 16px;
668
+ .sb-font-weight-scale__css-var {
669
+ color: var(--swatchbook-text-muted, CanvasText);
670
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
671
+ font-size: 11px;
624
672
  }
625
-
626
- .sb-token-detail__motion-track {
627
- background: var(--swatchbook-surface-muted, #80808026);
628
- border-radius: 16px;
629
- width: 100%;
630
- max-width: 320px;
631
- height: 32px;
632
- position: relative;
633
- overflow: hidden;
673
+ .sb-gradient-palette__row {
674
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
675
+ grid-template-columns: minmax(180px, 240px) 1fr minmax(140px, 220px);
676
+ align-items: center;
677
+ gap: 16px;
678
+ padding: 16px 0;
679
+ display: grid;
634
680
  }
635
681
 
636
- .sb-token-detail__motion-ball {
637
- background: var(--swatchbook-accent-bg, #3b82f6);
638
- border-radius: 50%;
639
- width: 24px;
640
- height: 24px;
641
- margin-top: -12px;
642
- position: absolute;
643
- top: 50%;
682
+ .sb-gradient-palette__meta {
683
+ flex-direction: column;
684
+ gap: 2px;
685
+ min-width: 0;
686
+ display: flex;
644
687
  }
645
688
 
646
- .sb-token-detail__aliased-by-list {
647
- margin: 0;
648
- padding: 0;
689
+ .sb-gradient-palette__path {
690
+ text-overflow: ellipsis;
691
+ white-space: nowrap;
649
692
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
650
693
  font-size: 12px;
651
- list-style: none;
652
- }
653
-
654
- .sb-token-detail__aliased-by-row {
655
- align-items: center;
656
- gap: 6px;
657
- padding: 2px 0;
658
- display: flex;
694
+ overflow: hidden;
659
695
  }
660
696
 
661
- .sb-token-detail__aliased-by-truncated {
662
- opacity: .6;
663
- margin-top: 4px;
697
+ .sb-gradient-palette__css-var {
698
+ opacity: .7;
699
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
664
700
  font-size: 11px;
665
- font-style: italic;
666
701
  }
667
702
 
668
- .sb-token-detail__reduced-motion {
669
- color: var(--swatchbook-text-muted, CanvasText);
670
- font-size: 11px;
671
- font-style: italic;
703
+ .sb-gradient-palette__sample {
704
+ border: 1px solid var(--swatchbook-border-default, #80808026);
705
+ border-radius: 6px;
706
+ height: 56px;
672
707
  }
673
708
 
674
- .sb-token-detail__tuple-indicator {
675
- opacity: .7;
676
- margin: 0 0 6px;
709
+ .sb-gradient-palette__stops {
710
+ flex-direction: column;
711
+ gap: 2px;
677
712
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
678
713
  font-size: 11px;
714
+ display: flex;
679
715
  }
680
716
 
681
- .sb-token-detail__consumer-row {
682
- background: var(--swatchbook-surface-muted, #80808026);
683
- border-radius: 4px;
717
+ .sb-gradient-palette__stop-row {
684
718
  align-items: center;
685
719
  gap: 8px;
686
- margin-bottom: 4px;
687
- padding: 6px 10px;
688
720
  display: flex;
689
721
  }
690
722
 
691
- .sb-token-detail__consumer-row-label {
692
- text-transform: uppercase;
693
- letter-spacing: .5px;
694
- opacity: .6;
695
- flex-shrink: 0;
696
- min-width: 32px;
697
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
698
- font-size: 10px;
699
- }
700
-
701
- .sb-token-detail__consumer-row-value {
702
- white-space: nowrap;
703
- flex: 1;
704
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
705
- font-size: 12px;
706
- overflow: auto;
723
+ .sb-gradient-palette__stop-swatch {
724
+ border: 1px solid var(--swatchbook-border-default, #80808033);
725
+ border-radius: 2px;
726
+ flex: none;
727
+ width: 10px;
728
+ height: 10px;
707
729
  }
708
730
 
709
- .sb-token-detail__consumer-row-copy {
710
- background: var(--swatchbook-surface-raised, Canvas);
711
- color: var(--swatchbook-text-default, CanvasText);
712
- border: 1px solid var(--swatchbook-border-default, #8080804d);
713
- cursor: pointer;
714
- border-radius: 4px;
715
- flex-shrink: 0;
716
- padding: 3px 8px;
717
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
718
- font-size: 11px;
731
+ .sb-gradient-palette__stop-position {
732
+ opacity: .6;
719
733
  }
720
- .sb-diagnostics__summary {
721
- cursor: pointer;
734
+ .sb-motion-preview__controls {
722
735
  align-items: center;
723
736
  gap: 8px;
724
- padding: 4px 0;
725
- font-size: 13px;
726
- font-weight: 600;
727
- list-style: none;
728
- display: flex;
729
- }
730
-
731
- .sb-diagnostics__summary--ok {
732
- color: #30a46c;
733
- }
734
-
735
- .sb-diagnostics__summary--error {
736
- color: #d64545;
737
- }
738
-
739
- .sb-diagnostics__summary--warn {
740
- color: #b08900;
741
- }
742
-
743
- .sb-diagnostics__list {
744
- flex-direction: column;
745
- margin: 8px 0 0;
746
- padding: 0;
747
- list-style: none;
737
+ padding: 8px 0 12px;
748
738
  display: flex;
749
739
  }
750
740
 
751
- .sb-diagnostics__row {
752
- border-top: 1px solid var(--swatchbook-border-default, #80808026);
753
- grid-template-columns: 60px 1fr;
754
- gap: 12px;
755
- padding: 8px 4px;
756
- font-size: 12px;
757
- display: grid;
758
- }
759
-
760
- .sb-diagnostics__label {
741
+ .sb-motion-preview__control-label {
742
+ color: var(--swatchbook-text-muted, CanvasText);
743
+ text-transform: uppercase;
761
744
  letter-spacing: .5px;
762
- font-size: 10px;
763
- font-weight: 600;
745
+ font-size: 11px;
764
746
  }
765
747
 
766
- .sb-diagnostics__label--error {
767
- color: #d64545;
748
+ .sb-motion-preview__speed-btn {
749
+ color: inherit;
750
+ border: 1px solid var(--swatchbook-border-default, #8080804d);
751
+ cursor: pointer;
752
+ background: none;
753
+ border-radius: 4px;
754
+ padding: 4px 8px;
755
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
756
+ font-size: 11px;
768
757
  }
769
758
 
770
- .sb-diagnostics__label--warn {
771
- color: #b08900;
759
+ .sb-motion-preview__speed-btn--active {
760
+ background: var(--swatchbook-accent-bg, #3b82f6);
761
+ color: var(--swatchbook-accent-fg, #fff);
762
+ border-color: #0000;
772
763
  }
773
764
 
774
- .sb-diagnostics__meta {
775
- color: var(--swatchbook-text-muted, CanvasText);
776
- opacity: .7;
777
- margin-top: 4px;
765
+ .sb-motion-preview__replay-btn {
766
+ color: inherit;
767
+ border: 1px solid var(--swatchbook-border-default, #8080804d);
768
+ cursor: pointer;
769
+ background: none;
770
+ border-radius: 4px;
771
+ margin-left: auto;
772
+ padding: 4px 10px;
778
773
  font-size: 11px;
779
774
  }
780
- .sb-dimension-scale__row {
775
+
776
+ .sb-motion-preview__row {
781
777
  border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
782
- grid-template-columns: minmax(160px, 220px) 1fr auto;
778
+ grid-template-columns: minmax(180px, 240px) 1fr auto;
783
779
  align-items: center;
784
780
  gap: 16px;
785
- padding: 10px 0;
781
+ padding: 14px 0;
786
782
  display: grid;
787
783
  }
788
784
 
789
- .sb-dimension-scale__meta {
785
+ .sb-motion-preview__meta {
790
786
  flex-direction: column;
791
787
  gap: 2px;
792
788
  min-width: 0;
793
789
  display: flex;
794
790
  }
795
791
 
796
- .sb-dimension-scale__path {
792
+ .sb-motion-preview__path {
797
793
  text-overflow: ellipsis;
798
794
  white-space: nowrap;
799
795
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
@@ -801,48 +797,35 @@
801
797
  overflow: hidden;
802
798
  }
803
799
 
804
- .sb-dimension-scale__specs {
805
- opacity: .7;
800
+ .sb-motion-preview__specs {
801
+ color: var(--swatchbook-text-muted, CanvasText);
806
802
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
807
803
  font-size: 11px;
808
804
  }
809
805
 
810
- .sb-dimension-scale__visual-cell {
811
- align-items: center;
812
- min-width: 0;
813
- display: flex;
814
- }
815
-
816
- .sb-dimension-scale__css-var {
817
- opacity: .7;
806
+ .sb-motion-preview__css-var {
807
+ color: var(--swatchbook-text-muted, CanvasText);
818
808
  white-space: nowrap;
819
809
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
820
810
  font-size: 11px;
821
811
  }
822
-
823
- .sb-dimension-scale__cap {
824
- opacity: .6;
825
- margin-left: 6px;
826
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
827
- font-size: 10px;
828
- }
829
- .sb-font-family-sample__row {
812
+ .sb-shadow-preview__row {
830
813
  border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
831
- grid-template-columns: minmax(160px, 220px) 1fr auto;
832
- align-items: baseline;
814
+ grid-template-columns: minmax(160px, 220px) 140px 1fr;
815
+ align-items: center;
833
816
  gap: 16px;
834
- padding: 14px 0;
817
+ padding: 16px 0;
835
818
  display: grid;
836
819
  }
837
820
 
838
- .sb-font-family-sample__meta {
821
+ .sb-shadow-preview__meta {
839
822
  flex-direction: column;
840
823
  gap: 2px;
841
824
  min-width: 0;
842
825
  display: flex;
843
826
  }
844
827
 
845
- .sb-font-family-sample__path {
828
+ .sb-shadow-preview__path {
846
829
  text-overflow: ellipsis;
847
830
  white-space: nowrap;
848
831
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
@@ -850,39 +833,63 @@
850
833
  overflow: hidden;
851
834
  }
852
835
 
853
- .sb-font-family-sample__stack {
854
- color: var(--swatchbook-text-muted, CanvasText);
836
+ .sb-shadow-preview__css-var {
837
+ opacity: .7;
855
838
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
856
839
  font-size: 11px;
857
840
  }
858
841
 
859
- .sb-font-family-sample__sample {
860
- font-size: 22px;
861
- line-height: 1.2;
842
+ .sb-shadow-preview__sample-cell {
843
+ justify-content: center;
844
+ align-items: center;
845
+ height: 96px;
846
+ display: flex;
862
847
  }
863
848
 
864
- .sb-font-family-sample__css-var {
865
- color: var(--swatchbook-text-muted, CanvasText);
849
+ .sb-shadow-preview__breakdown {
850
+ grid-template-columns: auto 1fr;
851
+ gap: 2px 12px;
866
852
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
867
853
  font-size: 11px;
854
+ display: grid;
868
855
  }
869
- .sb-font-weight-scale__row {
856
+
857
+ .sb-shadow-preview__breakdown-key {
858
+ color: var(--swatchbook-text-muted, CanvasText);
859
+ }
860
+
861
+ .sb-shadow-preview__layer {
862
+ grid-column: 1 / -1;
863
+ }
864
+
865
+ .sb-shadow-preview__layer-header {
866
+ text-transform: uppercase;
867
+ letter-spacing: .5px;
868
+ color: var(--swatchbook-text-muted, CanvasText);
869
+ margin-top: 6px;
870
+ font-size: 10px;
871
+ }
872
+
873
+ .sb-shadow-preview__layer-breakdown {
874
+ margin-top: 2px;
875
+ }
876
+ .sb-stroke-style-sample__row {
870
877
  border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
871
878
  grid-template-columns: minmax(160px, 220px) 1fr auto;
872
- align-items: baseline;
879
+ align-items: center;
873
880
  gap: 16px;
874
- padding: 12px 0;
881
+ padding: 14px 0;
875
882
  display: grid;
876
883
  }
877
884
 
878
- .sb-font-weight-scale__meta {
885
+ .sb-stroke-style-sample__meta {
879
886
  flex-direction: column;
880
887
  gap: 2px;
881
888
  min-width: 0;
882
889
  display: flex;
883
890
  }
884
891
 
885
- .sb-font-weight-scale__path {
892
+ .sb-stroke-style-sample__path {
886
893
  text-overflow: ellipsis;
887
894
  white-space: nowrap;
888
895
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
@@ -890,264 +897,365 @@
890
897
  overflow: hidden;
891
898
  }
892
899
 
893
- .sb-font-weight-scale__value {
900
+ .sb-stroke-style-sample__value {
894
901
  color: var(--swatchbook-text-muted, CanvasText);
895
902
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
896
903
  font-size: 11px;
897
904
  }
898
905
 
899
- .sb-font-weight-scale__sample {
900
- font-size: 28px;
901
- line-height: 1;
906
+ .sb-stroke-style-sample__line {
907
+ border-top-width: 4px;
908
+ border-top-color: var(--swatchbook-text-default, CanvasText);
909
+ width: 100%;
910
+ height: 0;
902
911
  }
903
912
 
904
- .sb-font-weight-scale__css-var {
913
+ .sb-stroke-style-sample__object-fallback, .sb-stroke-style-sample__css-var {
905
914
  color: var(--swatchbook-text-muted, CanvasText);
906
915
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
907
916
  font-size: 11px;
908
917
  }
909
- .sb-gradient-palette__row {
910
- border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
911
- grid-template-columns: minmax(180px, 240px) 1fr minmax(140px, 220px);
912
- align-items: center;
913
- gap: 16px;
914
- padding: 16px 0;
915
- display: grid;
918
+ .sb-token-detail {
919
+ border: 1px solid var(--swatchbook-border-default, #80808033);
920
+ padding: 16px;
916
921
  }
917
922
 
918
- .sb-gradient-palette__meta {
919
- flex-direction: column;
920
- gap: 2px;
921
- min-width: 0;
922
- display: flex;
923
+ .sb-token-detail__heading {
924
+ margin: 0;
925
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
926
+ font-size: 16px;
923
927
  }
924
928
 
925
- .sb-gradient-palette__path {
926
- text-overflow: ellipsis;
927
- white-space: nowrap;
928
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
929
+ .sb-token-detail__subline {
930
+ opacity: .8;
931
+ align-items: center;
932
+ gap: 8px;
933
+ margin: 4px 0 12px;
929
934
  font-size: 12px;
930
- overflow: hidden;
935
+ display: flex;
931
936
  }
932
937
 
933
- .sb-gradient-palette__css-var {
934
- opacity: .7;
935
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
936
- font-size: 11px;
938
+ .sb-token-detail__type-pill {
939
+ letter-spacing: .5px;
940
+ text-transform: uppercase;
941
+ background: var(--swatchbook-surface-muted, #80808026);
942
+ border-radius: 4px;
943
+ padding: 2px 6px;
944
+ font-size: 10px;
945
+ display: inline-block;
937
946
  }
938
947
 
939
- .sb-gradient-palette__sample {
940
- border: 1px solid var(--swatchbook-border-default, #80808026);
941
- border-radius: 6px;
942
- height: 56px;
948
+ .sb-token-detail__description {
949
+ opacity: .85;
950
+ margin: 0 0 12px;
943
951
  }
944
952
 
945
- .sb-gradient-palette__stops {
946
- flex-direction: column;
947
- gap: 2px;
953
+ .sb-token-detail__section-header {
954
+ text-transform: uppercase;
955
+ letter-spacing: .5px;
956
+ opacity: .6;
957
+ margin: 12px 0 6px;
948
958
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
949
959
  font-size: 11px;
950
- display: flex;
951
960
  }
952
961
 
953
- .sb-gradient-palette__stop-row {
962
+ .sb-token-detail__chain {
963
+ flex-wrap: wrap;
954
964
  align-items: center;
955
- gap: 8px;
965
+ gap: 6px;
966
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
967
+ font-size: 12px;
956
968
  display: flex;
957
969
  }
958
970
 
959
- .sb-gradient-palette__stop-swatch {
971
+ .sb-token-detail__chain-node {
960
972
  border: 1px solid var(--swatchbook-border-default, #80808033);
961
- border-radius: 2px;
962
- flex: none;
963
- width: 10px;
964
- height: 10px;
973
+ border-radius: 4px;
974
+ padding: 2px 6px;
965
975
  }
966
976
 
967
- .sb-gradient-palette__stop-position {
968
- opacity: .6;
977
+ .sb-token-detail__arrow {
978
+ opacity: .5;
969
979
  }
970
- .sb-motion-preview__controls {
980
+
981
+ .sb-token-detail__theme-table {
982
+ border-collapse: collapse;
983
+ table-layout: fixed;
984
+ width: 100%;
985
+ font-size: 12px;
986
+ }
987
+
988
+ .sb-token-detail__theme-row {
989
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808026);
990
+ }
991
+
992
+ .sb-token-detail__theme-cell {
993
+ vertical-align: middle;
994
+ padding: 6px 8px;
995
+ }
996
+
997
+ .sb-token-detail__swatch {
998
+ vertical-align: middle;
999
+ border: 1px solid var(--swatchbook-border-default, #80808033);
1000
+ border-radius: 3px;
1001
+ width: 14px;
1002
+ height: 14px;
1003
+ margin-right: 6px;
1004
+ display: inline-block;
1005
+ }
1006
+
1007
+ .sb-token-detail__snippet {
1008
+ background: var(--swatchbook-surface-muted, #80808026);
1009
+ white-space: pre;
1010
+ border-radius: 4px;
1011
+ flex: 1;
1012
+ min-width: 0;
1013
+ padding: 8px 10px;
1014
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1015
+ font-size: 12px;
1016
+ display: block;
1017
+ overflow: auto;
1018
+ }
1019
+
1020
+ .sb-token-detail__snippet-row {
971
1021
  align-items: center;
972
1022
  gap: 8px;
973
- padding: 8px 0 12px;
974
1023
  display: flex;
975
1024
  }
976
1025
 
977
- .sb-motion-preview__control-label {
978
- color: var(--swatchbook-text-muted, CanvasText);
979
- text-transform: uppercase;
980
- letter-spacing: .5px;
981
- font-size: 11px;
1026
+ .sb-token-detail__missing {
1027
+ opacity: .7;
1028
+ padding: 12px;
982
1029
  }
983
1030
 
984
- .sb-motion-preview__speed-btn {
985
- color: inherit;
986
- border: 1px solid var(--swatchbook-border-default, #8080804d);
987
- cursor: pointer;
988
- background: none;
989
- border-radius: 4px;
990
- padding: 4px 8px;
1031
+ .sb-token-detail__typography-sample {
1032
+ padding: 8px 0;
1033
+ }
1034
+
1035
+ .sb-token-detail__shadow-sample {
1036
+ background: var(--swatchbook-surface-raised, Canvas);
1037
+ border: 1px solid var(--swatchbook-border-default, #80808026);
1038
+ border-radius: 6px;
1039
+ width: 140px;
1040
+ height: 56px;
1041
+ }
1042
+
1043
+ .sb-token-detail__border-sample {
1044
+ background: var(--swatchbook-surface-raised, Canvas);
1045
+ border-radius: 6px;
1046
+ width: 140px;
1047
+ height: 56px;
1048
+ }
1049
+
1050
+ .sb-token-detail__gradient-sample {
1051
+ border: 1px solid var(--swatchbook-border-default, #80808026);
1052
+ border-radius: 6px;
1053
+ width: 220px;
1054
+ height: 56px;
1055
+ }
1056
+
1057
+ .sb-token-detail__stroke-style-line {
1058
+ border-top-width: 4px;
1059
+ border-top-color: var(--swatchbook-text-default, CanvasText);
1060
+ width: 220px;
1061
+ height: 0;
1062
+ }
1063
+
1064
+ .sb-token-detail__stroke-style-svg {
1065
+ width: 220px;
1066
+ height: 24px;
1067
+ color: var(--swatchbook-text-default, CanvasText);
1068
+ }
1069
+
1070
+ .sb-token-detail__stroke-style-fallback {
1071
+ color: var(--swatchbook-text-muted, CanvasText);
991
1072
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
992
- font-size: 11px;
1073
+ font-size: 12px;
993
1074
  }
994
1075
 
995
- .sb-motion-preview__speed-btn--active {
996
- background: var(--swatchbook-accent-bg, #3b82f6);
997
- color: var(--swatchbook-accent-fg, #fff);
998
- border-color: #0000;
1076
+ .sb-token-detail__color-swatch-row {
1077
+ border: 1px solid var(--swatchbook-border-default, #80808033);
1078
+ border-radius: 6px;
1079
+ gap: 1px;
1080
+ width: 220px;
1081
+ height: 56px;
1082
+ display: flex;
1083
+ overflow: hidden;
1084
+ }
1085
+
1086
+ .sb-token-detail__color-swatch-light {
1087
+ flex: 1;
1088
+ box-shadow: inset 0 0 0 8px #ffffffe6;
999
1089
  }
1000
1090
 
1001
- .sb-motion-preview__replay-btn {
1002
- color: inherit;
1003
- border: 1px solid var(--swatchbook-border-default, #8080804d);
1004
- cursor: pointer;
1005
- background: none;
1006
- border-radius: 4px;
1007
- margin-left: auto;
1008
- padding: 4px 10px;
1009
- font-size: 11px;
1091
+ .sb-token-detail__color-swatch-dark {
1092
+ flex: 1;
1093
+ box-shadow: inset 0 0 0 8px #111111e6;
1010
1094
  }
1011
1095
 
1012
- .sb-motion-preview__row {
1013
- border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
1014
- grid-template-columns: minmax(180px, 240px) 1fr auto;
1015
- align-items: center;
1016
- gap: 16px;
1017
- padding: 14px 0;
1096
+ .sb-token-detail__breakdown-section {
1097
+ grid-template-columns: auto 1fr;
1098
+ gap: 3px 12px;
1099
+ margin-top: 6px;
1100
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1101
+ font-size: 12px;
1018
1102
  display: grid;
1019
1103
  }
1020
1104
 
1021
- .sb-motion-preview__meta {
1105
+ .sb-token-detail__breakdown-key {
1106
+ color: var(--swatchbook-text-muted, CanvasText);
1107
+ }
1108
+
1109
+ .sb-token-detail__breakdown-value {
1022
1110
  flex-direction: column;
1023
- gap: 2px;
1111
+ align-items: flex-start;
1112
+ gap: 4px;
1024
1113
  min-width: 0;
1025
1114
  display: flex;
1026
1115
  }
1027
1116
 
1028
- .sb-motion-preview__path {
1029
- text-overflow: ellipsis;
1030
- white-space: nowrap;
1031
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1032
- font-size: 12px;
1033
- overflow: hidden;
1117
+ .sb-token-detail__breakdown-alias {
1118
+ opacity: .8;
1119
+ flex-wrap: wrap;
1120
+ align-items: center;
1121
+ gap: 4px;
1122
+ font-size: 11px;
1123
+ display: flex;
1034
1124
  }
1035
1125
 
1036
- .sb-motion-preview__specs {
1037
- color: var(--swatchbook-text-muted, CanvasText);
1038
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1039
- font-size: 11px;
1126
+ .sb-token-detail__breakdown-alias-step {
1127
+ align-items: center;
1128
+ gap: 4px;
1129
+ display: inline-flex;
1040
1130
  }
1041
1131
 
1042
- .sb-motion-preview__css-var {
1132
+ .sb-token-detail__breakdown-layer-header {
1133
+ text-transform: uppercase;
1134
+ letter-spacing: .5px;
1043
1135
  color: var(--swatchbook-text-muted, CanvasText);
1044
- white-space: nowrap;
1045
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1046
- font-size: 11px;
1136
+ grid-column: 1 / -1;
1137
+ margin-top: 4px;
1138
+ font-size: 10px;
1047
1139
  }
1048
- .sb-shadow-preview__row {
1049
- border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
1050
- grid-template-columns: minmax(160px, 220px) 140px 1fr;
1051
- align-items: center;
1052
- gap: 16px;
1053
- padding: 16px 0;
1054
- display: grid;
1140
+
1141
+ .sb-token-detail__font-family-sample {
1142
+ padding: 4px 0;
1143
+ font-size: 22px;
1144
+ line-height: 1.2;
1055
1145
  }
1056
1146
 
1057
- .sb-shadow-preview__meta {
1058
- flex-direction: column;
1059
- gap: 2px;
1060
- min-width: 0;
1147
+ .sb-token-detail__font-weight-sample {
1148
+ padding: 4px 0;
1149
+ font-size: 32px;
1150
+ line-height: 1;
1151
+ }
1152
+
1153
+ .sb-token-detail__dimension-track {
1154
+ align-items: center;
1155
+ max-width: 100%;
1156
+ height: 32px;
1061
1157
  display: flex;
1158
+ overflow: hidden;
1062
1159
  }
1063
1160
 
1064
- .sb-shadow-preview__path {
1065
- text-overflow: ellipsis;
1066
- white-space: nowrap;
1067
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1068
- font-size: 12px;
1161
+ .sb-token-detail__dimension-bar {
1162
+ background: var(--swatchbook-accent-bg, #3b82f6);
1163
+ border-radius: 3px;
1164
+ max-width: 100%;
1165
+ height: 16px;
1166
+ }
1167
+
1168
+ .sb-token-detail__motion-track {
1169
+ background: var(--swatchbook-surface-muted, #80808026);
1170
+ border-radius: 16px;
1171
+ width: 100%;
1172
+ max-width: 320px;
1173
+ height: 32px;
1174
+ position: relative;
1069
1175
  overflow: hidden;
1070
1176
  }
1071
1177
 
1072
- .sb-shadow-preview__css-var {
1073
- opacity: .7;
1178
+ .sb-token-detail__motion-ball {
1179
+ background: var(--swatchbook-accent-bg, #3b82f6);
1180
+ border-radius: 50%;
1181
+ width: 24px;
1182
+ height: 24px;
1183
+ margin-top: -12px;
1184
+ position: absolute;
1185
+ top: 50%;
1186
+ }
1187
+
1188
+ .sb-token-detail__aliased-by-list {
1189
+ margin: 0;
1190
+ padding: 0;
1074
1191
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1075
- font-size: 11px;
1192
+ font-size: 12px;
1193
+ list-style: none;
1076
1194
  }
1077
1195
 
1078
- .sb-shadow-preview__sample-cell {
1079
- justify-content: center;
1196
+ .sb-token-detail__aliased-by-row {
1080
1197
  align-items: center;
1081
- height: 96px;
1198
+ gap: 6px;
1199
+ padding: 2px 0;
1082
1200
  display: flex;
1083
1201
  }
1084
1202
 
1085
- .sb-shadow-preview__breakdown {
1086
- grid-template-columns: auto 1fr;
1087
- gap: 2px 12px;
1088
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1203
+ .sb-token-detail__aliased-by-truncated {
1204
+ opacity: .6;
1205
+ margin-top: 4px;
1089
1206
  font-size: 11px;
1090
- display: grid;
1207
+ font-style: italic;
1091
1208
  }
1092
1209
 
1093
- .sb-shadow-preview__breakdown-key {
1210
+ .sb-token-detail__reduced-motion {
1094
1211
  color: var(--swatchbook-text-muted, CanvasText);
1212
+ font-size: 11px;
1213
+ font-style: italic;
1095
1214
  }
1096
1215
 
1097
- .sb-shadow-preview__layer {
1098
- grid-column: 1 / -1;
1099
- }
1100
-
1101
- .sb-shadow-preview__layer-header {
1102
- text-transform: uppercase;
1103
- letter-spacing: .5px;
1104
- color: var(--swatchbook-text-muted, CanvasText);
1105
- margin-top: 6px;
1106
- font-size: 10px;
1216
+ .sb-token-detail__tuple-indicator {
1217
+ opacity: .7;
1218
+ margin: 0 0 6px;
1219
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1220
+ font-size: 11px;
1107
1221
  }
1108
1222
 
1109
- .sb-shadow-preview__layer-breakdown {
1110
- margin-top: 2px;
1111
- }
1112
- .sb-stroke-style-sample__row {
1113
- border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
1114
- grid-template-columns: minmax(160px, 220px) 1fr auto;
1223
+ .sb-token-detail__consumer-row {
1224
+ background: var(--swatchbook-surface-muted, #80808026);
1225
+ border-radius: 4px;
1115
1226
  align-items: center;
1116
- gap: 16px;
1117
- padding: 14px 0;
1118
- display: grid;
1119
- }
1120
-
1121
- .sb-stroke-style-sample__meta {
1122
- flex-direction: column;
1123
- gap: 2px;
1124
- min-width: 0;
1227
+ gap: 8px;
1228
+ margin-bottom: 4px;
1229
+ padding: 6px 10px;
1125
1230
  display: flex;
1126
1231
  }
1127
1232
 
1128
- .sb-stroke-style-sample__path {
1129
- text-overflow: ellipsis;
1130
- white-space: nowrap;
1233
+ .sb-token-detail__consumer-row-label {
1234
+ text-transform: uppercase;
1235
+ letter-spacing: .5px;
1236
+ opacity: .6;
1237
+ flex-shrink: 0;
1238
+ min-width: 32px;
1131
1239
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1132
- font-size: 12px;
1133
- overflow: hidden;
1240
+ font-size: 10px;
1134
1241
  }
1135
1242
 
1136
- .sb-stroke-style-sample__value {
1137
- color: var(--swatchbook-text-muted, CanvasText);
1243
+ .sb-token-detail__consumer-row-value {
1244
+ white-space: nowrap;
1245
+ flex: 1;
1138
1246
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1139
- font-size: 11px;
1140
- }
1141
-
1142
- .sb-stroke-style-sample__line {
1143
- border-top-width: 4px;
1144
- border-top-color: var(--swatchbook-text-default, CanvasText);
1145
- width: 100%;
1146
- height: 0;
1247
+ font-size: 12px;
1248
+ overflow: auto;
1147
1249
  }
1148
1250
 
1149
- .sb-stroke-style-sample__object-fallback, .sb-stroke-style-sample__css-var {
1150
- color: var(--swatchbook-text-muted, CanvasText);
1251
+ .sb-token-detail__consumer-row-copy {
1252
+ background: var(--swatchbook-surface-raised, Canvas);
1253
+ color: var(--swatchbook-text-default, CanvasText);
1254
+ border: 1px solid var(--swatchbook-border-default, #8080804d);
1255
+ cursor: pointer;
1256
+ border-radius: 4px;
1257
+ flex-shrink: 0;
1258
+ padding: 3px 8px;
1151
1259
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1152
1260
  font-size: 11px;
1153
1261
  }
@@ -1289,6 +1397,41 @@
1289
1397
  margin-left: 8px;
1290
1398
  display: inline-block;
1291
1399
  }
1400
+ .sb-detail-overlay__backdrop {
1401
+ z-index: 10000;
1402
+ background: #0006;
1403
+ justify-content: flex-end;
1404
+ align-items: stretch;
1405
+ display: flex;
1406
+ position: fixed;
1407
+ inset: 0;
1408
+ }
1409
+
1410
+ .sb-detail-overlay__panel {
1411
+ background: var(--swatchbook-surface-default, Canvas);
1412
+ width: min(560px, 100%);
1413
+ height: 100%;
1414
+ color: var(--swatchbook-text-default, CanvasText);
1415
+ padding: 16px;
1416
+ position: relative;
1417
+ overflow-y: auto;
1418
+ box-shadow: -8px 0 24px #0003;
1419
+ }
1420
+
1421
+ .sb-detail-overlay__close {
1422
+ border: 1px solid var(--swatchbook-border-default, #8080804d);
1423
+ width: 32px;
1424
+ height: 32px;
1425
+ color: inherit;
1426
+ cursor: pointer;
1427
+ background: none;
1428
+ border-radius: 4px;
1429
+ font-size: 16px;
1430
+ line-height: 1;
1431
+ position: absolute;
1432
+ top: 16px;
1433
+ right: 16px;
1434
+ }
1292
1435
  .sb-token-table__table {
1293
1436
  border-collapse: collapse;
1294
1437
  width: 100%;