@filipgutica/design-system 1.0.4 → 1.0.6

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/tokens.json CHANGED
@@ -213,6 +213,434 @@
213
213
  "duration": "180ms",
214
214
  "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
215
215
  }
216
+ },
217
+ "mauve": {
218
+ "light": {
219
+ "color-project": "#6c5267",
220
+ "color-project-dark": "#d1b3c8",
221
+ "font-ui": "\"IBM Plex Sans\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
222
+ "font-mono": "\"IBM Plex Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
223
+ "color-bg": "#f4f5f6",
224
+ "color-surface": "#e9ebed",
225
+ "color-surface-raised": "#fbfbfc",
226
+ "color-surface-muted": "#e2e5e8",
227
+ "color-well": "#e2e5e8",
228
+ "color-field-bg": "#fbfbfc",
229
+ "color-field-edge": "#d3d8dd",
230
+ "shadow-field": "none",
231
+ "color-control-thumb": "#fbfbfc",
232
+ "color-nav-current": "color-mix(in srgb, #6c5267 14%, #fbfbfc)",
233
+ "color-nav-current-text": "#6c5267",
234
+ "color-segmented-current-text": "#6c5267",
235
+ "color-row-hover": "#e2e5e8",
236
+ "color-row-selected": "#fbfbfc",
237
+ "color-border-subtle": "#d3d8dd",
238
+ "color-border": "#6d747b",
239
+ "color-text": "#101315",
240
+ "color-muted": "#50575e",
241
+ "color-overlay": "rgb(0 0 0 / 42%)",
242
+ "color-accent": "#6c5267",
243
+ "color-accent-text": "#f4f5f6",
244
+ "color-accent-hover": "#101315",
245
+ "color-button-hover": "color-mix(in srgb, #6c5267 85%, #101315)",
246
+ "color-link": "#0b5f7c",
247
+ "color-focus": "#6c5267",
248
+ "focus-width": "2px",
249
+ "focus-offset": "3px",
250
+ "color-success": "#157249",
251
+ "color-warning": "#86532e",
252
+ "color-error": "#bd342b",
253
+ "color-info": "#175cd3",
254
+ "color-success-surface": "#d9e5e1",
255
+ "color-warning-surface": "#e7e2de",
256
+ "color-error-surface": "#efe4e4",
257
+ "color-info-surface": "#d9e3f2",
258
+ "color-command-bg": "color-mix(in srgb, #6c5267 25%, #101010)",
259
+ "color-command-border": "transparent",
260
+ "color-terminal": "#0a0c0e",
261
+ "color-terminal-text": "#e6e9eb",
262
+ "color-terminal-border": "#2a3036",
263
+ "color-terminal-caption": "#13171a",
264
+ "color-terminal-caption-text": "#c9d0d6",
265
+ "shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
266
+ "color-code": "#e9ebed",
267
+ "color-code-text": "#101315",
268
+ "color-syntax-keyword": "#715b42",
269
+ "color-syntax-string": "#346347",
270
+ "color-syntax-number": "#86532e",
271
+ "color-syntax-comment": "#626772",
272
+ "text-xs": "0.75rem",
273
+ "text-sm": "0.8125rem",
274
+ "text-md": "0.875rem",
275
+ "text-lg": "1rem",
276
+ "text-xl": "1.25rem",
277
+ "text-2xl": "1.5rem",
278
+ "text-3xl": "2.75rem",
279
+ "text-reading": "1rem",
280
+ "text-display": "3.5rem",
281
+ "text-display-sm": "2.125rem",
282
+ "leading-tight": "1.25",
283
+ "leading": "1.6",
284
+ "weight-regular": "400",
285
+ "weight-medium": "500",
286
+ "weight-semibold": "600",
287
+ "tracking-tight": "-0.03em",
288
+ "text-code": "0.84375rem",
289
+ "space-1": "0.25rem",
290
+ "space-2": "0.5rem",
291
+ "space-3": "0.75rem",
292
+ "space-4": "1rem",
293
+ "space-5": "1.25rem",
294
+ "space-6": "1.5rem",
295
+ "space-8": "2rem",
296
+ "space-12": "3rem",
297
+ "space-16": "4rem",
298
+ "space-20": "5rem",
299
+ "space-24": "6rem",
300
+ "control-sm": "2rem",
301
+ "control-md": "2.25rem",
302
+ "control-lg": "2.75rem",
303
+ "row": "2.25rem",
304
+ "measure": "68ch",
305
+ "page-max": "960px",
306
+ "page-wide": "1120px",
307
+ "sidebar": "224px",
308
+ "radius-inline": "6px",
309
+ "radius-control": "999px",
310
+ "radius-panel": "16px",
311
+ "radius-field": "10px",
312
+ "radius-pill": "999px",
313
+ "shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
314
+ "shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
315
+ "shadow-sink": "inset 1.2px 1.2px 3.6px rgb(130 142 158 / 35%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 80%)",
316
+ "shadow-dialog": "0 8px 24px rgb(16 16 24 / 12%), 0 0 0 1px #d3d8dd",
317
+ "shadow-nav-current": "0 1px 3px rgb(130 142 158 / 40%)",
318
+ "shadow-field-focus": "inset 0 0 0 2px color-mix(in srgb, #6c5267 18%, transparent)",
319
+ "shadow-field-focus-invalid": "inset 0 0 0 2px color-mix(in srgb, #bd342b 18%, transparent)",
320
+ "duration-fast": "120ms",
321
+ "duration": "180ms",
322
+ "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
323
+ },
324
+ "dark": {
325
+ "color-project": "#d1b3c8",
326
+ "color-project-dark": "#d1b3c8",
327
+ "font-ui": "\"IBM Plex Sans\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
328
+ "font-mono": "\"IBM Plex Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
329
+ "color-bg": "#0d1012",
330
+ "color-surface": "#13171a",
331
+ "color-surface-raised": "#181d21",
332
+ "color-surface-muted": "#20262b",
333
+ "color-well": "color-mix(in srgb, #0d1012 87.5%, black)",
334
+ "color-field-bg": "color-mix(in srgb, #0d1012 87.5%, black)",
335
+ "color-field-edge": "#262d33",
336
+ "shadow-field": "inset 1.2px 1.2px 3.6px rgb(0 0 0 / 55%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 5%)",
337
+ "color-control-thumb": "color-mix(in srgb, #181d21 88%, white)",
338
+ "color-nav-current": "color-mix(in srgb, #d1b3c8 20%, transparent)",
339
+ "color-nav-current-text": "#d1b3c8",
340
+ "color-segmented-current-text": "#d1b3c8",
341
+ "color-row-hover": "#20262b",
342
+ "color-row-selected": "#181d21",
343
+ "color-border-subtle": "#262d33",
344
+ "color-border": "#78818a",
345
+ "color-text": "#e6e9eb",
346
+ "color-muted": "#9aa3ab",
347
+ "color-overlay": "rgb(0 0 0 / 62%)",
348
+ "color-accent": "#d1b3c8",
349
+ "color-accent-text": "#0d1012",
350
+ "color-accent-hover": "#e6e9eb",
351
+ "color-button-hover": "color-mix(in srgb, #d1b3c8 85%, #e6e9eb)",
352
+ "color-link": "#67c1df",
353
+ "color-focus": "#d1b3c8",
354
+ "focus-width": "2px",
355
+ "focus-offset": "3px",
356
+ "color-success": "#4cc38a",
357
+ "color-warning": "#e2a54b",
358
+ "color-error": "#f0776c",
359
+ "color-info": "#84adff",
360
+ "color-success-surface": "#172d25",
361
+ "color-warning-surface": "#2f281b",
362
+ "color-error-surface": "#312020",
363
+ "color-info-surface": "#202938",
364
+ "color-command-bg": "color-mix(in srgb, #d1b3c8 16%, black)",
365
+ "color-command-border": "color-mix(in srgb, #d1b3c8 28%, black)",
366
+ "color-terminal": "#0a0c0e",
367
+ "color-terminal-text": "#e6e9eb",
368
+ "color-terminal-border": "#2a3036",
369
+ "color-terminal-caption": "#13171a",
370
+ "color-terminal-caption-text": "#c9d0d6",
371
+ "shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
372
+ "color-code": "#13171a",
373
+ "color-code-text": "#e6e9eb",
374
+ "color-syntax-keyword": "#d8c2a5",
375
+ "color-syntax-string": "#a8bd9c",
376
+ "color-syntax-number": "#d5b98c",
377
+ "color-syntax-comment": "#a0a6b1",
378
+ "text-xs": "0.75rem",
379
+ "text-sm": "0.8125rem",
380
+ "text-md": "0.875rem",
381
+ "text-lg": "1rem",
382
+ "text-xl": "1.25rem",
383
+ "text-2xl": "1.5rem",
384
+ "text-3xl": "2.75rem",
385
+ "text-reading": "1rem",
386
+ "text-display": "3.5rem",
387
+ "text-display-sm": "2.125rem",
388
+ "leading-tight": "1.25",
389
+ "leading": "1.6",
390
+ "weight-regular": "400",
391
+ "weight-medium": "500",
392
+ "weight-semibold": "600",
393
+ "tracking-tight": "-0.03em",
394
+ "text-code": "0.84375rem",
395
+ "space-1": "0.25rem",
396
+ "space-2": "0.5rem",
397
+ "space-3": "0.75rem",
398
+ "space-4": "1rem",
399
+ "space-5": "1.25rem",
400
+ "space-6": "1.5rem",
401
+ "space-8": "2rem",
402
+ "space-12": "3rem",
403
+ "space-16": "4rem",
404
+ "space-20": "5rem",
405
+ "space-24": "6rem",
406
+ "control-sm": "2rem",
407
+ "control-md": "2.25rem",
408
+ "control-lg": "2.75rem",
409
+ "row": "2.25rem",
410
+ "measure": "68ch",
411
+ "page-max": "960px",
412
+ "page-wide": "1120px",
413
+ "sidebar": "224px",
414
+ "radius-inline": "6px",
415
+ "radius-control": "999px",
416
+ "radius-panel": "16px",
417
+ "radius-field": "10px",
418
+ "radius-pill": "999px",
419
+ "shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
420
+ "shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
421
+ "shadow-sink": "inset 1.2px 1.2px 3.6px rgb(0 0 0 / 55%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 5%)",
422
+ "shadow-dialog": "0 8px 24px rgb(0 0 0 / 45%), 0 0 0 1px #262d33",
423
+ "shadow-nav-current": "0 1px 2px rgb(0 0 0 / 25%)",
424
+ "shadow-field-focus": "inset 0 0 0 2px color-mix(in srgb, #d1b3c8 18%, transparent)",
425
+ "shadow-field-focus-invalid": "inset 0 0 0 2px color-mix(in srgb, #f0776c 18%, transparent)",
426
+ "duration-fast": "120ms",
427
+ "duration": "180ms",
428
+ "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
429
+ }
430
+ },
431
+ "pine": {
432
+ "light": {
433
+ "color-project": "#00543f",
434
+ "color-project-dark": "#3fe0c0",
435
+ "font-ui": "\"IBM Plex Sans\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
436
+ "font-mono": "\"IBM Plex Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
437
+ "color-bg": "#f4f5f6",
438
+ "color-surface": "#e9ebed",
439
+ "color-surface-raised": "#fbfbfc",
440
+ "color-surface-muted": "#e2e5e8",
441
+ "color-well": "#e2e5e8",
442
+ "color-field-bg": "#fbfbfc",
443
+ "color-field-edge": "#d3d8dd",
444
+ "shadow-field": "none",
445
+ "color-control-thumb": "#fbfbfc",
446
+ "color-nav-current": "color-mix(in srgb, #00543f 14%, #fbfbfc)",
447
+ "color-nav-current-text": "#00543f",
448
+ "color-segmented-current-text": "#00543f",
449
+ "color-row-hover": "#e2e5e8",
450
+ "color-row-selected": "#fbfbfc",
451
+ "color-border-subtle": "#d3d8dd",
452
+ "color-border": "#6d747b",
453
+ "color-text": "#101315",
454
+ "color-muted": "#50575e",
455
+ "color-overlay": "rgb(0 0 0 / 42%)",
456
+ "color-accent": "#00543f",
457
+ "color-accent-text": "#f4f5f6",
458
+ "color-accent-hover": "#101315",
459
+ "color-button-hover": "color-mix(in srgb, #00543f 85%, #101315)",
460
+ "color-link": "#0b5f7c",
461
+ "color-focus": "#00543f",
462
+ "focus-width": "2px",
463
+ "focus-offset": "3px",
464
+ "color-success": "#157249",
465
+ "color-warning": "#86532e",
466
+ "color-error": "#bd342b",
467
+ "color-info": "#175cd3",
468
+ "color-success-surface": "#d9e5e1",
469
+ "color-warning-surface": "#e7e2de",
470
+ "color-error-surface": "#efe4e4",
471
+ "color-info-surface": "#d9e3f2",
472
+ "color-command-bg": "color-mix(in srgb, #00543f 25%, #101010)",
473
+ "color-command-border": "transparent",
474
+ "color-terminal": "#0a0c0e",
475
+ "color-terminal-text": "#e6e9eb",
476
+ "color-terminal-border": "#2a3036",
477
+ "color-terminal-caption": "#13171a",
478
+ "color-terminal-caption-text": "#c9d0d6",
479
+ "shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
480
+ "color-code": "#e9ebed",
481
+ "color-code-text": "#101315",
482
+ "color-syntax-keyword": "#715b42",
483
+ "color-syntax-string": "#346347",
484
+ "color-syntax-number": "#86532e",
485
+ "color-syntax-comment": "#626772",
486
+ "text-xs": "0.75rem",
487
+ "text-sm": "0.8125rem",
488
+ "text-md": "0.875rem",
489
+ "text-lg": "1rem",
490
+ "text-xl": "1.25rem",
491
+ "text-2xl": "1.5rem",
492
+ "text-3xl": "2.75rem",
493
+ "text-reading": "1rem",
494
+ "text-display": "3.5rem",
495
+ "text-display-sm": "2.125rem",
496
+ "leading-tight": "1.25",
497
+ "leading": "1.6",
498
+ "weight-regular": "400",
499
+ "weight-medium": "500",
500
+ "weight-semibold": "600",
501
+ "tracking-tight": "-0.03em",
502
+ "text-code": "0.84375rem",
503
+ "space-1": "0.25rem",
504
+ "space-2": "0.5rem",
505
+ "space-3": "0.75rem",
506
+ "space-4": "1rem",
507
+ "space-5": "1.25rem",
508
+ "space-6": "1.5rem",
509
+ "space-8": "2rem",
510
+ "space-12": "3rem",
511
+ "space-16": "4rem",
512
+ "space-20": "5rem",
513
+ "space-24": "6rem",
514
+ "control-sm": "2rem",
515
+ "control-md": "2.25rem",
516
+ "control-lg": "2.75rem",
517
+ "row": "2.25rem",
518
+ "measure": "68ch",
519
+ "page-max": "960px",
520
+ "page-wide": "1120px",
521
+ "sidebar": "224px",
522
+ "radius-inline": "6px",
523
+ "radius-control": "999px",
524
+ "radius-panel": "16px",
525
+ "radius-field": "10px",
526
+ "radius-pill": "999px",
527
+ "shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
528
+ "shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
529
+ "shadow-sink": "inset 1.2px 1.2px 3.6px rgb(130 142 158 / 35%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 80%)",
530
+ "shadow-dialog": "0 8px 24px rgb(16 16 24 / 12%), 0 0 0 1px #d3d8dd",
531
+ "shadow-nav-current": "0 1px 3px rgb(130 142 158 / 40%)",
532
+ "shadow-field-focus": "inset 0 0 0 2px color-mix(in srgb, #00543f 18%, transparent)",
533
+ "shadow-field-focus-invalid": "inset 0 0 0 2px color-mix(in srgb, #bd342b 18%, transparent)",
534
+ "duration-fast": "120ms",
535
+ "duration": "180ms",
536
+ "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
537
+ },
538
+ "dark": {
539
+ "color-project": "#3fe0c0",
540
+ "color-project-dark": "#3fe0c0",
541
+ "font-ui": "\"IBM Plex Sans\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
542
+ "font-mono": "\"IBM Plex Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
543
+ "color-bg": "#0d1012",
544
+ "color-surface": "#13171a",
545
+ "color-surface-raised": "#181d21",
546
+ "color-surface-muted": "#20262b",
547
+ "color-well": "color-mix(in srgb, #0d1012 87.5%, black)",
548
+ "color-field-bg": "color-mix(in srgb, #0d1012 87.5%, black)",
549
+ "color-field-edge": "#262d33",
550
+ "shadow-field": "inset 1.2px 1.2px 3.6px rgb(0 0 0 / 55%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 5%)",
551
+ "color-control-thumb": "color-mix(in srgb, #181d21 88%, white)",
552
+ "color-nav-current": "color-mix(in srgb, #3fe0c0 20%, transparent)",
553
+ "color-nav-current-text": "#3fe0c0",
554
+ "color-segmented-current-text": "#3fe0c0",
555
+ "color-row-hover": "#20262b",
556
+ "color-row-selected": "#181d21",
557
+ "color-border-subtle": "#262d33",
558
+ "color-border": "#78818a",
559
+ "color-text": "#e6e9eb",
560
+ "color-muted": "#9aa3ab",
561
+ "color-overlay": "rgb(0 0 0 / 62%)",
562
+ "color-accent": "#3fe0c0",
563
+ "color-accent-text": "#0d1012",
564
+ "color-accent-hover": "#e6e9eb",
565
+ "color-button-hover": "color-mix(in srgb, #3fe0c0 85%, #e6e9eb)",
566
+ "color-link": "#67c1df",
567
+ "color-focus": "#3fe0c0",
568
+ "focus-width": "2px",
569
+ "focus-offset": "3px",
570
+ "color-success": "#4cc38a",
571
+ "color-warning": "#e2a54b",
572
+ "color-error": "#f0776c",
573
+ "color-info": "#84adff",
574
+ "color-success-surface": "#172d25",
575
+ "color-warning-surface": "#2f281b",
576
+ "color-error-surface": "#312020",
577
+ "color-info-surface": "#202938",
578
+ "color-command-bg": "color-mix(in srgb, #3fe0c0 16%, black)",
579
+ "color-command-border": "color-mix(in srgb, #3fe0c0 28%, black)",
580
+ "color-terminal": "#0a0c0e",
581
+ "color-terminal-text": "#e6e9eb",
582
+ "color-terminal-border": "#2a3036",
583
+ "color-terminal-caption": "#13171a",
584
+ "color-terminal-caption-text": "#c9d0d6",
585
+ "shadow-nav-current-dark": "0 1px 2px rgb(0 0 0 / 25%)",
586
+ "color-code": "#13171a",
587
+ "color-code-text": "#e6e9eb",
588
+ "color-syntax-keyword": "#d8c2a5",
589
+ "color-syntax-string": "#a8bd9c",
590
+ "color-syntax-number": "#d5b98c",
591
+ "color-syntax-comment": "#a0a6b1",
592
+ "text-xs": "0.75rem",
593
+ "text-sm": "0.8125rem",
594
+ "text-md": "0.875rem",
595
+ "text-lg": "1rem",
596
+ "text-xl": "1.25rem",
597
+ "text-2xl": "1.5rem",
598
+ "text-3xl": "2.75rem",
599
+ "text-reading": "1rem",
600
+ "text-display": "3.5rem",
601
+ "text-display-sm": "2.125rem",
602
+ "leading-tight": "1.25",
603
+ "leading": "1.6",
604
+ "weight-regular": "400",
605
+ "weight-medium": "500",
606
+ "weight-semibold": "600",
607
+ "tracking-tight": "-0.03em",
608
+ "text-code": "0.84375rem",
609
+ "space-1": "0.25rem",
610
+ "space-2": "0.5rem",
611
+ "space-3": "0.75rem",
612
+ "space-4": "1rem",
613
+ "space-5": "1.25rem",
614
+ "space-6": "1.5rem",
615
+ "space-8": "2rem",
616
+ "space-12": "3rem",
617
+ "space-16": "4rem",
618
+ "space-20": "5rem",
619
+ "space-24": "6rem",
620
+ "control-sm": "2rem",
621
+ "control-md": "2.25rem",
622
+ "control-lg": "2.75rem",
623
+ "row": "2.25rem",
624
+ "measure": "68ch",
625
+ "page-max": "960px",
626
+ "page-wide": "1120px",
627
+ "sidebar": "224px",
628
+ "radius-inline": "6px",
629
+ "radius-control": "999px",
630
+ "radius-panel": "16px",
631
+ "radius-field": "10px",
632
+ "radius-pill": "999px",
633
+ "shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
634
+ "shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
635
+ "shadow-sink": "inset 1.2px 1.2px 3.6px rgb(0 0 0 / 55%), inset -1.2px -1.2px 3.6px rgb(255 255 255 / 5%)",
636
+ "shadow-dialog": "0 8px 24px rgb(0 0 0 / 45%), 0 0 0 1px #262d33",
637
+ "shadow-nav-current": "0 1px 2px rgb(0 0 0 / 25%)",
638
+ "shadow-field-focus": "inset 0 0 0 2px color-mix(in srgb, #3fe0c0 18%, transparent)",
639
+ "shadow-field-focus-invalid": "inset 0 0 0 2px color-mix(in srgb, #f0776c 18%, transparent)",
640
+ "duration-fast": "120ms",
641
+ "duration": "180ms",
642
+ "ease-out": "cubic-bezier(0.2, 0.8, 0.2, 1)"
643
+ }
216
644
  }
