@brignano/design 0.8.0 → 0.9.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 (61) hide show
  1. package/DECISIONS.md +126 -0
  2. package/DESIGN.md +269 -9
  3. package/README.md +3 -2
  4. package/components.css +175 -61
  5. package/icons/LICENSE +43 -0
  6. package/icons/arrow-down.svg +15 -0
  7. package/icons/arrow-left.svg +15 -0
  8. package/icons/arrow-right.svg +15 -0
  9. package/icons/arrow-up-down.svg +17 -0
  10. package/icons/arrow-up.svg +15 -0
  11. package/icons/bell.svg +15 -0
  12. package/icons/calendar.svg +17 -0
  13. package/icons/check.svg +14 -0
  14. package/icons/chevron-down.svg +14 -0
  15. package/icons/chevron-left.svg +14 -0
  16. package/icons/chevron-right.svg +14 -0
  17. package/icons/chevron-up.svg +14 -0
  18. package/icons/circle-check.svg +15 -0
  19. package/icons/circle-help.svg +16 -0
  20. package/icons/circle-x.svg +16 -0
  21. package/icons/clock.svg +15 -0
  22. package/icons/copy.svg +15 -0
  23. package/icons/download.svg +16 -0
  24. package/icons/ellipsis-vertical.svg +16 -0
  25. package/icons/ellipsis.svg +16 -0
  26. package/icons/external-link.svg +16 -0
  27. package/icons/eye-off.svg +17 -0
  28. package/icons/eye.svg +15 -0
  29. package/icons/funnel.svg +14 -0
  30. package/icons/house.svg +15 -0
  31. package/icons/info.svg +16 -0
  32. package/icons/link.svg +15 -0
  33. package/icons/lock.svg +15 -0
  34. package/icons/log-out.svg +16 -0
  35. package/icons/map-pin.svg +15 -0
  36. package/icons/menu.svg +16 -0
  37. package/icons/minus.svg +14 -0
  38. package/icons/monitor.svg +16 -0
  39. package/icons/moon.svg +14 -0
  40. package/icons/pencil.svg +15 -0
  41. package/icons/plus.svg +15 -0
  42. package/icons/refresh-cw.svg +17 -0
  43. package/icons/search.svg +15 -0
  44. package/icons/settings.svg +15 -0
  45. package/icons/sun.svg +22 -0
  46. package/icons/trash-2.svg +18 -0
  47. package/icons/triangle-alert.svg +16 -0
  48. package/icons/undo-2.svg +15 -0
  49. package/icons/upload.svg +16 -0
  50. package/icons/user.svg +15 -0
  51. package/icons/x.svg +15 -0
  52. package/package.json +3 -1
  53. package/product-page.css +31 -28
  54. package/tailwind.css +21 -0
  55. package/templates/app-shell.css +346 -0
  56. package/templates/article.css +7 -7
  57. package/templates/changelog.css +2 -2
  58. package/templates/error.css +81 -0
  59. package/templates/legal.css +3 -3
  60. package/templates/settings.css +95 -0
  61. package/tokens.css +123 -14
package/components.css CHANGED
@@ -44,7 +44,7 @@
44
44
  padding: 0 var(--s4);
45
45
  font: inherit;
46
46
  font-size: var(--text-sm);
47
- font-weight: 500;
47
+ font-weight: var(--weight-medium);
48
48
  line-height: 20px;
49
49
  white-space: nowrap;
50
50
  text-decoration: none;
@@ -52,10 +52,16 @@
52
52
  cursor: pointer;
53
53
  user-select: none;
54
54
  border: 1px solid var(--line-control);
55
- border-radius: var(--radius);
55
+ border-radius: var(--radius-control);
56
56
  background: transparent;
57
57
  color: var(--ink);
58
- transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
58
+ transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), scale var(--dur-fast) var(--ease);
59
+ }
60
+ /* Pressing a button answers the press (ADR-0015): it settles by 2%. Not on a
61
+ disabled or busy one, and tokens.css makes it instant under reduced motion. */
62
+ .btn:active:not(:disabled, [aria-disabled='true'], [aria-busy='true']) { scale: 0.98; }
63
+ @media (prefers-reduced-motion: reduce) {
64
+ .btn:active:not(:disabled, [aria-disabled='true'], [aria-busy='true']) { scale: none; }
59
65
  }
60
66
  .btn > svg { flex: none; width: 1.25em; height: 1.25em; }
61
67
  .btn:focus-visible { outline: 2px solid var(--i-ink); outline-offset: 2px; }
