@unpunnyfuns/swatchbook-blocks 0.3.0 → 0.5.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 ADDED
@@ -0,0 +1,1131 @@
1
+ .sb-block {
2
+ font-family: var(--swatchbook-body-font-family, system-ui);
3
+ font-size: var(--swatchbook-body-font-size, 14px);
4
+ color: var(--swatchbook-text-default, CanvasText);
5
+ background: var(--swatchbook-surface-default, Canvas);
6
+ border-radius: 6px;
7
+ padding: 12px;
8
+ }
9
+
10
+ .sb-block__caption {
11
+ color: var(--swatchbook-text-muted, CanvasText);
12
+ padding: 4px 0 12px;
13
+ font-size: 12px;
14
+ }
15
+
16
+ .sb-block__empty {
17
+ text-align: center;
18
+ color: var(--swatchbook-text-muted, CanvasText);
19
+ padding: 24px 12px;
20
+ }
21
+ .sb-border-preview__row {
22
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
23
+ grid-template-columns: minmax(160px, 220px) 140px 1fr;
24
+ align-items: center;
25
+ gap: 16px;
26
+ padding: 14px 0;
27
+ display: grid;
28
+ }
29
+
30
+ .sb-border-preview__meta {
31
+ flex-direction: column;
32
+ gap: 2px;
33
+ min-width: 0;
34
+ display: flex;
35
+ }
36
+
37
+ .sb-border-preview__path {
38
+ text-overflow: ellipsis;
39
+ white-space: nowrap;
40
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
41
+ font-size: 12px;
42
+ overflow: hidden;
43
+ }
44
+
45
+ .sb-border-preview__css-var {
46
+ opacity: .7;
47
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
48
+ font-size: 11px;
49
+ }
50
+
51
+ .sb-border-preview__sample-cell {
52
+ justify-content: center;
53
+ align-items: center;
54
+ display: flex;
55
+ }
56
+
57
+ .sb-border-preview__breakdown {
58
+ grid-template-columns: auto 1fr;
59
+ gap: 2px 12px;
60
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
61
+ font-size: 11px;
62
+ display: grid;
63
+ }
64
+
65
+ .sb-border-preview__breakdown-key {
66
+ color: var(--swatchbook-text-muted, CanvasText);
67
+ }
68
+ .sb-color-palette__group {
69
+ margin-bottom: 20px;
70
+ }
71
+
72
+ .sb-color-palette__group-header {
73
+ text-transform: uppercase;
74
+ letter-spacing: .5px;
75
+ opacity: .6;
76
+ margin-bottom: 8px;
77
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
78
+ font-size: 11px;
79
+ }
80
+
81
+ .sb-color-palette__grid {
82
+ grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
83
+ gap: 8px;
84
+ display: grid;
85
+ }
86
+
87
+ .sb-color-palette__card {
88
+ border: 1px solid var(--swatchbook-border-default, #80808033);
89
+ border-radius: 6px;
90
+ flex-direction: column;
91
+ display: flex;
92
+ overflow: hidden;
93
+ }
94
+
95
+ .sb-color-palette__swatch {
96
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808026);
97
+ width: 100%;
98
+ height: 56px;
99
+ }
100
+
101
+ .sb-color-palette__meta {
102
+ flex-direction: column;
103
+ gap: 2px;
104
+ padding: 8px 10px;
105
+ display: flex;
106
+ }
107
+
108
+ .sb-color-palette__leaf {
109
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
110
+ font-size: 12px;
111
+ }
112
+
113
+ .sb-color-palette__value {
114
+ opacity: .7;
115
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
116
+ font-size: 11px;
117
+ }
118
+
119
+ .sb-color-palette__gamut-warn {
120
+ margin-left: 4px;
121
+ }
122
+ .sb-diagnostics__summary {
123
+ cursor: pointer;
124
+ align-items: center;
125
+ gap: 8px;
126
+ padding: 4px 0;
127
+ font-size: 13px;
128
+ font-weight: 600;
129
+ list-style: none;
130
+ display: flex;
131
+ }
132
+
133
+ .sb-diagnostics__summary--ok {
134
+ color: #30a46c;
135
+ }
136
+
137
+ .sb-diagnostics__summary--error {
138
+ color: #d64545;
139
+ }
140
+
141
+ .sb-diagnostics__summary--warn {
142
+ color: #b08900;
143
+ }
144
+
145
+ .sb-diagnostics__list {
146
+ flex-direction: column;
147
+ margin: 8px 0 0;
148
+ padding: 0;
149
+ list-style: none;
150
+ display: flex;
151
+ }
152
+
153
+ .sb-diagnostics__row {
154
+ border-top: 1px solid var(--swatchbook-border-default, #80808026);
155
+ grid-template-columns: 60px 1fr;
156
+ gap: 12px;
157
+ padding: 8px 4px;
158
+ font-size: 12px;
159
+ display: grid;
160
+ }
161
+
162
+ .sb-diagnostics__label {
163
+ letter-spacing: .5px;
164
+ font-size: 10px;
165
+ font-weight: 600;
166
+ }
167
+
168
+ .sb-diagnostics__label--error {
169
+ color: #d64545;
170
+ }
171
+
172
+ .sb-diagnostics__label--warn {
173
+ color: #b08900;
174
+ }
175
+
176
+ .sb-diagnostics__meta {
177
+ color: var(--swatchbook-text-muted, CanvasText);
178
+ opacity: .7;
179
+ margin-top: 4px;
180
+ font-size: 11px;
181
+ }
182
+ .sb-dimension-scale__row {
183
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
184
+ grid-template-columns: minmax(160px, 220px) 1fr auto;
185
+ align-items: center;
186
+ gap: 16px;
187
+ padding: 10px 0;
188
+ display: grid;
189
+ }
190
+
191
+ .sb-dimension-scale__meta {
192
+ flex-direction: column;
193
+ gap: 2px;
194
+ min-width: 0;
195
+ display: flex;
196
+ }
197
+
198
+ .sb-dimension-scale__path {
199
+ text-overflow: ellipsis;
200
+ white-space: nowrap;
201
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
202
+ font-size: 12px;
203
+ overflow: hidden;
204
+ }
205
+
206
+ .sb-dimension-scale__specs {
207
+ opacity: .7;
208
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
209
+ font-size: 11px;
210
+ }
211
+
212
+ .sb-dimension-scale__visual-cell {
213
+ align-items: center;
214
+ min-width: 0;
215
+ display: flex;
216
+ }
217
+
218
+ .sb-dimension-scale__css-var {
219
+ opacity: .7;
220
+ white-space: nowrap;
221
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
222
+ font-size: 11px;
223
+ }
224
+
225
+ .sb-dimension-scale__cap {
226
+ opacity: .6;
227
+ margin-left: 6px;
228
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
229
+ font-size: 10px;
230
+ }
231
+ .sb-font-family-sample__row {
232
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
233
+ grid-template-columns: minmax(160px, 220px) 1fr auto;
234
+ align-items: baseline;
235
+ gap: 16px;
236
+ padding: 14px 0;
237
+ display: grid;
238
+ }
239
+
240
+ .sb-font-family-sample__meta {
241
+ flex-direction: column;
242
+ gap: 2px;
243
+ min-width: 0;
244
+ display: flex;
245
+ }
246
+
247
+ .sb-font-family-sample__path {
248
+ text-overflow: ellipsis;
249
+ white-space: nowrap;
250
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
251
+ font-size: 12px;
252
+ overflow: hidden;
253
+ }
254
+
255
+ .sb-font-family-sample__stack {
256
+ color: var(--swatchbook-text-muted, CanvasText);
257
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
258
+ font-size: 11px;
259
+ }
260
+
261
+ .sb-font-family-sample__sample {
262
+ font-size: 22px;
263
+ line-height: 1.2;
264
+ }
265
+
266
+ .sb-font-family-sample__css-var {
267
+ color: var(--swatchbook-text-muted, CanvasText);
268
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
269
+ font-size: 11px;
270
+ }
271
+ .sb-font-weight-scale__row {
272
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
273
+ grid-template-columns: minmax(160px, 220px) 1fr auto;
274
+ align-items: baseline;
275
+ gap: 16px;
276
+ padding: 12px 0;
277
+ display: grid;
278
+ }
279
+
280
+ .sb-font-weight-scale__meta {
281
+ flex-direction: column;
282
+ gap: 2px;
283
+ min-width: 0;
284
+ display: flex;
285
+ }
286
+
287
+ .sb-font-weight-scale__path {
288
+ text-overflow: ellipsis;
289
+ white-space: nowrap;
290
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
291
+ font-size: 12px;
292
+ overflow: hidden;
293
+ }
294
+
295
+ .sb-font-weight-scale__value {
296
+ color: var(--swatchbook-text-muted, CanvasText);
297
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
298
+ font-size: 11px;
299
+ }
300
+
301
+ .sb-font-weight-scale__sample {
302
+ font-size: 28px;
303
+ line-height: 1;
304
+ }
305
+
306
+ .sb-font-weight-scale__css-var {
307
+ color: var(--swatchbook-text-muted, CanvasText);
308
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
309
+ font-size: 11px;
310
+ }
311
+ .sb-gradient-palette__row {
312
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
313
+ grid-template-columns: minmax(180px, 240px) 1fr minmax(140px, 220px);
314
+ align-items: center;
315
+ gap: 16px;
316
+ padding: 16px 0;
317
+ display: grid;
318
+ }
319
+
320
+ .sb-gradient-palette__meta {
321
+ flex-direction: column;
322
+ gap: 2px;
323
+ min-width: 0;
324
+ display: flex;
325
+ }
326
+
327
+ .sb-gradient-palette__path {
328
+ text-overflow: ellipsis;
329
+ white-space: nowrap;
330
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
331
+ font-size: 12px;
332
+ overflow: hidden;
333
+ }
334
+
335
+ .sb-gradient-palette__css-var {
336
+ opacity: .7;
337
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
338
+ font-size: 11px;
339
+ }
340
+
341
+ .sb-gradient-palette__sample {
342
+ border: 1px solid var(--swatchbook-border-default, #80808026);
343
+ border-radius: 6px;
344
+ height: 56px;
345
+ }
346
+
347
+ .sb-gradient-palette__stops {
348
+ flex-direction: column;
349
+ gap: 2px;
350
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
351
+ font-size: 11px;
352
+ display: flex;
353
+ }
354
+
355
+ .sb-gradient-palette__stop-row {
356
+ align-items: center;
357
+ gap: 8px;
358
+ display: flex;
359
+ }
360
+
361
+ .sb-gradient-palette__stop-swatch {
362
+ border: 1px solid var(--swatchbook-border-default, #80808033);
363
+ border-radius: 2px;
364
+ flex: none;
365
+ width: 10px;
366
+ height: 10px;
367
+ }
368
+
369
+ .sb-gradient-palette__stop-position {
370
+ opacity: .6;
371
+ }
372
+ .sb-motion-preview__controls {
373
+ align-items: center;
374
+ gap: 8px;
375
+ padding: 8px 0 12px;
376
+ display: flex;
377
+ }
378
+
379
+ .sb-motion-preview__control-label {
380
+ color: var(--swatchbook-text-muted, CanvasText);
381
+ text-transform: uppercase;
382
+ letter-spacing: .5px;
383
+ font-size: 11px;
384
+ }
385
+
386
+ .sb-motion-preview__speed-btn {
387
+ color: inherit;
388
+ border: 1px solid var(--swatchbook-border-default, #8080804d);
389
+ cursor: pointer;
390
+ background: none;
391
+ border-radius: 4px;
392
+ padding: 4px 8px;
393
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
394
+ font-size: 11px;
395
+ }
396
+
397
+ .sb-motion-preview__speed-btn--active {
398
+ background: var(--swatchbook-accent-bg, #3b82f6);
399
+ color: var(--swatchbook-accent-fg, #fff);
400
+ border-color: #0000;
401
+ }
402
+
403
+ .sb-motion-preview__replay-btn {
404
+ color: inherit;
405
+ border: 1px solid var(--swatchbook-border-default, #8080804d);
406
+ cursor: pointer;
407
+ background: none;
408
+ border-radius: 4px;
409
+ margin-left: auto;
410
+ padding: 4px 10px;
411
+ font-size: 11px;
412
+ }
413
+
414
+ .sb-motion-preview__row {
415
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
416
+ grid-template-columns: minmax(180px, 240px) 1fr auto;
417
+ align-items: center;
418
+ gap: 16px;
419
+ padding: 14px 0;
420
+ display: grid;
421
+ }
422
+
423
+ .sb-motion-preview__meta {
424
+ flex-direction: column;
425
+ gap: 2px;
426
+ min-width: 0;
427
+ display: flex;
428
+ }
429
+
430
+ .sb-motion-preview__path {
431
+ text-overflow: ellipsis;
432
+ white-space: nowrap;
433
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
434
+ font-size: 12px;
435
+ overflow: hidden;
436
+ }
437
+
438
+ .sb-motion-preview__specs {
439
+ color: var(--swatchbook-text-muted, CanvasText);
440
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
441
+ font-size: 11px;
442
+ }
443
+
444
+ .sb-motion-preview__css-var {
445
+ color: var(--swatchbook-text-muted, CanvasText);
446
+ white-space: nowrap;
447
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
448
+ font-size: 11px;
449
+ }
450
+ .sb-shadow-preview__row {
451
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
452
+ grid-template-columns: minmax(160px, 220px) 140px 1fr;
453
+ align-items: center;
454
+ gap: 16px;
455
+ padding: 16px 0;
456
+ display: grid;
457
+ }
458
+
459
+ .sb-shadow-preview__meta {
460
+ flex-direction: column;
461
+ gap: 2px;
462
+ min-width: 0;
463
+ display: flex;
464
+ }
465
+
466
+ .sb-shadow-preview__path {
467
+ text-overflow: ellipsis;
468
+ white-space: nowrap;
469
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
470
+ font-size: 12px;
471
+ overflow: hidden;
472
+ }
473
+
474
+ .sb-shadow-preview__css-var {
475
+ opacity: .7;
476
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
477
+ font-size: 11px;
478
+ }
479
+
480
+ .sb-shadow-preview__sample-cell {
481
+ justify-content: center;
482
+ align-items: center;
483
+ height: 96px;
484
+ display: flex;
485
+ }
486
+
487
+ .sb-shadow-preview__breakdown {
488
+ grid-template-columns: auto 1fr;
489
+ gap: 2px 12px;
490
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
491
+ font-size: 11px;
492
+ display: grid;
493
+ }
494
+
495
+ .sb-shadow-preview__breakdown-key {
496
+ color: var(--swatchbook-text-muted, CanvasText);
497
+ }
498
+
499
+ .sb-shadow-preview__layer {
500
+ grid-column: 1 / -1;
501
+ }
502
+
503
+ .sb-shadow-preview__layer-header {
504
+ text-transform: uppercase;
505
+ letter-spacing: .5px;
506
+ color: var(--swatchbook-text-muted, CanvasText);
507
+ margin-top: 6px;
508
+ font-size: 10px;
509
+ }
510
+
511
+ .sb-shadow-preview__layer-breakdown {
512
+ margin-top: 2px;
513
+ }
514
+ .sb-stroke-style-sample__row {
515
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
516
+ grid-template-columns: minmax(160px, 220px) 1fr auto;
517
+ align-items: center;
518
+ gap: 16px;
519
+ padding: 14px 0;
520
+ display: grid;
521
+ }
522
+
523
+ .sb-stroke-style-sample__meta {
524
+ flex-direction: column;
525
+ gap: 2px;
526
+ min-width: 0;
527
+ display: flex;
528
+ }
529
+
530
+ .sb-stroke-style-sample__path {
531
+ text-overflow: ellipsis;
532
+ white-space: nowrap;
533
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
534
+ font-size: 12px;
535
+ overflow: hidden;
536
+ }
537
+
538
+ .sb-stroke-style-sample__value {
539
+ color: var(--swatchbook-text-muted, CanvasText);
540
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
541
+ font-size: 11px;
542
+ }
543
+
544
+ .sb-stroke-style-sample__line {
545
+ border-top-width: 4px;
546
+ border-top-color: var(--swatchbook-text-default, CanvasText);
547
+ width: 100%;
548
+ height: 0;
549
+ }
550
+
551
+ .sb-stroke-style-sample__object-fallback, .sb-stroke-style-sample__css-var {
552
+ color: var(--swatchbook-text-muted, CanvasText);
553
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
554
+ font-size: 11px;
555
+ }
556
+ .sb-token-detail {
557
+ border: 1px solid var(--swatchbook-border-default, #80808033);
558
+ padding: 16px;
559
+ }
560
+
561
+ .sb-token-detail__heading {
562
+ margin: 0;
563
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
564
+ font-size: 16px;
565
+ }
566
+
567
+ .sb-token-detail__subline {
568
+ opacity: .8;
569
+ align-items: center;
570
+ gap: 8px;
571
+ margin: 4px 0 12px;
572
+ font-size: 12px;
573
+ display: flex;
574
+ }
575
+
576
+ .sb-token-detail__type-pill {
577
+ letter-spacing: .5px;
578
+ text-transform: uppercase;
579
+ background: var(--swatchbook-surface-muted, #80808026);
580
+ border-radius: 4px;
581
+ padding: 2px 6px;
582
+ font-size: 10px;
583
+ display: inline-block;
584
+ }
585
+
586
+ .sb-token-detail__description {
587
+ opacity: .85;
588
+ margin: 0 0 12px;
589
+ }
590
+
591
+ .sb-token-detail__section-header {
592
+ text-transform: uppercase;
593
+ letter-spacing: .5px;
594
+ opacity: .6;
595
+ margin: 12px 0 6px;
596
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
597
+ font-size: 11px;
598
+ }
599
+
600
+ .sb-token-detail__chain {
601
+ flex-wrap: wrap;
602
+ align-items: center;
603
+ gap: 6px;
604
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
605
+ font-size: 12px;
606
+ display: flex;
607
+ }
608
+
609
+ .sb-token-detail__chain-node {
610
+ border: 1px solid var(--swatchbook-border-default, #80808033);
611
+ border-radius: 4px;
612
+ padding: 2px 6px;
613
+ }
614
+
615
+ .sb-token-detail__arrow {
616
+ opacity: .5;
617
+ }
618
+
619
+ .sb-token-detail__theme-table {
620
+ border-collapse: collapse;
621
+ table-layout: fixed;
622
+ width: 100%;
623
+ font-size: 12px;
624
+ }
625
+
626
+ .sb-token-detail__theme-row {
627
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808026);
628
+ }
629
+
630
+ .sb-token-detail__theme-cell {
631
+ vertical-align: middle;
632
+ padding: 6px 8px;
633
+ }
634
+
635
+ .sb-token-detail__swatch {
636
+ vertical-align: middle;
637
+ border: 1px solid var(--swatchbook-border-default, #80808033);
638
+ border-radius: 3px;
639
+ width: 14px;
640
+ height: 14px;
641
+ margin-right: 6px;
642
+ display: inline-block;
643
+ }
644
+
645
+ .sb-token-detail__snippet {
646
+ background: var(--swatchbook-surface-muted, #80808026);
647
+ white-space: pre;
648
+ border-radius: 4px;
649
+ padding: 8px 10px;
650
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
651
+ font-size: 12px;
652
+ display: block;
653
+ overflow: auto;
654
+ }
655
+
656
+ .sb-token-detail__missing {
657
+ opacity: .7;
658
+ padding: 12px;
659
+ }
660
+
661
+ .sb-token-detail__typography-sample {
662
+ padding: 8px 0;
663
+ }
664
+
665
+ .sb-token-detail__shadow-sample {
666
+ background: var(--swatchbook-surface-raised, Canvas);
667
+ border: 1px solid var(--swatchbook-border-default, #80808026);
668
+ border-radius: 6px;
669
+ width: 140px;
670
+ height: 56px;
671
+ }
672
+
673
+ .sb-token-detail__border-sample {
674
+ background: var(--swatchbook-surface-raised, Canvas);
675
+ border-radius: 6px;
676
+ width: 140px;
677
+ height: 56px;
678
+ }
679
+
680
+ .sb-token-detail__gradient-sample {
681
+ border: 1px solid var(--swatchbook-border-default, #80808026);
682
+ border-radius: 6px;
683
+ width: 220px;
684
+ height: 56px;
685
+ }
686
+
687
+ .sb-token-detail__stroke-style-line {
688
+ border-top-width: 4px;
689
+ border-top-color: var(--swatchbook-text-default, CanvasText);
690
+ width: 220px;
691
+ height: 0;
692
+ }
693
+
694
+ .sb-token-detail__stroke-style-svg {
695
+ width: 220px;
696
+ height: 24px;
697
+ color: var(--swatchbook-text-default, CanvasText);
698
+ }
699
+
700
+ .sb-token-detail__stroke-style-fallback {
701
+ color: var(--swatchbook-text-muted, CanvasText);
702
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
703
+ font-size: 12px;
704
+ }
705
+
706
+ .sb-token-detail__color-swatch-row {
707
+ border: 1px solid var(--swatchbook-border-default, #80808033);
708
+ border-radius: 6px;
709
+ gap: 1px;
710
+ width: 220px;
711
+ height: 56px;
712
+ display: flex;
713
+ overflow: hidden;
714
+ }
715
+
716
+ .sb-token-detail__color-swatch-light {
717
+ flex: 1;
718
+ box-shadow: inset 0 0 0 8px #ffffffe6;
719
+ }
720
+
721
+ .sb-token-detail__color-swatch-dark {
722
+ flex: 1;
723
+ box-shadow: inset 0 0 0 8px #111111e6;
724
+ }
725
+
726
+ .sb-token-detail__breakdown-section {
727
+ grid-template-columns: auto 1fr;
728
+ gap: 3px 12px;
729
+ margin-top: 6px;
730
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
731
+ font-size: 12px;
732
+ display: grid;
733
+ }
734
+
735
+ .sb-token-detail__breakdown-key {
736
+ color: var(--swatchbook-text-muted, CanvasText);
737
+ }
738
+
739
+ .sb-token-detail__breakdown-layer-header {
740
+ text-transform: uppercase;
741
+ letter-spacing: .5px;
742
+ color: var(--swatchbook-text-muted, CanvasText);
743
+ grid-column: 1 / -1;
744
+ margin-top: 4px;
745
+ font-size: 10px;
746
+ }
747
+
748
+ .sb-token-detail__font-family-sample {
749
+ padding: 4px 0;
750
+ font-size: 22px;
751
+ line-height: 1.2;
752
+ }
753
+
754
+ .sb-token-detail__font-weight-sample {
755
+ padding: 4px 0;
756
+ font-size: 32px;
757
+ line-height: 1;
758
+ }
759
+
760
+ .sb-token-detail__dimension-track {
761
+ align-items: center;
762
+ max-width: 100%;
763
+ height: 32px;
764
+ display: flex;
765
+ overflow: hidden;
766
+ }
767
+
768
+ .sb-token-detail__dimension-bar {
769
+ background: var(--swatchbook-accent-bg, #3b82f6);
770
+ border-radius: 3px;
771
+ max-width: 100%;
772
+ height: 16px;
773
+ }
774
+
775
+ .sb-token-detail__motion-track {
776
+ background: var(--swatchbook-surface-muted, #80808026);
777
+ border-radius: 16px;
778
+ width: 100%;
779
+ max-width: 320px;
780
+ height: 32px;
781
+ position: relative;
782
+ overflow: hidden;
783
+ }
784
+
785
+ .sb-token-detail__motion-ball {
786
+ background: var(--swatchbook-accent-bg, #3b82f6);
787
+ border-radius: 50%;
788
+ width: 24px;
789
+ height: 24px;
790
+ margin-top: -12px;
791
+ position: absolute;
792
+ top: 50%;
793
+ }
794
+
795
+ .sb-token-detail__aliased-by-list {
796
+ margin: 0;
797
+ padding: 0;
798
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
799
+ font-size: 12px;
800
+ list-style: none;
801
+ }
802
+
803
+ .sb-token-detail__aliased-by-row {
804
+ align-items: center;
805
+ gap: 6px;
806
+ padding: 2px 0;
807
+ display: flex;
808
+ }
809
+
810
+ .sb-token-detail__aliased-by-truncated {
811
+ opacity: .6;
812
+ margin-top: 4px;
813
+ font-size: 11px;
814
+ font-style: italic;
815
+ }
816
+
817
+ .sb-token-detail__reduced-motion {
818
+ color: var(--swatchbook-text-muted, CanvasText);
819
+ font-size: 11px;
820
+ font-style: italic;
821
+ }
822
+
823
+ .sb-token-detail__tuple-indicator {
824
+ opacity: .7;
825
+ margin: 0 0 6px;
826
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
827
+ font-size: 11px;
828
+ }
829
+
830
+ .sb-token-detail__consumer-row {
831
+ background: var(--swatchbook-surface-muted, #80808026);
832
+ border-radius: 4px;
833
+ align-items: center;
834
+ gap: 8px;
835
+ margin-bottom: 4px;
836
+ padding: 6px 10px;
837
+ display: flex;
838
+ }
839
+
840
+ .sb-token-detail__consumer-row-label {
841
+ text-transform: uppercase;
842
+ letter-spacing: .5px;
843
+ opacity: .6;
844
+ flex-shrink: 0;
845
+ min-width: 32px;
846
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
847
+ font-size: 10px;
848
+ }
849
+
850
+ .sb-token-detail__consumer-row-value {
851
+ white-space: nowrap;
852
+ flex: 1;
853
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
854
+ font-size: 12px;
855
+ overflow: auto;
856
+ }
857
+
858
+ .sb-token-detail__consumer-row-copy {
859
+ background: var(--swatchbook-surface-raised, Canvas);
860
+ color: var(--swatchbook-text-default, CanvasText);
861
+ border: 1px solid var(--swatchbook-border-default, #8080804d);
862
+ cursor: pointer;
863
+ border-radius: 4px;
864
+ flex-shrink: 0;
865
+ padding: 3px 8px;
866
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
867
+ font-size: 11px;
868
+ }
869
+ .sb-token-navigator__caption {
870
+ color: var(--swatchbook-text-muted, CanvasText);
871
+ padding: 4px 0 12px;
872
+ font-size: 12px;
873
+ }
874
+
875
+ .sb-token-navigator__tree {
876
+ margin: 0;
877
+ padding: 0;
878
+ list-style: none;
879
+ }
880
+
881
+ .sb-token-navigator__nested {
882
+ border-left: 1px solid var(--swatchbook-border-default, #80808033);
883
+ margin: 0;
884
+ padding-left: 18px;
885
+ list-style: none;
886
+ }
887
+
888
+ .sb-token-navigator__group-row {
889
+ cursor: pointer;
890
+ user-select: none;
891
+ border-radius: 4px;
892
+ align-items: center;
893
+ gap: 6px;
894
+ padding: 4px 6px;
895
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
896
+ font-size: 12px;
897
+ display: flex;
898
+ }
899
+
900
+ .sb-token-navigator__leaf-row {
901
+ cursor: pointer;
902
+ border-radius: 4px;
903
+ align-items: center;
904
+ gap: 8px;
905
+ padding: 4px 6px;
906
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
907
+ font-size: 12px;
908
+ display: flex;
909
+ }
910
+
911
+ .sb-token-navigator__caret {
912
+ text-align: center;
913
+ width: 12px;
914
+ color: var(--swatchbook-text-muted, CanvasText);
915
+ display: inline-block;
916
+ }
917
+
918
+ .sb-token-navigator__tail {
919
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
920
+ font-size: 12px;
921
+ }
922
+
923
+ .sb-token-navigator__type-pill {
924
+ letter-spacing: .5px;
925
+ text-transform: uppercase;
926
+ background: var(--swatchbook-surface-muted, #80808026);
927
+ border-radius: 4px;
928
+ padding: 1px 6px;
929
+ font-size: 10px;
930
+ display: inline-block;
931
+ }
932
+
933
+ .sb-token-navigator__value {
934
+ color: var(--swatchbook-text-muted, CanvasText);
935
+ text-align: right;
936
+ text-overflow: ellipsis;
937
+ white-space: nowrap;
938
+ min-width: 0;
939
+ margin-left: auto;
940
+ font-size: 11px;
941
+ overflow: hidden;
942
+ }
943
+
944
+ .sb-token-navigator__count {
945
+ color: var(--swatchbook-text-default, CanvasText);
946
+ margin-left: auto;
947
+ font-size: 11px;
948
+ }
949
+
950
+ .sb-token-navigator__color-swatch {
951
+ border: 1px solid var(--swatchbook-border-default, #80808033);
952
+ border-radius: 3px;
953
+ width: 14px;
954
+ height: 14px;
955
+ margin-left: 8px;
956
+ display: inline-block;
957
+ }
958
+
959
+ .sb-token-navigator__preview-box {
960
+ justify-content: flex-end;
961
+ align-items: center;
962
+ margin-left: auto;
963
+ display: inline-flex;
964
+ }
965
+
966
+ .sb-token-navigator__preview-dimension {
967
+ min-width: 40px;
968
+ max-width: 120px;
969
+ margin-left: 8px;
970
+ display: inline-block;
971
+ }
972
+
973
+ .sb-token-navigator__preview-scaled {
974
+ transform-origin: 100%;
975
+ margin-left: 8px;
976
+ display: inline-block;
977
+ transform: scale(.5);
978
+ }
979
+
980
+ .sb-token-navigator__preview-motion {
981
+ width: 80px;
982
+ margin-left: 8px;
983
+ display: inline-block;
984
+ }
985
+ .sb-detail-overlay__backdrop {
986
+ z-index: 10000;
987
+ background: #0006;
988
+ justify-content: flex-end;
989
+ align-items: stretch;
990
+ display: flex;
991
+ position: fixed;
992
+ inset: 0;
993
+ }
994
+
995
+ .sb-detail-overlay__panel {
996
+ background: var(--swatchbook-surface-default, Canvas);
997
+ width: min(560px, 100%);
998
+ height: 100%;
999
+ color: var(--swatchbook-text-default, CanvasText);
1000
+ padding: 16px;
1001
+ position: relative;
1002
+ overflow-y: auto;
1003
+ box-shadow: -8px 0 24px #0003;
1004
+ }
1005
+
1006
+ .sb-detail-overlay__close {
1007
+ border: 1px solid var(--swatchbook-border-default, #8080804d);
1008
+ width: 32px;
1009
+ height: 32px;
1010
+ color: inherit;
1011
+ cursor: pointer;
1012
+ background: none;
1013
+ border-radius: 4px;
1014
+ font-size: 16px;
1015
+ line-height: 1;
1016
+ position: absolute;
1017
+ top: 8px;
1018
+ right: 8px;
1019
+ }
1020
+ .sb-token-table__table {
1021
+ border-collapse: collapse;
1022
+ width: 100%;
1023
+ }
1024
+
1025
+ .sb-token-table__caption {
1026
+ caption-side: top;
1027
+ text-align: left;
1028
+ color: var(--swatchbook-text-muted, CanvasText);
1029
+ padding: 8px 0;
1030
+ font-size: 12px;
1031
+ }
1032
+
1033
+ .sb-token-table__th {
1034
+ text-align: left;
1035
+ text-transform: uppercase;
1036
+ letter-spacing: .5px;
1037
+ color: var(--swatchbook-text-muted, CanvasText);
1038
+ border-bottom: 1px solid var(--swatchbook-border-default, #8080804d);
1039
+ padding: 8px 12px;
1040
+ font-size: 11px;
1041
+ }
1042
+
1043
+ .sb-token-table__th--path {
1044
+ min-width: 180px;
1045
+ }
1046
+
1047
+ .sb-token-table__th--value {
1048
+ min-width: 160px;
1049
+ }
1050
+
1051
+ .sb-token-table__row {
1052
+ cursor: pointer;
1053
+ }
1054
+
1055
+ .sb-token-table__td {
1056
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808026);
1057
+ vertical-align: top;
1058
+ padding: 8px 12px;
1059
+ }
1060
+
1061
+ .sb-token-table__path {
1062
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1063
+ font-size: 12px;
1064
+ }
1065
+
1066
+ .sb-token-table__value-cell {
1067
+ align-items: center;
1068
+ gap: 8px;
1069
+ min-width: 0;
1070
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1071
+ font-size: 12px;
1072
+ display: flex;
1073
+ }
1074
+
1075
+ .sb-token-table__type-pill {
1076
+ letter-spacing: .5px;
1077
+ text-transform: uppercase;
1078
+ background: var(--swatchbook-surface-muted, #80808026);
1079
+ color: var(--swatchbook-text-muted, CanvasText);
1080
+ border-radius: 4px;
1081
+ flex-shrink: 0;
1082
+ padding: 1px 6px;
1083
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1084
+ font-size: 10px;
1085
+ display: inline-block;
1086
+ }
1087
+
1088
+ .sb-token-table__swatch {
1089
+ border: 1px solid var(--swatchbook-border-default, #8080804d);
1090
+ border-radius: 3px;
1091
+ flex-shrink: 0;
1092
+ width: 16px;
1093
+ height: 16px;
1094
+ display: inline-block;
1095
+ }
1096
+
1097
+ .sb-token-table__value-text {
1098
+ text-overflow: ellipsis;
1099
+ white-space: nowrap;
1100
+ min-width: 0;
1101
+ overflow: hidden;
1102
+ }
1103
+
1104
+ .sb-token-table__gamut-warn {
1105
+ flex-shrink: 0;
1106
+ }
1107
+ .sb-typography-scale__row {
1108
+ border-bottom: 1px solid var(--swatchbook-border-default, #80808033);
1109
+ grid-template-columns: minmax(160px, 220px) 1fr;
1110
+ align-items: baseline;
1111
+ gap: 16px;
1112
+ padding: 14px 0;
1113
+ display: grid;
1114
+ }
1115
+
1116
+ .sb-typography-scale__meta {
1117
+ flex-direction: column;
1118
+ gap: 2px;
1119
+ display: flex;
1120
+ }
1121
+
1122
+ .sb-typography-scale__path {
1123
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1124
+ font-size: 12px;
1125
+ }
1126
+
1127
+ .sb-typography-scale__specs {
1128
+ opacity: .7;
1129
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1130
+ font-size: 11px;
1131
+ }