@filipgutica/design-system 1.0.32 → 1.0.34

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
@@ -108,18 +108,20 @@
108
108
  "space-16": "4rem",
109
109
  "space-20": "5rem",
110
110
  "space-24": "6rem",
111
- "control-sm": "2rem",
112
- "control-md": "2.25rem",
113
- "control-lg": "2.75rem",
111
+ "control-sm": "1.75rem",
112
+ "control-md": "2rem",
113
+ "control-lg": "2.25rem",
114
+ "control-touch": "2.75rem",
114
115
  "row": "2.25rem",
115
116
  "measure": "68ch",
116
117
  "page-max": "960px",
117
118
  "page-wide": "1120px",
118
119
  "sidebar": "224px",
119
- "radius-inline": "6px",
120
- "radius-control": "999px",
121
- "radius-panel": "16px",
122
- "radius-field": "10px",
120
+ "radius-inline": "8px",
121
+ "radius-control": "8px",
122
+ "radius-panel": "12px",
123
+ "radius-field": "8px",
124
+ "radius-mark": "4px",
123
125
  "radius-pill": "999px",
124
126
  "shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
125
127
  "shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
@@ -239,18 +241,20 @@
239
241
  "space-16": "4rem",
240
242
  "space-20": "5rem",
241
243
  "space-24": "6rem",
242
- "control-sm": "2rem",
243
- "control-md": "2.25rem",
244
- "control-lg": "2.75rem",
244
+ "control-sm": "1.75rem",
245
+ "control-md": "2rem",
246
+ "control-lg": "2.25rem",
247
+ "control-touch": "2.75rem",
245
248
  "row": "2.25rem",
246
249
  "measure": "68ch",
247
250
  "page-max": "960px",
248
251
  "page-wide": "1120px",
249
252
  "sidebar": "224px",
250
- "radius-inline": "6px",
251
- "radius-control": "999px",
252
- "radius-panel": "16px",
253
- "radius-field": "10px",
253
+ "radius-inline": "8px",
254
+ "radius-control": "8px",
255
+ "radius-panel": "12px",
256
+ "radius-field": "8px",
257
+ "radius-mark": "4px",
254
258
  "radius-pill": "999px",
255
259
  "shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
256
260
  "shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
@@ -372,18 +376,20 @@
372
376
  "space-16": "4rem",
373
377
  "space-20": "5rem",
374
378
  "space-24": "6rem",
375
- "control-sm": "2rem",
376
- "control-md": "2.25rem",
377
- "control-lg": "2.75rem",
379
+ "control-sm": "1.75rem",
380
+ "control-md": "2rem",
381
+ "control-lg": "2.25rem",
382
+ "control-touch": "2.75rem",
378
383
  "row": "2.25rem",
379
384
  "measure": "68ch",
380
385
  "page-max": "960px",
381
386
  "page-wide": "1120px",
382
387
  "sidebar": "224px",
383
- "radius-inline": "6px",
384
- "radius-control": "999px",
385
- "radius-panel": "16px",
386
- "radius-field": "10px",
388
+ "radius-inline": "8px",
389
+ "radius-control": "8px",
390
+ "radius-panel": "12px",
391
+ "radius-field": "8px",
392
+ "radius-mark": "4px",
387
393
  "radius-pill": "999px",
388
394
  "shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
389
395
  "shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
@@ -503,18 +509,20 @@
503
509
  "space-16": "4rem",
504
510
  "space-20": "5rem",
505
511
  "space-24": "6rem",
506
- "control-sm": "2rem",
507
- "control-md": "2.25rem",
508
- "control-lg": "2.75rem",
512
+ "control-sm": "1.75rem",
513
+ "control-md": "2rem",
514
+ "control-lg": "2.25rem",
515
+ "control-touch": "2.75rem",
509
516
  "row": "2.25rem",
510
517
  "measure": "68ch",
511
518
  "page-max": "960px",
512
519
  "page-wide": "1120px",
513
520
  "sidebar": "224px",
514
- "radius-inline": "6px",
515
- "radius-control": "999px",
516
- "radius-panel": "16px",
517
- "radius-field": "10px",
521
+ "radius-inline": "8px",
522
+ "radius-control": "8px",
523
+ "radius-panel": "12px",
524
+ "radius-field": "8px",
525
+ "radius-mark": "4px",
518
526
  "radius-pill": "999px",
519
527
  "shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
520
528
  "shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
@@ -636,18 +644,20 @@
636
644
  "space-16": "4rem",