@@ -71,10 +77,12 @@
71
77
  .btn-ghost { border-color: transparent; background: transparent; color: var(--i-ink); }
72
78
  .btn-ghost:is(:hover, :active) { background: var(--i-surface); }
73
79
 
74
- /* Danger has no hover/pressed tokens of its own: hover deepens to
75
- --danger-ink, the same direction --i-hover takes in each theme. */
76
- .btn-danger { border-color: transparent; background: var(--danger); color: var(--on-i); }
77
- .btn-danger:hover, .btn-danger:active { background: var(--danger-ink); }
80
+ /* Danger has its own fills (--danger-fill…), not the state hue: in dark
81
+ --danger is a pale rust meant to be read, the button a deep one meant
82
+ to be pressed. Hover and press step darker, like the primary. */
83
+ .btn-danger { border-color: transparent; background: var(--danger-fill); color: var(--on-danger); }
84
+ .btn-danger:hover { background: var(--danger-fill-hover); }
85
+ .btn-danger:active { background: var(--danger-fill-pressed); }
78
86
 
79
87
  .btn-sm { min-height: 32px; padding: 0 var(--s3); font-size: var(--text-xs); line-height: 16px; }
80
88
  .btn-lg { min-height: 48px; padding: 0 var(--s5); font-size: var(--text-base); line-height: 24px; }
@@ -111,7 +119,7 @@
111
119
  @keyframes spinner-spin { to { transform: rotate(1turn); } }
112
120
 
113
121
  .link { color: var(--i-ink); text-decoration: underline; text-underline-offset: 3px; border-radius: 2px; }
114
- .link:hover { color: var(--i-hover); }
122
+ .link:hover { color: var(--i-ink-hover); }
115
123
  .link:focus-visible { outline: 2px solid var(--i-ink); outline-offset: 2px; }
116
124
 
117
125
  @media (pointer: coarse) {
@@ -145,10 +153,10 @@
145
153
  name the unit in the label too. When to validate is your script's call. */
146
154
  @layer brignano.components {
147
155
  .field { display: grid; align-content: start; gap: 6px; min-width: 0; }
148
- .field > label { font-size: var(--text-sm); font-weight: 500; line-height: 1.4; color: var(--ink); }
149
- .field-optional { font-weight: 400; color: var(--ink-soft); }
150
- .field-hint { margin: 0; font-size: var(--text-sm); line-height: 1.4; color: var(--ink-soft); }
151
- .field-error { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: var(--text-sm); line-height: 1.4; color: var(--danger-ink); }
156
+ .field > label { font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: var(--leading-ui); color: var(--ink); }
157
+ .field-optional { font-weight: var(--weight-regular); color: var(--ink-soft); }
158
+ .field-hint { margin: 0; font-size: var(--text-sm); line-height: var(--leading-ui); color: var(--ink-soft); }
159
+ .field-error { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: var(--text-sm); line-height: var(--leading-ui); color: var(--danger-ink); }
152
160
  .field-error > svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--danger); }
153
161
  .field-error[hidden] { display: none; }
154
162
 
@@ -160,7 +168,7 @@
160
168
  min-height: 40px;
161
169
  margin: 0;
162
170
  border: 1px solid var(--line-control);
163
- border-radius: var(--radius-sm);
171
+ border-radius: var(--radius-control);
164
172
  background-color: var(--card);
165
173
  color: var(--ink);
166
174
  transition: border-color var(--dur-fast) var(--ease);
@@ -247,7 +255,7 @@
247
255
  real radios inside it, so arrow keys and the group name come for free. */
248
256
  @layer brignano.components {
249
257
  .choice-group { display: grid; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
250
- .choice-group > legend { margin: 0 0 6px; padding: 0; font-size: var(--text-sm); font-weight: 500; line-height: 1.4; color: var(--ink); }
258
+ .choice-group > legend { margin: 0 0 6px; padding: 0; font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: var(--leading-ui); color: var(--ink); }
251
259
 
252
260
  .choice { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s2); align-items: start; line-height: 1.5; color: var(--ink); cursor: pointer; }
253
261
  .choice > input { grid-column: 1; font: inherit; cursor: inherit; }
@@ -289,7 +297,7 @@
289
297
  .choice:has(> input[type='checkbox']:checked:disabled)::before { background-color: var(--i-disabled-ink); }
290
298
  .choice > :not(input) { grid-column: 2; }
291
299
  .choice > label { cursor: inherit; }
292
- .choice-hint { margin: 0; font-size: var(--text-sm); line-height: 1.4; color: var(--ink-soft); }
300
+ .choice-hint { margin: 0; font-size: var(--text-sm); line-height: var(--leading-ui); color: var(--ink-soft); }
293
301
  .choice > input:focus-visible { outline: 2px solid var(--i-ink); outline-offset: 2px; }
294
302
  .choice:has(> input:disabled) { color: var(--i-disabled-ink); cursor: not-allowed; }
295
303
 
@@ -333,7 +341,7 @@
333
341
  max-width: 100%;
334
342
  padding: 2px;
335
343
  border: 1px solid var(--line-control);
336
- border-radius: var(--radius);
344
+ border-radius: var(--radius-control);
337
345
  background-color: var(--card);
338
346
  }
