@erclx/canon 5.53.0 → 5.54.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.
Files changed (94) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +10 -9
  3. package/claude/.claude-plugin/plugin.json +1 -1
  4. package/claude/skills/canon-cli/SKILL.md +5 -5
  5. package/claude/skills/design-identity/REQUIREMENT.md +2 -2
  6. package/claude/skills/design-identity/SKILL.md +6 -6
  7. package/claude/skills/design-record/REQUIREMENT.md +2 -2
  8. package/claude/skills/design-record/SKILL.md +4 -4
  9. package/claude/skills/design-record/references/folder.md +1 -1
  10. package/claude/skills/design-taste/REQUIREMENT.md +1 -1
  11. package/claude/skills/draw-figure/REQUIREMENT.md +1 -1
  12. package/claude/skills/draw-figure/SKILL.md +1 -1
  13. package/claude/skills/pick-by-eye/REQUIREMENT.md +4 -4
  14. package/claude/skills/pick-by-eye/SKILL.md +34 -41
  15. package/claude/skills/pick-by-eye/references/board.md +42 -0
  16. package/claude/skills/pick-by-eye/references/live-arms.md +3 -3
  17. package/claude/skills/plan-groundwork/SKILL.md +1 -1
  18. package/claude/skills/teach-craft/REQUIREMENT.md +1 -1
  19. package/claude/skills/teach-craft/SKILL.md +32 -1
  20. package/claude/skills/teach-craft/references/adopted.md +113 -0
  21. package/claude/skills/teach-craft/references/lesson-craft.md +10 -2
  22. package/claude/skills/teach-craft/references/pedagogy.md +29 -2
  23. package/docs/agents/install-and-sync.md +0 -8
  24. package/docs/target/migrations.md +8 -3
  25. package/docs/target/projects.md +1 -1
  26. package/docs/workflow/skill-map.md +0 -1
  27. package/docs/workflow/visual-design-workflow.md +1 -4
  28. package/governance/detect.toml +1 -6
  29. package/governance/renames.toml +0 -1
  30. package/package.json +2 -5
  31. package/src/claude/cases/misc.ts +0 -5
  32. package/src/claude/skills-audit.ts +1 -0
  33. package/src/cli/help.ts +0 -3
  34. package/src/cli.ts +0 -2
  35. package/src/commands/design.ts +16 -315
  36. package/src/commands/sync.ts +4 -5
  37. package/src/design/regen.ts +5 -32
  38. package/src/design/render.ts +1 -1
  39. package/src/design/tokens.ts +3 -2
  40. package/src/gate/stages.ts +4 -10
  41. package/src/gov/audit.ts +1 -6
  42. package/src/markdown/scope.ts +2 -4
  43. package/src/shipped/references.ts +1 -2
  44. package/src/sync/check.ts +4 -29
  45. package/src/sync/stamp.ts +6 -6
  46. package/src/sync/target.ts +1 -4
  47. package/tooling/claude/reference.md +1 -1
  48. package/tooling/claude/seeds/canon/DESIGN.md +1 -1
  49. package/claude/skills/canvas-board/REQUIREMENT.md +0 -35
  50. package/claude/skills/canvas-board/SKILL.md +0 -143
  51. package/claude/skills/canvas-board/references/canvas.md +0 -170
  52. package/governance/rules/ui/canvas.md +0 -13
  53. package/src/canvas/address.ts +0 -227
  54. package/src/canvas/arrange.ts +0 -66
  55. package/src/canvas/capture.ts +0 -391
  56. package/src/canvas/client/app.tsx +0 -188
  57. package/src/canvas/client/inspector/align-grid.tsx +0 -162
  58. package/src/canvas/client/inspector/color-field.tsx +0 -398
  59. package/src/canvas/client/inspector/color-inputs.tsx +0 -139
  60. package/src/canvas/client/inspector/color-picker.tsx +0 -668
  61. package/src/canvas/client/inspector/color-space.ts +0 -240
  62. package/src/canvas/client/inspector/field.tsx +0 -263
  63. package/src/canvas/client/inspector/fields.css +0 -763
  64. package/src/canvas/client/inspector/section.tsx +0 -27
  65. package/src/canvas/client/inspector/size-field.tsx +0 -69
  66. package/src/canvas/client/inspector/token-select.tsx +0 -109
  67. package/src/canvas/client/inspector/values.ts +0 -297
  68. package/src/canvas/client/inspector.tsx +0 -692
  69. package/src/canvas/client/keys.ts +0 -71
  70. package/src/canvas/client/layers.tsx +0 -118
  71. package/src/canvas/client/main.tsx +0 -71
  72. package/src/canvas/client/pages-panel.tsx +0 -212
  73. package/src/canvas/client/panel-handle.tsx +0 -90
  74. package/src/canvas/client/selection.tsx +0 -199
  75. package/src/canvas/client/shell.css +0 -762
  76. package/src/canvas/client/state.ts +0 -792
  77. package/src/canvas/client/surface.tsx +0 -803
  78. package/src/canvas/client/theme-panel.tsx +0 -55
  79. package/src/canvas/client/tools.tsx +0 -153
  80. package/src/canvas/content.ts +0 -781
  81. package/src/canvas/edit.ts +0 -575
  82. package/src/canvas/editing.ts +0 -203
  83. package/src/canvas/fit.ts +0 -238
  84. package/src/canvas/global.d.ts +0 -15
  85. package/src/canvas/history.ts +0 -116
  86. package/src/canvas/index.html +0 -20
  87. package/src/canvas/server.ts +0 -766
  88. package/src/canvas/tokens.ts +0 -221
  89. package/src/commands/canvas.ts +0 -1097
  90. package/src/design/adapter.ts +0 -59
  91. package/src/design/base.css +0 -203
  92. package/src/design/brand-favicon.ts +0 -18
  93. package/src/design/neutral.ts +0 -127
  94. package/src/design/project-fonts.ts +0 -392