637
645
  "space-20": "5rem",
638
646
  "space-24": "6rem",
639
- "control-sm": "2rem",
640
- "control-md": "2.25rem",
641
- "control-lg": "2.75rem",
647
+ "control-sm": "1.75rem",
648
+ "control-md": "2rem",
649
+ "control-lg": "2.25rem",
650
+ "control-touch": "2.75rem",
642
651
  "row": "2.25rem",
643
652
  "measure": "68ch",
644
653
  "page-max": "960px",
645
654
  "page-wide": "1120px",
646
655
  "sidebar": "224px",
647
- "radius-inline": "6px",
648
- "radius-control": "999px",
649
- "radius-panel": "16px",
650
- "radius-field": "10px",
656
+ "radius-inline": "8px",
657
+ "radius-control": "8px",
658
+ "radius-panel": "12px",
659
+ "radius-field": "8px",
660
+ "radius-mark": "4px",
651
661
  "radius-pill": "999px",
652
662
  "shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
653
663
  "shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
@@ -767,18 +777,20 @@
767
777
  "space-16": "4rem",
768
778
  "space-20": "5rem",
769
779
  "space-24": "6rem",
770
- "control-sm": "2rem",
771
- "control-md": "2.25rem",
772
- "control-lg": "2.75rem",
780
+ "control-sm": "1.75rem",
781
+ "control-md": "2rem",
782
+ "control-lg": "2.25rem",
783
+ "control-touch": "2.75rem",
773
784
  "row": "2.25rem",
774
785
  "measure": "68ch",
775
786
  "page-max": "960px",
776
787
  "page-wide": "1120px",
777
788
  "sidebar": "224px",
778
- "radius-inline": "6px",
779
- "radius-control": "999px",
780
- "radius-panel": "16px",
781
- "radius-field": "10px",
789
+ "radius-inline": "8px",
790
+ "radius-control": "8px",
791
+ "radius-panel": "12px",
792
+ "radius-field": "8px",
793
+ "radius-mark": "4px",
782
794
  "radius-pill": "999px",
783
795
  "shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
784
796
  "shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
@@ -900,18 +912,20 @@
900
912
  "space-16": "4rem",
901
913
  "space-20": "5rem",
902
914
  "space-24": "6rem",
903
- "control-sm": "2rem",
904
- "control-md": "2.25rem",
905
- "control-lg": "2.75rem",
915
+ "control-sm": "1.75rem",
916
+ "control-md": "2rem",
917
+ "control-lg": "2.25rem",
918
+ "control-touch": "2.75rem",
906
919
  "row": "2.25rem",
907
920
  "measure": "68ch",
908
921
  "page-max": "960px",
909
922
  "page-wide": "1120px",
910
923
  "sidebar": "224px",
911
- "radius-inline": "6px",
912
- "radius-control": "999px",
913
- "radius-panel": "16px",
914
- "radius-field": "10px",
924
+ "radius-inline": "8px",
925
+ "radius-control": "8px",
926
+ "radius-panel": "12px",
927
+ "radius-field": "8px",
928
+ "radius-mark": "4px",
915
929
  "radius-pill": "999px",
916
930
  "shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
917
931
  "shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
@@ -1031,18 +1045,20 @@
1031
1045
  "space-16": "4rem",
1032
1046
  "space-20": "5rem",
1033
1047
  "space-24": "6rem",
1034
- "control-sm": "2rem",
1035
- "control-md": "2.25rem",
1036
- "control-lg": "2.75rem",
1048
+ "control-sm": "1.75rem",
1049
+ "control-md": "2rem",
1050
+ "control-lg": "2.25rem",
1051
+ "control-touch": "2.75rem",
1037
1052
  "row": "2.25rem",
1038
1053
  "measure": "68ch",
1039
1054
  "page-max": "960px",
1040
1055
  "page-wide": "1120px",
1041
1056
  "sidebar": "224px",
1042
- "radius-inline": "6px",
1043
- "radius-control": "999px",
1044
- "radius-panel": "16px",
1045
- "radius-field": "10px",
1057
+ "radius-inline": "8px",
1058
+ "radius-control": "8px",
1059
+ "radius-panel": "12px",
1060
+ "radius-field": "8px",
1061
+ "radius-mark": "4px",
1046
1062
  "radius-pill": "999px",
1047
1063
  "shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
1048
1064
  "shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
@@ -1164,18 +1180,20 @@
1164
1180
  "space-16": "4rem",
