@filipgutica/design-system 1.0.38 → 1.0.39
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/README.md +9 -8
- package/dist/theme-inputs.json +75 -0
- package/dist/themes/catppuccin.css +29 -2
- package/dist/themes/copper.css +7 -2
- package/dist/themes/fern.css +7 -2
- package/dist/themes/github.css +27 -0
- package/dist/themes/graphite-indigo.css +3 -2
- package/dist/themes/iris.css +7 -2
- package/dist/themes/lagoon.css +7 -2
- package/dist/themes/lapis.css +7 -2
- package/dist/tokens.d.ts +2 -1
- package/dist/tokens.js +92 -76
- package/dist/tokens.json +92 -76
- package/fonts/{OFL-IBM-Plex-Sans.txt → OFL-Inter.txt} +1 -1
- package/fonts/{OFL-IBM-Plex-Mono.txt → OFL-JetBrains-Mono.txt} +1 -1
- package/fonts/fonts.css +13 -13
- package/fonts/inter-latin-400-normal.woff2 +0 -0
- package/fonts/inter-latin-500-normal.woff2 +0 -0
- package/fonts/inter-latin-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/language/DESIGN.md +10 -9
- package/language/components.html +15 -17
- package/language/components.md +6 -6
- package/language/decisions.md +10 -6
- package/language/docs.html +2 -5
- package/language/product.html +0 -3
- package/language/reference.html +14 -15
- package/language/tokens.css +151 -13
- package/language/ui-sdk.css +2 -2
- package/package.json +2 -1
- package/theme-mapper/core.js +9 -8
- package/theme-mapper/engine.d.ts +37 -2
- package/theme-mapper/engine.js +49 -4
- package/theme-mapper/index.d.ts +5 -0
- package/theme-mapper/index.js +15 -0
- package/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
package/dist/tokens.json
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
"light": {
|
|
5
5
|
"color-project": "#4b45d1",
|
|
6
6
|
"color-project-dark": "#a5a1ff",
|
|
7
|
-
"font-ui": "\"
|
|
8
|
-
"font-mono": "\"
|
|
7
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
8
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
9
|
+
"radius-base": "8px",
|
|
9
10
|
"color-bg": "#f4f5f6",
|
|
10
11
|
"color-surface": "#e9ebed",
|
|
11
12
|
"color-surface-raised": "#fbfbfc",
|
|
@@ -116,12 +117,12 @@
|
|
|
116
117
|
"measure": "68ch",
|
|
117
118
|
"page-max": "960px",
|
|
118
119
|
"page-wide": "1120px",
|
|
119
|
-
"sidebar": "224px",
|
|
120
|
+
"sidebar-width": "224px",
|
|
120
121
|
"radius-inline": "8px",
|
|
121
122
|
"radius-control": "8px",
|
|
122
|
-
"radius-panel": "
|
|
123
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
123
124
|
"radius-field": "8px",
|
|
124
|
-
"radius-mark": "
|
|
125
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
125
126
|
"radius-pill": "999px",
|
|
126
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%)",
|
|
@@ -138,8 +139,9 @@
|
|
|
138
139
|
"dark": {
|
|
139
140
|
"color-project": "#a5a1ff",
|
|
140
141
|
"color-project-dark": "#a5a1ff",
|
|
141
|
-
"font-ui": "\"
|
|
142
|
-
"font-mono": "\"
|
|
142
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
143
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
144
|
+
"radius-base": "8px",
|
|
143
145
|
"color-bg": "#0d1012",
|
|
144
146
|
"color-surface": "#13171a",
|
|
145
147
|
"color-surface-raised": "#181d21",
|
|
@@ -250,12 +252,12 @@
|
|
|
250
252
|
"measure": "68ch",
|
|
251
253
|
"page-max": "960px",
|
|
252
254
|
"page-wide": "1120px",
|
|
253
|
-
"sidebar": "224px",
|
|
255
|
+
"sidebar-width": "224px",
|
|
254
256
|
"radius-inline": "8px",
|
|
255
257
|
"radius-control": "8px",
|
|
256
|
-
"radius-panel": "
|
|
258
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
257
259
|
"radius-field": "8px",
|
|
258
|
-
"radius-mark": "
|
|
260
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
259
261
|
"radius-pill": "999px",
|
|
260
262
|
"radius-circle": "999px",
|
|
261
263
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
@@ -274,8 +276,9 @@
|
|
|
274
276
|
"light": {
|
|
275
277
|
"color-project": "#8839ef",
|
|
276
278
|
"color-project-dark": "#cba6f7",
|
|
277
|
-
"font-ui": "\"
|
|
278
|
-
"font-mono": "\"
|
|
279
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
280
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
281
|
+
"radius-base": "8px",
|
|
279
282
|
"color-bg": "#eff1f5",
|
|
280
283
|
"color-surface": "#e6e9ef",
|
|
281
284
|
"color-surface-raised": "#eff1f5",
|
|
@@ -386,12 +389,12 @@
|
|
|
386
389
|
"measure": "68ch",
|
|
387
390
|
"page-max": "960px",
|
|
388
391
|
"page-wide": "1120px",
|
|
389
|
-
"sidebar": "224px",
|
|
392
|
+
"sidebar-width": "224px",
|
|
390
393
|
"radius-inline": "8px",
|
|
391
394
|
"radius-control": "8px",
|
|
392
|
-
"radius-panel": "
|
|
395
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
393
396
|
"radius-field": "8px",
|
|
394
|
-
"radius-mark": "
|
|
397
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
395
398
|
"radius-pill": "999px",
|
|
396
399
|
"radius-circle": "999px",
|
|
397
400
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
@@ -408,8 +411,9 @@
|
|
|
408
411
|
"dark": {
|
|
409
412
|
"color-project": "#cba6f7",
|
|
410
413
|
"color-project-dark": "#cba6f7",
|
|
411
|
-
"font-ui": "\"
|
|
412
|
-
"font-mono": "\"
|
|
414
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
415
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
416
|
+
"radius-base": "8px",
|
|
413
417
|
"color-bg": "#11111b",
|
|
414
418
|
"color-surface": "#181825",
|
|
415
419
|
"color-surface-raised": "#1e1e2e",
|
|
@@ -520,12 +524,12 @@
|
|
|
520
524
|
"measure": "68ch",
|
|
521
525
|
"page-max": "960px",
|
|
522
526
|
"page-wide": "1120px",
|
|
523
|
-
"sidebar": "224px",
|
|
527
|
+
"sidebar-width": "224px",
|
|
524
528
|
"radius-inline": "8px",
|
|
525
529
|
"radius-control": "8px",
|
|
526
|
-
"radius-panel": "
|
|
530
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
527
531
|
"radius-field": "8px",
|
|
528
|
-
"radius-mark": "
|
|
532
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
529
533
|
"radius-pill": "999px",
|
|
530
534
|
"radius-circle": "999px",
|
|
531
535
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
@@ -544,8 +548,9 @@
|
|
|
544
548
|
"light": {
|
|
545
549
|
"color-project": "#b04003",
|
|
546
550
|
"color-project-dark": "#f39a62",
|
|
547
|
-
"font-ui": "\"
|
|
548
|
-
"font-mono": "\"
|
|
551
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
552
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
553
|
+
"radius-base": "8px",
|
|
549
554
|
"color-bg": "#f4f5f6",
|
|
550
555
|
"color-surface": "#e9ebed",
|
|
551
556
|
"color-surface-raised": "#fbfbfc",
|
|
@@ -656,12 +661,12 @@
|
|
|
656
661
|
"measure": "68ch",
|
|
657
662
|
"page-max": "960px",
|
|
658
663
|
"page-wide": "1120px",
|
|
659
|
-
"sidebar": "224px",
|
|
664
|
+
"sidebar-width": "224px",
|
|
660
665
|
"radius-inline": "8px",
|
|
661
666
|
"radius-control": "8px",
|
|
662
|
-
"radius-panel": "
|
|
667
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
663
668
|
"radius-field": "8px",
|
|
664
|
-
"radius-mark": "
|
|
669
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
665
670
|
"radius-pill": "999px",
|
|
666
671
|
"radius-circle": "999px",
|
|
667
672
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
@@ -678,8 +683,9 @@
|
|
|
678
683
|
"dark": {
|
|
679
684
|
"color-project": "#f39a62",
|
|
680
685
|
"color-project-dark": "#f39a62",
|
|
681
|
-
"font-ui": "\"
|
|
682
|
-
"font-mono": "\"
|
|
686
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
687
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
688
|
+
"radius-base": "8px",
|
|
683
689
|
"color-bg": "#0d1012",
|
|
684
690
|
"color-surface": "#13171a",
|
|
685
691
|
"color-surface-raised": "#181d21",
|
|
@@ -790,12 +796,12 @@
|
|
|
790
796
|
"measure": "68ch",
|
|
791
797
|
"page-max": "960px",
|
|
792
798
|
"page-wide": "1120px",
|
|
793
|
-
"sidebar": "224px",
|
|
799
|
+
"sidebar-width": "224px",
|
|
794
800
|
"radius-inline": "8px",
|
|
795
801
|
"radius-control": "8px",
|
|
796
|
-
"radius-panel": "
|
|
802
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
797
803
|
"radius-field": "8px",
|
|
798
|
-
"radius-mark": "
|
|
804
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
799
805
|
"radius-pill": "999px",
|
|
800
806
|
"radius-circle": "999px",
|
|
801
807
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
@@ -814,8 +820,9 @@
|
|
|
814
820
|
"light": {
|
|
815
821
|
"color-project": "#27752a",
|
|
816
822
|
"color-project-dark": "#7fd083",
|
|
817
|
-
"font-ui": "\"
|
|
818
|
-
"font-mono": "\"
|
|
823
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
824
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
825
|
+
"radius-base": "8px",
|
|
819
826
|
"color-bg": "#f4f5f6",
|
|
820
827
|
"color-surface": "#e9ebed",
|
|
821
828
|
"color-surface-raised": "#fbfbfc",
|
|
@@ -926,12 +933,12 @@
|
|
|
926
933
|
"measure": "68ch",
|
|
927
934
|
"page-max": "960px",
|
|
928
935
|
"page-wide": "1120px",
|
|
929
|
-
"sidebar": "224px",
|
|
936
|
+
"sidebar-width": "224px",
|
|
930
937
|
"radius-inline": "8px",
|
|
931
938
|
"radius-control": "8px",
|
|
932
|
-
"radius-panel": "
|
|
939
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
933
940
|
"radius-field": "8px",
|
|
934
|
-
"radius-mark": "
|
|
941
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
935
942
|
"radius-pill": "999px",
|
|
936
943
|
"radius-circle": "999px",
|
|
937
944
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
@@ -948,8 +955,9 @@
|
|
|
948
955
|
"dark": {
|
|
949
956
|
"color-project": "#7fd083",
|
|
950
957
|
"color-project-dark": "#7fd083",
|
|
951
|
-
"font-ui": "\"
|
|
952
|
-
"font-mono": "\"
|
|
958
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
959
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
960
|
+
"radius-base": "8px",
|
|
953
961
|
"color-bg": "#0d1012",
|
|
954
962
|
"color-surface": "#13171a",
|
|
955
963
|
"color-surface-raised": "#181d21",
|
|
@@ -1060,12 +1068,12 @@
|
|
|
1060
1068
|
"measure": "68ch",
|
|
1061
1069
|
"page-max": "960px",
|
|
1062
1070
|
"page-wide": "1120px",
|
|
1063
|
-
"sidebar": "224px",
|
|
1071
|
+
"sidebar-width": "224px",
|
|
1064
1072
|
"radius-inline": "8px",
|
|
1065
1073
|
"radius-control": "8px",
|
|
1066
|
-
"radius-panel": "
|
|
1074
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
1067
1075
|
"radius-field": "8px",
|
|
1068
|
-
"radius-mark": "
|
|
1076
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
1069
1077
|
"radius-pill": "999px",
|
|
1070
1078
|
"radius-circle": "999px",
|
|
1071
1079
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
@@ -1086,6 +1094,7 @@
|
|
|
1086
1094
|
"color-project-dark": "#3fb950",
|
|
1087
1095
|
"font-ui": "\"Mona Sans VF\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Noto Sans Backtick Fix\", \"Noto Sans\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"",
|
|
1088
1096
|
"font-mono": "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace",
|
|
1097
|
+
"radius-base": "8px",
|
|
1089
1098
|
"color-bg": "#ffffff",
|
|
1090
1099
|
"color-surface": "#f6f8fa",
|
|
1091
1100
|
"color-surface-raised": "#ffffff",
|
|
@@ -1196,12 +1205,12 @@
|
|
|
1196
1205
|
"measure": "68ch",
|
|
1197
1206
|
"page-max": "960px",
|
|
1198
1207
|
"page-wide": "1120px",
|
|
1199
|
-
"sidebar": "224px",
|
|
1208
|
+
"sidebar-width": "224px",
|
|
1200
1209
|
"radius-inline": "8px",
|
|
1201
1210
|
"radius-control": "8px",
|
|
1202
|
-
"radius-panel": "
|
|
1211
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
1203
1212
|
"radius-field": "8px",
|
|
1204
|
-
"radius-mark": "
|
|
1213
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
1205
1214
|
"radius-pill": "999px",
|
|
1206
1215
|
"radius-circle": "999px",
|
|
1207
1216
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
@@ -1220,6 +1229,7 @@
|
|
|
1220
1229
|
"color-project-dark": "#3fb950",
|
|
1221
1230
|
"font-ui": "\"Mona Sans VF\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Noto Sans Backtick Fix\", \"Noto Sans\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"",
|
|
1222
1231
|
"font-mono": "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace",
|
|
1232
|
+
"radius-base": "8px",
|
|
1223
1233
|
"color-bg": "#0d1117",
|
|
1224
1234
|
"color-surface": "#151b23",
|
|
1225
1235
|
"color-surface-raised": "#151b23",
|
|
@@ -1330,12 +1340,12 @@
|
|
|
1330
1340
|
"measure": "68ch",
|
|
1331
1341
|
"page-max": "960px",
|
|
1332
1342
|
"page-wide": "1120px",
|
|
1333
|
-
"sidebar": "224px",
|
|
1343
|
+
"sidebar-width": "224px",
|
|
1334
1344
|
"radius-inline": "8px",
|
|
1335
1345
|
"radius-control": "8px",
|
|
1336
|
-
"radius-panel": "
|
|
1346
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
1337
1347
|
"radius-field": "8px",
|
|
1338
|
-
"radius-mark": "
|
|
1348
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
1339
1349
|
"radius-pill": "999px",
|
|
1340
1350
|
"radius-circle": "999px",
|
|
1341
1351
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
@@ -1354,8 +1364,9 @@
|
|
|
1354
1364
|
"light": {
|
|
1355
1365
|
"color-project": "#6d3fd6",
|
|
1356
1366
|
"color-project-dark": "#b49cff",
|
|
1357
|
-
"font-ui": "\"
|
|
1358
|
-
"font-mono": "\"
|
|
1367
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
1368
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
1369
|
+
"radius-base": "8px",
|
|
1359
1370
|
"color-bg": "#f4f5f6",
|
|
1360
1371
|
"color-surface": "#e9ebed",
|
|
1361
1372
|
"color-surface-raised": "#fbfbfc",
|
|
@@ -1466,12 +1477,12 @@
|
|
|
1466
1477
|
"measure": "68ch",
|
|
1467
1478
|
"page-max": "960px",
|
|
1468
1479
|
"page-wide": "1120px",
|
|
1469
|
-
"sidebar": "224px",
|
|
1480
|
+
"sidebar-width": "224px",
|
|
1470
1481
|
"radius-inline": "8px",
|
|
1471
1482
|
"radius-control": "8px",
|
|
1472
|
-
"radius-panel": "
|
|
1483
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
1473
1484
|
"radius-field": "8px",
|
|
1474
|
-
"radius-mark": "
|
|
1485
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
1475
1486
|
"radius-pill": "999px",
|
|
1476
1487
|
"radius-circle": "999px",
|
|
1477
1488
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
@@ -1488,8 +1499,9 @@
|
|
|
1488
1499
|
"dark": {
|
|
1489
1500
|
"color-project": "#b49cff",
|
|
1490
1501
|
"color-project-dark": "#b49cff",
|
|
1491
|
-
"font-ui": "\"
|
|
1492
|
-
"font-mono": "\"
|
|
1502
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
1503
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
1504
|
+
"radius-base": "8px",
|
|
1493
1505
|
"color-bg": "#0d1012",
|
|
1494
1506
|
"color-surface": "#13171a",
|
|
1495
1507
|
"color-surface-raised": "#181d21",
|
|
@@ -1600,12 +1612,12 @@
|
|
|
1600
1612
|
"measure": "68ch",
|
|
1601
1613
|
"page-max": "960px",
|
|
1602
1614
|
"page-wide": "1120px",
|
|
1603
|
-
"sidebar": "224px",
|
|
1615
|
+
"sidebar-width": "224px",
|
|
1604
1616
|
"radius-inline": "8px",
|
|
1605
1617
|
"radius-control": "8px",
|
|
1606
|
-
"radius-panel": "
|
|
1618
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
1607
1619
|
"radius-field": "8px",
|
|
1608
|
-
"radius-mark": "
|
|
1620
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
1609
1621
|
"radius-pill": "999px",
|
|
1610
1622
|
"radius-circle": "999px",
|
|
1611
1623
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
@@ -1624,8 +1636,9 @@
|
|
|
1624
1636
|
"light": {
|
|
1625
1637
|
"color-project": "#087266",
|
|
1626
1638
|
"color-project-dark": "#5cc8b8",
|
|
1627
|
-
"font-ui": "\"
|
|
1628
|
-
"font-mono": "\"
|
|
1639
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
1640
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
1641
|
+
"radius-base": "8px",
|
|
1629
1642
|
"color-bg": "#f4f5f6",
|
|
1630
1643
|
"color-surface": "#e9ebed",
|
|
1631
1644
|
"color-surface-raised": "#fbfbfc",
|
|
@@ -1736,12 +1749,12 @@
|
|
|
1736
1749
|
"measure": "68ch",
|
|
1737
1750
|
"page-max": "960px",
|
|
1738
1751
|
"page-wide": "1120px",
|
|
1739
|
-
"sidebar": "224px",
|
|
1752
|
+
"sidebar-width": "224px",
|
|
1740
1753
|
"radius-inline": "8px",
|
|
1741
1754
|
"radius-control": "8px",
|
|
1742
|
-
"radius-panel": "
|
|
1755
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
1743
1756
|
"radius-field": "8px",
|
|
1744
|
-
"radius-mark": "
|
|
1757
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
1745
1758
|
"radius-pill": "999px",
|
|
1746
1759
|
"radius-circle": "999px",
|
|
1747
1760
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
@@ -1758,8 +1771,9 @@
|
|
|
1758
1771
|
"dark": {
|
|
1759
1772
|
"color-project": "#5cc8b8",
|
|
1760
1773
|
"color-project-dark": "#5cc8b8",
|
|
1761
|
-
"font-ui": "\"
|
|
1762
|
-
"font-mono": "\"
|
|
1774
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
1775
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
1776
|
+
"radius-base": "8px",
|
|
1763
1777
|
"color-bg": "#0d1012",
|
|
1764
1778
|
"color-surface": "#13171a",
|
|
1765
1779
|
"color-surface-raised": "#181d21",
|
|
@@ -1870,12 +1884,12 @@
|
|
|
1870
1884
|
"measure": "68ch",
|
|
1871
1885
|
"page-max": "960px",
|
|
1872
1886
|
"page-wide": "1120px",
|
|
1873
|
-
"sidebar": "224px",
|
|
1887
|
+
"sidebar-width": "224px",
|
|
1874
1888
|
"radius-inline": "8px",
|
|
1875
1889
|
"radius-control": "8px",
|
|
1876
|
-
"radius-panel": "
|
|
1890
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
1877
1891
|
"radius-field": "8px",
|
|
1878
|
-
"radius-mark": "
|
|
1892
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
1879
1893
|
"radius-pill": "999px",
|
|
1880
1894
|
"radius-circle": "999px",
|
|
1881
1895
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
@@ -1894,8 +1908,9 @@
|
|
|
1894
1908
|
"light": {
|
|
1895
1909
|
"color-project": "#2b59d6",
|
|
1896
1910
|
"color-project-dark": "#8aa8ff",
|
|
1897
|
-
"font-ui": "\"
|
|
1898
|
-
"font-mono": "\"
|
|
1911
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
1912
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
1913
|
+
"radius-base": "8px",
|
|
1899
1914
|
"color-bg": "#f4f5f6",
|
|
1900
1915
|
"color-surface": "#e9ebed",
|
|
1901
1916
|
"color-surface-raised": "#fbfbfc",
|
|
@@ -2006,12 +2021,12 @@
|
|
|
2006
2021
|
"measure": "68ch",
|
|
2007
2022
|
"page-max": "960px",
|
|
2008
2023
|
"page-wide": "1120px",
|
|
2009
|
-
"sidebar": "224px",
|
|
2024
|
+
"sidebar-width": "224px",
|
|
2010
2025
|
"radius-inline": "8px",
|
|
2011
2026
|
"radius-control": "8px",
|
|
2012
|
-
"radius-panel": "
|
|
2027
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
2013
2028
|
"radius-field": "8px",
|
|
2014
|
-
"radius-mark": "
|
|
2029
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
2015
2030
|
"radius-pill": "999px",
|
|
2016
2031
|
"radius-circle": "999px",
|
|
2017
2032
|
"shadow-raise": "0 1px 2px rgb(16 24 40 / 12%), 0 0 0 1px rgb(16 24 40 / 6%)",
|
|
@@ -2028,8 +2043,9 @@
|
|
|
2028
2043
|
"dark": {
|
|
2029
2044
|
"color-project": "#8aa8ff",
|
|
2030
2045
|
"color-project-dark": "#8aa8ff",
|
|
2031
|
-
"font-ui": "\"
|
|
2032
|
-
"font-mono": "\"
|
|
2046
|
+
"font-ui": "\"Inter\", -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Segoe UI\", system-ui, sans-serif",
|
|
2047
|
+
"font-mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, monospace",
|
|
2048
|
+
"radius-base": "8px",
|
|
2033
2049
|
"color-bg": "#0d1012",
|
|
2034
2050
|
"color-surface": "#13171a",
|
|
2035
2051
|
"color-surface-raised": "#181d21",
|
|
@@ -2140,12 +2156,12 @@
|
|
|
2140
2156
|
"measure": "68ch",
|
|
2141
2157
|
"page-max": "960px",
|
|
2142
2158
|
"page-wide": "1120px",
|
|
2143
|
-
"sidebar": "224px",
|
|
2159
|
+
"sidebar-width": "224px",
|
|
2144
2160
|
"radius-inline": "8px",
|
|
2145
2161
|
"radius-control": "8px",
|
|
2146
|
-
"radius-panel": "
|
|
2162
|
+
"radius-panel": "calc(8px * 1.5)",
|
|
2147
2163
|
"radius-field": "8px",
|
|
2148
|
-
"radius-mark": "
|
|
2164
|
+
"radius-mark": "calc(8px * 0.5)",
|
|
2149
2165
|
"radius-pill": "999px",
|
|
2150
2166
|
"radius-circle": "999px",
|
|
2151
2167
|
"shadow-raise": "inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 2px rgb(0 0 0 / 45%)",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright
|
|
1
|
+
Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
2
|
|
|
3
3
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
4
|
This license is copied below, and is also available with a FAQ at:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright
|
|
1
|
+
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
|
2
2
|
|
|
3
3
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
4
|
This license is copied below, and is also available with a FAQ at:
|
package/fonts/fonts.css
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Inter and JetBrains Mono, latin subset, from @fontsource/{inter,jetbrains-mono} 5.3.0. OFL licences beside this file. */
|
|
2
2
|
|
|
3
3
|
@font-face {
|
|
4
|
-
font-family: '
|
|
4
|
+
font-family: 'Inter';
|
|
5
5
|
font-style: normal;
|
|
6
6
|
font-weight: 400;
|
|
7
7
|
font-display: swap;
|
|
8
|
-
src: url('./
|
|
8
|
+
src: url('./inter-latin-400-normal.woff2') format('woff2');
|
|
9
9
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@font-face {
|
|
13
|
-
font-family: '
|
|
13
|
+
font-family: 'Inter';
|
|
14
14
|
font-style: normal;
|
|
15
15
|
font-weight: 500;
|
|
16
16
|
font-display: swap;
|
|
17
|
-
src: url('./
|
|
17
|
+
src: url('./inter-latin-500-normal.woff2') format('woff2');
|
|
18
18
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@font-face {
|
|
22
|
-
font-family: '
|
|
22
|
+
font-family: 'Inter';
|
|
23
23
|
font-style: normal;
|
|
24
24
|
font-weight: 600;
|
|
25
25
|
font-display: swap;
|
|
26
|
-
src: url('./
|
|
26
|
+
src: url('./inter-latin-600-normal.woff2') format('woff2');
|
|
27
27
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
@font-face {
|
|
31
|
-
font-family: '
|
|
31
|
+
font-family: 'JetBrains Mono';
|
|
32
32
|
font-style: normal;
|
|
33
33
|
font-weight: 400;
|
|
34
34
|
font-display: swap;
|
|
35
|
-
src: url('./
|
|
35
|
+
src: url('./jetbrains-mono-latin-400-normal.woff2') format('woff2');
|
|
36
36
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
@font-face {
|
|
40
|
-
font-family: '
|
|
40
|
+
font-family: 'JetBrains Mono';
|
|
41
41
|
font-style: normal;
|
|
42
42
|
font-weight: 500;
|
|
43
43
|
font-display: swap;
|
|
44
|
-
src: url('./
|
|
44
|
+
src: url('./jetbrains-mono-latin-500-normal.woff2') format('woff2');
|
|
45
45
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
@font-face {
|
|
49
|
-
font-family: '
|
|
49
|
+
font-family: 'JetBrains Mono';
|
|
50
50
|
font-style: normal;
|
|
51
51
|
font-weight: 600;
|
|
52
52
|
font-display: swap;
|
|
53
|
-
src: url('./
|
|
53
|
+
src: url('./jetbrains-mono-latin-600-normal.woff2') format('woff2');
|
|
54
54
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
55
55
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/language/DESIGN.md
CHANGED
|
@@ -17,9 +17,9 @@ The language has a reusable core and a replaceable identity layer.
|
|
|
17
17
|
| Layer | What it holds | A new project |
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| Core | Tokens, depth, controls and their states, focus, motion, accessibility, and forced colors | Adopts it as is |
|
|
20
|
-
| Identity | The terminal folio look of the personal sites: the `~/name` header, the project registry,
|
|
20
|
+
| Identity | The terminal folio look of the personal sites: the `~/name` header, the project registry, and terminal plates | Replaces it with its own |
|
|
21
21
|
|
|
22
|
-
A new project keeps `tokens.css` unchanged and sets the identity inputs (`--color-project`, `--color-project-dark`, `--font-ui`, `--font-mono`, and `--color-accent-text`, `--color-nav-current-text`, and `--color-segmented-current-text` when the hue cannot carry them at 4.5:1) on `:root` in its own stylesheet, or loads a theme file. A theme file sets the last two for it; its hue must carry `--color-accent-text` itself, which the contrast tests check for every shipped theme. [Component specs](components.md) mark each component Core or Identity, and [decisions](decisions.md) record why each choice was made and which options were rejected. Read both before you build or change a component.
|
|
22
|
+
A new project keeps `tokens.css` unchanged and sets the identity inputs (`--color-project`, `--color-project-dark`, `--font-ui`, `--font-mono`, `--radius-base`, and `--color-accent-text`, `--color-nav-current-text`, and `--color-segmented-current-text` when the hue cannot carry them at 4.5:1) on `:root` in its own stylesheet, or loads a theme file. A theme file sets the last two for it; its hue must carry `--color-accent-text` itself, which the contrast tests check for every shipped theme. [Component specs](components.md) mark each component Core or Identity, and [decisions](decisions.md) record why each choice was made and which options were rejected. Read both before you build or change a component.
|
|
23
23
|
|
|
24
24
|
Choose the identity once per project, from its subject: the materials, vernacular, and audience of its world, as the [terminal folio](#identity-layer-terminal-folio) takes its marks from the terminal and Markdown tools it presents. When the subject is unclear, propose one and confirm it with the owner. Two limits come first. An identity the owner already set for a family of projects, such as the folio for the personal sites, stays as it is. Personal work keeps the shared type family and neutrals ([Scope and precedence](#scope-and-precedence)), so its subject sets only the hue and the identity marks. Within those limits, check the choice against what you would pick for any similar project, and revise any part you would pick whatever the subject. A palette from the Signs of a templated interface in `interface-design`'s craft rules fits only when the subject itself calls for it, and in personal work only as the hue. A page never picks its own identity.
|
|
25
25
|
|
|
@@ -41,7 +41,7 @@ Center the **container**, not every sentence. Align header, content, images, and
|
|
|
41
41
|
|
|
42
42
|
## Files and examples
|
|
43
43
|
|
|
44
|
-
- `tokens.css`: the values of the default theme, Graphite Indigo, generated from the token source (`tokens/core.json` and `tokens/themes/graphite-indigo.tokens.json`) in `@filipgutica/design-system`. Other themes ship as `themes/<id>.css`, which set only a theme's inputs: its hue pair, and any fonts or neutrals it brings; load one after `tokens.css`, on `:root`. To change a value, edit the JSON there and run `pnpm tokens:build`; do not edit `tokens.css` by hand. The identity inputs sit in one block at the top.
|
|
44
|
+
- `tokens.css`: the values of the default theme, Graphite Indigo, generated from the token source (`tokens/core.json` and `tokens/themes/graphite-indigo.tokens.json`) in `@filipgutica/design-system`. Other themes ship as `themes/<id>.css`, which set only a theme's inputs: its hue pair, and any fonts, base radius, or neutrals it brings; load one after `tokens.css`, on `:root`. To change a value, edit the JSON there and run `pnpm tokens:build`; do not edit `tokens.css` by hand. The identity inputs sit in one block at the top.
|
|
45
45
|
- `ui-sdk.css`: experimental. Draws ui-sdk's headless parts as the component specs do; see [ui-sdk](#ui-sdk-experimental).
|
|
46
46
|
- `components.md`: one spec for each component, with anatomy, states, Do and Don't lines, keyboard and screen-reader behavior, motion, and forced colors. Read it for any component work.
|
|
47
47
|
- `components.html`: every component in each of its states, in plain HTML and CSS on `tokens.css`. Copy component markup and styles from there.
|
|
@@ -75,7 +75,7 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
|
|
|
75
75
|
|
|
76
76
|
### Typography
|
|
77
77
|
|
|
78
|
-
- Use `--font-ui` for prose,
|
|
78
|
+
- Use `--font-ui` for prose, every heading, labels, and controls, and `--font-mono` for code, identifiers, keys, and terminal captures. The identity layer decides where else mono appears, never on a heading.
|
|
79
79
|
- Controls and dense application content use `--text-md`; secondary text uses `--text-sm`. Paragraphs and substantial article text use `--text-reading` with `--leading`. Bound reading text with `--measure` and introductory copy to a slightly shorter line.
|
|
80
80
|
- Documentation titles use `--text-3xl`; section headings use `--text-xl` and sit above their content. Application titles use `--text-2xl` or smaller, and application section headings use `--font-ui` at `--text-xl` or smaller.
|
|
81
81
|
- Use `--weight-regular`, `--weight-medium`, and `--weight-semibold`. Keep the source text's case; never transform it. Sentence case and restrained tracking make hierarchy easier to scan.
|
|
@@ -85,6 +85,7 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
|
|
|
85
85
|
|
|
86
86
|
- Inline visuals inherit the host theme. They do **not** need an independent theme switch.
|
|
87
87
|
- Standalone pages follow the OS by default. A visible theme control is optional: include it when the user requests one, the product already has one, or choosing/comparing themes serves the task. Token inspection and UI-library documentation are valid uses; a simple chart or explainer usually is not.
|
|
88
|
+
- To show part of a page in the other mode, such as a dark panel in a light page, set `data-theme="dark"` or `"light"` on that element (a `.dark` class works too) and give it its own background, such as `var(--color-bg)`. Every token that changes with the mode resolves again inside it; do not copy dark values by hand. The subtree takes its mode's text colour; on an element with both, `data-theme="light"` wins over `.dark`. A theme written by hand, loaded after `tokens.css`, repeats its light values on `:root [data-theme="light"]` and its dark values on the selectors of the dark subtree block at the end of `tokens.css`, beside its `:root` and root dark rules, so its hue, neutrals, and text on the hue hold in a subtree too; a theme file from the token build does this already.
|
|
88
89
|
- Existing products retain their theme preferences and persistence contracts. Where a standalone choice is needed, System removes the override and explicit Light/Dark choices set it. Wrap storage access in try/catch.
|
|
89
90
|
- Use neutral `--color-bg`, `--color-surface`, and `--color-surface-raised` (paper in light, graphite in dark) to separate regions. Use `--color-text` and `--color-muted` for the main hierarchy.
|
|
90
91
|
- Each project sets one hue, and `--color-accent` follows it. The hue fills the one primary action in each decision group, and marks identity and selection: current items, the selected tab's text, and checked or selected controls. It is never a fill for secondary buttons, cards, or wells. Check it at 3:1 for marks and bars, and at 4.5:1 wherever it colours text, on every surface it sits on. `--color-accent-text` on an `--color-accent` fill must reach 4.5:1 for each hue; a hue that misses does not colour text or carry a label there.
|
|
@@ -127,7 +128,7 @@ Controls use quiet depth and familiar shapes: borderless surfaces with one tight
|
|
|
127
128
|
| Floating layer | Menus, popovers, pickers, and dialogs | `--color-surface-raised` | Transparent 1px; the shadow's ring draws the edge | `--radius-panel` | `--shadow-dialog` |
|
|
128
129
|
|
|
129
130
|
- 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, 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
|
+
- 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. Every corner but the pill and the circle follows one theme input, `--radius-base` (8px by default): rows, actions, and fields take it, small marks half of it, and containers one and a half times it, so a theme that changes it keeps the scale's ratios. Pick a new component's radius from its role in this table, not from the component it looks like.
|
|
131
132
|
|
|
132
133
|
| Role | Shape | Token | Members |
|
|
133
134
|
| --- | --- | --- | --- |
|
|
@@ -304,9 +305,9 @@ Measure each screen you build or revise. Count its words, boxes, and controls wi
|
|
|
304
305
|
|
|
305
306
|
The personal sites are terminal tools that read Markdown and paths, so their identity comes from that world. A new project replaces this section with its own identity and keeps the core.
|
|
306
307
|
|
|
307
|
-
- **Mono identity.** `--font-mono` (
|
|
308
|
-
- **Headings.**
|
|
309
|
-
- **Hue marks.** The hue also draws the `~/` header mark,
|
|
308
|
+
- **Mono identity.** `--font-mono` (JetBrains Mono) sets code, identifiers, keys, and terminal captures, and the folio's small marks: the `~/name` header and the project menu, metadata facts, step numbers, and the footer. Titles and section headings never use it. `fonts.css` self-hosts Inter and JetBrains Mono; without it, the tokens fall back to the system stack.
|
|
309
|
+
- **Headings.** Every page title and section heading is `--font-ui`, semibold, with no mark before it. Page-level section headings (h2) on documentation, CLI tool, article, and product pages have a `--color-border-subtle` rule above the section; application and inline-visualization section headings, and every h3 or lower, have none. Product pages and tool homes may use a `--text-display` title, stepping down to `--text-display-sm` on phones; keep a short heading measure, place supporting copy and the primary action nearby, and let the first product image enter the initial desktop viewport.
|
|
310
|
+
- **Hue marks.** The hue also draws the `~/` header mark, step numbers, and the `$` prompt.
|
|
310
311
|
- **Header.** Personal product sites share a compact static header: a mono `~/name` identity with the `~/` in `--color-accent`, a project switcher, useful page links, appearance controls, and a solid `--color-text` rule below. Use the shared project registry for names, order, and destinations; the design-system site's header starts with the same switcher. The identity is the same on every page, and the links sit at the same x on every page; the page's path goes in [breadcrumbs](components.md#breadcrumbs) above its title. Keep a gallery's existing application navigation structure.
|
|
311
312
|
- **Appearance.** Personal pages share the built-in System/Light/Dark choice, through the header's picker. An explicitly selected custom gallery theme overrides that choice until the reader selects a built-in appearance. Preserve installed themes.
|
|
312
313
|
- **Terminal plates.** Commands use the normal code block and its source well (`--color-code`) in light and dark. A shell command gets a `$` prompt in `--color-accent`, drawn by CSS so it never enters copied or accessible text. Short commands use a headerless compact row with an accessible Copy control. Terminal captures keep the neutral `--color-terminal` plate, with a mono status-line caption below the screen; tabs on a capture switch to mono.
|
|
@@ -318,7 +319,7 @@ The personal sites are terminal tools that read Markdown and paths, so their ide
|
|
|
318
319
|
- Multiple cards around ordinary prose, ornamental grids, glows, gradients, pill-shaped cards, and hover lifts.
|
|
319
320
|
- Tinted wells or panels used for decoration.
|
|
320
321
|
- Display typography on dense tool screens, or tiny application typography on a product landing page.
|
|
321
|
-
-
|
|
322
|
+
- A mark such as `##` before a heading, which repeats down the page and competes with the content.
|
|
322
323
|
- Large blank gaps that push the action or evidence away from the introduction.
|
|
323
324
|
- Centered long paragraphs, excessively faint text, and horizontal page overflow.
|
|
324
325
|
- Theme controls added automatically to inline charts and explainers.
|