339
347
  .segmented > label {
@@ -343,9 +351,9 @@
343
351
  justify-content: center;
344
352
  min-height: 34px;
345
353
  padding: 0 var(--s3);
346
- border-radius: calc(var(--radius) - 3px);
354
+ border-radius: calc(var(--radius-control) - 3px);
347
355
  font-size: var(--text-sm);
348
- font-weight: 500;
356
+ font-weight: var(--weight-medium);
349
357
  line-height: 20px;
350
358
  color: var(--ink);
351
359
  cursor: pointer;
@@ -420,7 +428,7 @@
420
428
  }
421
429
  .msg > svg, .banner > svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--i); }
422
430
  .msg-content { display: grid; gap: 2px; flex: 1; min-width: 0; }
423
- .msg-title { margin: 0; font-weight: 600; }
431
+ .msg-title { margin: 0; font-weight: var(--weight-semibold); }
424
432
  .msg-body { margin: 0; color: var(--ink-soft); }
425
433
  .msg-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
426
434
  /* An outlined button's --line-control edge is under 3:1 on a status wash,
@@ -481,7 +489,7 @@
481
489
  color: var(--ink-soft);
482
490
  font-family: var(--mono);
483
491
  font-size: var(--text-xs);
484
- font-weight: 500;
492
+ font-weight: var(--weight-medium);
485
493
  line-height: 16px;
486
494
  letter-spacing: .04em;
487
495
  text-transform: uppercase;
@@ -520,7 +528,7 @@
520
528
  background-color: var(--i);
521
529
  color: var(--on-i);
522
530
  font-size: 11px;
523
- font-weight: 600;
531
+ font-weight: var(--weight-semibold);
524
532
  line-height: 1;
525
533
  font-variant-numeric: tabular-nums;
526
534
  }
@@ -605,7 +613,7 @@
605
613
  .card-media { margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) 0; }
606
614
  .card-media > :is(img, video, picture, svg) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
607
615
  .card-header { display: grid; gap: var(--s1); }
608
- .card-title { margin: 0; font-size: var(--text-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
616
+ .card-title { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
609
617
  .card-title a { color: inherit; text-decoration: none; }
610
618
  .card-meta { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
611
619
  .card-body { color: var(--ink-soft); }
@@ -617,7 +625,7 @@
617
625
  .card-link { transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
618
626
  .card-link .card-title a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
619
627
  /* Zero-specificity so components that position their own parts (for example .segmented) still win. */
620
- :where(.card-link :is(a, button, input, select, textarea, label):not(.card-title a)) { position: relative; z-index: 1; }
628
+ :where(.card-link :is(a, button, input, select, textarea, label):not(.card-title a)) { position: relative; z-index: var(--z-raised); }
621
629
  .card-link:hover { background-color: var(--surface-hover); box-shadow: var(--shadow-2); }
622
630
  .card-link:hover .card-title a { text-decoration: underline; text-underline-offset: 3px; }
623
631
  /* The ring moves to the card only where :has() works; elsewhere the link keeps its own ring. */
@@ -632,6 +640,27 @@
632
640
  }
633
641
  }
634
642
 
