@filipgutica/design-system 1.0.34 → 1.0.36
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.d.ts +1 -0
- package/dist/tokens.js +16 -0
- package/dist/tokens.json +16 -0
- package/language/DESIGN.md +8 -6
- package/language/components.html +49 -18
- package/language/components.md +12 -11
- package/language/decisions.md +4 -2
- package/language/reference.html +12 -4
- package/language/tokens.css +1 -0
- package/language/ui-sdk.css +15 -3
- package/package.json +1 -1
- package/theme-mapper/core.js +2 -1
package/dist/tokens.d.ts
CHANGED
package/dist/tokens.js
CHANGED
|
@@ -124,6 +124,7 @@ export const tokens = {
|
|
|
124
124
|
"radius-field": "8px",
|
|
125
125
|
"radius-mark": "4px",
|
|
126
126
|
"radius-pill": "999px",
|
|
127
|
+
"radius-circle": "999px",
|
|
127
128
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
128
129
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
129
130
|
"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%)",
|
|
@@ -257,6 +258,7 @@ export const tokens = {
|
|
|
257
258
|
"radius-field": "8px",
|
|
258
259
|
"radius-mark": "4px",
|
|
259
260
|
"radius-pill": "999px",
|
|
261
|
+
"radius-circle": "999px",
|
|
260
262
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
261
263
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
262
264
|
"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%)",
|
|
@@ -392,6 +394,7 @@ export const tokens = {
|
|
|
392
394
|
"radius-field": "8px",
|
|
393
395
|
"radius-mark": "4px",
|
|
394
396
|
"radius-pill": "999px",
|
|
397
|
+
"radius-circle": "999px",
|
|
395
398
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
396
399
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
397
400
|
"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%)",
|
|
@@ -525,6 +528,7 @@ export const tokens = {
|
|
|
525
528
|
"radius-field": "8px",
|
|
526
529
|
"radius-mark": "4px",
|
|
527
530
|
"radius-pill": "999px",
|
|
531
|
+
"radius-circle": "999px",
|
|
528
532
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
529
533
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
530
534
|
"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%)",
|
|
@@ -660,6 +664,7 @@ export const tokens = {
|
|
|
660
664
|
"radius-field": "8px",
|
|
661
665
|
"radius-mark": "4px",
|
|
662
666
|
"radius-pill": "999px",
|
|
667
|
+
"radius-circle": "999px",
|
|
663
668
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
664
669
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
665
670
|
"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%)",
|
|
@@ -793,6 +798,7 @@ export const tokens = {
|
|
|
793
798
|
"radius-field": "8px",
|
|
794
799
|
"radius-mark": "4px",
|
|
795
800
|
"radius-pill": "999px",
|
|
801
|
+
"radius-circle": "999px",
|
|
796
802
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
797
803
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
798
804
|
"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%)",
|
|
@@ -928,6 +934,7 @@ export const tokens = {
|
|
|
928
934
|
"radius-field": "8px",
|
|
929
935
|
"radius-mark": "4px",
|
|
930
936
|
"radius-pill": "999px",
|
|
937
|
+
"radius-circle": "999px",
|
|
931
938
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
932
939
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
933
940
|
"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%)",
|
|
@@ -1061,6 +1068,7 @@ export const tokens = {
|
|
|
1061
1068
|
"radius-field": "8px",
|
|
1062
1069
|
"radius-mark": "4px",
|
|
1063
1070
|
"radius-pill": "999px",
|
|
1071
|
+
"radius-circle": "999px",
|
|
1064
1072
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
1065
1073
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
1066
1074
|
"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%)",
|
|
@@ -1196,6 +1204,7 @@ export const tokens = {
|
|
|
1196
1204
|
"radius-field": "8px",
|
|
1197
1205
|
"radius-mark": "4px",
|
|
1198
1206
|
"radius-pill": "999px",
|
|
1207
|
+
"radius-circle": "999px",
|
|
1199
1208
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1200
1209
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1201
1210
|
"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%)",
|
|
@@ -1329,6 +1338,7 @@ export const tokens = {
|
|
|
1329
1338
|
"radius-field": "8px",
|
|
1330
1339
|
"radius-mark": "4px",
|
|
1331
1340
|
"radius-pill": "999px",
|
|
1341
|
+
"radius-circle": "999px",
|
|
1332
1342
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
1333
1343
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
1334
1344
|
"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%)",
|
|
@@ -1464,6 +1474,7 @@ export const tokens = {
|
|
|
1464
1474
|
"radius-field": "8px",
|
|
1465
1475
|
"radius-mark": "4px",
|
|
1466
1476
|
"radius-pill": "999px",
|
|
1477
|
+
"radius-circle": "999px",
|
|
1467
1478
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1468
1479
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1469
1480
|
"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%)",
|
|
@@ -1597,6 +1608,7 @@ export const tokens = {
|
|
|
1597
1608
|
"radius-field": "8px",
|
|
1598
1609
|
"radius-mark": "4px",
|
|
1599
1610
|
"radius-pill": "999px",
|
|
1611
|
+
"radius-circle": "999px",
|
|
1600
1612
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
1601
1613
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
1602
1614
|
"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%)",
|
|
@@ -1732,6 +1744,7 @@ export const tokens = {
|
|
|
1732
1744
|
"radius-field": "8px",
|
|
1733
1745
|
"radius-mark": "4px",
|
|
1734
1746
|
"radius-pill": "999px",
|
|
1747
|
+
"radius-circle": "999px",
|
|
1735
1748
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1736
1749
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1737
1750
|
"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%)",
|
|
@@ -1865,6 +1878,7 @@ export const tokens = {
|
|
|
1865
1878
|
"radius-field": "8px",
|
|
1866
1879
|
"radius-mark": "4px",
|
|
1867
1880
|
"radius-pill": "999px",
|
|
1881
|
+
"radius-circle": "999px",
|
|
1868
1882
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
1869
1883
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
1870
1884
|
"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%)",
|
|
@@ -2000,6 +2014,7 @@ export const tokens = {
|
|
|
2000
2014
|
"radius-field": "8px",
|
|
2001
2015
|
"radius-mark": "4px",
|
|
2002
2016
|
"radius-pill": "999px",
|
|
2017
|
+
"radius-circle": "999px",
|
|
2003
2018
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
2004
2019
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
2005
2020
|
"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%)",
|
|
@@ -2133,6 +2148,7 @@ export const tokens = {
|
|
|
2133
2148
|
"radius-field": "8px",
|
|
2134
2149
|
"radius-mark": "4px",
|
|
2135
2150
|
"radius-pill": "999px",
|
|
2151
|
+
"radius-circle": "999px",
|
|
2136
2152
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
2137
2153
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
2138
2154
|
"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%)",
|
package/dist/tokens.json
CHANGED
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
"radius-field": "8px",
|
|
124
124
|
"radius-mark": "4px",
|
|
125
125
|
"radius-pill": "999px",
|
|
126
|
+
"radius-circle": "999px",
|
|
126
127
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
127
128
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
128
129
|
"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%)",
|
|
@@ -256,6 +257,7 @@
|
|
|
256
257
|
"radius-field": "8px",
|
|
257
258
|
"radius-mark": "4px",
|
|
258
259
|
"radius-pill": "999px",
|
|
260
|
+
"radius-circle": "999px",
|
|
259
261
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
260
262
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
261
263
|
"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%)",
|
|
@@ -391,6 +393,7 @@
|
|
|
391
393
|
"radius-field": "8px",
|
|
392
394
|
"radius-mark": "4px",
|
|
393
395
|
"radius-pill": "999px",
|
|
396
|
+
"radius-circle": "999px",
|
|
394
397
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
395
398
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
396
399
|
"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%)",
|
|
@@ -524,6 +527,7 @@
|
|
|
524
527
|
"radius-field": "8px",
|
|
525
528
|
"radius-mark": "4px",
|
|
526
529
|
"radius-pill": "999px",
|
|
530
|
+
"radius-circle": "999px",
|
|
527
531
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
528
532
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
529
533
|
"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%)",
|
|
@@ -659,6 +663,7 @@
|
|
|
659
663
|
"radius-field": "8px",
|
|
660
664
|
"radius-mark": "4px",
|
|
661
665
|
"radius-pill": "999px",
|
|
666
|
+
"radius-circle": "999px",
|
|
662
667
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
663
668
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
664
669
|
"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%)",
|
|
@@ -792,6 +797,7 @@
|
|
|
792
797
|
"radius-field": "8px",
|
|
793
798
|
"radius-mark": "4px",
|
|
794
799
|
"radius-pill": "999px",
|
|
800
|
+
"radius-circle": "999px",
|
|
795
801
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
796
802
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
797
803
|
"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%)",
|
|
@@ -927,6 +933,7 @@
|
|
|
927
933
|
"radius-field": "8px",
|
|
928
934
|
"radius-mark": "4px",
|
|
929
935
|
"radius-pill": "999px",
|
|
936
|
+
"radius-circle": "999px",
|
|
930
937
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
931
938
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
932
939
|
"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%)",
|
|
@@ -1060,6 +1067,7 @@
|
|
|
1060
1067
|
"radius-field": "8px",
|
|
1061
1068
|
"radius-mark": "4px",
|
|
1062
1069
|
"radius-pill": "999px",
|
|
1070
|
+
"radius-circle": "999px",
|
|
1063
1071
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
1064
1072
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
1065
1073
|
"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%)",
|
|
@@ -1195,6 +1203,7 @@
|
|
|
1195
1203
|
"radius-field": "8px",
|
|
1196
1204
|
"radius-mark": "4px",
|
|
1197
1205
|
"radius-pill": "999px",
|
|
1206
|
+
"radius-circle": "999px",
|
|
1198
1207
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1199
1208
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1200
1209
|
"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%)",
|
|
@@ -1328,6 +1337,7 @@
|
|
|
1328
1337
|
"radius-field": "8px",
|
|
1329
1338
|
"radius-mark": "4px",
|
|
1330
1339
|
"radius-pill": "999px",
|
|
1340
|
+
"radius-circle": "999px",
|
|
1331
1341
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
1332
1342
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
1333
1343
|
"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%)",
|
|
@@ -1463,6 +1473,7 @@
|
|
|
1463
1473
|
"radius-field": "8px",
|
|
1464
1474
|
"radius-mark": "4px",
|
|
1465
1475
|
"radius-pill": "999px",
|
|
1476
|
+
"radius-circle": "999px",
|
|
1466
1477
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1467
1478
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1468
1479
|
"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%)",
|
|
@@ -1596,6 +1607,7 @@
|
|
|
1596
1607
|
"radius-field": "8px",
|
|
1597
1608
|
"radius-mark": "4px",
|
|
1598
1609
|
"radius-pill": "999px",
|
|
1610
|
+
"radius-circle": "999px",
|
|
1599
1611
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
1600
1612
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
1601
1613
|
"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%)",
|
|
@@ -1731,6 +1743,7 @@
|
|
|
1731
1743
|
"radius-field": "8px",
|
|
1732
1744
|
"radius-mark": "4px",
|
|
1733
1745
|
"radius-pill": "999px",
|
|
1746
|
+
"radius-circle": "999px",
|
|
1734
1747
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1735
1748
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
1736
1749
|
"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%)",
|
|
@@ -1864,6 +1877,7 @@
|
|
|
1864
1877
|
"radius-field": "8px",
|
|
1865
1878
|
"radius-mark": "4px",
|
|
1866
1879
|
"radius-pill": "999px",
|
|
1880
|
+
"radius-circle": "999px",
|
|
1867
1881
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
1868
1882
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
1869
1883
|
"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%)",
|
|
@@ -1999,6 +2013,7 @@
|
|
|
1999
2013
|
"radius-field": "8px",
|
|
2000
2014
|
"radius-mark": "4px",
|
|
2001
2015
|
"radius-pill": "999px",
|
|
2016
|
+
"radius-circle": "999px",
|
|
2002
2017
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
2003
2018
|
"shadow-surface": "0 1px 2px rgb(16 24 40 / 6%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
2004
2019
|
"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%)",
|
|
@@ -2132,6 +2147,7 @@
|
|
|
2132
2147
|
"radius-field": "8px",
|
|
2133
2148
|
"radius-mark": "4px",
|
|
2134
2149
|
"radius-pill": "999px",
|
|
2150
|
+
"radius-circle": "999px",
|
|
2135
2151
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
2136
2152
|
"shadow-surface": "0 0 0 1px rgb(255 255 255 / 6%)",
|
|
2137
2153
|
"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%)",
|
package/language/DESIGN.md
CHANGED
|
@@ -123,23 +123,25 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
|
|
|
123
123
|
| 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 |
|
|
124
124
|
| Panel | Cards, forms, charts, and detail views | `--color-surface-raised` | Transparent 1px | `--radius-panel` | `--shadow-surface` |
|
|
125
125
|
| Field | Inputs, selects, textareas, and search fields | `--color-field-bg`; disabled: `--color-well` | `--color-field-edge` | `--radius-field` | `--shadow-field`; disabled: none |
|
|
126
|
-
| Track | Segmented and switch tracks, and selected radio cards | `--color-well` | Transparent 1px | Segmented tracks: `--radius-control
|
|
126
|
+
| Track | Segmented and switch tracks, and selected radio cards | `--color-well` | Transparent 1px | Segmented tracks: `--radius-control`, or `--radius-pill` when icon-only; switch tracks: `--radius-pill`; radio cards: `--radius-panel` | `--shadow-sink` |
|
|
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. 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,
|
|
130
|
+
- Shape follows role. Things of one height share one corner: rows, labelled actions, quiet actions, and fields are all 8px, so a tab, a button, and an input beside each other match; only a lone icon on its own fill is round. 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, a pill is a small state mark, and a circle is a lone icon that acts on its own fill. The scale (4, 8, 12) is Astryx's; the circle is this system's own. 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 | 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
|
-
|
|
|
134
|
+
| Acts, or sets a value in place with every option shown, on one line | 8px | `--radius-control` | Buttons with a text label other than the labelled contents trigger and its no-JavaScript summary, quiet actions other than the project-menu trigger, icon-only ones included, chips, and text segmented controls. A segmented option is concentric with its track |
|
|
135
|
+
| A lone icon that acts on its own fill | Circle | `--radius-circle` | Icon-only buttons (primary, secondary, and danger), the composer's send button included |
|
|
136
|
+
| Small state mark | Pill | `--radius-pill` | Status badges, switch tracks and knobs, slider and progress tracks, score pips, the in-page location pip, and the icon-only segmented track |
|
|
136
137
|
| 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
138
|
| 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
139
|
| 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
140
|
| A small mark inside text or a row | 4px | `--radius-mark` | Checkboxes, keyboard keys, and mentions |
|
|
140
141
|
|
|
142
|
+
- A circle holds one icon and no text. An icon-only button is a box of equal width and height at every size, with `--radius-circle`. `--radius-circle` has the pill's value, 999px, and its own role: no button takes `--radius-pill`, and no action takes `50%`. An icon with no fill at rest is a [quiet action](components.md#quiet-action), an 8px tile.
|
|
141
143
|
- 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.
|
|
144
|
+
- 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. An icon-only segmented control's track takes `--radius-pill` and its options `calc(var(--radius-pill) - var(--inset))`: a circle on a square option, and a pill while the thumb glides. A shape with more room than that, such as a field in a dialog, keeps the radius of its role.
|
|
143
145
|
- 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.
|
|
144
146
|
- 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.
|
|
145
147
|
- [Depth](#depth) gives each role its shadow. Stable hover states keep normal content quiet.
|
|
@@ -196,7 +198,7 @@ Each depth tier has one token. [`tokens.css`](tokens.css) holds every shadow val
|
|
|
196
198
|
- [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.
|
|
197
199
|
- [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.
|
|
198
200
|
- 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.
|
|
199
|
-
- At tablet width and below, the menu trigger and items, buttons, inputs, select triggers, toggle buttons, segmented
|
|
201
|
+
- At tablet width and below, the menu trigger and items, buttons, inputs, select triggers, toggle buttons, segmented tracks, tabs, sliders, and choice and switch rows grow to `--control-touch` (44px) for touch, at every size; segmented options sit inside the track's 2px inset, so they are 40px. The catalogue's size specimens keep their sizes.
|
|
200
202
|
- Where ui-sdk drives a behaviour, it differs from the spec:
|
|
201
203
|
- 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.
|
|
202
204
|
- A glide runs while the pointer or focus is in the control, so a re-measure then, such as on a resize, glides too.
|
package/language/components.html
CHANGED
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
.btn { --depth: var(--shadow-raise); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-md); padding: 0 0.625rem; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-accent); color: var(--color-accent-text); box-shadow: var(--depth); font: var(--weight-medium) var(--text-md) / 1.25 var(--font-ui); letter-spacing: -0.01em; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
|
|
32
32
|
.btn[data-size="sm"] { min-height: var(--control-sm); gap: 0.375rem; padding: 0 var(--space-2); font-size: var(--text-sm); }
|
|
33
33
|
.btn[data-size="lg"] { min-height: var(--control-lg); padding: 0 var(--space-3); font-size: var(--text-lg); }
|
|
34
|
+
/* An icon-only button is a circle: one 16px icon and no text, on a square box of the size's control height. */
|
|
35
|
+
.btn[data-icon-only] { --size: var(--control-md); flex: none; width: var(--size); height: var(--size); min-height: var(--size); padding: 0; border-radius: var(--radius-circle); }
|
|
36
|
+
.btn[data-icon-only][data-size="sm"] { --size: var(--control-sm); }
|
|
37
|
+
.btn[data-icon-only][data-size="lg"] { --size: var(--control-lg); }
|
|
34
38
|
.btn.is-hover:not(:disabled) { background: var(--color-button-hover); }
|
|
35
39
|
@media (hover: hover) { .btn:hover:not(:disabled) { background: var(--color-button-hover); } }
|
|
36
40
|
.btn.secondary { background: var(--color-control-thumb); color: var(--color-text); }
|
|
@@ -58,6 +62,8 @@
|
|
|
58
62
|
.btn[aria-busy="true"] { cursor: wait; }
|
|
59
63
|
.btn[aria-busy="true"]::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
|
|
60
64
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
65
|
+
/* An icon-only button has no room for both, so the spinner replaces its icon; the aria-label names it still. */
|
|
66
|
+
.btn[data-icon-only][aria-busy="true"] > * { display: none; }
|
|
61
67
|
/* Reduced motion slows the spinner instead of stopping it: the tokens.css base holds that exception. */
|
|
62
68
|
|
|
63
69
|
/* Quiet action: an icon or short text action inside a component, such as Copy, Full size, a dialog or
|
|
@@ -223,6 +229,9 @@
|
|
|
223
229
|
/* Line height 1 comes after the font shorthand, which would reset it: the label then sits centred in the option. */
|
|
224
230
|
.segmented button { --depth: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: calc(var(--item) - 2 * var(--inset)); padding: 0 var(--space-3); border: 0; border-radius: calc(var(--radius-control) - var(--inset)); background: transparent; color: var(--color-muted); font: inherit; line-height: 1; cursor: pointer; }
|
|
225
231
|
.segmented[data-icon-only] button { width: calc(var(--item) - 2 * var(--inset)); padding: 0; }
|
|
232
|
+
/* Icon-only: a pill track with round options, concentric with it. A px radius keeps the thumb a pill while it glides. */
|
|
233
|
+
.segmented[data-icon-only] { border-radius: var(--radius-pill); }
|
|
234
|
+
.segmented[data-icon-only] button { border-radius: calc(var(--radius-pill) - var(--inset)); }
|
|
226
235
|
/* The track insets its options 2px from its outer edge (the 1px border and 1px of padding), with 2px between
|
|
227
236
|
them, so each option is its thumb and the track is the control's height. The option's corner is the
|
|
228
237
|
track radius minus that 2px, concentric from the outer edge. */
|
|
@@ -289,7 +298,9 @@
|
|
|
289
298
|
.tablist[data-clip="start"] { mask-image: linear-gradient(to right, transparent, #000 24px); }
|
|
290
299
|
.tablist[data-clip="end"] { mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
|
|
291
300
|
.tablist[data-clip="start end"] { mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
|
|
292
|
-
|
|
301
|
+
/* A tab's box is the button's: the control height, the button's inline padding (--tab-pad), and line height 1. */
|
|
302
|
+
.tab { --tab-pad: 0.625rem; position: relative; flex: none; display: inline-flex; align-items: center; min-height: var(--tab-item, var(--control-md)); padding: 0 var(--tab-pad); border: 0; border-radius: var(--radius-inline); background: transparent; color: var(--color-muted); font: var(--weight-medium) var(--text-md) / 1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
303
|
+
.tablist[data-size="sm"] .tab { --tab-item: var(--control-sm); --tab-pad: var(--space-2); font-size: var(--text-sm); }
|
|
293
304
|
.tab.is-hover:where(:not(:disabled)) { background: var(--color-row-hover); color: var(--color-text); }
|
|
294
305
|
@media (hover: hover) { .tab:hover:where(:not(:disabled)) { background: var(--color-row-hover); color: var(--color-text); } }
|
|
295
306
|
/* The selected tab takes the navigation row's lifted fill: one selected state for both. The fill is a
|
|
@@ -569,14 +580,13 @@
|
|
|
569
580
|
.tool-body { margin-top: var(--space-1); padding: var(--space-2) var(--space-3); border: 1px solid transparent; border-radius: var(--radius-panel); background: var(--color-surface); font-size: var(--text-sm); }
|
|
570
581
|
.tool-body ul { display: grid; gap: 0.125rem; margin: 0; padding-inline-start: var(--space-4); }
|
|
571
582
|
|
|
572
|
-
/* Composer: one field with an inline send button
|
|
573
|
-
|
|
583
|
+
/* Composer: one field with an inline round send button 6px inside its outer edge, clear of the box's 12px
|
|
584
|
+
corner. The box takes the field look and focus; the textarea inside it draws nothing. */
|
|
574
585
|
.composer { display: grid; gap: var(--space-1); width: 100%; }
|
|
575
|
-
.composer-box { display: flex; align-items: flex-end; gap: var(--space-2); padding:
|
|
586
|
+
.composer-box { display: flex; align-items: flex-end; gap: var(--space-2); padding: 0.3125rem; padding-inline-start: var(--space-3); border: 1px solid var(--color-field-edge); border-radius: var(--radius-panel); background: var(--color-field-bg); box-shadow: var(--shadow-field); }
|
|
576
587
|
/* The padding centres one line in --control-sm; each further line adds a line, up to 10rem. */
|
|
577
588
|
.composer-box textarea { flex: 1 1 0; min-width: 0; min-height: var(--control-sm); max-height: 10rem; padding: calc((var(--control-sm) - 1lh) / 2) 0; border: 0; outline: 0; resize: none; field-sizing: content; background: transparent; color: var(--color-text); font: var(--text-md) / 1.45 var(--font-ui); overflow-wrap: anywhere; }
|
|
578
589
|
.composer-box textarea::placeholder { color: var(--color-muted); opacity: 1; }
|
|
579
|
-
.composer-box .btn { width: var(--control-sm); padding: 0; border-radius: var(--radius-inline); }
|
|
580
590
|
.composer-box:is(:has(textarea:focus-visible), .is-focus) { border-color: var(--color-accent); box-shadow: var(--shadow-field-focus); }
|
|
581
591
|
.composer-box:has(textarea[aria-invalid="true"]) { border-color: var(--color-error); }
|
|
582
592
|
.composer-box:has(textarea[aria-invalid="true"]):is(:has(textarea:focus-visible), .is-focus) { border-color: var(--color-error); box-shadow: var(--shadow-field-focus-invalid); }
|
|
@@ -796,7 +806,7 @@
|
|
|
796
806
|
/* The inset accent line drops, so a focused field draws the system ring just inside its edge. */
|
|
797
807
|
:is(.input, .select, .textarea):is(:focus-visible, .is-focus), .search:is(:has(input:focus-visible), .is-focus), .composer-box:is(:has(textarea:focus-visible), .is-focus) { outline: var(--focus-width) solid Highlight; outline-offset: -1px; }
|
|
798
808
|
/* The lifted fill drops, so the selected tab takes a system border; the padding absorbs it. */
|
|
799
|
-
.tab[aria-selected="true"] { border: 2px solid Highlight; padding: calc(var(--
|
|
809
|
+
.tab[aria-selected="true"] { border: 2px solid Highlight; padding-inline: calc(var(--tab-pad) - 2px); }
|
|
800
810
|
.tab[aria-selected="true"]::before { content: none; }
|
|
801
811
|
.check input:checked { forced-color-adjust: none; border-color: Highlight; background: Highlight; }
|
|
802
812
|
/* The masked search cross would lose its fill, so it opts out and takes the system text colour. */
|
|
@@ -959,7 +969,9 @@
|
|
|
959
969
|
.row { grid-template-columns: minmax(0, 1fr); }
|
|
960
970
|
/* Touch: controls of every size grow to --control-touch, the inert state examples included. Only the size
|
|
961
971
|
specimens (data-specimen="size") keep their sizes. */
|
|
962
|
-
.btn:not([data-specimen="size"] *), .navlist a, .tab { min-height: var(--control-touch); }
|
|
972
|
+
.btn:not([data-specimen="size"] *), .navlist a, .rows [role="option"], .tab:not([data-specimen="size"] *) { min-height: var(--control-touch); }
|
|
973
|
+
/* An icon-only button grows on both sides, so it stays a circle. */
|
|
974
|
+
.btn[data-icon-only]:not([data-specimen="size"] *) { --size: var(--control-touch); }
|
|
963
975
|
/* A segmented control grows its item size too, so icon-only options stay square. */
|
|
964
976
|
.segmented:not([data-specimen="size"] *) { --item: var(--control-touch); }
|
|
965
977
|
.input:not([data-specimen="size"] *), .select:not([data-specimen="size"] *), .range:not([data-specimen="size"] *) { height: var(--control-touch); }
|
|
@@ -970,7 +982,6 @@
|
|
|
970
982
|
/* Touch: the hover toolbar never shows; a tap opens the thread, whose header holds More. */
|
|
971
983
|
.msg-tools { display: none; }
|
|
972
984
|
.composer-box textarea { min-height: var(--control-touch); padding-block: calc((var(--control-touch) - 1lh) / 2); }
|
|
973
|
-
.composer-box .btn { width: var(--control-touch); min-height: var(--control-touch); }
|
|
974
985
|
/* The thread pane takes the full width below the message list, and the handle hides. */
|
|
975
986
|
.thread-demo { grid-template-columns: minmax(0, 1fr); }
|
|
976
987
|
.thread-pane { border-left: 0; border-top: 1px solid var(--color-border-subtle); }
|
|
@@ -1137,7 +1148,7 @@
|
|
|
1137
1148
|
<section class="component" id="button" data-layer="Core" data-states="hover pressed focus disabled busy" aria-labelledby="button-title">
|
|
1138
1149
|
<header><h3 id="button-title">Button</h3><span class="badge">Core</span><a href="components.md#button">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="button" aria-label="Copy link to Button" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1139
1150
|
<p class="purpose">The main action control: primary, secondary, ghost, danger, and text.</p>
|
|
1140
|
-
<dl class="guidance"><dt>Do</dt><dd>One primary button in each decision group, labelled with a verb for its result, such as “Save changes”. Every other action in the group is secondary, ghost, or text.</dd><dt>Don’t</dt><dd>The danger variant on an action the reader can undo. Danger marks an action that destroys something.</dd></dl>
|
|
1151
|
+
<dl class="guidance"><dt>Do</dt><dd>One primary button in each decision group, labelled with a verb for its result, such as “Save changes”. Every other action in the group is secondary, ghost, or text. Give a lone icon a circle when it is the one icon action in its group that needs a fill, such as Send or Update, and put it at the end of its row.</dd><dt>Don’t</dt><dd>The danger variant on an action the reader can undo. Danger marks an action that destroys something. An icon-only ghost or text button: a lone icon with no fill at rest is a quiet action, because the two look the same at rest and would hover in different shapes.</dd></dl>
|
|
1141
1152
|
<div class="row"><h4>Primary</h4><div class="states">
|
|
1142
1153
|
<div class="state"><button class="btn" type="button"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg>New monitor</button><span class="caption">Rest</span></div>
|
|
1143
1154
|
<div class="state" inert><button class="btn is-hover" type="button">New monitor</button><span class="caption">Hover</span></div>
|
|
@@ -1167,6 +1178,16 @@
|
|
|
1167
1178
|
<div class="state" inert><button class="btn danger is-active" type="button">Delete monitor</button><span class="caption">Pressed</span></div>
|
|
1168
1179
|
<div class="state" inert><button class="btn danger" type="button" disabled>Delete monitor</button><span class="caption">Disabled</span></div>
|
|
1169
1180
|
</div></div>
|
|
1181
|
+
<div class="row"><h4>Icon only</h4><div class="states">
|
|
1182
|
+
<div class="state"><button class="btn" type="button" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button><span class="caption">Primary</span></div>
|
|
1183
|
+
<div class="state"><button class="btn secondary" type="button" data-icon-only aria-label="Add"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg></button><span class="caption">Secondary</span></div>
|
|
1184
|
+
<div class="state"><button class="btn danger" type="button" data-icon-only aria-label="Remove"><svg class="icon" aria-hidden="true"><use href="#i-close"/></svg></button><span class="caption">Danger</span></div>
|
|
1185
|
+
<div class="state" inert><button class="btn secondary is-hover" type="button" data-icon-only aria-label="Add, hover"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg></button><span class="caption">Hover</span></div>
|
|
1186
|
+
<div class="state" inert><button class="btn secondary is-focus" type="button" data-icon-only aria-label="Add, focus"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg></button><span class="caption">Focus visible</span></div>
|
|
1187
|
+
<div class="state" inert><button class="btn secondary is-active" type="button" data-icon-only aria-label="Add, pressed"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg></button><span class="caption">Pressed</span></div>
|
|
1188
|
+
<div class="state" inert><button class="btn" type="button" data-icon-only aria-label="Send" aria-busy="true" disabled><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button><span class="caption">Busy</span></div>
|
|
1189
|
+
<div class="state" inert><button class="btn" type="button" data-icon-only aria-label="Send, disabled" disabled><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button><span class="caption">Disabled</span></div>
|
|
1190
|
+
</div></div>
|
|
1170
1191
|
<div class="row"><h4>Text</h4><div class="states">
|
|
1171
1192
|
<div class="state"><button class="btn text" type="button">Show details</button><span class="caption">Rest</span></div>
|
|
1172
1193
|
<div class="state" inert><button class="btn text is-focus" type="button">Show details</button><span class="caption">Focus visible</span></div>
|
|
@@ -1178,6 +1199,9 @@
|
|
|
1178
1199
|
<div class="state" inert data-specimen="size"><button class="btn" type="button" data-size="lg">Large</button><span class="caption">lg</span></div>
|
|
1179
1200
|
<div class="state" inert data-specimen="size"><button class="btn secondary" type="button" data-size="sm">Small</button><span class="caption">sm</span></div>
|
|
1180
1201
|
<div class="state" inert data-specimen="size"><button class="btn secondary" type="button" data-size="lg">Large</button><span class="caption">lg</span></div>
|
|
1202
|
+
<div class="state" inert data-specimen="size"><button class="btn secondary" type="button" data-size="sm" data-icon-only aria-label="Add, small"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg></button><span class="caption">sm</span></div>
|
|
1203
|
+
<div class="state" inert data-specimen="size"><button class="btn secondary" type="button" data-size="md" data-icon-only aria-label="Add, medium"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg></button><span class="caption">md</span></div>
|
|
1204
|
+
<div class="state" inert data-specimen="size"><button class="btn secondary" type="button" data-size="lg" data-icon-only aria-label="Add, large"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg></button><span class="caption">lg</span></div>
|
|
1181
1205
|
</div></div>
|
|
1182
1206
|
<div class="row"><h4>Link</h4><div class="states">
|
|
1183
1207
|
<div class="state"><a class="btn secondary" href="#quiet-action">Read the guide</a><span class="caption">Rest, live; no underline on hover</span></div>
|
|
@@ -1188,7 +1212,7 @@
|
|
|
1188
1212
|
<section class="component" id="quiet-action" data-layer="Core" data-states="hover pressed focus disabled" aria-labelledby="quiet-action-title">
|
|
1189
1213
|
<header><h3 id="quiet-action-title">Quiet action</h3><span class="badge">Core</span><a href="components.md#quiet-action">Spec</a><button class="quiet-action copy-link" type="button" data-copy-link="quiet-action" aria-label="Copy link to Quiet action" title="Copy link"><svg class="icon" aria-hidden="true"><use href="#i-link"/></svg></button></header>
|
|
1190
1214
|
<p class="purpose">A small transparent action inside a component, such as Copy or Close.</p>
|
|
1191
|
-
<dl class="guidance"><dt>Do</dt><dd>Use it for an action inside a component: Copy in a code block or command list, close in a dialog or drawer, Full size on a capture, the project trigger, and the overflow menu trigger.</dd><dt>Don’t</dt><dd>
|
|
1215
|
+
<dl class="guidance"><dt>Do</dt><dd>Use it for an action inside a component: Copy in a code block or command list, close in a dialog or drawer, Full size on a capture, the project trigger, and the overflow menu trigger. Use it too for any icon-only action that needs no fill at rest, such as the utilities in a sidebar footer or Help at the end of an action bar. In a row of controls it is a square at that row’s control size, and it grows to <code>--control-touch</code> at tablet width.</dd><dt>Don’t</dt><dd>A labelled action that stands on its own in the page, such as Save or Next. That is a button. A lone icon that needs a fill at rest, such as Send: that is an icon-only button, a circle.</dd></dl>
|
|
1192
1216
|
<p class="note">One recipe for Copy, Full size, dialog and drawer close, the project trigger, and the overflow menu trigger. Each component sets only its size and place.</p>
|
|
1193
1217
|
<div class="row"><h4>Icon</h4><div class="states">
|
|
1194
1218
|
<div class="state"><button class="quiet-action close" type="button" aria-label="Close"><svg class="icon" aria-hidden="true"><use href="#i-close"/></svg></button><span class="caption">Rest</span></div>
|
|
@@ -1231,7 +1255,7 @@
|
|
|
1231
1255
|
<p class="purpose">A small suggestion that fills in a composer or opens a screen.</p>
|
|
1232
1256
|
<dl class="guidance"><dt>Do</dt><dd>Offer two to four next steps under an empty composer, each named for its result, such as “Review last night’s run”. A chip either fills in the composer or opens a screen.</dd><dt>Don’t</dt><dd>A chip for a status or a category, which is a badge, or a chip that sends a message on its own.</dd></dl>
|
|
1233
1257
|
<div class="row"><h4>Suggestions</h4><div class="states">
|
|
1234
|
-
<div class="state wide"><div class="chip-stage"><div class="composer"><label class="sr-only" for="chip-composer">Post to #global</label><div class="composer-box"><textarea id="chip-composer" rows="1" placeholder="Post to #global, or start with /todo" aria-describedby="chip-composer-hint"></textarea><button class="btn" type="button" data-size="sm" aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="chip-composer-hint">Posts to the board. It doesn’t start a T3 Code thread.</p></div><ul class="chips" aria-label="Suggestions"><li><a class="chip" href="#thread-panel"><svg class="icon" aria-hidden="true"><use href="#i-dark"/></svg>Open a thread</a></li><li><a class="chip" href="#message-group"><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg>See grouped messages</a></li><li><a class="chip" href="#find-field"><svg class="icon" aria-hidden="true"><use href="#i-search"/></svg>Find a component</a></li></ul></div><span class="caption">Rest, live: a wrapping, centred row under an empty composer</span></div>
|
|
1258
|
+
<div class="state wide"><div class="chip-stage"><div class="composer"><label class="sr-only" for="chip-composer">Post to #global</label><div class="composer-box"><textarea id="chip-composer" rows="1" placeholder="Post to #global, or start with /todo" aria-describedby="chip-composer-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="chip-composer-hint">Posts to the board. It doesn’t start a T3 Code thread.</p></div><ul class="chips" aria-label="Suggestions"><li><a class="chip" href="#thread-panel"><svg class="icon" aria-hidden="true"><use href="#i-dark"/></svg>Open a thread</a></li><li><a class="chip" href="#message-group"><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg>See grouped messages</a></li><li><a class="chip" href="#find-field"><svg class="icon" aria-hidden="true"><use href="#i-search"/></svg>Find a component</a></li></ul></div><span class="caption">Rest, live: a wrapping, centred row under an empty composer</span></div>
|
|
1235
1259
|
</div></div>
|
|
1236
1260
|
<div class="row"><h4>States</h4><div class="states">
|
|
1237
1261
|
<div class="state" inert><a class="chip" href="#chip"><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg>Open todos</a><span class="caption">Rest</span></div>
|
|
@@ -1333,6 +1357,9 @@
|
|
|
1333
1357
|
<div class="state"><div class="segmented" role="group" aria-label="Layout" data-icon-only data-live><button type="button" aria-pressed="true" aria-label="List" title="List"><svg class="icon" aria-hidden="true"><use href="#i-list"/></svg></button><button type="button" aria-pressed="false" aria-label="Grid" title="Grid"><svg class="icon" aria-hidden="true"><use href="#i-grid"/></svg></button></div><span class="caption">Icon only, live</span></div>
|
|
1334
1358
|
<div class="state" inert data-specimen="size"><div class="segmented" role="group" aria-label="Small" data-size="sm"><button type="button" aria-pressed="true">Day</button><button type="button" aria-pressed="false">Week</button></div><span class="caption">sm</span></div>
|
|
1335
1359
|
<div class="state" inert data-specimen="size"><div class="segmented" role="group" aria-label="Large" data-size="lg"><button type="button" aria-pressed="true">Day</button><button type="button" aria-pressed="false">Week</button></div><span class="caption">lg</span></div>
|
|
1360
|
+
<div class="state" inert data-specimen="size"><div class="segmented" role="group" aria-label="Theme, small" data-size="sm" data-icon-only><button type="button" aria-pressed="true" aria-label="System" title="System"><svg class="icon" aria-hidden="true"><use href="#i-system"/></svg></button><button type="button" aria-pressed="false" aria-label="Light" title="Light"><svg class="icon" aria-hidden="true"><use href="#i-light"/></svg></button><button type="button" aria-pressed="false" aria-label="Dark" title="Dark"><svg class="icon" aria-hidden="true"><use href="#i-dark"/></svg></button></div><span class="caption">sm</span></div>
|
|
1361
|
+
<div class="state" inert data-specimen="size"><div class="segmented" role="group" aria-label="Theme, medium" data-icon-only><button type="button" aria-pressed="true" aria-label="System" title="System"><svg class="icon" aria-hidden="true"><use href="#i-system"/></svg></button><button type="button" aria-pressed="false" aria-label="Light" title="Light"><svg class="icon" aria-hidden="true"><use href="#i-light"/></svg></button><button type="button" aria-pressed="false" aria-label="Dark" title="Dark"><svg class="icon" aria-hidden="true"><use href="#i-dark"/></svg></button></div><span class="caption">md</span></div>
|
|
1362
|
+
<div class="state" inert data-specimen="size"><div class="segmented" role="group" aria-label="Theme, large" data-size="lg" data-icon-only><button type="button" aria-pressed="true" aria-label="System" title="System"><svg class="icon" aria-hidden="true"><use href="#i-system"/></svg></button><button type="button" aria-pressed="false" aria-label="Light" title="Light"><svg class="icon" aria-hidden="true"><use href="#i-light"/></svg></button><button type="button" aria-pressed="false" aria-label="Dark" title="Dark"><svg class="icon" aria-hidden="true"><use href="#i-dark"/></svg></button></div><span class="caption">lg</span></div>
|
|
1336
1363
|
</div></div>
|
|
1337
1364
|
</section>
|
|
1338
1365
|
|
|
@@ -1604,6 +1631,10 @@
|
|
|
1604
1631
|
<div class="state" inert><div class="tablist" role="tablist" aria-label="Monitor, hover"><button class="tab" type="button" role="tab" aria-selected="true">Overview</button><button class="tab is-hover" type="button" role="tab" aria-selected="false">History</button></div><span class="caption">Hover on History</span></div>
|
|
1605
1632
|
<div class="state" inert><div class="tablist" role="tablist" aria-label="Monitor, focus"><button class="tab is-focus" type="button" role="tab" aria-selected="true">Overview</button><button class="tab" type="button" role="tab" aria-selected="false">History</button></div><span class="caption">Focus visible</span></div>
|
|
1606
1633
|
</div></div>
|
|
1634
|
+
<div class="row"><h4>Sizes</h4><div class="states">
|
|
1635
|
+
<div class="state" inert data-specimen="size"><div class="tablist" role="tablist" aria-label="Monitor, small" data-size="sm"><button class="tab" type="button" role="tab" aria-selected="true">Overview</button><button class="tab" type="button" role="tab" aria-selected="false">History</button></div><span class="caption">sm</span></div>
|
|
1636
|
+
<div class="state" inert data-specimen="size"><div class="tablist" role="tablist" aria-label="Monitor, medium"><button class="tab" type="button" role="tab" aria-selected="true">Overview</button><button class="tab" type="button" role="tab" aria-selected="false">History</button></div><span class="caption">md</span></div>
|
|
1637
|
+
</div></div>
|
|
1607
1638
|
</section>
|
|
1608
1639
|
|
|
1609
1640
|
<section class="component" id="skip-link" data-layer="Core" aria-labelledby="skip-link-title">
|
|
@@ -1678,7 +1709,7 @@
|
|
|
1678
1709
|
<dl class="guidance"><dt>Do</dt><dd>Open a thread beside its channel, so the reader keeps the channel in view, and mark its root message as selected in the list.</dd><dt>Don’t</dt><dd>A thread in a dialog, or a second pane beside the first. One thread is open at a time.</dd></dl>
|
|
1679
1710
|
<p class="note">In an application the pane is an <code><aside></code>; the catalogue uses a section, because a complementary landmark belongs at the top level, outside <code>main</code>. Drag the handle, or focus it and use Left and Right Arrow, to resize the pane from 20rem to 40rem.</p>
|
|
1680
1711
|
<div class="row"><h4>Live</h4><div class="states">
|
|
1681
|
-
<div class="state wide"><div class="thread-demo"><ol class="stream" aria-label="Messages in #annoterm"><li class="msg" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links">2 replies</p></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>20 Nov 16:20</time></div><div class="msg-body"><p>Docs preview deploys are back.</p></div></div></li></ol><section class="thread-pane" id="thread-live" aria-labelledby="thread-live-title"><div class="pane-resize" role="separator" aria-orientation="vertical" aria-label="Resize thread panel" aria-controls="thread-live" aria-valuemin="20" aria-valuemax="40" aria-valuenow="26" tabindex="0"></div><div class="pane-head"><h4 id="thread-live-title">Thread <span>#annoterm</span></h4><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false" aria-controls="thread-menu"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="thread-menu" role="menu" aria-label="Thread actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button><button type="button" role="menuitem" tabindex="-1">Open #annoterm</button><button type="button" role="menuitem" tabindex="-1">Copy link</button></div></div></div><div class="pane-body"><ol class="stream" aria-label="Thread root"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links"><a href="#thread-panel">PR #31</a><span>checks passed</span><a href="#thread-panel">T3 thread</a></p></div></div></li></ol><p class="reply-count">2 replies</p><ol class="stream" aria-label="Replies"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Yesterday 11:30</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>renderer handles tables that fit the terminal</b></span></summary><div class="tool-body"><ul><li>Tables up to 80 columns render.</li><li>Wider tables clip at the edge.</li></ul></div></details></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="tag">Asks you</span><time>Today 09:40</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>PR #31 open, checks pass</b></span></summary><div class="tool-body"><p>PR #31 adds table rendering and its snapshot tests.</p></div></details><p>Wide tables in narrow terminals: scroll sideways, or wrap cells? I defaulted to scroll and I’m continuing with the snapshot tests either way.</p></div></div></li></ol></div><div class="composer"><label class="sr-only" for="thread-composer">Reply to desktop-claude</label><div class="composer-box"><textarea id="thread-composer" rows="1" placeholder="Reply to desktop-claude" aria-describedby="thread-composer-hint"></textarea><button class="btn" type="button" data-size="sm" aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="thread-composer-hint">Saved to the board. desktop-claude sees it the next time it checks.</p></div></section></div><span class="caption">Open beside its channel, live; the root message is selected in the list</span></div>
|
|
1712
|
+
<div class="state wide"><div class="thread-demo"><ol class="stream" aria-label="Messages in #annoterm"><li class="msg" aria-current="true"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links">2 replies</p></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">F</span><div><div class="msg-head"><span class="author">Filip</span><time>20 Nov 16:20</time></div><div class="msg-body"><p>Docs preview deploys are back.</p></div></div></li></ol><section class="thread-pane" id="thread-live" aria-labelledby="thread-live-title"><div class="pane-resize" role="separator" aria-orientation="vertical" aria-label="Resize thread panel" aria-controls="thread-live" aria-valuemin="20" aria-valuemax="40" aria-valuenow="26" tabindex="0"></div><div class="pane-head"><h4 id="thread-live-title">Thread <span>#annoterm</span></h4><div class="overflow"><button class="quiet-action" type="button" aria-label="More actions for this thread" aria-haspopup="menu" aria-expanded="false" aria-controls="thread-menu"><svg class="icon" aria-hidden="true"><use href="#i-more"/></svg></button><div class="menu-list" id="thread-menu" role="menu" aria-label="Thread actions" hidden><button type="button" role="menuitem" tabindex="-1">Mark unread</button><button type="button" role="menuitem" tabindex="-1">Make it a todo</button><button type="button" role="menuitem" tabindex="-1">Open #annoterm</button><button type="button" role="menuitem" tabindex="-1">Copy link</button></div></div></div><div class="pane-body"><ol class="stream" aria-label="Thread root"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>20 Nov 16:05</time></div><div class="msg-body"><p>annoterm: render Markdown tables</p><p class="msg-links"><a href="#thread-panel">PR #31</a><span>checks passed</span><a href="#thread-panel">T3 thread</a></p></div></div></li></ol><p class="reply-count">2 replies</p><ol class="stream" aria-label="Replies"><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><time>Yesterday 11:30</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>renderer handles tables that fit the terminal</b></span></summary><div class="tool-body"><ul><li>Tables up to 80 columns render.</li><li>Wider tables clip at the edge.</li></ul></div></details></div></div></li><li class="msg"><span class="avatar" aria-hidden="true">DC</span><div><div class="msg-head"><span class="author agent">desktop-claude</span><span class="tag">Asks you</span><time>Today 09:40</time></div><div class="msg-body"><details class="tool"><summary><span>Handoff note · <b>PR #31 open, checks pass</b></span></summary><div class="tool-body"><p>PR #31 adds table rendering and its snapshot tests.</p></div></details><p>Wide tables in narrow terminals: scroll sideways, or wrap cells? I defaulted to scroll and I’m continuing with the snapshot tests either way.</p></div></div></li></ol></div><div class="composer"><label class="sr-only" for="thread-composer">Reply to desktop-claude</label><div class="composer-box"><textarea id="thread-composer" rows="1" placeholder="Reply to desktop-claude" aria-describedby="thread-composer-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="thread-composer-hint">Saved to the board. desktop-claude sees it the next time it checks.</p></div></section></div><span class="caption">Open beside its channel, live; the root message is selected in the list</span></div>
|
|
1682
1713
|
</div></div>
|
|
1683
1714
|
<div class="row"><h4>Handle</h4><div class="states">
|
|
1684
1715
|
<div class="state" inert><div class="handle-specimen"><div class="pane-resize" role="separator" aria-orientation="vertical" aria-label="Resize thread panel" aria-valuemin="20" aria-valuemax="40" aria-valuenow="26" tabindex="0"></div></div><span class="caption">Rest</span></div>
|
|
@@ -1692,14 +1723,14 @@
|
|
|
1692
1723
|
<p class="purpose">One growing field with an inline send button.</p>
|
|
1693
1724
|
<dl class="guidance"><dt>Do</dt><dd>Name the field for where the message goes, such as “Reply to desktop-claude”, and say in the hint what happens after sending.</dd><dt>Don’t</dt><dd>A Send label beside the field, or a second field for a title. The composer is one field and one icon.</dd></dl>
|
|
1694
1725
|
<div class="row"><h4>States</h4><div class="states">
|
|
1695
|
-
<div class="state"><div class="composer"><label class="sr-only" for="cmp-live">Reply to desktop-claude</label><div class="composer-box"><textarea id="cmp-live" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-live-hint"></textarea><button class="btn" type="button" data-size="sm" aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-live-hint">Saved to the board.</p></div><span class="caption">Rest, live</span></div>
|
|
1726
|
+
<div class="state"><div class="composer"><label class="sr-only" for="cmp-live">Reply to desktop-claude</label><div class="composer-box"><textarea id="cmp-live" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-live-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-live-hint">Saved to the board.</p></div><span class="caption">Rest, live</span></div>
|
|
1696
1727
|
<div class="state" inert><div class="composer"><label class="sr-only" for="cmp-typing">Reply, typing</label><div class="composer-box"><textarea id="cmp-typing" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-typing-hint">Scroll for now.
|
|
1697
1728
|
Wrap needs a design pass first.
|
|
1698
|
-
I’ll open a ticket for it.</textarea><button class="btn" type="button" data-size="sm" aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-typing-hint">Saved to the board.</p></div><span class="caption">Typing: the field grows, up to 10rem</span></div>
|
|
1699
|
-
<div class="state" inert><div class="composer"><label class="sr-only" for="cmp-focus">Reply, focused</label><div class="composer-box is-focus"><textarea id="cmp-focus" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-focus-hint"></textarea><button class="btn" type="button" data-size="sm" aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-focus-hint">Saved to the board.</p></div><span class="caption">Focus visible</span></div>
|
|
1700
|
-
<div class="state" inert><div class="composer"><label class="sr-only" for="cmp-invalid">Reply, refused</label><div class="composer-box"><textarea id="cmp-invalid" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-invalid-hint" aria-invalid="true" aria-errormessage="cmp-invalid-error">Push the fix to acme/private-repo</textarea><button class="btn" type="button" data-size="sm" aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="field-error" id="cmp-invalid-error">Not saved: the message names a private repository. Remove the name and send again.</p><p class="composer-hint" id="cmp-invalid-hint">Saved to the board.</p></div><span class="caption">Invalid: refused, nothing saved</span></div>
|
|
1701
|
-
<div class="state" inert><div class="composer"><label class="sr-only" for="cmp-invalid-focus">Reply, refused and focused</label><div class="composer-box is-focus"><textarea id="cmp-invalid-focus" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-invalid-focus-hint" aria-invalid="true" aria-errormessage="cmp-invalid-focus-error">Push the fix to acme/private-repo</textarea><button class="btn" type="button" data-size="sm" aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="field-error" id="cmp-invalid-focus-error">Not saved: the message names a private repository. Remove the name and send again.</p><p class="composer-hint" id="cmp-invalid-focus-hint">Saved to the board.</p></div><span class="caption">Invalid while focused</span></div>
|
|
1702
|
-
<div class="state" inert><div class="composer"><label class="sr-only" for="cmp-offline">Reply, offline</label><div class="composer-box"><textarea id="cmp-offline" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-offline-hint" disabled></textarea><button class="btn" type="button" data-size="sm" aria-label="Send" disabled><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-offline-hint">Offline: the board server can’t be reached. Sending comes back when it can.</p></div><span class="caption">Disabled: offline, with the reason in the hint</span></div>
|
|
1729
|
+
I’ll open a ticket for it.</textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-typing-hint">Saved to the board.</p></div><span class="caption">Typing: the field grows, up to 10rem</span></div>
|
|
1730
|
+
<div class="state" inert><div class="composer"><label class="sr-only" for="cmp-focus">Reply, focused</label><div class="composer-box is-focus"><textarea id="cmp-focus" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-focus-hint"></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-focus-hint">Saved to the board.</p></div><span class="caption">Focus visible</span></div>
|
|
1731
|
+
<div class="state" inert><div class="composer"><label class="sr-only" for="cmp-invalid">Reply, refused</label><div class="composer-box"><textarea id="cmp-invalid" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-invalid-hint" aria-invalid="true" aria-errormessage="cmp-invalid-error">Push the fix to acme/private-repo</textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="field-error" id="cmp-invalid-error">Not saved: the message names a private repository. Remove the name and send again.</p><p class="composer-hint" id="cmp-invalid-hint">Saved to the board.</p></div><span class="caption">Invalid: refused, nothing saved</span></div>
|
|
1732
|
+
<div class="state" inert><div class="composer"><label class="sr-only" for="cmp-invalid-focus">Reply, refused and focused</label><div class="composer-box is-focus"><textarea id="cmp-invalid-focus" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-invalid-focus-hint" aria-invalid="true" aria-errormessage="cmp-invalid-focus-error">Push the fix to acme/private-repo</textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send"><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="field-error" id="cmp-invalid-focus-error">Not saved: the message names a private repository. Remove the name and send again.</p><p class="composer-hint" id="cmp-invalid-focus-hint">Saved to the board.</p></div><span class="caption">Invalid while focused</span></div>
|
|
1733
|
+
<div class="state" inert><div class="composer"><label class="sr-only" for="cmp-offline">Reply, offline</label><div class="composer-box"><textarea id="cmp-offline" rows="1" placeholder="Reply to desktop-claude" aria-describedby="cmp-offline-hint" disabled></textarea><button class="btn" type="button" data-size="sm" data-icon-only aria-label="Send" disabled><svg class="icon" aria-hidden="true"><use href="#i-send"/></svg></button></div><p class="composer-hint" id="cmp-offline-hint">Offline: the board server can’t be reached. Sending comes back when it can.</p></div><span class="caption">Disabled: offline, with the reason in the hint</span></div>
|
|
1703
1734
|
</div></div>
|
|
1704
1735
|
</section>
|
|
1705
1736
|
|
package/language/components.md
CHANGED
|
@@ -48,7 +48,7 @@ A control's **States** line names each interactive state it has. In `components.
|
|
|
48
48
|
|
|
49
49
|
Layer: Core.
|
|
50
50
|
|
|
51
|
-
- **Anatomy.** A native `<button>` with a label and an optional 16px leading icon. A link that should look like a button is an `<a>` with the same classes and no underline. Medium weight, `-0.01em` tracking, line height 1.25, `--radius-control` (an 8px rounded rectangle, the field and row corner). Horizontal padding is `--space-2` (8px) at `sm`, 10px at `md`, and `--space-3` at `lg`, and an `sm` button's icon sits 6px from its label.
|
|
51
|
+
- **Anatomy.** A native `<button>` with a label and an optional 16px leading icon. A link that should look like a button is an `<a>` with the same classes and no underline. Medium weight, `-0.01em` tracking, line height 1.25, `--radius-control` (an 8px rounded rectangle, the field and row corner). Horizontal padding is `--space-2` (8px) at `sm`, 10px at `md`, and `--space-3` at `lg`, and an `sm` button's icon sits 6px from its label. An icon-only button carries `data-icon-only` and holds one 16px icon and no text. It is a circle: its width equals its height at every size, with no padding and `--radius-circle`. Only primary, secondary, and danger have an icon-only form.
|
|
52
52
|
- **Variants.**
|
|
53
53
|
|
|
54
54
|
| Variant | Rest | Hover | Pressed |
|
|
@@ -59,11 +59,12 @@ Layer: Core.
|
|
|
59
59
|
| Danger | `--color-error-surface` fill, `--color-error` mixed 75% with `--color-status-ink` (85% in dark), `--shadow-raise` | `--color-error` 10% into `--color-error-surface` | `--color-error` 16% into `--color-error-surface`, `--shadow-sink` |
|
|
60
60
|
| Text | Transparent, `--color-link`, underlined, 4px padding | No change | No change |
|
|
61
61
|
|
|
62
|
-
- **States.** Rest, hover, pressed, focus-visible, disabled, and busy. Pressed also moves the button 1px down, for every variant but text, and applies to `aria-pressed="true"`. Busy sets `aria-busy="true"` and `disabled`, so the button takes no hover or press, with `cursor: wait`. It shows a 14px spinner before the label: a 2px `currentColor` ring with a transparent right edge, turning once every 700ms. Keep the label while busy.
|
|
63
|
-
- **Do.** One primary button in each decision group, labelled with a verb for its result, such as "Save changes". Every other action in the group is secondary, ghost, or text.
|
|
64
|
-
- **Don't.** The danger variant on an action the reader can undo. Danger marks an action that destroys something.
|
|
62
|
+
- **States.** Rest, hover, pressed, focus-visible, disabled, and busy. Pressed also moves the button 1px down, for every variant but text, and applies to `aria-pressed="true"`. Busy sets `aria-busy="true"` and `disabled`, so the button takes no hover or press, with `cursor: wait`. It shows a 14px spinner before the label: a 2px `currentColor` ring with a transparent right edge, turning once every 700ms. Keep the label while busy. An icon-only button has no room for both, so the spinner replaces its icon, and its `aria-label` stays the same.
|
|
63
|
+
- **Do.** One primary button in each decision group, labelled with a verb for its result, such as "Save changes". Every other action in the group is secondary, ghost, or text. Give a lone icon a circle when it is the one icon action in its group that needs a fill, such as Send or Update, and put it at the end of its row.
|
|
64
|
+
- **Don't.** The danger variant on an action the reader can undo. Danger marks an action that destroys something. An icon-only ghost or text button: a lone icon with no fill at rest is a quiet action, because the two look the same at rest and would hover in different shapes.
|
|
65
65
|
- **Danger label.** Check the label at 4.5:1 on the rest, hover, and pressed fills. Where the mix misses, use the first of `--color-text`, black, and white that reads on all three.
|
|
66
66
|
- **Keyboard and screen reader.** Native button behavior: Enter and Space activate it. An icon-only button needs `aria-label`.
|
|
67
|
+
- **Touch.** At tablet width (`max-width: 800px`) every button is at least `--control-touch` tall, and an icon-only button grows to a `--control-touch` circle.
|
|
67
68
|
- **Motion.** Fill and shadow transition over `--duration-fast`. Reduced motion slows the spinner to 1.4s instead of stopping it, so the busy state stays visible. The `tokens.css` base holds that exception.
|
|
68
69
|
- **Forced colors.** The transparent border draws as the system button edge.
|
|
69
70
|
|
|
@@ -73,8 +74,8 @@ Layer: Core.
|
|
|
73
74
|
|
|
74
75
|
- **Anatomy.** A native `<button>`, or the `<summary>` of a menu. Transparent fill, a transparent 1px border, `--radius-control`, and `--color-muted`. The project trigger overrides the corner with `--radius-field`, because it opens a menu and does not act (see [Site header](#site-header)). The content is centred in the box. An icon-only action holds an SVG icon, never a text glyph such as ×, because a font draws a glyph's ink off the centre of its box. Give the shared recipe zero specificity (`:where()`), so each component sets the action's size, place, and resting colour.
|
|
75
76
|
- **States.** Hover turns the text `--color-text` and fills `currentColor` at 6% over transparent, only where the pointer can hover (`@media (hover: hover)`). Pressed fills `currentColor` at 12%, with no sink. Focus-visible is the focus ring, inset where the parent clips. An open menu keeps its trigger at the 6% hover tint, below the press. The code block's Copy is `--color-muted` at rest and takes the block's text colour (`--color-code-text`) on hover and while its tick shows. A disabled quiet action follows the shared [disabled](#rules-for-every-control) rule.
|
|
76
|
-
- **Do.** Use it for an action inside a component: Copy in a code block or command list, close in a dialog or drawer, Full size on a capture, the project trigger, and the overflow menu trigger.
|
|
77
|
-
- **Don't.**
|
|
77
|
+
- **Do.** Use it for an action inside a component: Copy in a code block or command list, close in a dialog or drawer, Full size on a capture, the project trigger, and the overflow menu trigger. Use it too for any icon-only action that needs no fill at rest, such as the utilities in a sidebar footer or Help at the end of an action bar. In a row of controls it is a square at that row's control size, and it grows to `--control-touch` at tablet width.
|
|
78
|
+
- **Don't.** A labelled action that stands on its own in the page, such as Save or Next. That is a button. A lone icon that needs a fill at rest, such as Send: that is an icon-only button, a circle.
|
|
78
79
|
- **Keyboard and screen reader.** Native button behavior. An icon-only action needs `aria-label`.
|
|
79
80
|
- **Motion.** Fill and colour change over `--duration-fast` with `--ease-out`.
|
|
80
81
|
- **Forced colors.** The transparent border draws as the system edge.
|
|
@@ -160,7 +161,7 @@ Layer: Core.
|
|
|
160
161
|
|
|
161
162
|
Layer: Core.
|
|
162
163
|
|
|
163
|
-
- **Anatomy.** A `role="group"` with an accessible name, containing one `<button aria-pressed>` for each option. The track is undivided: `--color-well` fill, `--shadow-sink`, a transparent 1px border, 1px of padding, and `--radius-control`, and it is the control height (`--item`), so an `sm` filter lines up with the `sm` buttons beside it. Its options sit 2px (`--inset`, the border plus the padding) inside its outer edge, with 2px between them, as in Astryx's segmented control: each button is `--item` minus 4px tall, with line height 1, so the label sits centred, and `--space-2` padding at `sm` and `--space-3` at `md` and `lg`, and square when icon-only. Each button is its own thumb: a `::before` layer that fills it, behind the label. Its corners are concentric with the track from the outer edge, `calc(var(--radius-control) - var(--inset))` (6px), a named exception to the 8px row corner. At tablet width a control of any size sets `--item` to `--control-touch`, so its options grow to the touch size less their 4px total inset, and icon-only options stay square.
|
|
164
|
+
- **Anatomy.** A `role="group"` with an accessible name, containing one `<button aria-pressed>` for each option. The track is undivided: `--color-well` fill, `--shadow-sink`, a transparent 1px border, 1px of padding, and `--radius-control`, and it is the control height (`--item`), so an `sm` filter lines up with the `sm` buttons beside it. Its options sit 2px (`--inset`, the border plus the padding) inside its outer edge, with 2px between them, as in Astryx's segmented control: each button is `--item` minus 4px tall, with line height 1, so the label sits centred, and `--space-2` padding at `sm` and `--space-3` at `md` and `lg`, and square when icon-only. Each button is its own thumb: a `::before` layer that fills it, behind the label. Its corners are concentric with the track from the outer edge, `calc(var(--radius-control) - var(--inset))` (6px), a named exception to the 8px row corner. At tablet width a control of any size sets `--item` to `--control-touch`, so its options grow to the touch size less their 4px total inset, and icon-only options stay square. An icon-only control (`data-icon-only`) has a `--radius-pill` track and round options, `calc(var(--radius-pill) - var(--inset))` on a square box, so the thumb is a circle at rest and a pill while it glides. A text control keeps the 8px track and 6px options.
|
|
164
165
|
- **Tokens.** Labels are `--color-muted`. The pressed option's thumb is `--color-control-thumb` with `--shadow-raise` and no ring. Its label is `--color-segmented-current-text`: `--color-accent` where it reaches 4.5:1 on the thumb, on the page and on a surface, and otherwise the first of `--color-text`, black, and white that does. An icon-only option needs 3:1. Hover on an unpressed option shows the thumb at 45% and turns the label `--color-text`.
|
|
165
166
|
- **States.** Rest, hover, pressed, focus-visible (an inset ring, so it hugs the thumb instead of crossing into the next option), and disabled.
|
|
166
167
|
- **Do.** Use it for two to five short options that apply at once and change how the same content shows, such as a view mode or the System, Light, and Dark choice.
|
|
@@ -410,13 +411,13 @@ Layer: Core.
|
|
|
410
411
|
|
|
411
412
|
Layer: Core.
|
|
412
413
|
|
|
413
|
-
- **Anatomy.** A `role="tablist"` with no rule below it and a 12px gap below it. It scrolls sideways when needed, and a 24px mask fades each clipped edge. Scrolling clips on every side, so the list has 4px (`--space-1`) padding all round: it keeps the selected tab's shadow whole and its fill off the frame edge. Each tab is a borderless button at least `--control-md` tall
|
|
414
|
+
- **Anatomy.** A `role="tablist"` with no rule below it and a 12px gap below it. It scrolls sideways when needed, and a 24px mask fades each clipped edge. Scrolling clips on every side, so the list has 4px (`--space-1`) padding all round: it keeps the selected tab's shadow whole and its fill off the frame edge. Each tab is a borderless button with the [button](#button)'s box: at least `--control-md` tall with 10px inline padding, no block padding, and line height 1, so its label sits centred; `--radius-inline` corners, medium weight, and `--color-muted`. A list with `data-size="sm"`, for app screens, has tabs at least `--control-sm` tall with `--space-2` padding and `--text-sm` labels. At tablet width tabs of every size are at least `--control-touch` tall. The selected tab's fill is a `::before` layer behind the label, inset 0, with the tab's corners; the list sets `isolation: isolate`, so the layer stays inside it.
|
|
414
415
|
- **States.** Hover fills `--color-row-hover` and turns the text `--color-text`. The selected tab takes the [navigation row](#navigation-list)'s current-page recipe: `--color-nav-current` fill and `--shadow-nav-current`, with no underline. Its text is `--color-nav-current-text`: the first of `--color-accent`, `--color-text`, black, and white that reaches 4.5:1 over the tinted fill, both on the page and on a surface (composite a translucent fill over each first). Focus-visible is the focus ring, inset because the list scrolls.
|
|
415
416
|
- **Do.** Use tabs for panels about one object, such as a monitor's Overview and History, when the URL does not change.
|
|
416
417
|
- **Don't.** Links with `role="tab"`, or one set that mixes pages and panels. Pages take a navigation strip.
|
|
417
418
|
- **Motion.** Hover fades over `--duration-fast` with `--ease-out`. When the reader changes the tab, the fill glides from the old tab to the new one as the [segmented control](#segmented-control)'s thumb does: start the new fill's left and right edges where the old fill was, then animate each edge home with the `glide-left` and `glide-right` keyframes and CSS `ease`, the leading edge over 260ms and the trailing edge over 300ms. Labels cross-fade their colour over 260ms. An interrupted glide starts from the fill's current position. There is no glide on first render or under reduced motion, where the fill moves at once.
|
|
418
419
|
- **Keyboard and screen reader.** Roving `tabindex`: arrow keys move between tabs, Home and End go to the ends, and focus selects the tab. Each tab has `aria-controls` and `aria-selected`; each panel has `role="tabpanel"`. Without JavaScript, show every panel under its own heading. Apply the tab roles and hide the headings and unselected panels only when the script enhances the markup.
|
|
419
|
-
- **Forced colors.** The fill layer is removed (`content: none`), so the selected tab takes a 2px `Highlight` border, and its padding shrinks by 2px to keep its size.
|
|
420
|
+
- **Forced colors.** The fill layer is removed (`content: none`), so the selected tab takes a 2px `Highlight` border, and its inline padding shrinks by 2px to keep its size.
|
|
420
421
|
|
|
421
422
|
## Skip link
|
|
422
423
|
|
|
@@ -497,14 +498,14 @@ Layer: Core.
|
|
|
497
498
|
|
|
498
499
|
Layer: Core.
|
|
499
500
|
|
|
500
|
-
- **Anatomy.** A box that holds one auto-growing `<textarea>` and an inline send button, with a one-line hint below it. The box is a field: `--color-field-bg`, a 1px `--color-field-edge` border, `--radius-panel`, and `--shadow-field`, with `
|
|
501
|
+
- **Anatomy.** A box that holds one auto-growing `<textarea>` and an inline send button, with a one-line hint below it. The box is a field: `--color-field-bg`, a 1px `--color-field-edge` border, `--radius-panel`, and `--shadow-field`, with 5px (`0.3125rem`) padding inside its 1px border, 6px from its outer edge, and `--space-3` at the start. The textarea has no edge, fill, or ring of its own: `field-sizing: content`, at least `--control-sm` tall and at most 10rem before it scrolls, with no resize handle, in `--text-md` with line height 1.45. The send button is an icon-only primary [button](#button) at `sm`: a 28px circle with the SVG send icon. The 6px around it keeps the circle clear of the box's 12px corner; a circle is not a nested rectangle, so the concentric rule does not apply. It stays at the bottom of the box as the text grows. The hint is `--text-xs` `--color-muted`, `--space-1` below the box, and says where the message goes, such as "Saved to the board". An error, in the [field wrapper](#field-wrapper)'s error type, sits between the box and the hint.
|
|
501
502
|
- **States.** Rest (empty or typing), focus (the [field focus](#rules-for-every-control) on the box: `--color-accent` edge and `--shadow-field-focus`, no ring), invalid (refused: `--color-error` edge, `--shadow-field-focus-invalid` while focused, the reason as inline error text, and nothing saved), and disabled (offline: the box takes the disabled field look, the send button its own, and the hint says why). The send button keeps the primary button's own look.
|
|
502
503
|
- **Do.** Name the field for where the message goes, such as "Reply to desktop-claude", and say in the hint what happens after sending.
|
|
503
504
|
- **Don't.** A Send label beside the field, or a second field for a title. The composer is one field and one icon.
|
|
504
505
|
- **Keyboard and screen reader.** The textarea has a visible or visually hidden `<label>`, and `aria-describedby` names the hint. Enter sends, and Shift+Enter starts a new line. The send button has `aria-label="Send"`. A refused message keeps the text in the field, sets `aria-invalid="true"`, and names the error with `aria-errormessage`. Offline, the textarea and the button are `disabled`, and the hint gives the reason.
|
|
505
506
|
- **Motion.** None: as for the input, the focus and invalid edges change at once.
|
|
506
507
|
- **Forced colors.** As for the search field: the box's edge draws as the system field edge, and a focused composer draws a `Highlight` outline 1px inside its edge, because the inset line drops. The invalid edge relies on its error text.
|
|
507
|
-
- **Touch.** At tablet width (`max-width: 800px`) the textarea is at least `--control-touch` tall and the send button grows to `--control-touch`
|
|
508
|
+
- **Touch.** At tablet width (`max-width: 800px`) the textarea is at least `--control-touch` tall and the send button grows to a `--control-touch` circle, as every icon-only button does.
|
|
508
509
|
|
|
509
510
|
## Tool-call disclosure
|
|
510
511
|
|
package/language/decisions.md
CHANGED
|
@@ -5,7 +5,7 @@ Each entry records a choice this language made, the options it rejected, and why
|
|
|
5
5
|
| Decision | Layer | Chosen | Rejected, and why | Guarded by |
|
|
6
6
|
| --- | --- | --- | --- | --- |
|
|
7
7
|
| Units | Core | Type (`--text-*`), spacing (`--space-*`), and control and row heights (`--control-*`, `--row`) are rem, as are the page literals that size text, padding, gaps, and line heights. Each equals its old pixel value at the default 16px root, so the default render does not change. Hairlines, focus rings and their offsets, shadows, fixed icon and box sizes, layout widths, and radii stay px. Media query breakpoints stay px and are out of scope here. | All px: text and controls ignored the reader's browser font-size setting. All rem: 1px hairlines and the 2px focus ring would grow or round to uneven widths. | rem sizes: `tests/design-foundations.test.mjs` "type, spacing, and control sizes are rem on every page, in tokens.css, and in the report stylesheet" |
|
|
8
|
-
| Depth | Core | Quiet lift: borderless controls take one tight shadow at rest (`--shadow-raise`) and sink when pressed. Containers take a fainter edge (`--shadow-surface`). No outer light highlight, and no blur wider than 2px. A transparent 1px border stays for forced colors. | A dual raise (a dark blur below and a light highlight above) on controls and containers alike: cards looked heavy, idle buttons looked too raised, and dark mode showed a fuzzy halo. Before that, a crisp, bordered look. | shadows from tokens: `tests/design-foundations.test.mjs` "pages take depth from tokens.css: no literal shadow outside a focus ring or divider"; raise and sink recipe: no test yet |
|
|
8
|
+
| Depth | Core | Quiet lift: borderless controls take one tight shadow at rest (`--shadow-raise`) and sink when pressed. Containers take a fainter edge (`--shadow-surface`). No outer light highlight, and no blur wider than 2px. A transparent 1px border stays for forced colors. | A dual raise (a dark blur below and a light highlight above) on controls and containers alike: cards looked heavy, idle buttons looked too raised, and dark mode showed a fuzzy halo. Before that, a crisp, bordered look. Astryx-style flat fills (2026-11-23) removed the rest raise and pressed sink, used translucent neutral fills on secondary buttons and segmented controls, and gave panels and cards 1px edges. After comparing the rendered versions, the owner preferred the quiet lift and soft neumorphic details. | shadows from tokens: `tests/design-foundations.test.mjs` "pages take depth from tokens.css: no literal shadow outside a focus ring or divider"; raise and sink recipe: no test yet |
|
|
9
9
|
| Primary button | Core | Filled with the project hue (`--color-accent`), with `--color-accent-text`. | Plain ink (black in light, white in dark) looked too severe. Graphite ink looked disabled. | label contrast in every state: `tests/catalogue/catalogue.spec.ts` "contrast: every enabled primary button label reaches 4.5:1"; hue fill: no test yet |
|
|
10
10
|
| Danger button | Core | A raised `--color-error-surface` button with danger-tinted text, mixed toward `--color-text` as status badges are. Hover and press deepen the tint, and press sinks it. The label must read at 4.5:1 on all three fills; where the mix misses, it falls back to `--color-text`, black, or white. | A flat button with `--color-text` and a hover border read as a pink secondary button, and pressing it showed nothing. | label contrast on all three fills: `tests/catalogue/catalogue.spec.ts` "contrast: every enabled danger button label reaches 4.5:1"; fills, raise, and sink: no test yet |
|
|
11
11
|
| Pressed button | Core | Every variant but text sinks 1px, takes `--shadow-sink`, and changes its fill. Press is a button state: other controls show their latched state, and quiet actions tint without sinking. | The sink shadow alone was too faint to show a click, especially on secondary and ghost. | rule present: `tests/design-foundations.test.mjs` "every state rule the guard requires exists in the catalogue"; 1px move, sink, and fill: no test yet |
|
|
@@ -30,6 +30,7 @@ Each entry records a choice this language made, the options it rejected, and why
|
|
|
30
30
|
| Segmented label | Core | The selected label reads at 4.5:1 on its thumb, and an icon at 3:1 (`--color-segmented-current-text`): `--color-accent`, or the first of `--color-text`, black, and white that reads. | Accent at 3:1 for labels too, which let some hues' text fall below 4.5:1. | label contrast: `tests/catalogue/catalogue.spec.ts` "contrast: every selected segmented label on its thumb reaches 4.5:1"; icon at 3:1: no test yet |
|
|
31
31
|
| Phone drawer trigger | Core | A page-level contents drawer opens from a soft secondary button with a three-line menu glyph and a label. The no-JavaScript fallback keeps a chevron, because it opens in place. The site shell uses the same trigger below its header (see Phone header). | A down chevron promised a dropdown, but the trigger opens a side drawer. | No test yet |
|
|
32
32
|
| Shape follows role | Core | One corner for each height of thing, after Astryx's radius scale (`meta/astryx@7032abf`, `theme/tokens.stylex.ts`: inner 4, element 8, container 12). Rows, actions, and fields are all 8px: places and picked rows (`--radius-inline`), controls that act or set a value in place with every option shown on one line (`--radius-control`: buttons, quiet actions, chips, and segmented controls), and typed fields, controls whose label wraps, and one-line controls that are not actions (`--radius-field`). A field's `--color-field-edge` border, not its shape, tells it from an action, whose border is transparent. Containers are 12px (`--radius-panel`); rows 4px inside one, such as menu rows, take 12 − 4 = 8px, the row corner. Small marks inside text or a row (checkboxes, keyboard keys, and mentions) are 4px (`--radius-mark`). Small state marks are pills (`--radius-pill`). A pill never holds text that can wrap, and nested rectangles are concentric. The owner chose this scale (option B) on 2026-11-22 from rendered comparisons on the board, after finding the board busy and its mixed corners clashing. The token names predate the rule: they say inline, control, and field, where the uses are rows, actions, and typed fields. The names stay, because a rename breaks every page that uses them. | The previous scale (6px rows, 10px actions and fields, 16px containers, 6px checkboxes and keys; option A): a 6px tab beside a 10px button and field clashed on the board, and 16px containers needed a 12px corner for rows inside them. The same structure at 10px and 14px (option C): on 28px controls and 24px chips, 10px reads as nearly a pill, the action shape the owner rejected; chips would have needed 28px or a 4px corner. Pill actions (`--radius-control` at 999px), the shape until 2026-11-22: the owner found pill buttons ugly. One radius for every role: small state marks lose the pill that sets them apart, and rows and containers lose the corners that tell a place from a holder. A list of components for each token with no reason: a new component had no rule to pick from. | rendered corners by role: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one", "the DESIGN.md shape table names each role token with its value"; slider track and thumb, and select picker: `tests/design-foundations.test.mjs` "the slider track, slider thumb, and select picker take their role’s corners"; no literal radius: `tests/design-foundations.test.mjs` "no page or the report stylesheet writes a literal corner radius" |
|
|
33
|
+
| Shape follows content | Core | Text gets the 8px corner; a lone icon that acts on its own fill gets a circle. An icon-only button (`data-icon-only`: primary, secondary, or danger) is a square box at every size with `--radius-circle` (999px), the composer's send button included. A see-through lone icon is a quiet action, an 8px tile. An icon-only segmented control has a `--radius-pill` track and round options (`calc(var(--radius-pill) - var(--inset))`), as the theme picker had before 2026-11-22, at today's heights. Text segmented controls keep the 8px track. Astryx has no circle: this departs from its one 8px element corner for lone icon actions and the icon-only segmented control. The owner chose this on 2026-11-24 after comparing T3 Code's composer and sidebar footer, where quiet icons are rounded squares and the one filled or edged action is round; a council (Sol 6.2, Opus 5.5, Gemini 4 Neon, with Fable 5.2 ruling) settled the ghost and radius details. | Every icon-only button round, ghost included: a ghost icon and a quiet action look the same at rest and would hover in different shapes. Ghost icon buttons as 8px tiles on `.btn`: two recipes for one look, with different hover fills and press. `50%`, as a literal or a token: an ellipse while the segmented thumb glides, and exempt from the corner guard. Reusing `--radius-pill` for icon buttons: it puts an action back on the state-mark token the owner moved actions off on 2026-11-22. An outlined Update button: the system has no outlined variant; Update is a secondary circle. Pill buttons with text stay rejected (Shape follows role). | round and square: `tests/catalogue/catalogue.spec.ts` "each component renders the corner radius of its role, and no other part has one", "renders control sizes" (an icon-only button and an icon-only option render width equal to height at 1280, 800, and 375px); markup: "marks every icon-only button, and none is ghost or text" |
|
|
33
34
|
| Themes | Core | A theme sets only its inputs: a hue for light and for dark, and optionally its two fonts, its neutrals (page, surfaces, hover, edges, and text, as a whole set for both modes), and, for a theme imported at runtime through the mapper, any of its 11 syntax colours (`--color-syntax-*`); theme files do not take syntax colours. Shape, spacing, states, and status colours stay core, so actions keep their 8px corner in every theme. Neutrals are an input so an open palette keeps its own surfaces: Catppuccin and GitHub's Primer ship as themes, each mapped by its palette's own roles and unaltered. Where a hue cannot carry the text on a selected fill at 4.5:1, the build takes the first of the theme's text colour, black, and white that can, as the token roles say. Every theme passes the contrast guards in both modes. Theme files use the W3C Design Tokens format (2025.10) and ship beside the CSS, so design-token tools can read and write them: one file per theme, with a `light` and a `dark` group of sRGB colour tokens. Tools read the two groups as separate tokens (`light.color-bg`, `dark.color-bg`), not as one token with two modes; the Design Tokens Resolver module expresses modes, and it can replace the groups once tools support it. Graphite Indigo is the default. The family sites' own hues ship as themes named for their colour, so a site can load its theme file in place of an inline hue pair: Lagoon (annoterm), Copper (devps), Iris (filip-stack), Lapis (Workbench), and Fern (wtree). Each theme's note names its site. Where a site's light hue falls just short of 4.5:1 as selected-row text, its theme takes the smallest OKLCH lightness step that passes and keeps the hue and chroma, so the selection keeps the hue; the site can adopt the theme's value. A third-party palette is never altered. The theme mapper (`./theme-mapper`, experimental) turns a VS Code colour theme into these inputs for its one mode by selection: each input takes the first of its keys whose colour passes that input's contrast gate, and no colour is changed. What still fails is reported, as a `theme` problem in the theme's colours or a `core` problem in a core link, status, or syntax colour on its fills. Command text and prompts follow the theme’s code text and accent, so their failures belong to the theme’s text and focus checks. The checks are data: every ink on every fill the catalogue draws, hover and pressed states included, so a state axe never renders is still measured. The mapper keeps an imported theme's syntax colours too, from its `tokenColors`: each role takes the rule nearest its scope family. A role the theme leaves out takes its core colour; keyword, string, number, and comment have core colours, and the other 7 follow one of them or the code text. The owner chose this on 2026-11-14 to support open themes as their authors made them: the person who installs a theme owns its contrast, so a failing syntax colour is reported as a `theme` problem, never blocked or replaced. Most imports report one: comments in 5 of 8 popular themes measure 2.4–3.7:1 on their own background. The checks stay at 4.5:1, the WCAG AA minimum for text of this size; 3:1 would clear only 2 of those 5. The build and the mapper share one engine for applying a theme, resolving it, and checking it. | The action shape as a theme input (a pill or another corner): a pill brings back the action shape the owner rejected (see Shape follows role), and a corner of its own breaks the one-corner-per-height scale. Radix Themes and shadcn scale every corner together, and Primer, Carbon, Polaris, and Spectrum keep shape core; revisit it as a whole radius scale when a theme needs one. Linear and OpenAI themes: neither publishes an open palette, and their colours are brand identity. Pine and Mauve, the earlier invented themes: no product used them, and they read as unrelated to the family's sites. A grey-blue quiet theme (Slate): it sat beside the muted text and the info blue, so its selection read as metadata and its primary button looked disabled. Adjusting an imported colour until it passes: the result is no longer the theme, and nothing tells the reader it changed. Syntax colours kept core for imports: an import lost its author's code colours to stay clear of reports. A looser bar for syntax, such as 3:1: it is below AA for code text, and it clears few imports. | Per-theme contrast guards (`tests/design-foundations.test.mjs`), the catalogue's rendered recipes in every theme, the Themes page tests, and the theme mapper's tests (`tests/theme-mapper.test.mjs`, the React smoke test with the mode locked opposite the system's, and the catalogue test that every axe contrast failure is a reported problem) |
|
|
34
35
|
| Open VSX theme imports | Core | `./open-vsx` is an experimental, framework-agnostic export for JSONC theme-file parsing and the Open VSX client. It returns VS Code theme data for `./theme-mapper`, with colours unchanged. Includes overlay colours child last and concatenate syntax rules base first, so later rules win. The client keeps the source client’s response, archive, path, checksum, include-depth, and timeout limits. The client reads ZIP headers and caps output from native `DecompressionStream('deflate-raw')`. `jsonc-parser` 3.3.1 reads comments and trailing commas and reports parse locations. It is the only runtime dependency and is pinned, used only by this export; `./theme-mapper` keeps no runtime dependencies. Component libraries own picker UI, persistence, and applying a theme. | Keeping parsing and fetching in a component library: each framework would need its own implementation and safety checks. JSZip at runtime: its synchronous inflation cannot enforce the output cap within a chunk. Handwritten JSONC parsing: more code to maintain for an established format. Making the mapper depend on the client: mapping an already parsed theme would load unused dependencies. | `tests/open-vsx.test.mjs`: offline client imports, JSONC validation, name normalisation, include merging and safety limits; generated declarations checked by `pnpm tokens:check`; package exports checked by `pnpm verify` |
|
|
35
36
|
| ui-sdk components | Core | Owner decision, 2026-11-16: the design system draws [ui-sdk](https://ui-sdk.dev)'s headless components itself. `ui-sdk.css` styles their `data-slot` and state attributes in `@layer components`, with the values of the `components.html` recipes, for the components DESIGN.md lists; any other ui-sdk component is unsupported until it has a spec and rules. It is experimental and checked against one exact ui-sdk version, because ui-sdk is in beta and renames parts between betas. The design system takes no runtime dependency on ui-sdk; component libraries keep their own components. | ui-sdk's optional `web.css` themed through its `--ui-*` variables: one radius, one spacing unit, and one ring could not draw shape by role, control sizes, depth, or field focus, and its link and focus rules replaced the base's. Shared `:is(.class, [data-slot])` rules: the parts differ in structure from the native recipes, such as a checkbox that is a button with an indicator. | Parity: `tests/react-smoke/ui-sdk.spec.ts` "ui-sdk parts match the catalogue" compares each part with its `components.html` specimen, state by state, in light and dark; rendered parts: "every part ui-sdk.css draws renders from the installed ui-sdk"; pins and tokens: `tests/ui-sdk-css.test.mjs` |
|
|
@@ -41,9 +42,10 @@ Each entry records a choice this language made, the options it rejected, and why
|
|
|
41
42
|
| Tab glide | Core | The selected tab's fill is a `::before` layer that glides between tabs like the segmented thumb: `glide-left` and `glide-right`, 260ms leading and 300ms trailing, with CSS `ease`. No glide on first render or under reduced motion, and no layer in forced colors. The owner chose it at Gate M. | The fill jumping from tab to tab, unlike the segmented control beside it. | glide and reduced motion: `tests/catalogue/catalogue.spec.ts` "the tab fill glides to the new tab", "the tab fill moves at once" |
|
|
42
43
|
| Segmented touch size | Core | At tablet width a segmented control of any size sets `--item` to `--control-touch` (unsized only until 2026-11-23). | Growing only the buttons' `min-height`: `--item` stayed at `--control-md`, so icon-only options were 36×44 ovals (found at Gate M). | No test yet |
|
|
43
44
|
| Compact controls | Core | `--control-sm` is 28px (`1.75rem`), Astryx's small element height (`--size-element-sm`). Buttons pad `--space-2` (8px) at `sm` with a 6px icon gap, 10px at `md`, and `--space-3` at `lg`. Badges pad 2px by 6px with a 4px dot gap. A new [chip](components.md#chip) is 24px tall with `--space-2` padding. The owner chose this on 2026-11-22 from a rendered comparison of today's controls, the proposal, and Astryx, after finding the board busy. | Astryx's 12px button padding at every size: the owner asked for narrower controls, and the height cut alone left `sm` buttons as wide as before. Astryx's 12px `sm` label: personal work keeps IBM Plex at `--text-sm` (13px). Astryx's solid status badges: status surfaces are soft tints (DESIGN.md, Theme and color), and solid fills are louder than a busy screen can take. Astryx's semibold pressed option: the thumb and accent text already mark it, and a weight change needs a hidden copy of each label to stop the width from shifting. Astryx's 0.98 press scale: the 1px sink is part of quiet depth. | token value: `tests/token-values.test.mjs` "tokens.css preserves DS-1 values except …"; recipes: `tests/catalogue/catalogue.spec.ts` and the ui-sdk parity test `tests/react-smoke/ui-sdk.spec.ts` "ui-sdk parts match the catalogue" |
|
|
44
|
-
| Control size scale | Core | `--control-sm`, `--control-md`, and `--control-lg` are 28px, 32px, and 36px (`1.75rem`, `2rem`, `2.25rem`), Astryx's element sizes (`--size-element-sm`, `-md`, `-lg`). A control with no size is `md`. A separate `--control-touch`, 44px (`2.75rem`), is what controls of every size grow to at tablet width, and it sizes the docs-site links and icon actions that were `--control-lg` at every width; only the catalogue's inert size specimens keep their sizes there. The owner chose this on 2026-11-23: 36px `md` felt big beside 28px `sm`. | The 28 / 36 / 44px scale (until 2026-11-23): `md` sat 8px above `sm`, so a medium control stood out in a dense screen, and `lg` doubled as the touch size. Astryx's 32px `md` and 36px `lg` were first rejected on 2026-11-22 because `md` would move every form and `lg` served touch; the owner's feedback on `md`, and a separate touch token, removed both reasons. Making `sm` the default: documentation and product pages would need `md` on every control, and the gap to `md` is now 4px. Growing only unsized controls at tablet width (the rule before): an application screen sets every control at `sm`, so its touch targets would stay 28px, and an explicit `lg` would drop from 44px to 36px. | token values: `tests/token-values.test.mjs` "tokens.css preserves DS-1 values except …"; touch growth: `tests/
|
|
45
|
+
| Control size scale | Core | `--control-sm`, `--control-md`, and `--control-lg` are 28px, 32px, and 36px (`1.75rem`, `2rem`, `2.25rem`), Astryx's element sizes (`--size-element-sm`, `-md`, `-lg`). A control with no size is `md`. A separate `--control-touch`, 44px (`2.75rem`), is what controls of every size grow to at tablet width, and it sizes the docs-site links and icon actions that were `--control-lg` at every width; only the catalogue's inert size specimens keep their sizes there. The owner chose this on 2026-11-23: 36px `md` felt big beside 28px `sm`. | The 28 / 36 / 44px scale (until 2026-11-23): `md` sat 8px above `sm`, so a medium control stood out in a dense screen, and `lg` doubled as the touch size. Astryx's 32px `md` and 36px `lg` were first rejected on 2026-11-22 because `md` would move every form and `lg` served touch; the owner's feedback on `md`, and a separate touch token, removed both reasons. Making `sm` the default: documentation and product pages would need `md` on every control, and the gap to `md` is now 4px. Growing only unsized controls at tablet width (the rule before): an application screen sets every control at `sm`, so its touch targets would stay 28px, and an explicit `lg` would drop from 44px to 36px. | token values: `tests/token-values.test.mjs` "tokens.css preserves DS-1 values except …"; rendered sizes and touch growth at 1280, 800, and 375px: `tests/catalogue/catalogue.spec.ts` "<page> renders control sizes at <width>px", and `tests/react-smoke/ui-sdk.spec.ts` "ui-sdk parts match the catalogue at 375px" |
|
|
45
46
|
| Segmented track inset | Core | The track is the control height and insets its options 2px from its outer edge (its 1px border and 1px of padding), with 2px between options, as Astryx's segmented control does (`SegmentedControl.tsx`: 2px padding and gap; `SegmentedControlItem.tsx`: item height the element height minus 4px, 8px padding at `sm`, 12px at `md` and `lg`). Each option is its own thumb, with `calc(var(--radius-control) - var(--inset))`, 6px, measured from the outer edge because the border is part of the track's visible curve: the one control corner below 8px, a named exception to the row corner. The owner asked for it on 2026-11-22 after the 28px `sm` filter's thumb looked off centre in its 30px track. Options set `line-height: 1`, so the label sits centred: the inherited 1.6 put IBM Plex 1.8px above centre in a 24px `sm` option (Chromium). | A thumb inset 2px inside each full-height option (the rule until 2026-11-22): the track was 2px taller than the control (34px beside a 32px button at `sm`, then 30px beside 28px), and the thumbs sat 4px apart. The mockups' nested 12px track around 8px rows: at 28px tall, a 4px inset leaves a 20px option, which is cramped. Measuring from the padding edge (7px): the visible curve is the border's, so 7px reads as a corner that does not follow the track. | thumb centred and track height equals the same-size button: `tests/catalogue/catalogue.spec.ts`; ui-sdk parity: `tests/react-smoke/ui-sdk.spec.ts` "ui-sdk parts match the catalogue" |
|
|
46
47
|
| Application density | Core | In an application screen, buttons, fields, and segmented controls are `sm` (28px), the main action included, and chips stay 24px. The main action stands out by its primary fill. The owner dropped the `md` main action on 2026-11-23: `md` felt big beside `sm`. Rows are `--row` tall, with `--text-sm` body text and `--text-xs` metadata. Documentation and product pages keep `md`. At tablet width every touch target grows to `--control-touch`, at every size. The owner chose this on 2026-11-22 from the board mockups. | Toolbar controls alone at `sm`, the rule before: forms and actions inside a pane stayed `md`, so one screen mixed two heights. `md` everywhere: the board read as busy. One `md` main action per screen (the first version of this rule): it felt big next to `sm` controls. | No test yet |
|
|
48
|
+
| Tab density | Core | A tab has the button's box: at least `--control-md` (32px) tall, 10px inline padding, no block padding, and line height 1; `data-size="sm"` tabs, for app screens, are 28px with 8px padding. Tabs grow to `--control-touch` at tablet width. The list keeps its 4px padding, which keeps the selected tab's shadow whole where the list clips. The owner asked for narrower tabs with less dead space on 2026-11-24. | The tab before: `--space-2` `--space-3` padding with line height 1.6 made a 38px tab, taller than every control beside it, and 84px wide for "Overview". 2px list padding: it clips the selected tab's `--shadow-nav-current`, which reaches 4px below the tab. | heights: `tests/catalogue/catalogue.spec.ts` "renders control sizes" (tabs at their exact control height) |
|
|
47
49
|
| Astryx as the reference system | Core | When a value or behaviour is not decided here, start from Astryx's (`meta/astryx`, MIT, read at `7032abf`), and record any departure in this file. Take the idea and the values, never the code. The identity stays this system's: IBM Plex, the theme hues, quiet depth, and the forced-colors rules. The owner chose this on 2026-11-22 so the system stops re-deciding settled questions; the quiet action fill, the focus ring, field focus, the radius scale, and the compact controls already follow Astryx. React apps keep ui-sdk for behaviour: `ui-sdk.css` draws it. | Astryx's React components in React apps, themed with these tokens: it reverses the board's ui-sdk choice, and the Vue library could not use them. Making the design system a wrapper of ui-sdk: `@filipgutica/ui` (Vue) and the static sites use the design system, ui-sdk is React-only here and in beta, and `ui-sdk.css` already draws ui-sdk's parts. Deciding each value from scratch: it re-decided questions Astryx has answered, and the results drifted toward it anyway. | No test: a working rule for authors |
|
|
48
50
|
| Conversation components | Core | Message row, message group, hover toolbar, thread panel, composer, tool-call disclosure, mention, and chip are specified here before any app builds them, so the board's React code and any later Vue component draw from one spec. They follow the board mockups (2026-11-22) and Slack, T3 Code, and ChatGPT patterns: flat rows with no bubble; one author's messages within about 5 minutes grouped under one avatar; actions in a hover toolbar that is one Tab stop (`role="toolbar"`, arrow keys between its actions) and never shown on touch; tool output collapsed to one line in a native `<details>`; a composer that is one field with an inline send button; a thread in a side pane, resizable from 20rem to 40rem by drag or arrow keys and full width at tablet width. Conversation sits after Navigation, because its parts reuse the selected row and the overflow menu. A message takes one tag style, `--color-nav-current-text` semibold, only on a message that needs the reader. A mention is static text, not a link. | Bubbles or cards around messages: the board read as busy, and Slack, T3 Code, and ChatGPT use flat rows. A row of buttons on every message: it repeats the same actions down the stream. A toolbar as a `role="group"`: three Tab stops for each message in a long stream. A thread in a dialog: it hides the channel the reader is replying about. Building the components in the board app first: the app's code would become the only definition. | rendered corners by role and the conversation keyboard paths: `tests/catalogue/catalogue.spec.ts`; parts, groups, and states agreement: `tests/component-parts.test.mjs` and `tests/design-foundations.test.mjs` |
|
|
49
51
|
| Phone header | Core | The family shell, option A, which the owner chose on 2026-11-11: the site's header matches the other family sites. At tablet width the static header has two rows, the project switcher and the appearance control, then the Pages strip. Where both do not fit, as at 320px, the appearance control wraps to its own row at the start, as UiSiteHeader does on PluginBench and Filip Stack, and the project name never truncates. The rule below the header is the family's solid `--color-text` line. Just below it, at the start, the labelled trigger ("Components: By purpose") opens the drawer from the left, the side it sits on. The drawer is titled with the rail's name and holds Find and the rail's groups. `/` opens it with Find focused. Without JavaScript nothing moves. | The Gate M single sticky row with the site name, then icon-only Find and Menu buttons, with the pages and appearance in the Menu drawer: the site had no way to the other family sites, and the Menu button sat at the right while the drawer slid in from the left. Option B, keeping that row and sliding the drawer in from the right: it kept the site apart from the other seven family sites. Truncating the project name at 320px so both controls shared row 1: the family wraps the picker instead, and the name should never truncate. | `tests/site/site.spec.ts` "the switcher and appearance share the first row, then the pages, then the trigger", "the switcher and appearance take a row each, then the pages, then the trigger", "every clipped strip link shows at least 16px", "the trigger opens the drawer from the left edge, titled with the rail and holding Find and the rail only", "the trigger label follows the current section as the page scrolls"; `tests/catalogue/catalogue.spec.ts` "the trigger opens the drawer on the current row, and a link closes it and focuses the target" |
|
package/language/reference.html
CHANGED
|
@@ -108,7 +108,8 @@
|
|
|
108
108
|
|
|
109
109
|
/* Tabs, for the Foundations specimens: components.html#tabs, unchanged. */
|
|
110
110
|
.tablist { --glide-lead: 260ms; --glide-trail: 300ms; display: flex; width: max-content; max-width: 100%; overflow-x: auto; padding: var(--space-1); isolation: isolate; }
|
|
111
|
-
|
|
111
|
+
/* A tab's box is the button's: the control height, the button's inline padding (--tab-pad), and line height 1. */
|
|
112
|
+
.tab { --tab-pad: 0.625rem; position: relative; flex: none; display: inline-flex; align-items: center; min-height: var(--tab-item, var(--control-md)); padding: 0 var(--tab-pad); border: 0; border-radius: var(--radius-inline); background: transparent; color: var(--color-muted); font: var(--weight-medium) var(--text-md) / 1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
112
113
|
.tab.is-hover:where(:not(:disabled)) { background: var(--color-row-hover); color: var(--color-text); }
|
|
113
114
|
@media (hover: hover) { .tab:hover:where(:not(:disabled)) { background: var(--color-row-hover); color: var(--color-text); } }
|
|
114
115
|
/* The selected tab takes the navigation row's lifted fill: one selected state for both. The fill is a
|
|
@@ -129,6 +130,9 @@
|
|
|
129
130
|
/* Line height 1 comes after the font shorthand, which would reset it: the label then sits centred in the option. */
|
|
130
131
|
.segmented button { --depth: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: calc(var(--item) - 2 * var(--inset)); padding: 0 var(--space-3); border: 0; border-radius: calc(var(--radius-control) - var(--inset)); background: transparent; color: var(--color-muted); font: inherit; line-height: 1; cursor: pointer; }
|
|
131
132
|
.segmented[data-icon-only] button { width: calc(var(--item) - 2 * var(--inset)); padding: 0; }
|
|
133
|
+
/* Icon-only: a pill track with round options, concentric with it. A px radius keeps the thumb a pill while it glides. */
|
|
134
|
+
.segmented[data-icon-only] { border-radius: var(--radius-pill); }
|
|
135
|
+
.segmented[data-icon-only] button { border-radius: calc(var(--radius-pill) - var(--inset)); }
|
|
132
136
|
/* The track insets its options 2px from its outer edge (the 1px border and 1px of padding), with 2px between
|
|
133
137
|
them, so each option is its thumb and the track is the control's height. The option's corner is the
|
|
134
138
|
track radius minus that 2px, concentric from the outer edge. */
|
|
@@ -157,7 +161,7 @@
|
|
|
157
161
|
:is(.toolbar, .sidebar) .segmented button { flex: none; }
|
|
158
162
|
@media (forced-colors: active) {
|
|
159
163
|
/* The lifted fill drops, so the selected tab takes a system border; the padding absorbs it. */
|
|
160
|
-
.tab[aria-selected="true"] { border: 2px solid Highlight; padding: calc(var(--
|
|
164
|
+
.tab[aria-selected="true"] { border: 2px solid Highlight; padding-inline: calc(var(--tab-pad) - 2px); }
|
|
161
165
|
.tab[aria-selected="true"]::before { content: none; }
|
|
162
166
|
.segmented button[aria-pressed="true"] { forced-color-adjust: none; color: HighlightText; }
|
|
163
167
|
.segmented button[aria-pressed="true"]::before { forced-color-adjust: none; background: Highlight; }
|
|
@@ -386,6 +390,8 @@
|
|
|
386
390
|
.bar { display: block; height: 12px; background: var(--color-accent); border-radius: var(--radius-inline); }
|
|
387
391
|
.height-bar { display: block; width: 48px; border: 1px solid var(--color-border); border-radius: var(--radius-control); background: var(--color-surface-raised); }
|
|
388
392
|
.shape-box { display: block; width: 96px; height: 56px; border: 1px solid var(--color-border); background: var(--color-surface-raised); }
|
|
393
|
+
/* A circle is a radius on a square box. */
|
|
394
|
+
.shape-box[data-square] { width: 56px; }
|
|
389
395
|
.line-subtle { display: block; height: 0; border-top: 1px solid var(--color-border-subtle); }
|
|
390
396
|
.line-border { display: block; height: 0; border-top: 1px solid var(--color-border); }
|
|
391
397
|
/* The pip and current-row samples take their state from the navigation row rules above. */
|
|
@@ -418,6 +424,7 @@
|
|
|
418
424
|
.segmented button { min-width: calc(var(--item) - 2 * var(--inset)); }
|
|
419
425
|
.btn:not([data-specimen="size"] *), .navlist a, .tab { min-height: var(--control-touch); }
|
|
420
426
|
.search { height: var(--control-touch); }
|
|
427
|
+
.check:not([data-specimen="size"] *) { min-height: var(--control-touch); }
|
|
421
428
|
.shell { grid-template-columns: minmax(0, 1fr); height: auto; }
|
|
422
429
|
main { overflow: visible; }
|
|
423
430
|
.sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--color-border-subtle); padding: var(--space-2) var(--space-6); gap: var(--space-2); }
|
|
@@ -724,10 +731,11 @@
|
|
|
724
731
|
<ul class="specs">
|
|
725
732
|
<li class="spec" data-token="--radius-inline"><div class="spec-meta"><code>--radius-inline</code><span class="value"></span><span class="use">Places and picked rows: navigation rows, tabs, list rows, menu rows, and breadcrumb links</span></div><i class="shape-box" style="border-radius:var(--radius-inline)"></i></li>
|
|
726
733
|
<li class="spec" data-token="--radius-field"><div class="spec-meta"><code>--radius-field</code><span class="value"></span><span class="use">Typed fields, controls whose label wraps, and one-line controls that are not actions: inputs, selects, textareas, toggle cards, pager links, the project-menu trigger, the labelled contents trigger and its no-JavaScript summary, and the skip link</span></div><i class="shape-box" style="border-radius:var(--radius-field)"></i></li>
|
|
727
|
-
<li class="spec" data-token="--radius-control"><div class="spec-meta"><code>--radius-control</code><span class="value"></span><span class="use">Rounded rectangles that act, or set a value in place with every option shown: buttons other than the labelled contents trigger, quiet actions other than the project-menu trigger, and segmented controls; a segmented option takes this radius minus the track's 2px inset</span></div><i class="shape-box" style="border-radius:var(--radius-control)"></i></li>
|
|
734
|
+
<li class="spec" data-token="--radius-control"><div class="spec-meta"><code>--radius-control</code><span class="value"></span><span class="use">Rounded rectangles that act, or set a value in place with every option shown: buttons with a text label other than the labelled contents trigger, quiet actions other than the project-menu trigger, icon-only ones included, and text segmented controls; a segmented option takes this radius minus the track's 2px inset</span></div><i class="shape-box" style="border-radius:var(--radius-control)"></i></li>
|
|
728
735
|
<li class="spec" data-token="--radius-panel"><div class="spec-meta"><code>--radius-panel</code><span class="value"></span><span class="use">Containers: wells, plates, panels, radio cards, alerts, and floating layers; a container whose rows sit 4px inside it, such as a menu, takes it around rows at --radius-inline</span></div><i class="shape-box" style="border-radius:var(--radius-panel)"></i></li>
|
|
729
736
|
<li class="spec" data-token="--radius-mark"><div class="spec-meta"><code>--radius-mark</code><span class="value"></span><span class="use">Small marks inside text or a row: checkboxes, keyboard keys, and mentions</span></div><i class="shape-box" style="border-radius:var(--radius-mark)"></i></li>
|
|
730
|
-
<li class="spec" data-token="--radius-pill"><div class="spec-meta"><code>--radius-pill</code><span class="value"></span><span class="use">Small state marks: status badges, switch tracks, slider and progress tracks, and score pips</span></div><i class="shape-box" style="border-radius:var(--radius-pill)"></i></li>
|
|
737
|
+
<li class="spec" data-token="--radius-pill"><div class="spec-meta"><code>--radius-pill</code><span class="value"></span><span class="use">Small state marks: status badges, switch tracks, slider and progress tracks, and score pips; and the icon-only segmented track</span></div><i class="shape-box" style="border-radius:var(--radius-pill)"></i></li>
|
|
738
|
+
<li class="spec" data-token="--radius-circle"><div class="spec-meta"><code>--radius-circle</code><span class="value"></span><span class="use">A lone icon that acts on its own fill: icon-only buttons (primary, secondary, and danger), on a square box</span></div><i class="shape-box" data-square style="border-radius:var(--radius-circle)"></i></li>
|
|
731
739
|
</ul>
|
|
732
740
|
</section>
|
|
733
741
|
|
package/language/tokens.css
CHANGED
package/language/ui-sdk.css
CHANGED
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
[data-slot="button"] { --depth: var(--shadow-raise); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-md); padding: 0 0.625rem; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--color-accent); color: var(--color-accent-text); box-shadow: var(--depth); font: var(--weight-medium) var(--text-md) / 1.25 var(--font-ui); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
|
|
27
27
|
[data-slot="button"][data-size="sm"] { min-height: var(--control-sm); gap: 0.375rem; padding: 0 var(--space-2); font-size: var(--text-sm); }
|
|
28
28
|
[data-slot="button"][data-size="lg"] { min-height: var(--control-lg); padding: 0 var(--space-3); font-size: var(--text-lg); }
|
|
29
|
+
/* An icon-only button is a circle: one 16px icon and no text, on a square box of the size's control height. */
|
|
30
|
+
[data-slot="button"][data-icon-only] { --size: var(--control-md); flex: none; width: var(--size); height: var(--size); min-height: var(--size); padding: 0; border-radius: var(--radius-circle); }
|
|
31
|
+
[data-slot="button"][data-icon-only][data-size="sm"] { --size: var(--control-sm); }
|
|
32
|
+
[data-slot="button"][data-icon-only][data-size="lg"] { --size: var(--control-lg); }
|
|
29
33
|
[data-slot="button"][data-variant="secondary"] { background: var(--color-control-thumb); color: var(--color-text); }
|
|
30
34
|
[data-slot="button"][data-variant="ghost"] { --depth: none; background: transparent; color: var(--color-muted); }
|
|
31
35
|
/* Danger rises like the other filled variants; its text mixes the hue toward --color-text, as status badges do. */
|
|
@@ -48,6 +52,8 @@
|
|
|
48
52
|
[data-slot="button"]:is([data-disabled], [data-pending]) { --depth: none; opacity: 0.58; cursor: not-allowed; }
|
|
49
53
|
[data-slot="button"][aria-busy="true"] { cursor: wait; }
|
|
50
54
|
[data-slot="button"][aria-busy="true"]::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ui-sdk-spin 700ms linear infinite; }
|
|
55
|
+
/* An icon-only button has no room for both, so the spinner replaces its icon; the aria-label names it still. */
|
|
56
|
+
[data-slot="button"][data-icon-only][aria-busy="true"] > * { display: none; }
|
|
51
57
|
@keyframes ui-sdk-spin { to { transform: rotate(360deg); } }
|
|
52
58
|
|
|
53
59
|
/* ---------- Field wrapper, input, textarea, and select trigger ---------- */
|
|
@@ -195,6 +201,9 @@
|
|
|
195
201
|
/* Line height 1 comes after the font shorthand, which would reset it: the label then sits centred in the item. */
|
|
196
202
|
[data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-item"] { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: calc(var(--item) - 2 * var(--inset)); padding: 0 var(--space-3); border: 0; border-radius: calc(var(--radius-control) - var(--inset)); background: transparent; color: var(--color-muted); font: inherit; line-height: 1; cursor: pointer; }
|
|
197
203
|
[data-slot="segmented-control"][data-orientation="horizontal"][data-icon-only] > [data-slot="segmented-control-item"] { width: calc(var(--item) - 2 * var(--inset)); padding: 0; }
|
|
204
|
+
/* Icon-only: a pill track with round options and thumb, concentric with it. A px radius keeps the thumb a pill while it moves. */
|
|
205
|
+
[data-slot="segmented-control"][data-orientation="horizontal"][data-icon-only] { border-radius: var(--radius-pill); }
|
|
206
|
+
[data-slot="segmented-control"][data-orientation="horizontal"][data-icon-only] > :is([data-slot="segmented-control-item"], [data-slot="segmented-control-indicator"]) { border-radius: calc(var(--radius-pill) - var(--inset)); }
|
|
198
207
|
/* The hover thumb sits behind the label and under the indicator, inside the control's stacking context. */
|
|
199
208
|
[data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-item"]::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none; }
|
|
200
209
|
@media (hover: hover) {
|
|
@@ -213,7 +222,9 @@
|
|
|
213
222
|
is the selected tab's lifted fill, from the position ui-sdk measures. Horizontal only. */
|
|
214
223
|
/* The fill takes its left edge and width: ui-sdk measures --active-tab-right from the end of the scrolled content. */
|
|
215
224
|
[data-slot="tabs-list"][data-orientation="horizontal"] { position: relative; display: flex; width: max-content; max-width: 100%; overflow-x: auto; padding: var(--space-1); isolation: isolate; }
|
|
216
|
-
|
|
225
|
+
/* A tab's box is the button's: the control height, the button's inline padding (--tab-pad), and line height 1. */
|
|
226
|
+
[data-slot="tabs-list"][data-orientation="horizontal"] > [data-slot="tabs-tab"] { --tab-pad: 0.625rem; position: relative; flex: none; display: inline-flex; align-items: center; min-height: var(--control-md); padding: 0 var(--tab-pad); border: 0; border-radius: var(--radius-inline); background: transparent; color: var(--color-muted); font: var(--weight-medium) var(--text-md) / 1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
|
|
227
|
+
[data-slot="tabs-list"][data-orientation="horizontal"][data-size="sm"] > [data-slot="tabs-tab"] { --tab-pad: var(--space-2); min-height: var(--control-sm); font-size: var(--text-sm); }
|
|
217
228
|
@media (hover: hover) {
|
|
218
229
|
[data-slot="tabs-list"][data-orientation="horizontal"] > [data-slot="tabs-tab"]:hover:not([data-disabled], [data-selected]) { background: var(--color-row-hover); color: var(--color-text); }
|
|
219
230
|
}
|
|
@@ -339,12 +350,13 @@
|
|
|
339
350
|
wins by coming later. */
|
|
340
351
|
@media (max-width: 800px) {
|
|
341
352
|
[data-slot="button"]:is(:not([data-size]), [data-size]) { min-height: var(--control-touch); }
|
|
353
|
+
[data-slot="button"][data-icon-only]:is(:not([data-size]), [data-size]) { --size: var(--control-touch); }
|
|
342
354
|
[data-slot="input"]:is(:not([data-size]), [data-size]) { height: var(--control-touch); }
|
|
343
355
|
[data-slot="label"]:is(:not([data-size]), [data-size]):has(> :is([data-slot="checkbox"], [data-slot="radio"], [data-slot="switch"])) { min-height: var(--control-touch); }
|
|
344
356
|
[data-slot="toggle"]:is(:not([data-size]), [data-size]):not([data-orientation]):has(> [data-slot="toggle-icon"]:empty) { min-height: var(--control-touch); }
|
|
345
357
|
[data-slot="select-trigger"]:is(:not([data-size]), [data-size]) { height: var(--control-touch); }
|
|
346
358
|
[data-slot="segmented-control"][data-orientation="horizontal"]:is(:not([data-size]), [data-size]) { --item: var(--control-touch); }
|
|
347
|
-
[data-slot="tabs-list"][data-orientation="horizontal"] > [data-slot="tabs-tab"] { min-height: var(--control-touch); }
|
|
359
|
+
[data-slot="tabs-list"][data-orientation="horizontal"]:is(:not([data-size]), [data-size]) > [data-slot="tabs-tab"] { min-height: var(--control-touch); }
|
|
348
360
|
[data-slot="slider"][data-orientation="horizontal"]:is(:not([data-size]), [data-size]) > [data-slot="slider-control"] { height: var(--control-touch); }
|
|
349
361
|
}
|
|
350
362
|
|
|
@@ -367,7 +379,7 @@
|
|
|
367
379
|
[data-slot="segmented-control"][data-orientation="horizontal"] > [data-slot="segmented-control-item"][data-checked]:focus-visible { outline-color: HighlightText; }
|
|
368
380
|
/* The fill drops, so the selected tab takes a system border; the padding absorbs it. */
|
|
369
381
|
[data-slot="tabs-list"][data-orientation="horizontal"] > [data-slot="tabs-indicator"] { display: none; }
|
|
370
|
-
[data-slot="tabs-list"][data-orientation="horizontal"] > [data-slot="tabs-tab"][data-selected] { border: 2px solid Highlight; padding: calc(var(--
|
|
382
|
+
[data-slot="tabs-list"][data-orientation="horizontal"] > [data-slot="tabs-tab"][data-selected] { border: 2px solid Highlight; padding-inline: calc(var(--tab-pad) - 2px); }
|
|
371
383
|
/* Value marks: only the mark opts out of adjustment and redraws in the system highlight. */
|
|
372
384
|
:is([data-slot="slider"][data-orientation="horizontal"] [data-slot="slider-indicator"], [data-slot="progress"]:not([data-indeterminate]) [data-slot="progress-indicator"]) { forced-color-adjust: none; background: Highlight; }
|
|
373
385
|
}
|
package/package.json
CHANGED