@@ -1,762 +0,0 @@
1
- /*
2
- * The canvas chrome. Every value reads a custom property from this toolkit's
3
- * own token module, served at /api/chrome.css, which maps dark onto :root and
4
- * light onto [data-theme='light']. A frame reads the project's tokens inside
5
- * its own iframe, so the two sets of names never meet.
6
- */
7
-
8
- * {
9
- box-sizing: border-box;
10
- }
11
-
12
- html,
13
- body {
14
- height: 100%;
15
- margin: 0;
16
- }
17
-
18
- body {
19
- background: var(--color-background);
20
- color: var(--color-text);
21
- font-family: var(--type-body-family);
22
- font-size: var(--type-label-size);
23
- line-height: var(--type-label-lh);
24
- }
25
-
26
- #app {
27
- height: 100%;
28
- }
29
-
30
- :focus-visible {
31
- outline: 2px solid var(--color-accent);
32
- outline-offset: 2px;
33
- }
34
-
35
- code {
36
- font-family: var(--type-code-family);
37
- font-size: var(--type-code-size);
38
- }
39
-
40
- .shell {
41
- position: relative;
42
- display: grid;
43
- grid-template-columns: var(--panel-left, 15rem) minmax(0, 1fr) var(
44
- --panel-right,
45
- 16rem
46
- );
47
- height: 100%;
48
- }
49
-
50
- /*
51
- * Centered on the edge, so a 24 pixel circle around it stays inside the
52
- * panel's padding on one side and short of the tool strip on the other, with
53
- * a line drawn at the edge itself.
54
- */
55
- .panel-handle {
56
- position: absolute;
57
- top: 0;
58
- bottom: 0;
59
- z-index: 2;
60
- width: 12px;
61
- cursor: col-resize;
62
- touch-action: none;
63
- }
64
-
65
- .panel-handle-left {
66
- left: calc(var(--panel-left, 15rem) - 6px);
67
- }
68
-
69
- .panel-handle-right {
70
- right: calc(var(--panel-right, 16rem) - 6px);
71
- }
72
-
73
- .panel-handle::after {
74
- content: '';
75
- position: absolute;
76
- top: 0;
77
- bottom: 0;
78
- left: 5px;
79
- width: 2px;
80
- background: transparent;
81
- }
82
-
83
- .panel-handle:hover::after,
84
- .panel-handle:active::after,
85
- .panel-handle:focus-visible::after {
86
- background: var(--color-accent);
87
- }
88
-
89
- .shell.panels-hidden > .panel-handle {
90
- display: none;
91
- }
92
-
93
- .panel {
94
- overflow-y: auto;
95
- padding: var(--space-md);
96
- background: var(--color-chrome);
97
- min-width: 0;
98
- }
99
-
100
- .panel-left {
101
- border-right: 1px solid var(--color-border);
102
- }
103
-
104
- .panel-right {
105
- border-left: 1px solid var(--color-border);
106
- display: flex;
107
- flex-direction: column;
108
- gap: var(--space-lg);
109
- }
110
-
111
- .panel-head {
112
- display: flex;
113
- align-items: center;
114
- justify-content: space-between;
115
- margin-bottom: var(--space-md);
116
- }
117
-
118
- .brand {
119
- font-weight: 600;
120
- color: var(--color-text);
121
- }
122
-
123
- .section-label {
124
- margin: var(--space-md) 0 var(--space-xs);
125
- font-size: var(--type-label-size);
126
- font-weight: 500;
127
- color: var(--color-text-secondary);
128
- }
129
-
130
- .panel-right .section-label {
131
- margin-top: 0;
132
- }
133
-
134
- .list {
135
- list-style: none;
136
- margin: 0;
137
- padding: 2px;
138
- display: flex;
139
- flex-direction: column;
140
- gap: 2px;
141
- }
142
-
143
- .row {
144
- display: flex;
145
- align-items: center;
146
- justify-content: space-between;
147
- gap: var(--space-sm);
148
- width: 100%;
149
- min-height: 28px;
150
- padding: var(--space-xs) var(--space-sm);
151
- border: 0;
152
- border-radius: var(--radius-action);
153
- background: transparent;
154
- color: var(--color-text-body);
155
- font: inherit;
156
- text-align: left;
157
- cursor: pointer;
158
- }
159
-
160
- .row:hover {
161
- background: var(--color-surface);
162
- color: var(--color-text);
163
- }
164
-
165
- .row:active {
166
- background: var(--color-border);
167
- }
168
-
169
- .row[aria-current='page'],
170
- .row[aria-current='true'] {
171
- background: var(--color-surface);
172
- color: var(--color-text);
173
- box-shadow: inset 2px 0 0 var(--color-accent);
174
- }
175
-
176
- .row-label {
177
- overflow: hidden;
178
- text-overflow: ellipsis;
179
- white-space: nowrap;
180
- }
181
-
182
- .row-meta {
183
- flex-shrink: 0;
184
- color: var(--color-muted);
185
- font-variant-numeric: tabular-nums;
186
- }
187
-
188
- .empty,
189
- .notice {
190
- margin: var(--space-xs) 0;
191
- color: var(--color-text-secondary);
192
- }
193
-
194
- .notice {
195
- border-left: 2px solid var(--color-accent);
196
- padding-left: var(--space-sm);
197
- }
198
-
199
- .detail {
200
- margin: 0;
201
- color: var(--color-text);
202
- overflow: hidden;
203
- text-overflow: ellipsis;
204
- white-space: nowrap;
205
- }
206
-
207
- .detail-meta {
208
- margin: 0;
209
- color: var(--color-muted);
210
- }
211
-
212
- .files {
213
- list-style: none;
214
- margin: var(--space-xs) 0 0;
215
- padding: 0;
216
- }
217
-
218
- .files li {
219
- overflow: hidden;
220
- text-overflow: ellipsis;
221
- white-space: nowrap;
222
- color: var(--color-text-body);
223
- }
224
-
225
- .icon-button,
226
- .text-button {
227
- min-width: 28px;
228
- min-height: 28px;
229
- padding: 0 var(--space-sm);
230
- border: 1px solid var(--color-border);
231
- border-radius: var(--radius-action);
232
- background: var(--color-surface);
233
- color: var(--color-text);
234
- font: inherit;
235
- cursor: pointer;
236
- }
237
-
238
- .icon-button:hover,
239
- .text-button:hover {
240
- border-color: var(--color-text-secondary);
241
- }
242
-
243
- .icon-button:active,
244
- .text-button:active {
245
- background: var(--color-border);
246
- }
247
-
248
- .surface {
249
- position: relative;
250
- min-width: 0;
251
- overflow: hidden;
252
- background: var(--color-background);
253
- }
254
-
255
- .viewport {
256
- position: absolute;
257
- inset: 0;
258
- overflow: hidden;
259
- cursor: grab;
260
- touch-action: none;
261
- }
262
-
263
- .viewport:active {
264
- cursor: grabbing;
265
- }
266
-
267
- /* Inset, so the panels on either side never clip the ring. */
268
- .surface:focus-visible {
269
- outline-offset: -2px;
270
- }
271
-
272
- /*
273
- * While panning, a frame takes no pointer, so a drag over one moves the view
274
- * rather than picking an element, and the cursor reads the viewport's grab.
275
- * The descendants are named too, since a selection handle sets its own
276
- * pointer events and would otherwise take the drag as a resize. Nothing in
277
- * the viewport starts a text selection while a pan drags across it.
278
- */
279
- .surface[data-tool='pan'] .viewport {
280
- user-select: none;
281
- }
282
-
283
- .surface[data-tool='pan'] .frame,
284
- .surface[data-tool='pan'] .frame * {
285
- pointer-events: none;
286
- }
287
-
288
- .plane {
289
- position: absolute;
290
- top: 0;
291
- left: 0;
292
- transform-origin: 0 0;
293
- }
294
-
295
- .frame {
296
- position: absolute;
297
- margin: 0;
298
- cursor: default;
299
- }
300
-
301
- .frame-label {
302
- position: absolute;
303
- bottom: 100%;
304
- left: 0;
305
- right: 0;
306
- display: flex;
307
- align-items: center;
308
- /*
309
- * Sized against the zoom, so the label reads at one screen size at any zoom.
310
- * A row too short for every part wraps the theme switch, then the editing
311
- * badge, then the size onto lines the clip hides, so the name keeps the row
312
- * longest.
313
- */
314
- flex-wrap: wrap;
315
- align-content: flex-start;
316
- column-gap: calc(6px * var(--outline-scale, 1));
317
- row-gap: calc(40px * var(--outline-scale, 1));
318
- height: calc(25px * var(--outline-scale, 1));
319
- overflow: clip;
320
- overflow-clip-margin: calc(4px * var(--outline-scale, 1));
321
- padding-bottom: calc(6px * var(--outline-scale, 1));
322
- font-size: calc(11px * var(--outline-scale, 1));
323
- line-height: 1.3;
324
- color: var(--color-text-secondary);
325
- white-space: nowrap;
326
- }
327
-
328
- /* A theme switch focused on a hidden line shows rather than staying hidden. */
329
- .frame-label:focus-within {
330
- overflow: visible;
331
- }
332
-
333
- .frame-name {
334
- min-width: 0;
335
- overflow: hidden;
336
- text-overflow: ellipsis;
337
- color: var(--color-text);
338
- }
339
-
340
- .frame-size {
341
- color: var(--color-muted);
342
- font-variant-numeric: tabular-nums;
343
- }
344
-
345
- /*
346
- * Ahead of the theme switch, so a row too short for both wraps the switch
347
- * first. The editing outline still marks the frame when the badge wraps too.
348
- */
349
- .frame-editing {
350
- display: inline-flex;
351
- align-items: center;
352
- gap: calc(4px * var(--outline-scale, 1));
353
- padding: calc(1px * var(--outline-scale, 1))
354
- calc(6px * var(--outline-scale, 1));
355
- border-radius: var(--radius-pill);
356
- background: color-mix(in srgb, var(--color-success) 16%, transparent);
357
- color: var(--color-success);
358
- font-weight: 600;
359
- }
360
-
361
- .frame-editing:empty {
362
- display: none;
363
- }
364
-
365
- .frame-editing::before {
366
- content: '';
367
- width: calc(6px * var(--outline-scale, 1));
368
- height: calc(6px * var(--outline-scale, 1));
369
- border-radius: 50%;
370
- background: currentColor;
371
- }
372
-
373
- /* Dashed, so it reads apart from the solid accent of a selection. */
374
- .frame[data-editing='true'] iframe {
375
- outline: calc(2px * var(--outline-scale, 1)) dashed var(--color-success);
376
- outline-offset: calc(2px * var(--outline-scale, 1));
377
- }
378
-
379
- .frame-theme {
380
- margin-left: auto;
381
- padding: calc(1px * var(--outline-scale, 1))
382
- calc(6px * var(--outline-scale, 1));
383
- border: calc(1px * var(--outline-scale, 1)) solid var(--color-border);
384
- border-radius: var(--radius-pill);
385
- background: var(--color-surface);
386
- color: var(--color-text-secondary);
387
- font: inherit;
388
- cursor: pointer;
389
- }
390
-
391
- .frame-theme:hover {
392
- color: var(--color-text);
393
- }
394
-
395
- .frame iframe {
396
- display: block;
397
- border: 1px solid var(--color-border);
398
- border-radius: 2px;
399
- }
400
-
401
- /* The frame's handle, since a press inside the frame picks an element. */
402
- .frame-label {
403
- cursor: move;
404
- touch-action: none;
405
- }
406
-
407
- .frame[data-dragging='true'] .frame-label {
408
- cursor: grabbing;
409
- }
410
-
411
- .frame-body {
412
- position: relative;
413
- }
414
-
415
- /* Inset by the iframe border, so a box lines up with the element it marks. */
416
- .element-outline {
417
- position: absolute;
418
- translate: 1px 1px;
419
- pointer-events: none;
420
- }
421
-
422
- .element-outline[data-outline='hover'] {
423
- outline: calc(1px * var(--outline-scale, 1)) dashed var(--color-accent);
424
- }
425
-
426
- /* Above its neighbors, so a frame dragged over another stays whole. */
427
- .frame[data-selected='true'] {
428
- z-index: 1;
429
- }
430
-
431
- /* A selected frame names itself in the accent, and a picked element does not. */
432
- .frame[data-selected='true']:not([data-picked]) .frame-name {
433
- color: var(--color-accent);
434
- font-weight: 600;
435
- }
436
-
437
- /*
438
- * The selected frame's or element's outline, handles, and size chip. Every
439
- * length multiplies by the outline scale, so each holds one screen size.
440
- */
441
- .selection {
442
- --handle: calc(8px * var(--outline-scale, 1));
443
- --handle-hit: calc(24px * var(--outline-scale, 1));
444
- position: absolute;
445
- pointer-events: none;
446
- outline: calc(1px * var(--outline-scale, 1)) solid var(--color-accent);
447
- }
448
-
449
- /* Inset by the iframe border, so the box lines up with the element it marks. */
450
- .selection[data-selection='element'] {
451
- translate: 1px 1px;
452
- }
453
-
454
- /* A 24 pixel hit area around an 8 pixel square, per the target size minimum. */
455
- .selection-handle {
456
- position: absolute;
457
- width: var(--handle-hit);
458
- height: var(--handle-hit);
459
- margin: calc(var(--handle-hit) / -2);
460
- pointer-events: auto;
461
- touch-action: none;
462
- }
463
-
464
- .selection-handle::after {
465
- content: '';
466
- position: absolute;
467
- inset: calc((var(--handle-hit) - var(--handle)) / 2);
468
- border: calc(1px * var(--outline-scale, 1)) solid var(--color-accent);
469
- background: var(--color-background);
470
- }
471
-
472
- .selection-handle[data-handle='nw'] {
473
- top: 0;
474
- left: 0;
475
- cursor: nwse-resize;
476
- }
477
-
478
- .selection-handle[data-handle='ne'] {
479
- top: 0;
480
- left: 100%;
481
- cursor: nesw-resize;
482
- }
483
-
484
- .selection-handle[data-handle='sw'] {
485
- top: 100%;
486
- left: 0;
487
- cursor: nesw-resize;
488
- }
489
-
490
- .selection-handle[data-handle='se'] {
491
- top: 100%;
492
- left: 100%;
493
- cursor: nwse-resize;
494
- }
495
-
496
- .selection-chip {
497
- position: absolute;
498
- top: calc(100% + 8px * var(--outline-scale, 1));
499
- left: 50%;
500
- translate: -50% 0;
501
- padding: calc(2px * var(--outline-scale, 1))
502
- calc(5px * var(--outline-scale, 1));
503
- border-radius: calc(3px * var(--outline-scale, 1));
504
- background: var(--color-accent);
505
- color: var(--color-background);
506
- font-family: var(--type-code-family);
507
- font-size: calc(11px * var(--outline-scale, 1));
508
- line-height: 1.3;
509
- font-variant-numeric: tabular-nums;
510
- white-space: nowrap;
511
- }
512
-
513
- .frame:focus-visible {
514
- outline: 2px solid var(--color-accent);
515
- outline-offset: 6px;
516
- }
517
-
518
- .toolbar {
519
- position: absolute;
520
- right: var(--space-md);
521
- bottom: var(--space-md);
522
- display: flex;
523
- align-items: center;
524
- gap: var(--space-xs);
525
- padding: var(--space-xs);
526
- border: 1px solid var(--color-border);
527
- border-radius: var(--radius-panel);
528
- background: var(--color-chrome);
529
- }
530
-
531
- .tools {
532
- position: absolute;
533
- top: var(--space-md);
534
- left: var(--space-md);
535
- display: flex;
536
- flex-direction: column;
537
- gap: 2px;
538
- padding: var(--space-xs);
539
- border: 1px solid var(--color-border);
540
- border-radius: var(--radius-panel);
541
- background: var(--color-chrome);
542
- }
543
-
544
- .tool-button {
545
- display: grid;
546
- place-items: center;
547
- width: 28px;
548
- height: 28px;
549
- padding: 0;
550
- border: 0;
551
- border-radius: var(--radius-action);
552
- background: transparent;
553
- color: var(--color-text-secondary);
554
- cursor: pointer;
555
- }
556
-
557
- .tool-button svg {
558
- width: 16px;
559
- height: 16px;
560
- fill: none;
561
- stroke: currentColor;
562
- stroke-width: 1.3;
563
- stroke-linejoin: round;
564
- stroke-linecap: round;
565
- }
566
-
567
- .tool-button[data-tool='move'] svg {
568
- fill: currentColor;
569
- }
570
-
571
- .tool-button:hover {
572
- color: var(--color-text);
573
- background: var(--color-surface);
574
- }
575
-
576
- .tool-button[aria-pressed='true'] {
577
- color: var(--color-text);
578
- background: var(--color-border);
579
- }
580
-
581
- .tool-button:disabled {
582
- opacity: 0.4;
583
- background: transparent;
584
- cursor: not-allowed;
585
- }
586
-
587
- .tools-divider {
588
- height: 1px;
589
- margin: 2px var(--space-xs);
590
- background: var(--color-border);
591
- }
592
-
593
- .history-notice {
594
- position: absolute;
595
- top: var(--space-md);
596
- left: 50%;
597
- max-width: min(28rem, calc(100% - 8rem));
598
- margin: 0;
599
- padding: var(--space-xs) var(--space-sm);
600
- border: 1px solid var(--color-border);
601
- border-radius: var(--radius-panel);
602
- background: var(--color-chrome);
603
- color: var(--color-text);
604
- transform: translateX(-50%);
605
- }
606
-
607
- .zoom {
608
- min-width: 3.5rem;
609
- text-align: center;
610
- font-variant-numeric: tabular-nums;
611
- color: var(--color-text-secondary);
612
- }
613
-
614
- @media (max-width: 900px) {
615
- .shell {
616
- grid-template-columns: 12rem minmax(0, 1fr);
617
- }
618
-
619
- .panel-right,
620
- .panel-handle {
621
- display: none;
622
- }
623
- }
624
-
625
- @media (max-width: 600px) {
626
- .shell {
627
- grid-template-columns: minmax(0, 1fr);
628
- grid-template-rows: auto minmax(0, 1fr);
629
- }
630
-
631
- .panel-left {
632
- max-height: 40vh;
633
- border-right: 0;
634
- border-bottom: 1px solid var(--color-border);
635
- }
636
- }
637
-
638
- /* Two classes outrank every width's own columns, so hiding holds at each. */
639
- .shell.panels-hidden {
640
- grid-template-columns: minmax(0, 1fr);
641
- grid-template-rows: minmax(0, 1fr);
642
- }
643
-
644
- .shell.panels-hidden > .panel {
645
- display: none;
646
- }
647
-
648
- .frame-row {
649
- display: flex;
650
- align-items: center;
651
- }
652
-
653
- .frame-row .row {
654
- flex: 1;
655
- min-width: 0;
656
- }
657
-
658
- .disclosure {
659
- flex: none;
660
- width: 24px;
661
- height: 24px;
662
- padding: 0;
663
- border: 0;
664
- border-radius: var(--radius-action);
665
- background: none;
666
- color: var(--color-muted);
667
- font: inherit;
668
- cursor: pointer;
669
- }
670
-
671
- .disclosure:hover {
672
- background: var(--color-surface);
673
- color: var(--color-text);
674
- }
675
-
676
- .layers {
677
- margin: 0;
678
- padding: 0 0 0 var(--space-sm);
679
- list-style: none;
680
- }
681
-
682
- .layers-root {
683
- padding-left: var(--space-lg);
684
- }
685
-
686
- .layer {
687
- min-height: 24px;
688
- }
689
-
690
- .row-meta.layer-text {
691
- flex-shrink: 1;
692
- min-width: 0;
693
- overflow: hidden;
694
- text-overflow: ellipsis;
695
- white-space: nowrap;
696
- }
697
-
698
- .tabs {
699
- display: flex;
700
- gap: 2px;
701
- margin-top: var(--space-sm);
702
- padding: 2px;
703
- border-radius: var(--radius-action);
704
- background: var(--color-surface);
705
- }
706
-
707
- .tab {
708
- flex: 1;
709
- min-height: 24px;
710
- border: 0;
711
- border-radius: var(--radius-action);
712
- background: transparent;
713
- color: var(--color-text-secondary);
714
- font: inherit;
715
- cursor: pointer;
716
- }
717
-
718
- .tab:hover {
719
- color: var(--color-text);
720
- }
721
-
722
- .tab[aria-selected='true'] {
723
- background: var(--color-chrome);
724
- color: var(--color-text);
725
- }
726
-
727
- .tokens {
728
- list-style: none;
729
- margin: 0;
730
- padding: 0;
731
- display: flex;
732
- flex-direction: column;
733
- gap: 2px;
734
- }
735
-
736
- .token {
737
- display: flex;
738
- align-items: center;
739
- gap: var(--space-sm);
740
- min-height: 24px;
741
- padding: 0 var(--space-sm);
742
- }
743
-
744
- .token .row-label {
745
- flex: 1;
746
- min-width: 0;
747
- }
748
-
749
- .token-value {
750
- max-width: 45%;
751
- overflow: hidden;
752
- text-overflow: ellipsis;
753
- white-space: nowrap;
754
- }
755
-
756
- .swatch {
757
- flex: none;
758
- width: 14px;
759
- height: 14px;
760
- border: 1px solid var(--color-border);
761
- border-radius: 4px;
762
- }