643
+ /* ── Icon (#87) ────────────────────────────────────────────────────────────
644
+ <svg class="icon" aria-hidden="true">…</svg> paste from icons/<name>.svg
645
+ One curated set (Lucide, ISC: icons/LICENSE), drawn on a 24px grid at a
646
+ 2px stroke in currentColor, so an icon takes its text's colour. Sizes
647
+ follow the type scale at 1.25× the text they sit beside, the same ratio
648
+ .btn gives an svg: .icon-sm beside --text-sm, .icon beside body text,
649
+ .icon-lg beside --text-lg. Decorative icons take aria-hidden="true"; an
650
+ icon alone in a button needs the button's aria-label. A state icon never
651
+ stands in for its word (DESIGN.md §3). */
652
+ @layer brignano.components {
653
+ .icon {
654
+ flex: none;
655
+ display: inline-block;
656
+ width: calc(var(--text-base) * 1.25);
657
+ height: calc(var(--text-base) * 1.25);
658
+ vertical-align: -0.25em;
659
+ }
660
+ .icon-sm { width: calc(var(--text-sm) * 1.25); height: calc(var(--text-sm) * 1.25); }
661
+ .icon-lg { width: calc(var(--text-lg) * 1.25); height: calc(var(--text-lg) * 1.25); }
662
+ }
663
+
635
664
  /* ── Layout primitives (#53) ──────────────────────────────────────────────
636
665
  <main class="container"><section class="section stack gap-5">…</section></main>
637
666
  Gap-based only: no margins between children, no 12-column grid.
@@ -715,12 +744,12 @@
715
744
  position: absolute;
716
745
  top: var(--s3);
717
746
  left: var(--s4);
718
- z-index: 30;
747
+ z-index: var(--z-skip);
719
748
  padding: var(--s2) var(--s3);
720
749
  border-radius: var(--radius-sm);
721
750
  background-color: var(--card);
722
751
  color: var(--ink);
723
- font-weight: 500;
752
+ font-weight: var(--weight-medium);
724
753
  box-shadow: var(--shadow-2);
725
754
  transform: translateY(calc(-100% - var(--s5)));
726
755
  }
@@ -730,7 +759,7 @@
730
759
  container: site-header / inline-size;
731
760
  position: sticky;
732
761
  top: 0;
733
- z-index: 10;
762
+ z-index: var(--z-sticky);
734
763
  border-bottom: 1px solid var(--line);
735
764
  background-color: var(--surface-sticky);
736
765
  color: var(--ink);
@@ -752,12 +781,14 @@
752
781
  min-height: 40px;
753
782
  margin-inline-end: auto; /* pushes the nav and actions to the end */
754
783
  color: var(--ink);
755
- font-weight: 600;
784
+ font-weight: var(--weight-semibold);
756
785
  font-size: var(--text-lg);
757
- letter-spacing: -0.01em;
786
+ letter-spacing: var(--tracking-title);
758
787
  text-decoration: none;
759
788
  }
760
789
  .site-brand > :is(img, svg) { flex: none; width: 24px; height: 24px; }
790
+ /* The glyph takes the product's mark (ADR-0014); the name beside it stays ink. */
791
+ .site-brand > svg { color: var(--mark-current); }
761
792
 
762
793
  /* Wide: the popover is shown in the flow, never opened. */
763
794
  .site-nav[popover] {
@@ -782,7 +813,7 @@
782
813
  border-radius: var(--radius-sm);
783
814
  color: var(--ink-soft);
784
815
  font-size: var(--text-sm);
785
- font-weight: 500;
816
+ font-weight: var(--weight-medium);
786
817
  text-decoration: none;
787
818
  }
788
819
  .site-nav a:hover { color: var(--ink); }
@@ -842,7 +873,7 @@
842
873
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
843
874
  gap: var(--s5);
844
875
  }
845
- .site-footer-heading { margin: 0 0 var(--s2); color: var(--ink); font-size: var(--text-sm); font-weight: 600; }
876
+ .site-footer-heading { margin: 0 0 var(--s2); color: var(--ink); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
846
877
  .site-footer ul { display: grid; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
847
878
  .site-footer a { color: var(--ink-soft); text-decoration: none; }
848
879
  .site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@@ -952,7 +983,7 @@
952
983
  gap: var(--s3);
953
984
  padding: var(--s5) var(--s5) 0;
954
985
  }
955
- .dialog-title { margin: 0; padding-top: 2px; font-size: var(--text-lg); font-weight: 600; line-height: 1.4; }
986
+ .dialog-title { margin: 0; padding-top: 2px; font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-ui); }
956
987
  .dialog-header > form { display: contents; }
957
988
  .dialog-close { flex: none; margin: -6px -8px 0 auto; }
958
989
  .dialog-body {
@@ -1104,12 +1135,12 @@
1104
1135
  min-height: 36px;
1105
1136
  padding: var(--s2) var(--s3);
1106
1137
  border: 0;
1107
- border-radius: var(--radius-sm);
1138
+ border-radius: var(--radius-control);
1108
1139
  background-color: transparent;
1109
1140
  color: var(--ink);
1110
1141
  font: inherit;
1111
1142
  font-size: var(--text-sm);
1112
- line-height: 1.4;
1143
+ line-height: var(--leading-ui);
1113
1144
  text-align: start;
1114
1145
  text-decoration: none;
1115
1146
  cursor: pointer;
@@ -1186,8 +1217,8 @@
1186
1217
  color: var(--card);
1187
1218
  font-family: var(--sans);
1188
1219
  font-size: var(--text-xs);
1189
- font-weight: 500;
1190
- line-height: 1.4;
1220
+ font-weight: var(--weight-medium);
1221
+ line-height: var(--leading-ui);
1191
1222
  text-align: center;
1192
1223
  }