217
645
  }
218
646
  }
@@ -39,7 +39,7 @@ Center the **container**, not every sentence. Align header, content, images, and
39
39
 
40
40
  ## Files and examples
41
41
 
42
- - `tokens.css`: the values of the Graphite Indigo theme, generated from the token source (`tokens/graphite-indigo.json`) in `@filipgutica/design-system`. To change a value, edit the JSON there and run `pnpm tokens:build`; do not edit `tokens.css` by hand. The identity inputs sit in one block at the top. Each line's `ui:` comment lists the library variables that carry that value, the line's own name first.
42
+ - `tokens.css`: the values of the default theme, Graphite Indigo, generated from the token source (`tokens/core.json` and `tokens/themes/graphite-indigo.json`) in `@filipgutica/design-system`. Other themes ship as `themes/<id>.css`, which set only the identity inputs; load one after `tokens.css`, on `:root`. To change a value, edit the JSON there and run `pnpm tokens:build`; do not edit `tokens.css` by hand. The identity inputs sit in one block at the top. Each line's `ui:` comment lists the library variables that carry that value, the line's own name first.
43
43
  - `components.md`: one spec for each component, with anatomy, states, Do and Don't lines, keyboard and screen-reader behavior, motion, and forced colors. Read it for any component work.
44
44
  - `components.html`: every component in each of its states, in plain HTML and CSS on `tokens.css`. Copy component markup and styles from there.