1165
1181
  "space-20": "5rem",
1166
1182
  "space-24": "6rem",
1167
- "control-sm": "2rem",
1168
- "control-md": "2.25rem",
1169
- "control-lg": "2.75rem",
1183
+ "control-sm": "1.75rem",
1184
+ "control-md": "2rem",
1185
+ "control-lg": "2.25rem",
1186
+ "control-touch": "2.75rem",
1170
1187
  "row": "2.25rem",
1171
1188
  "measure": "68ch",
1172
1189
  "page-max": "960px",
1173
1190
  "page-wide": "1120px",
1174
1191
  "sidebar": "224px",
1175
- "radius-inline": "6px",
1176
- "radius-control": "999px",
1177
- "radius-panel": "16px",
1178
- "radius-field": "10px",
1192
+ "radius-inline": "8px",
1193
+ "radius-control": "8px",
1194
+ "radius-panel": "12px",
1195
+ "radius-field": "8px",
1196
+ "radius-mark": "4px",
1179
1197
  "radius-pill": "999px",
1180
1198
  "shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
1181
1199
  "shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
@@ -1295,18 +1313,20 @@
1295
1313
  "space-16": "4rem",
1296
1314
  "space-20": "5rem",
1297
1315
  "space-24": "6rem",
1298
- "control-sm": "2rem",
1299
- "control-md": "2.25rem",
1300
- "control-lg": "2.75rem",
1316
+ "control-sm": "1.75rem",
1317
+ "control-md": "2rem",
1318
+ "control-lg": "2.25rem",
1319
+ "control-touch": "2.75rem",
1301
1320
  "row": "2.25rem",
1302
1321
  "measure": "68ch",
1303
1322
  "page-max": "960px",
1304
1323
  "page-wide": "1120px",
1305
1324
  "sidebar": "224px",
1306
- "radius-inline": "6px",
1307
- "radius-control": "999px",
1308
- "radius-panel": "16px",
1309
- "radius-field": "10px",
1325
+ "radius-inline": "8px",
1326
+ "radius-control": "8px",
1327
+ "radius-panel": "12px",
1328
+ "radius-field": "8px",
1329
+ "radius-mark": "4px",
1310
1330
  "radius-pill": "999px",
1311
1331
  "shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
1312
1332
  "shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
@@ -1428,18 +1448,20 @@
1428
1448
  "space-16": "4rem",
1429
1449
  "space-20": "5rem",
1430
1450
  "space-24": "6rem",
1431
- "control-sm": "2rem",
1432
- "control-md": "2.25rem",
1433
- "control-lg": "2.75rem",
1451
+ "control-sm": "1.75rem",
1452
+ "control-md": "2rem",
1453
+ "control-lg": "2.25rem",
1454
+ "control-touch": "2.75rem",
1434
1455
  "row": "2.25rem",
1435
1456
  "measure": "68ch",
1436
1457
  "page-max": "960px",
1437
1458
  "page-wide": "1120px",
1438
1459
  "sidebar": "224px",
1439
- "radius-inline": "6px",
1440
- "radius-control": "999px",
1441
- "radius-panel": "16px",
1442
- "radius-field": "10px",
1460
+ "radius-inline": "8px",
1461
+ "radius-control": "8px",
1462
+ "radius-panel": "12px",
1463
+ "radius-field": "8px",
1464
+ "radius-mark": "4px",
1443
1465
  "radius-pill": "999px",
1444
1466
  "shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
1445
1467
  "shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
@@ -1559,18 +1581,20 @@
1559
1581
  "space-16": "4rem",
1560
1582
  "space-20": "5rem",
1561
1583
  "space-24": "6rem",
1562
- "control-sm": "2rem",
1563
- "control-md": "2.25rem",
1564
- "control-lg": "2.75rem",
1584
+ "control-sm": "1.75rem",
1585
+ "control-md": "2rem",
1586
+ "control-lg": "2.25rem",
1587
+ "control-touch": "2.75rem",
1565
1588
  "row": "2.25rem",
1566
1589
  "measure": "68ch",
1567
1590
  "page-max": "960px",
1568
1591
  "page-wide": "1120px",
1569
1592
  "sidebar": "224px",
1570
- "radius-inline": "6px",
1571
- "radius-control": "999px",
1572
- "radius-panel": "16px",
1573
- "radius-field": "10px",
1593
+ "radius-inline": "8px",
1594
+ "radius-control": "8px",
1595
+ "radius-panel": "12px",
1596
+ "radius-field": "8px",
1597
+ "radius-mark": "4px",
1574
1598
  "radius-pill": "999px",