1193
1224
  /* A transparent strip over the gap on both block sides, so the pointer can
@@ -1273,7 +1304,7 @@
1273
1304
  @layer brignano.components {
1274
1305
  .toast-region {
1275
1306
  position: fixed;
1276
- z-index: 40;
1307
+ z-index: var(--z-toast);
1277
1308
  inset: auto var(--s4) var(--s4);
1278
1309
  display: flex;
1279
1310
  flex-direction: column;
@@ -1319,7 +1350,7 @@
1319
1350
  .toast[data-leaving] { opacity: 0; transform: translateY(8px); }
1320
1351
  .toast > svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
1321
1352
  .toast-content { display: grid; gap: 2px; flex: 1; min-width: 0; }
1322
- .toast-title { margin: 0; font-weight: 600; }
1353
+ .toast-title { margin: 0; font-weight: var(--weight-semibold); }
1323
1354
  .toast-body { margin: 0; color: var(--ink-soft); }
1324
1355
  .toast-action { flex: none; margin: -4px 0; }
1325
1356
  .toast-close { flex: none; margin: -4px -2px -4px 0; color: var(--ink-soft); }
@@ -1453,7 +1484,7 @@
1453
1484
  text-align: center;
1454
1485
  }
1455
1486
  .empty > svg { width: 32px; height: 32px; margin-bottom: var(--s2); color: var(--ink-soft); }
1456
- .empty-title { margin: 0; font-size: var(--text-base); font-weight: 600; color: var(--ink); }
1487
+ .empty-title { margin: 0; font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--ink); }
1457
1488
  .empty-body { max-width: 32ch; margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
1458
1489
  .empty > .btn { margin-top: var(--s3); }
1459
1490
 
@@ -1505,7 +1536,7 @@
1505
1536
  .table caption {
1506
1537
  caption-side: top;
1507
1538
  text-align: left;
1508
- font-weight: 600;
1539
+ font-weight: var(--weight-semibold);
1509
1540
  padding: 0 0 var(--s2);
1510
1541
  }
1511
1542
  .table th,
@@ -1516,14 +1547,15 @@
1516
1547
  border-bottom: 1px solid var(--line);
1517
1548
  }
1518
1549
  .table th {
1519
- font-weight: 600;
1550
+ font-weight: var(--weight-semibold);
1520
1551
  color: var(--ink-soft);
1521
1552
  white-space: nowrap;
1522
1553
  border-bottom-color: var(--line-strong);
1523
1554
  }
1524
1555
  .table tbody tr:hover { background: var(--surface-hover); }
1525
1556
  .table .num { text-align: right; white-space: nowrap; }
1526
- .table tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); border-bottom: 0; }
1557
+ .table th.num { font-family: inherit; } /* the figures are mono (.num); their column's label is not */
1558
+ .table tfoot td { font-weight: var(--weight-semibold); border-top: 1px solid var(--line-strong); border-bottom: 0; }
1527
1559
 
1528
1560
  /* Sortable header: the <button> fills the cell; the arrow is decoration,
1529
1561
  aria-sort on the <th> is what assistive tech reads. */
@@ -1542,7 +1574,8 @@
1542
1574
  .table th.num[aria-sort] > button { justify-content: flex-end; }
1543
1575
  .table th[aria-sort] > button:hover { color: var(--ink); }
1544
1576
  .table th[aria-sort] > button:focus-visible { outline: 2px solid var(--i-ink); outline-offset: -2px; }
1545
- .table th[aria-sort] > button::after { content: '↕' / ''; color: var(--slate); }
1577
+ /* \FE0E asks for the text glyph: ↕ is one of the arrows phones draw as an emoji. */
1578
+ .table th[aria-sort] > button::after { content: '↕\FE0E' / ''; color: var(--slate); }
1546
1579
  .table th[aria-sort='ascending'] > button::after { content: '↑' / ''; color: var(--ink); }
1547
1580
  .table th[aria-sort='descending'] > button::after { content: '↓' / ''; color: var(--ink); }
1548
1581
  .table th[aria-sort='ascending'],
@@ -1555,7 +1588,7 @@
1555
1588
  header's scroll container, so the header only sticks when the wrap has a