45
45
  - `decisions.md`: the choices behind the components, and the options they replaced.
@@ -117,13 +117,14 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
117
117
  | Role | Use for | Fill | Border | Radius | Shadow |
118
118
  | --- | --- | --- | --- | --- | --- |
119
119
  | Page | The canvas and example stages | `--color-bg` | None | None | None |
120
- | Well | Source code, screenshots, figures, and inset previews other than example stages | `--color-surface` | Source code: transparent 1px; figures: `--color-border-subtle` | `--radius-panel` | Source code: `--shadow-surface`; figures: none |
120
+ | Well | Screenshots, figures, and inset previews other than example stages | `--color-surface` | `--color-border-subtle` | `--radius-panel` | None |
121
+ | Code block | Source code: a frame that holds the header, with the source in an inset panel | Frame: `--color-surface-raised`; panel: `--color-code` | Frame: `--color-border-subtle`; panel: transparent 1px | Frame: `--radius-panel`; panel: `calc(var(--radius-panel) - var(--space-1))` | Frame: `--shadow-surface`; panel: none |
121
122
  | Panel | Cards, forms, charts, and detail views | `--color-surface-raised` | Transparent 1px | `--radius-panel` | `--shadow-surface` |
122
123
  | Field | Inputs, selects, textareas, and search fields | `--color-field-bg`; disabled: `--color-well` | `--color-field-edge` | `--radius-field` | `--shadow-field`; disabled: none |