1575
1599
  "shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
1576
1600
  "shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
@@ -1692,18 +1716,20 @@
1692
1716
  "space-16": "4rem",
1693
1717
  "space-20": "5rem",
1694
1718
  "space-24": "6rem",
1695
- "control-sm": "2rem",
1696
- "control-md": "2.25rem",
1697
- "control-lg": "2.75rem",
1719
+ "control-sm": "1.75rem",
1720
+ "control-md": "2rem",
1721
+ "control-lg": "2.25rem",
1722
+ "control-touch": "2.75rem",
1698
1723
  "row": "2.25rem",
1699
1724
  "measure": "68ch",
1700
1725
  "page-max": "960px",
1701
1726
  "page-wide": "1120px",
1702
1727
  "sidebar": "224px",
1703
- "radius-inline": "6px",
1704
- "radius-control": "999px",
1705
- "radius-panel": "16px",
1706
- "radius-field": "10px",
1728
+ "radius-inline": "8px",
1729
+ "radius-control": "8px",
1730
+ "radius-panel": "12px",
1731
+ "radius-field": "8px",
1732
+ "radius-mark": "4px",
1707
1733
  "radius-pill": "999px",
1708
1734
  "shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
1709
1735
  "shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
@@ -1823,18 +1849,20 @@
1823
1849
  "space-16": "4rem",
1824
1850
  "space-20": "5rem",
1825
1851
  "space-24": "6rem",
1826
- "control-sm": "2rem",
1827
- "control-md": "2.25rem",
1828
- "control-lg": "2.75rem",
1852
+ "control-sm": "1.75rem",
1853
+ "control-md": "2rem",
1854
+ "control-lg": "2.25rem",
1855
+ "control-touch": "2.75rem",
1829
1856
  "row": "2.25rem",
1830
1857
  "measure": "68ch",
1831
1858
  "page-max": "960px",
1832
1859
  "page-wide": "1120px",
1833
1860
  "sidebar": "224px",
1834
- "radius-inline": "6px",
1835
- "radius-control": "999px",
1836
- "radius-panel": "16px",
1837
- "radius-field": "10px",
1861
+ "radius-inline": "8px",
1862
+ "radius-control": "8px",
1863
+ "radius-panel": "12px",
1864
+ "radius-field": "8px",
1865
+ "radius-mark": "4px",
1838
1866
  "radius-pill": "999px",
1839
1867
  "shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
1840
1868
  "shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
@@ -1956,18 +1984,20 @@
1956
1984
  "space-16": "4rem",
1957
1985
  "space-20": "5rem",
1958
1986
  "space-24": "6rem",
1959
- "control-sm": "2rem",
1960
- "control-md": "2.25rem",
1961
- "control-lg": "2.75rem",
1987
+ "control-sm": "1.75rem",
1988
+ "control-md": "2rem",
1989
+ "control-lg": "2.25rem",
1990
+ "control-touch": "2.75rem",
1962
1991
  "row": "2.25rem",
1963
1992
  "measure": "68ch",
1964
1993
  "page-max": "960px",
1965
1994
  "page-wide": "1120px",
1966
1995
  "sidebar": "224px",
1967
- "radius-inline": "6px",
1968
- "radius-control": "999px",
1969
- "radius-panel": "16px",
1970
- "radius-field": "10px",
1996
+ "radius-inline": "8px",
1997
+ "radius-control": "8px",
1998
+ "radius-panel": "12px",
1999
+ "radius-field": "8px",
2000
+ "radius-mark": "4px",
1971
2001
  "radius-pill": "999px",
1972
2002
  "shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
1973
2003
  "shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
@@ -2087,18 +2117,20 @@
2087
2117
  "space-16": "4rem",
2088
2118
  "space-20": "5rem",
2089
2119
  "space-24": "6rem",
2090
- "control-sm": "2rem",
2091
- "control-md": "2.25rem",
2092
- "control-lg": "2.75rem",
2120
+ "control-sm": "1.75rem",
2121
+ "control-md": "2rem",
2122
+ "control-lg": "2.25rem",
2123
+ "control-touch": "2.75rem",
2093
2124
  "row": "2.25rem",
2094
2125
  "measure": "68ch",
2095
2126
  "page-max": "960px",
2096
2127
  "page-wide": "1120px",
2097
2128
  "sidebar": "224px",