1556
1589
  max-height and scrolls vertically itself. Without one, it scrolls away
1557
1590
  with the page. */
1558
- .table-sticky thead th { position: sticky; top: 0; z-index: 1; background: var(--card); }
1591
+ .table-sticky thead th { position: sticky; top: 0; z-index: var(--z-raised); background: var(--card); }
1559
1592
 
1560
1593
  .tier-marketing .table { font-size: var(--text-base); }
1561
1594
  .tier-marketing .table th,
@@ -1613,10 +1646,10 @@
1613
1646
  .stat-value {
1614
1647
  font-family: var(--mono);
1615
1648
  font-size: var(--text-2xl);
1616
- font-weight: 500;
1617
- line-height: 1.15;
1649
+ font-weight: var(--weight-medium);
1650
+ line-height: var(--leading-display);
1618
1651
  font-variant-numeric: tabular-nums;
1619
- letter-spacing: -0.01em;
1652
+ letter-spacing: var(--tracking-title);
1620
1653
  }
1621
1654
  .stat-delta { font-size: var(--text-sm); color: var(--ink-soft); }
1622
1655
  .stat-delta[data-dir]::before { margin-right: var(--s1); }
@@ -1660,7 +1693,7 @@
1660
1693
  flex: none;
1661
1694
  padding: var(--s2) var(--s3);
1662
1695
  font-size: var(--text-sm);
1663
- font-weight: 500;
1696
+ font-weight: var(--weight-medium);
1664
1697
  color: var(--ink-soft);
1665
1698
  white-space: nowrap;
1666
1699
  cursor: pointer;
@@ -1770,7 +1803,7 @@
1770
1803
  .pagination-prev:focus-visible,
1771
1804
  .pagination-next:focus-visible,
1772
1805
  .pagination-pages a:focus-visible { outline: 2px solid var(--i-ink); outline-offset: 2px; }
1773
- .pagination-pages [aria-current='page'] { color: var(--on-i); background: var(--i); font-weight: 600; }
1806
+ .pagination-pages [aria-current='page'] { color: var(--on-i); background: var(--i); font-weight: var(--weight-semibold); }
1774
1807
  .pagination-prev,
1775
1808
  .pagination-next { flex-shrink: 0; white-space: nowrap; }
1776
1809
  .pagination-prev::before { content: '←' / ''; margin-right: var(--s1); }
@@ -1796,11 +1829,11 @@
1796
1829
  box-sizing: border-box;
1797
1830
  padding: var(--s2) var(--s4);
1798
1831
  font-size: var(--text-sm);
1799
- font-weight: 500;
1832
+ font-weight: var(--weight-medium);
1800
1833
  color: var(--ink);
1801
1834
  background: var(--card);
1802
1835
  border: 1px solid var(--line-control);
1803
- border-radius: var(--radius);
1836
+ border-radius: var(--radius-control);
1804
1837
  cursor: pointer;
1805
1838
  }
1806
1839
  .load-more > button:hover,
@@ -1829,7 +1862,7 @@
1829
1862
  justify-content: space-between;
1830
1863
  gap: var(--s3);
1831
1864
  padding: var(--s3);
1832
- font-weight: 500;
1865
+ font-weight: var(--weight-medium);
1833
1866
  color: var(--ink);
1834
1867
  list-style: none;
1835
1868
  cursor: pointer;
@@ -1882,7 +1915,7 @@
1882
1915
  height: 2.5rem;
1883
1916
  overflow: hidden;
1884
1917
  font-size: var(--text-sm);
1885
- font-weight: 600;
1918
+ font-weight: var(--weight-semibold);
1886
1919
  line-height: 1;
1887
1920
  color: var(--ink);
1888
1921
  background: var(--surface-active);
@@ -1915,7 +1948,7 @@
1915
1948
  padding: .1em .4em;
1916
1949
  font-family: var(--mono);
1917
1950
  font-size: .85em;
1918
- line-height: 1.4;
1951
+ line-height: var(--leading-ui);
1919
1952
  text-align: center;
1920
1953
  color: var(--ink);
1921
1954
  background: var(--card);
@@ -1960,7 +1993,7 @@
1960
1993
  padding: var(--s1) var(--s3);
1961
1994
  font-family: var(--sans);
1962
1995
  font-size: var(--text-xs);
1963
- font-weight: 500;
1996
+ font-weight: var(--weight-medium);
1964
1997
  color: var(--ink-soft);
1965
1998
  cursor: pointer;
1966
1999
  border-radius: var(--radius-sm);