123
124
  | Track | Segmented and switch tracks, and selected radio cards | `--color-well` | Transparent 1px | Segmented tracks: `--radius-control`; switch tracks: `--radius-pill`; radio cards: `--radius-panel` | `--shadow-sink` |
124
125
  | Floating layer | Menus, popovers, pickers, and dialogs | `--color-surface-raised` | Transparent 1px; the shadow's ring draws the edge | `--radius-panel` | `--shadow-dialog` |
125
126
 
126
- - Borders stay 1px and transparent on buttons, quiet actions, tracks, panels, and radio cards, so forced colors can draw them. Fields keep `--color-field-edge`. `--color-border` keeps unchecked checkbox and radio edges visible. The toggle card is a named exception: a visible `--color-border-subtle` edge and no rest raise. Invalid fields show a `--color-error` edge, except in forced colors, where the system edge wins. Figures, example frames, and dividers use `--color-border-subtle`.
127
+ - Borders stay 1px and transparent on buttons, quiet actions, tracks, panels, and radio cards, so forced colors can draw them. Fields keep `--color-field-edge`. `--color-border` keeps unchecked checkbox and radio edges visible. The toggle card is a named exception: a visible `--color-border-subtle` edge and no rest raise. Invalid fields show a `--color-error` edge, except in forced colors, where the system edge wins. Figures, example frames, code block frames, and dividers use `--color-border-subtle`.
127
128
  - Shape follows role. A pill acts, or sets a value in place; a rectangle is a place, or holds content. Pick a new component's radius from its role in this table, not from the component it looks like.