2098
- "radius-inline": "6px",
2099
- "radius-control": "999px",
2100
- "radius-panel": "16px",
2101
- "radius-field": "10px",
2129
+ "radius-inline": "8px",
2130
+ "radius-control": "8px",
2131
+ "radius-panel": "12px",
2132
+ "radius-field": "8px",
2133
+ "radius-mark": "4px",
2102
2134
  "radius-pill": "999px",
2103
2135
  "shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
2104
2136
  "shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
@@ -103,11 +103,11 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
103
103
 
104
104
  | Name | Media query | What changes |
105
105
  | --- | --- | --- |
106
- | Tablet | `@media (max-width: 800px)` | Multi-column layouts become one content column. Touch controls use `--control-lg`. |
106
+ | Tablet | `@media (max-width: 800px)` | Multi-column layouts become one content column. Touch controls use `--control-touch`. |
107
107
  | Phone | `@media (max-width: 640px)` | Side gutters drop from `--space-6` to `--space-4`, and section gaps take their phone step. |
108
108
 
109
109
  Use `@media (min-width: 801px)` only for a rule that applies to desktop alone. One documented exception: the tool-home hero splits at `@media (min-width: 1024px)`, with the title across the top, the lede on the left, and the install block and facts on the right. Below 1024px it stacks in source order. Pages add no viewport breakpoint beyond the table and the hero split. A pane that must collapse at its own width uses a container query, as the detail column in `reference.html` does.