@@ -1974,7 +2007,7 @@
1974
2007
  overflow-x: auto;
1975
2008
  font-family: var(--mono);
1976
2009
  font-size: var(--text-sm);
1977
- line-height: 1.6;
2010
+ line-height: var(--leading-body);
1978
2011
  tab-size: 2;
1979
2012
  }
1980
2013
  .code-block pre:focus-visible,
@@ -2037,9 +2070,9 @@
2037
2070
  .prose > * { margin: 0; }
2038
2071
  .prose > * + * { margin-top: var(--s4); }
2039
2072
  .prose :where(h2, h3, h4) {
2040
- font-weight: 600;
2041
- line-height: 1.3;
2042
- letter-spacing: -0.01em;
2073
+ font-weight: var(--weight-semibold);
2074
+ line-height: var(--leading-title);
2075
+ letter-spacing: var(--tracking-title);
2043
2076
  scroll-margin-top: var(--s7);
2044
2077
  }
2045
2078
  .prose h2 { font-size: var(--text-xl); }
@@ -2053,7 +2086,7 @@
2053
2086
  devices without hover it always shows. */
2054
2087
  .prose .anchor {
2055
2088
  margin-left: var(--s2);
2056
- font-weight: 400;
2089
+ font-weight: var(--weight-regular);
2057
2090
  color: var(--slate);
2058
2091
  text-decoration: none;
2059
2092
  opacity: 0;
@@ -2071,9 +2104,9 @@
2071
2104
  }
2072
2105
 