128
129
 
129
130
  | Role | Shape | Token | Members |
@@ -135,7 +136,7 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
135
136
  | Holds other things | 16px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, example frames, and floating layers |
136
137
 
137
138
  - A pill never holds text that can wrap. A control whose label can wrap, such as a toggle card or a radio card, is a rectangle.
138
- - Nested rectangles are concentric: a rectangle that sits closer to a rounded container's edge than the container's radius takes that radius minus the gap. Option rows in a select picker and the rows of a floating menu, such as the project menu, each `--space-1` inside a 16px panel, take `calc(var(--radius-panel) - var(--space-1))`, 12px. A shape with more room than that, such as a field in a dialog, keeps the radius of its role.
139
+ - Nested rectangles are concentric: a rectangle that sits closer to a rounded container's edge than the container's radius takes that radius minus the gap. Option rows in a select picker, the rows of a floating menu, such as the project menu, and a code block's source panel, each `--space-1` inside a 16px container, take `calc(var(--radius-panel) - var(--space-1))`, 12px. A shape with more room than that, such as a field in a dialog, keeps the radius of its role.
139
140
  - Round marks (radios, slider thumbs, badge dots, and the busy spinner) take `50%`, a fill inside a shape inherits its corners, and an edge that meets another shape takes `0`. A page writes no other literal radius.