110
- - Density: an application screen has one size for each place, not a range. Toolbar controls (buttons, segmented filters, and search fields) are `sm`, `--control-sm` tall. Rows in a table or list, such as the console's monitor list, and rail and navigation rows, are `--row` tall. Other controls keep the default `md` (`--control-md`). At tablet width every touch target grows to `--control-lg`. The console in `reference.html` uses these sizes. This density is control size; how much a screen shows is [Minimal by default](#minimal-by-default).
110
+ - Density: an application screen has one size for each place, not a range. In an application screen, buttons, fields, and segmented controls are `sm`, `--control-sm` tall (28px), the main action included: it stands out by its primary fill, not its size. Chips stay 24px, their own size. Rows in a table or list, such as the console's monitor list, and rail and navigation rows, are `--row` tall; their body text is `--text-sm` and their metadata `--text-xs`. Documentation and product pages keep the default `md`. At tablet width every touch target grows to `--control-touch`. The console in `reference.html` uses these sizes. This density is control size; how much a screen shows is [Minimal by default](#minimal-by-default).
111
111
  - [Navigation](#navigation) is a strip of 6 links or fewer, or a section rail that moves into a drawer at tablet width. A sticky side rail taller than the window scrolls its link list, not the element that draws its divider, so an overlay scrollbar sits clear of the line. Keep wide code, tables, and charts scrolling inside their containers.
112
112
  - Keep main headings, actions, and product evidence visible on load. Scrolling should reveal more content without being required to make existing content appear.
113
113
 
@@ -127,18 +127,19 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
127
127
  | Floating layer | Menus, popovers, pickers, and dialogs | `--color-surface-raised` | Transparent 1px; the shadow's ring draws the edge | `--radius-panel` | `--shadow-dialog` |
128
128
 
129
129
  - 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`.
130
- - 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.
130
+ - Shape follows role. Things of one height share one corner: rows, actions, and fields are all 8px, so a tab, a button, and an input beside each other match. The border, not the shape, tells a field from an action: a field draws its `--color-field-edge` border, and an action's border is transparent, with its fill, raise, or tint marking it. A 12px rectangle holds content, a 4px rectangle is a small mark inside text or a row, and a pill is a small state mark. The scale (4, 8, 12) is Astryx's. Pick a new component's radius from its role in this table, not from the component it looks like.
131
131
 
132
132
  | Role | Shape | Token | Members |
133
133
  | --- | --- | --- | --- |
134
- | Acts, or sets a value in place with every option shown, on one line | Pill | `--radius-control` | Buttons other than the labelled contents trigger and its no-JavaScript summary, quiet actions other than the project-menu trigger, and segmented controls with their thumbs |
134
+ | Acts, or sets a value in place with every option shown, on one line | 8px | `--radius-control` | Buttons other than the labelled contents trigger and its no-JavaScript summary, quiet actions other than the project-menu trigger, chips, and segmented controls. A segmented option is concentric with its track |
135
135
  | Small state mark | Pill | `--radius-pill` | Status badges, switch tracks and knobs, slider and progress tracks, score pips, and the in-page location pip |
136
- | A place, or a row you pick | 6px | `--radius-inline` | Navigation rows outside a floating menu, group labels, breadcrumb links, the package catalogue's site name, tabs, list rows, checkboxes, and keyboard keys |
137
- | Something you type in, a control whose label wraps, or a one-line control that is not an action | 10px | `--radius-field` | Inputs, textareas, search fields, toggle cards, pager links, and one-line controls that are not actions: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary, and the skip link |
138
- | Holds other things | 16px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, example frames, and floating layers |
136
+ | A place, or a row you pick | 8px | `--radius-inline` | Navigation rows, group labels, breadcrumb links, the package catalogue's site name, tabs, list rows, menu rows, and message rows |
137
+ | Something you type in, a control whose label wraps, or a one-line control that is not an action | 8px | `--radius-field` | Inputs, textareas, search fields, toggle cards, pager links, and one-line controls that are not actions: the select, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary, and the skip link |
138
+ | Holds other things | 12px | `--radius-panel` | Wells, plates, panels, cards, radio cards, alerts, code blocks, example frames, tool-call details, composers, hover toolbars, and floating layers |
139
+ | A small mark inside text or a row | 4px | `--radius-mark` | Checkboxes, keyboard keys, and mentions |
139
140
 
140
- - 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.
141
- - 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.
141
+ - A pill never holds text that can wrap: a status badge is the only pill with text, and it stays on one line. A control whose label can wrap, such as a toggle card or a radio card, is a rectangle.
142
+ - 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 12px container, take `calc(var(--radius-panel) - var(--space-1))`, 8px, the row corner. A segmented control's options sit 2px (`--inset`) inside the track's outer edge, its 1px border and 1px of padding, and take `calc(var(--radius-control) - var(--inset))`, 6px: the one corner below 8px on a control, measured from the outer edge as Astryx's segmented control does, because the track's border is part of its visible curve. A shape with more room than that, such as a field in a dialog, keeps the radius of its role.
142
143
  - 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.
143
144
  - 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.
144
145
  - [Depth](#depth) gives each role its shadow. Stable hover states keep normal content quiet.
@@ -195,7 +196,7 @@ Each depth tier has one token. [`tokens.css`](tokens.css) holds every shadow val
195
196
  - [Drawer](components.md#drawer): `Drawer` with `side="left"` or `"right"`, `DrawerBackdrop`, and `DrawerContent` holding a `<header>` (`DrawerTitle`, then an icon `DrawerClose` with an `aria-label`) and the body in one element.
196
197
  - [Overflow menu](components.md#overflow-menu): `Menu`, `MenuTrigger`, `MenuContent`, `MenuItem`, `MenuSeparator`, and `MenuItemIcon`. Supply the More SVG as the trigger's child and an item-specific `aria-label`; use `align="end"` on `MenuContent` (its default 4px offset matches `--space-1`). Render each `MenuItem` as a button with `render={<button type="button" />}`; for disabled items, pass both `disabled` and `render={<button type="button" disabled />}` so the native button and ui-sdk agree. `destructive` on the last item draws the danger text through ui-sdk's `data-destructive`; separate it with `MenuSeparator`. `data-open`, `data-highlighted`, and `data-disabled` come from ui-sdk, not the app. `MenuItemIcon` wraps an app-supplied 16px SVG.
197
198
  - Beta.5 keyboard limitation: ui-sdk highlights disabled items instead of skipping them. With a native disabled button, focus stays on the preceding item and Down Arrow stops there; Up Arrow, Home, and End still reach the items after it. Use the plain-HTML recipe when disabled-item skipping is required; this stylesheet cannot correct ui-sdk's navigation.
198
- - At tablet width and below, the menu trigger and items, unsized buttons, inputs, select triggers, toggle buttons, segmented options, tabs, sliders, and choice and switch rows grow to `--control-lg` for touch, as the catalogue's do.
199
+ - At tablet width and below, the menu trigger and items, buttons, inputs, select triggers, toggle buttons, segmented options, tabs, sliders, and choice and switch rows grow to `--control-touch` (44px) for touch, at every size. The catalogue's size specimens keep their sizes.
199
200
  - Where ui-sdk drives a behaviour, it differs from the spec:
200
201
  - The segmented thumb and the tab fill glide with both edges together over 260ms, without the stretch, because ui-sdk does not say which way a choice moved before it moves them.
201
202
  - A glide runs while the pointer or focus is in the control, so a re-measure then, such as on a resize, glides too.