2073
2106
  .prose a:not(.anchor) { color: var(--i-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
2074
- .prose a:not(.anchor):hover { color: var(--i-hover); text-decoration-thickness: 2px; }
2107
+ .prose a:not(.anchor):hover { color: var(--i-ink-hover); text-decoration-thickness: 2px; }
2075
2108
  .prose a:not(.anchor):focus-visible { outline: 2px solid var(--i-ink); outline-offset: 2px; border-radius: 2px; }
2076
- .prose strong { font-weight: 600; }
2109
+ .prose strong { font-weight: var(--weight-semibold); }
2077
2110
 
2078
2111
  .prose :where(ul, ol) { padding-left: var(--s5); }
2079
2112
  .prose li + li { margin-top: var(--s1); }
@@ -2132,3 +2165,84 @@
2132
2165
  .gap-5 { gap: var(--s5); }
2133
2166
  .gap-6 { gap: var(--s6); }
2134
2167
  }
2168
+
2169
+ /* ── Voice (ADR-0014) ───────────────────────────────────────────────────────
2170
+ What makes a screen read as one of these products (DESIGN.md §5):
2171
+
2172
+ <p class="eyebrow">Production</p> ← one per screen, above its heading
2173
+ <h1>Services</h1>
2174
+ Deployed <span class="num">2026-11-07 09:30</span> ← any number, date or code
2175
+ <p class="display">404</p> ← one heavy moment, at most
2176
+ <span class="stamp" role="img" aria-label="Anthony Brignano">A|B</span>
2177
+ <span class="rule"></span> ← the bar above a hero heading
2178
+
2179
+ The eyebrow is written in sentence case and uppercased here. .rule is the
2180
+ mark in force (--mark-current: the product's, or the family amber): it inks
2181
+ a graphic, never a control (§3). */
2182
+ @layer brignano.components {
2183
+ .eyebrow {
2184
+ margin: 0;
2185
+ font-family: var(--mono);
2186
+ font-size: var(--text-xs);
2187
+ font-weight: var(--weight-medium);
2188
+ line-height: var(--leading-ui);
2189
+ letter-spacing: var(--tracking-caps);
2190
+ text-transform: uppercase;
2191
+ color: var(--ink-soft);
2192
+ }
2193
+ .num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; } /* a date never breaks in two */
2194
+ .display {
2195
+ margin: 0;
2196
+ font-family: var(--sans);
2197
+ font-size: var(--text-4xl);
2198
+ font-weight: var(--weight-heavy);
2199
+ line-height: var(--leading-display);
2200
+ letter-spacing: calc(var(--tracking-display) * 2);
2201
+ color: var(--ink);
2202
+ }
2203
+ .stamp {
2204
+ font-family: var(--sans);
2205
+ font-weight: var(--weight-heavy);
2206
+ letter-spacing: var(--tracking-caps); /* open, not tight: closed up, the heavy bar reads as an I */
2207
+ white-space: nowrap;
2208
+ color: var(--ink);
2209
+ }
2210
+ .rule { display: block; width: 56px; height: 3px; border: 0; border-radius: 2px; background: var(--mark-current); }
2211
+ }
2212
+
2213
+ /* ── Line breaks ────────────────────────────────────────────────────────────
2214
+ A short title balances its lines, so a two-line heading doesn't end on one
2215
+ stranded word; running text avoids a last line of one word. Both are hints:
2216
+ a browser without text-wrap breaks lines as before. */
2217
+ @layer brignano.components {
2218
+ :where(.card-title, .dialog-title, .empty-title, .msg-title, .toast-title, .stat-delta),
2219
+ .prose :where(h2, h3, h4) { text-wrap: balance; }
2220
+ :where(.empty-body, .field-hint, .choice-hint),
2221
+ .prose :where(p, li, blockquote, figcaption) { text-wrap: pretty; }
2222
+ }
2223
+
2224
+ /* ── Print ──────────────────────────────────────────────────────────────────
2225
+ A receipt, a legal page or an article gets printed. tokens.css already
2226
+ forces the light theme on paper; this drops what only works on a screen
2227
+ (sticky chrome, shadows, popovers and sheets, controls that do nothing on
2228
+ paper; an open dialog still prints, since it is what the reader is looking at), keeps blocks
2229
+ whole across a page break, and writes an outside link's address after it
2230
+ in running text, where the reader can no longer follow it. */
2231
+ @layer brignano.components {
2232
+ @media print {
2233
+ .site-header { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
2234
+ .skip-link, .site-menu-button, .toast-region, .tooltip, .popover, .sheet, .msg-close, .dialog-close,
2235
+ .code-block-copy, .tag-remove, .pagination, .load-more { display: none; }
2236
+ .card, .stat, .msg, .code-block, .table-wrap, .dialog { box-shadow: none; }
2237
+ .card, .stat, .msg, .figure, .blockquote, .kv > div, .table tr { break-inside: avoid; }
2238
+ .table-wrap { overflow: visible; }
2239
+ .code-block pre, .prose pre { white-space: pre-wrap; overflow: visible; }
2240
+ .prose :where(h2, h3, h4) { break-after: avoid; }
2241
+ .prose a[href^='http']::after {
2242
+ content: ' (' attr(href) ')';
2243
+ font-size: var(--text-sm);
2244
+ color: var(--ink-soft);
2245
+ overflow-wrap: anywhere;
2246
+ }
2247
+ }
2248
+ }
package/icons/LICENSE ADDED
@@ -0,0 +1,43 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 Lucide Icons and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
+
17
+ ---
18
+
19
+ The following Lucide icons are derived from the Feather project:
20
+
21
+ airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
22
+
23
+ The MIT License (MIT) (for the icons listed above)
24
+
25
+ Copyright (c) 2013-present Cole Bemis
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy
28
+ of this software and associated documentation files (the "Software"), to deal
29
+ in the Software without restriction, including without limitation the rights
30
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
+ copies of the Software, and to permit persons to whom the Software is
32
+ furnished to do so, subject to the following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be included in all
35
+ copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43
+ SOFTWARE.
@@ -0,0 +1,15 @@
1
+ <!-- @license lucide-static v1.60.0 - ISC -->
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="24"
5
+ height="24"
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ stroke="currentColor"
9
+ stroke-width="2"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ >
13
+ <path d="M12 5v14" />
14
+ <path d="m19 12-7 7-7-7" />
15
+ </svg>
@@ -0,0 +1,15 @@
1
+ <!-- @license lucide-static v1.60.0 - ISC -->
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="24"
5
+ height="24"
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ stroke="currentColor"
9
+ stroke-width="2"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ >
13
+ <path d="m12 19-7-7 7-7" />
14
+ <path d="M19 12H5" />
15
+ </svg>
@@ -0,0 +1,15 @@
1
+ <!-- @license lucide-static v1.60.0 - ISC -->
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="24"
5
+ height="24"
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ stroke="currentColor"
9
+ stroke-width="2"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ >
13
+ <path d="M5 12h14" />
14
+ <path d="m12 5 7 7-7 7" />
15
+ </svg>
@@ -0,0 +1,17 @@
1
+ <!-- @license lucide-static v1.60.0 - ISC -->
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="24"
5
+ height="24"
6
+ viewBox="0 0 24 24"
7
+ fill="none"
8
+ stroke="currentColor"
9
+ stroke-width="2"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ >
13
+ <path d="m21 16-4 4-4-4" />
14
+ <path d="M17 20V4" />
15
+ <path d="m3 8 4-4 4 4" />
16
+ <path d="M7 4v16" />
17
+ </svg>