140
141
  - Avoid nesting panels. Cards are for a few parallel self-contained options that a reader compares. Running prose belongs in open sections. Product screenshots need one frame, not a frame around a frame.
141
142
  - [Depth](#depth) gives each role its shadow. Stable hover states keep normal content quiet.
@@ -165,7 +166,7 @@ Each depth tier has one token. [`tokens.css`](tokens.css) holds every shadow val
165
166
  - Callouts carry a real caveat, not decorative emphasis.
166
167
  - Lists and properties: align short labels, values, and metadata. Use definition lists for terms and short meanings; use tables for actual comparisons.
167
168
  - Figures: number them when the prose refers to any of them, and then number them all. Place a figure beside the paragraph that explains it, once the terms it uses have been introduced.
168
- - Source code sits in a theme-matched well with syntax colours; multiline samples may have a small descriptive header and Copy action. Put useful setup context above a command; omit repeated language labels.
169
+ - Source code sits in a theme-matched panel with syntax colours, inset in the code block's frame; multiline samples may have a small descriptive header and Copy action. Put useful setup context above a command; omit repeated language labels.
169
170
  - Examples: show a live component on a stage above its code, in one frame, with Copy in the code's corner. The stage sits on the page background. See [code block with a live example](components.md#with-a-live-example).
170
171
  - A screenshot opens at full size when clicked; use a native accessible trigger and restore its focus on close.
171
172
 
@@ -67,9 +67,9 @@
67
67
  never a text glyph such as ×: a font draws a glyph's ink off its box centre.
68
68
  :where keeps the base below each component's own size and layout. */
69
69
  :where(.quiet-action) { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; font: inherit; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
70
- .quiet-action.is-hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 12%, transparent); }
71
- @media (hover: hover) { .quiet-action:hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 12%, transparent); } }
72
- .quiet-action:is(:active, .is-active):where(:not(:disabled)) { background: color-mix(in srgb, currentColor 18%, transparent); }
70
+ .quiet-action.is-hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); }
71
+ @media (hover: hover) { .quiet-action:hover:where(:not(:disabled)) { color: var(--color-text); background: color-mix(in srgb, currentColor 6%, transparent); } }
72
+ .quiet-action:is(:active, .is-active):where(:not(:disabled)) { background: color-mix(in srgb, currentColor 12%, transparent); }
73
73
  .quiet-action:disabled { opacity: 0.58; cursor: not-allowed; }
74
74
 
75
75
  /* Fields: input, textarea, select */
@@ -455,28 +455,33 @@
455
455
  .rows [role="option"][aria-selected="true"] { background: var(--color-nav-current); box-shadow: var(--shadow-nav-current); color: var(--color-nav-current-text); font-weight: var(--weight-medium); }
456
456
  @media (forced-colors: active) { .rows [role="option"][aria-selected="true"] { border-inline-start: 2px solid Highlight; } }
457
457
 
458
- /* Code block: a source well */
459
- .code { width: 100%; max-width: var(--measure); min-width: 0; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-code); color: var(--color-code-text); box-shadow: var(--shadow-surface); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
460
- .code-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); min-height: 2.5rem; padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3); border-bottom: 1px solid var(--color-border-subtle); background: var(--color-surface-raised); font-size: var(--text-xs); }
458
+ /* Code block: a frame that holds the header, with the source in an inset panel */
459
+ .code { width: 100%; max-width: var(--measure); min-width: 0; overflow: hidden; padding: var(--space-1); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-panel); background: var(--color-surface-raised); color: var(--color-code-text); box-shadow: var(--shadow-surface); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
460
+ /* The header sits on the frame, so the frame drops its top padding under one. */
461
+ .code:has(> .code-head) { padding-top: 0; }
462
+ .code-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); min-height: 2.5rem; padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3); font-size: var(--text-xs); }
461
463
  .code-head b { font-weight: var(--weight-semibold); }
462
464
  .code-head .lang { color: var(--color-muted); }
463
465
  /* Copy is a quiet action; this sets its size and place. */
464
466
  .copy { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-width: var(--control-lg); min-height: var(--control-lg); margin-left: auto; padding: var(--space-1) 0.375rem; color: inherit; }
465
- /* The code block has its own palette, so its Copy keeps the plate's text colour on hover. */
466
- .code .copy.is-hover:where(:not(:disabled)) { color: inherit; }
467
- @media (hover: hover) { .code .copy:hover:where(:not(:disabled)) { color: inherit; } }
467
+ /* Copy is muted at rest. The code block has its own palette, so on hover and while the tick shows it takes the block's text colour. */
468
+ .code .copy { color: var(--color-muted); }
469
+ .code .copy[data-copied] { color: var(--color-code-text); }
470
+ .code .copy.is-hover:where(:not(:disabled)) { color: var(--color-code-text); }
471
+ @media (hover: hover) { .code .copy:hover:where(:not(:disabled)) { color: var(--color-code-text); } }
468
472
  /* Inset: the code block clips its content. */
469
473
  .code pre:is(:focus-visible, .is-focus) { outline: var(--focus-width) solid var(--color-focus); outline-offset: calc(var(--focus-width) * -1); }
470
474
  .code .copy.quiet-action:is(:focus-visible, .is-focus) { outline-offset: calc(var(--focus-width) * -1); }
471
- .code pre { margin: 0; padding: var(--space-4); overflow: auto; max-height: 32rem; font-size: var(--text-code); line-height: 1.65; tab-size: 2; }
475
+ /* The source is an inset panel. It sits --space-1 inside the frame, so its corners are concentric with the frame's. */
476
+ .code pre { margin: 0; padding: var(--space-4); overflow: auto; max-height: 32rem; border: 1px solid transparent; border-radius: calc(var(--radius-panel) - var(--space-1)); background: var(--color-code); font-size: var(--text-code); line-height: 1.65; tab-size: 2; }
472
477
  /* Each line is a baseline-aligned row, so a prompt or line number sits on the text's baseline. */
473
478
  .code .line { display: flex; align-items: baseline; min-height: 1.65em; }
474
479
  .code .line > span { white-space: pre; }
475
480
  .code .ln { min-width: 2.5em; padding-right: 1em; flex: none; text-align: right; color: var(--color-muted); user-select: none; }
476
481
  .code .k { color: var(--color-syntax-keyword); } .code .s { color: var(--color-syntax-string); } .code .n { color: var(--color-syntax-number); } .code .c { color: var(--color-syntax-comment); }
477
- .code.compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
478
- .code.compact pre { padding: var(--space-2) var(--space-3); }
479
- .code.compact .copy { margin: var(--space-1); }
482
+ /* The panel fills the row beside Copy, so it sits --space-1 from the frame and from Copy on every side, and centres its line. */
483
+ .code.compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-1); }
484
+ .code.compact pre { align-content: center; padding: var(--space-2) var(--space-3); }
480
485
 
481
486
  /* Code block with a live example: a live stage over its source, in one frame. */
482
487
  .example { width: 100%; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-panel); background: var(--color-bg); }
@@ -485,16 +490,17 @@
485
490
  .example-stage > * { min-width: 0; }
486
491
  /* The frame draws the edge, so the source is flat and full width, with one hairline above it.
487
492
  Copy comes first in DOM order and is placed in the source's top right corner. */
488
- .example > .code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; max-width: none; border-width: 1px 0 0; border-color: var(--color-border-subtle); border-radius: 0; box-shadow: none; }
489
- .example > .code > pre { grid-row: 1; grid-column: 1; }
493
+ .example > .code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; max-width: none; padding: 0; border-width: 1px 0 0; border-radius: 0; background: var(--color-code); box-shadow: none; }
494
+ .example > .code > pre { grid-row: 1; grid-column: 1; border: 0; border-radius: 0; }
490
495
  .example > .code > .copy { grid-row: 1; grid-column: 2; margin: var(--space-1); }
491
496
 
492
497
  /* ================= Identity: terminal folio ================= */
493
498
 
494
- /* Command plate: dark in both themes and tinted with the project hue. */
495
- /* The plate is dark in both themes, so its focus ring takes the dark-theme accent, which reaches 3:1 on it. */
496
- .code.command { --color-code-text: var(--color-terminal-text); --color-focus: var(--color-project-dark); border-color: var(--color-command-border); background: var(--color-command-bg); color: var(--color-terminal-text); }
497
- .code.command .code-head { border-color: var(--color-command-border); background: transparent; color: var(--color-terminal-caption-text); }
499
+ /* Command plate: dark in both themes and tinted with the project hue. Its source panel is the plate darkened, so it reads as a panel on it. */
500
+ /* The plate is dark in both themes, so its focus ring takes the dark-theme accent, which reaches 3:1 on it,
501
+ and muted text, such as Copy at rest, takes the caption colour. */
502
+ .code.command { --color-code: color-mix(in srgb, var(--color-command-bg) 55%, var(--color-terminal)); --color-code-text: var(--color-terminal-text); --color-muted: var(--color-terminal-caption-text); --color-focus: var(--color-project-dark); border-color: var(--color-command-border); background: var(--color-command-bg); color: var(--color-terminal-text); }
503
+ .code.command .code-head { color: var(--color-terminal-caption-text); }
498
504
  .code.command .code-head .lang { color: var(--color-terminal-caption-text); }
499
505
  /* The prompt is drawn by CSS, so copied and spoken text omit it. */
500
506
  .code.command .line::before { content: "$ " / ""; flex: none; white-space: pre; color: var(--color-project-dark); user-select: none; }
@@ -544,7 +550,7 @@
544
550
  /* The ~/ mark is decorative: the empty alternative text keeps it out of the name. */
545
551
  .projects > summary::before { content: "~/" / ""; color: var(--color-project); }
546
552
  /* The open menu keeps the hover tint. :where keeps it below the quiet action's press. */
547
- :where(.projects[open]) > summary { background: color-mix(in srgb, currentColor 12%, transparent); }
553
+ :where(.projects[open]) > summary { background: color-mix(in srgb, currentColor 6%, transparent); }
548
554
  .projects .icon { transition: transform var(--duration-fast) var(--ease-out); }
549
555
  .projects[open] .icon { transform: rotate(180deg); }
550
556
  .projects .navlist { position: absolute; z-index: 3; top: 100%; left: 0; min-width: 224px; margin-top: var(--space-1); padding: var(--space-1); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface-raised); box-shadow: var(--shadow-dialog); }
@@ -798,6 +804,7 @@
798
804
  <symbol id="i-help" viewBox="0 0 16 16"><circle cx="8" cy="8" r="5.5"/><path d="M6.6 6.4a1.5 1.5 0 1 1 2 1.4c-.4.2-.6.5-.6.9M8 10.8v.2"/></symbol>
799
805
  <symbol id="i-alert" viewBox="0 0 16 16"><circle cx="8" cy="8" r="5.5"/><path d="M8 5v3.5M8 10.8v.2"/></symbol>
800
806
  <symbol id="i-check" viewBox="0 0 16 16"><circle cx="8" cy="8" r="5.5"/><path d="M5.8 8.2l1.5 1.5 2.9-3"/></symbol>
807
+ <symbol id="i-tick" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-7"/></symbol>
801
808
  <symbol id="i-expand" viewBox="0 0 16 16"><path d="M9.5 2.5h4v4M6.5 13.5h-4v-4M13.5 2.5 9 7M2.5 13.5 7 9"/></symbol>
802
809
  <symbol id="i-list" viewBox="0 0 16 16"><path d="M5.5 4.5h8M5.5 8h8M5.5 11.5h8M2.5 4.5h.01M2.5 8h.01M2.5 11.5h.01"/></symbol>
803
810
  <symbol id="i-grid" viewBox="0 0 16 16"><rect x="2.5" y="2.5" width="4.5" height="4.5" rx="1"/><rect x="9" y="2.5" width="4.5" height="4.5" rx="1"/><rect x="2.5" y="9" width="4.5" height="4.5" rx="1"/><rect x="9" y="9" width="4.5" height="4.5" rx="1"/></symbol>
@@ -1675,9 +1682,26 @@
1675
1682
  return [...lines].map((line) => [...line.childNodes].filter((n) => !(n instanceof Element && n.classList.contains('ln'))).map((n) => n.textContent).join('')).join('\n');
1676
1683
  };
1677
1684
  const status = document.getElementById('copy-status');
1685
+ // A successful copy swaps the button's icon for a tick for 1.5s, and marks the button data-copied for the
1686
+ // colour. A repeat click restarts the wait, and a failure puts the icon back at once. The label and
1687
+ // accessible name do not change.
1688
+ const ticks = new WeakMap();
1689
+ const showCopied = (button, ok) => {
1690
+ const use = button.querySelector('.icon use');
1691
+ use.dataset.icon ??= use.getAttribute('href');
1692
+ const restore = () => { use.setAttribute('href', use.dataset.icon); delete button.dataset.copied; };
1693
+ clearTimeout(ticks.get(button));
1694
+ if (!ok) { restore(); return; }
1695
+ use.setAttribute('href', '#i-tick');
1696
+ button.dataset.copied = '';
1697
+ ticks.set(button, setTimeout(restore, 1500));
1698
+ };
1678
1699
  document.querySelectorAll('[data-copy]').forEach((button) => button.addEventListener('click', async () => {
1679
1700
  const text = copyText(document.getElementById(button.dataset.copy));
1680
- try { await navigator.clipboard.writeText(text); status.textContent = 'Copied.'; } catch (e) { status.textContent = 'Copy failed. Select the text instead.'; }
1701
+ let ok = true;
1702
+ try { await navigator.clipboard.writeText(text); } catch (e) { ok = false; }
1703
+ status.textContent = ok ? 'Copied.' : 'Copy failed. Select the text instead.';
1704
+ showCopied(button, ok);
1681
1705
  }));
1682
1706
 
1683
1707
  // Live dialog and drawer: native modal dialogs return focus to the trigger on close.
@@ -1948,10 +1972,13 @@
1948
1972
  document.getElementById('section-menu').addEventListener('click', (e) => openDrawer({ byPointer: e.detail > 0 }));
1949
1973
  document.getElementById('section-find').addEventListener('click', () => openDrawer({ toFind: true }));
1950
1974
 
1951
- // Copy link: writes the component's URL and announces the result.
1975
+ // Copy link: writes the component's URL, announces the result, and shows a tick as Copy does.
1952
1976
  document.querySelectorAll('[data-copy-link]').forEach((button) => button.addEventListener('click', async () => {
1953
1977
  const url = new URL(`#${button.dataset.copyLink}`, location.href).href;
1954
- try { await navigator.clipboard.writeText(url); status.textContent = 'Link copied.'; } catch (e) { status.textContent = 'Copy failed. Use the address bar instead.'; }
1978
+ let ok = true;
1979
+ try { await navigator.clipboard.writeText(url); } catch (e) { ok = false; }
1980
+ status.textContent = ok ? 'Link copied.' : 'Copy failed. Use the address bar instead.';
1981
+ showCopied(button, ok);
1955
1982
  }));
1956
1983
  })();
1957
1984
  </script>