@bwui/tokens 0.1.18 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/figma-variables.json +30 -24
- package/dist/token-manifest.json +1 -0
- package/dist/tokens.css +54 -53
- package/dist/tokens.dtcg.json +50 -50
- package/dist/tokens.js +1 -0
- package/package.json +1 -1
- package/src/dtcg/component.tokens.json +30 -18
- package/src/dtcg/density.comfortable.tokens.json +3 -3
- package/src/dtcg/density.compact.tokens.json +1 -1
- package/src/dtcg/density.spacious.tokens.json +3 -3
- package/src/dtcg/motion.tokens.json +1 -1
- package/src/dtcg/typography.tokens.json +9 -9
|
@@ -522,6 +522,12 @@
|
|
|
522
522
|
"light": "var(--bw-font-size-md)"
|
|
523
523
|
}
|
|
524
524
|
},
|
|
525
|
+
"bw-control-radius": {
|
|
526
|
+
"type": "COLOR_OR_FLOAT",
|
|
527
|
+
"valuesByMode": {
|
|
528
|
+
"light": "var(--bw-radius-lg)"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
525
531
|
"bw-icon-scale-sm": {
|
|
526
532
|
"type": "COLOR_OR_FLOAT",
|
|
527
533
|
"valuesByMode": {
|
|
@@ -561,7 +567,7 @@
|
|
|
561
567
|
"bw-component-button-radius": {
|
|
562
568
|
"type": "COLOR_OR_FLOAT",
|
|
563
569
|
"valuesByMode": {
|
|
564
|
-
"light": "var(--bw-radius-
|
|
570
|
+
"light": "var(--bw-radius-lg)"
|
|
565
571
|
}
|
|
566
572
|
},
|
|
567
573
|
"bw-component-button-elevation": {
|
|
@@ -627,7 +633,7 @@
|
|
|
627
633
|
"bw-component-stat-tile-value-size": {
|
|
628
634
|
"type": "COLOR_OR_FLOAT",
|
|
629
635
|
"valuesByMode": {
|
|
630
|
-
"light": "var(--bw-font-size-
|
|
636
|
+
"light": "var(--bw-font-size-3xl)"
|
|
631
637
|
}
|
|
632
638
|
},
|
|
633
639
|
"bw-component-stat-tile-sparkline-height": {
|
|
@@ -885,7 +891,7 @@
|
|
|
885
891
|
"bw-font-family-display": {
|
|
886
892
|
"type": "COLOR_OR_FLOAT",
|
|
887
893
|
"valuesByMode": {
|
|
888
|
-
"light": "ui-
|
|
894
|
+
"light": "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'"
|
|
889
895
|
}
|
|
890
896
|
},
|
|
891
897
|
"bw-font-family-mono": {
|
|
@@ -969,19 +975,19 @@
|
|
|
969
975
|
"bw-font-scale-2xs": {
|
|
970
976
|
"type": "COLOR_OR_FLOAT",
|
|
971
977
|
"valuesByMode": {
|
|
972
|
-
"light": "0.
|
|
978
|
+
"light": "0.785714"
|
|
973
979
|
}
|
|
974
980
|
},
|
|
975
981
|
"bw-font-scale-xs": {
|
|
976
982
|
"type": "COLOR_OR_FLOAT",
|
|
977
983
|
"valuesByMode": {
|
|
978
|
-
"light": "0.
|
|
984
|
+
"light": "0.857143"
|
|
979
985
|
}
|
|
980
986
|
},
|
|
981
987
|
"bw-font-scale-sm": {
|
|
982
988
|
"type": "COLOR_OR_FLOAT",
|
|
983
989
|
"valuesByMode": {
|
|
984
|
-
"light": "0.
|
|
990
|
+
"light": "0.928571"
|
|
985
991
|
}
|
|
986
992
|
},
|
|
987
993
|
"bw-font-scale-md": {
|
|
@@ -993,43 +999,43 @@
|
|
|
993
999
|
"bw-font-scale-lg": {
|
|
994
1000
|
"type": "COLOR_OR_FLOAT",
|
|
995
1001
|
"valuesByMode": {
|
|
996
|
-
"light": "1.
|
|
1002
|
+
"light": "1.142857"
|
|
997
1003
|
}
|
|
998
1004
|
},
|
|
999
1005
|
"bw-font-scale-xl": {
|
|
1000
1006
|
"type": "COLOR_OR_FLOAT",
|
|
1001
1007
|
"valuesByMode": {
|
|
1002
|
-
"light": "1.
|
|
1008
|
+
"light": "1.285714"
|
|
1003
1009
|
}
|
|
1004
1010
|
},
|
|
1005
1011
|
"bw-font-scale-2xl": {
|
|
1006
1012
|
"type": "COLOR_OR_FLOAT",
|
|
1007
1013
|
"valuesByMode": {
|
|
1008
|
-
"light": "1.
|
|
1014
|
+
"light": "1.428571"
|
|
1009
1015
|
}
|
|
1010
1016
|
},
|
|
1011
1017
|
"bw-font-scale-3xl": {
|
|
1012
1018
|
"type": "COLOR_OR_FLOAT",
|
|
1013
1019
|
"valuesByMode": {
|
|
1014
|
-
"light": "
|
|
1020
|
+
"light": "1.714286"
|
|
1015
1021
|
}
|
|
1016
1022
|
},
|
|
1017
1023
|
"bw-font-scale-4xl": {
|
|
1018
1024
|
"type": "COLOR_OR_FLOAT",
|
|
1019
1025
|
"valuesByMode": {
|
|
1020
|
-
"light": "2.
|
|
1026
|
+
"light": "2.142857"
|
|
1021
1027
|
}
|
|
1022
1028
|
},
|
|
1023
1029
|
"bw-font-scale-5xl": {
|
|
1024
1030
|
"type": "COLOR_OR_FLOAT",
|
|
1025
1031
|
"valuesByMode": {
|
|
1026
|
-
"light": "
|
|
1032
|
+
"light": "2.857143"
|
|
1027
1033
|
}
|
|
1028
1034
|
},
|
|
1029
1035
|
"bw-font-scale-6xl": {
|
|
1030
1036
|
"type": "COLOR_OR_FLOAT",
|
|
1031
1037
|
"valuesByMode": {
|
|
1032
|
-
"light": "
|
|
1038
|
+
"light": "4.285714"
|
|
1033
1039
|
}
|
|
1034
1040
|
},
|
|
1035
1041
|
"bw-font-weight-normal": {
|
|
@@ -1203,7 +1209,7 @@
|
|
|
1203
1209
|
"bw-text-heading-2xl-size": {
|
|
1204
1210
|
"type": "COLOR_OR_FLOAT",
|
|
1205
1211
|
"valuesByMode": {
|
|
1206
|
-
"light": "var(--bw-font-size-
|
|
1212
|
+
"light": "var(--bw-font-size-4xl)"
|
|
1207
1213
|
}
|
|
1208
1214
|
},
|
|
1209
1215
|
"bw-text-heading-2xl-line-height": {
|
|
@@ -1233,7 +1239,7 @@
|
|
|
1233
1239
|
"bw-text-heading-xl-size": {
|
|
1234
1240
|
"type": "COLOR_OR_FLOAT",
|
|
1235
1241
|
"valuesByMode": {
|
|
1236
|
-
"light": "var(--bw-font-size-
|
|
1242
|
+
"light": "var(--bw-font-size-3xl)"
|
|
1237
1243
|
}
|
|
1238
1244
|
},
|
|
1239
1245
|
"bw-text-heading-xl-line-height": {
|
|
@@ -1263,7 +1269,7 @@
|
|
|
1263
1269
|
"bw-text-heading-section-size": {
|
|
1264
1270
|
"type": "COLOR_OR_FLOAT",
|
|
1265
1271
|
"valuesByMode": {
|
|
1266
|
-
"light": "var(--bw-font-size-
|
|
1272
|
+
"light": "var(--bw-font-size-3xl)"
|
|
1267
1273
|
}
|
|
1268
1274
|
},
|
|
1269
1275
|
"bw-text-heading-section-line-height": {
|
|
@@ -1293,7 +1299,7 @@
|
|
|
1293
1299
|
"bw-text-heading-lg-size": {
|
|
1294
1300
|
"type": "COLOR_OR_FLOAT",
|
|
1295
1301
|
"valuesByMode": {
|
|
1296
|
-
"light": "var(--bw-font-size-
|
|
1302
|
+
"light": "var(--bw-font-size-xl)"
|
|
1297
1303
|
}
|
|
1298
1304
|
},
|
|
1299
1305
|
"bw-text-heading-lg-line-height": {
|
|
@@ -1323,7 +1329,7 @@
|
|
|
1323
1329
|
"bw-text-heading-md-size": {
|
|
1324
1330
|
"type": "COLOR_OR_FLOAT",
|
|
1325
1331
|
"valuesByMode": {
|
|
1326
|
-
"light": "var(--bw-font-size-
|
|
1332
|
+
"light": "var(--bw-font-size-lg)"
|
|
1327
1333
|
}
|
|
1328
1334
|
},
|
|
1329
1335
|
"bw-text-heading-md-line-height": {
|
|
@@ -1347,7 +1353,7 @@
|
|
|
1347
1353
|
"bw-text-heading-sm-size": {
|
|
1348
1354
|
"type": "COLOR_OR_FLOAT",
|
|
1349
1355
|
"valuesByMode": {
|
|
1350
|
-
"light": "var(--bw-font-size-
|
|
1356
|
+
"light": "var(--bw-font-size-md)"
|
|
1351
1357
|
}
|
|
1352
1358
|
},
|
|
1353
1359
|
"bw-text-heading-sm-line-height": {
|
|
@@ -1431,13 +1437,13 @@
|
|
|
1431
1437
|
"bw-text-label-size": {
|
|
1432
1438
|
"type": "COLOR_OR_FLOAT",
|
|
1433
1439
|
"valuesByMode": {
|
|
1434
|
-
"light": "var(--bw-font-size-
|
|
1440
|
+
"light": "var(--bw-font-size-md)"
|
|
1435
1441
|
}
|
|
1436
1442
|
},
|
|
1437
1443
|
"bw-text-label-line-height": {
|
|
1438
1444
|
"type": "COLOR_OR_FLOAT",
|
|
1439
1445
|
"valuesByMode": {
|
|
1440
|
-
"light": "var(--bw-font-line-height-
|
|
1446
|
+
"light": "var(--bw-font-line-height-tight)"
|
|
1441
1447
|
}
|
|
1442
1448
|
},
|
|
1443
1449
|
"bw-text-label-weight": {
|
|
@@ -1545,7 +1551,7 @@
|
|
|
1545
1551
|
"bw-duration-fast": {
|
|
1546
1552
|
"type": "COLOR_OR_FLOAT",
|
|
1547
1553
|
"valuesByMode": {
|
|
1548
|
-
"light": "
|
|
1554
|
+
"light": "120ms"
|
|
1549
1555
|
}
|
|
1550
1556
|
},
|
|
1551
1557
|
"bw-duration-normal": {
|
|
@@ -2223,13 +2229,13 @@
|
|
|
2223
2229
|
"bw-density-font-size-base": {
|
|
2224
2230
|
"type": "COLOR_OR_FLOAT",
|
|
2225
2231
|
"valuesByMode": {
|
|
2226
|
-
"light": "
|
|
2232
|
+
"light": "1rem"
|
|
2227
2233
|
}
|
|
2228
2234
|
},
|
|
2229
2235
|
"bw-density-control-height": {
|
|
2230
2236
|
"type": "COLOR_OR_FLOAT",
|
|
2231
2237
|
"valuesByMode": {
|
|
2232
|
-
"light": "
|
|
2238
|
+
"light": "2.5rem"
|
|
2233
2239
|
}
|
|
2234
2240
|
},
|
|
2235
2241
|
"bw-density-control-padding-inline": {
|
package/dist/token-manifest.json
CHANGED
package/dist/tokens.css
CHANGED
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
--bw-control-icon-size: var(--bw-size-control-icon-md);
|
|
92
92
|
--bw-control-gap: var(--bw-size-control-gap-md);
|
|
93
93
|
--bw-control-font-size: var(--bw-font-size-md);
|
|
94
|
+
--bw-control-radius: var(--bw-radius-lg);
|
|
94
95
|
--bw-component-icon-size-sm: 1rem;
|
|
95
96
|
--bw-component-icon-size-md: calc(var(--bw-component-icon-size-sm) * var(--bw-icon-scale-md));
|
|
96
97
|
--bw-component-icon-size-lg: calc(var(--bw-component-icon-size-sm) * var(--bw-icon-scale-lg));
|
|
@@ -102,7 +103,7 @@
|
|
|
102
103
|
--bw-icon-scale-xl: 2;
|
|
103
104
|
--bw-icon-scale-2xl: 2.5;
|
|
104
105
|
--bw-component-icon-stroke-width: 2;
|
|
105
|
-
--bw-component-button-radius: var(--bw-radius-
|
|
106
|
+
--bw-component-button-radius: var(--bw-radius-lg);
|
|
106
107
|
--bw-component-button-elevation: var(--bw-elevation-1);
|
|
107
108
|
--bw-component-button-elevation-hover: var(--bw-component-button-elevation);
|
|
108
109
|
--bw-component-button-hover-translate: 0;
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
--bw-component-toggle-track-height: 1.25rem;
|
|
114
115
|
--bw-component-toggle-thumb-size: 0.875rem;
|
|
115
116
|
--bw-component-toggle-thumb-inset: 0.25rem;
|
|
116
|
-
--bw-component-stat-tile-value-size: var(--bw-font-size-
|
|
117
|
+
--bw-component-stat-tile-value-size: var(--bw-font-size-3xl);
|
|
117
118
|
--bw-component-stat-tile-sparkline-height: 2rem;
|
|
118
119
|
--bw-component-progress-track-height: 0.5rem;
|
|
119
120
|
--bw-component-ranked-list-bar-thickness: 0.375rem;
|
|
@@ -156,7 +157,7 @@
|
|
|
156
157
|
--bw-opacity-muted: 0.7;
|
|
157
158
|
--bw-opacity-sort-idle: 0.4;
|
|
158
159
|
--bw-font-family-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
159
|
-
--bw-font-family-display: ui-
|
|
160
|
+
--bw-font-family-display: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
160
161
|
--bw-font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
161
162
|
--bw-font-size-base: var(--bw-density-font-size-base);
|
|
162
163
|
--bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
|
|
@@ -170,17 +171,17 @@
|
|
|
170
171
|
--bw-font-size-4xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)));
|
|
171
172
|
--bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
|
|
172
173
|
--bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
|
|
173
|
-
--bw-font-scale-2xs: 0.
|
|
174
|
-
--bw-font-scale-xs: 0.
|
|
175
|
-
--bw-font-scale-sm: 0.
|
|
174
|
+
--bw-font-scale-2xs: 0.785714;
|
|
175
|
+
--bw-font-scale-xs: 0.857143;
|
|
176
|
+
--bw-font-scale-sm: 0.928571;
|
|
176
177
|
--bw-font-scale-md: 1;
|
|
177
|
-
--bw-font-scale-lg: 1.
|
|
178
|
-
--bw-font-scale-xl: 1.
|
|
179
|
-
--bw-font-scale-2xl: 1.
|
|
180
|
-
--bw-font-scale-3xl:
|
|
181
|
-
--bw-font-scale-4xl: 2.
|
|
182
|
-
--bw-font-scale-5xl:
|
|
183
|
-
--bw-font-scale-6xl:
|
|
178
|
+
--bw-font-scale-lg: 1.142857;
|
|
179
|
+
--bw-font-scale-xl: 1.285714;
|
|
180
|
+
--bw-font-scale-2xl: 1.428571;
|
|
181
|
+
--bw-font-scale-3xl: 1.714286;
|
|
182
|
+
--bw-font-scale-4xl: 2.142857;
|
|
183
|
+
--bw-font-scale-5xl: 2.857143;
|
|
184
|
+
--bw-font-scale-6xl: 4.285714;
|
|
184
185
|
--bw-font-weight-normal: 400;
|
|
185
186
|
--bw-font-weight-medium: 500;
|
|
186
187
|
--bw-font-weight-semibold: 600;
|
|
@@ -209,31 +210,31 @@
|
|
|
209
210
|
--bw-text-heading-display-weight: var(--bw-font-weight-bold);
|
|
210
211
|
--bw-text-heading-display-tracking: var(--bw-font-tracking-tight);
|
|
211
212
|
--bw-text-heading-2xl-family: var(--bw-font-family-display);
|
|
212
|
-
--bw-text-heading-2xl-size: var(--bw-font-size-
|
|
213
|
+
--bw-text-heading-2xl-size: var(--bw-font-size-4xl);
|
|
213
214
|
--bw-text-heading-2xl-line-height: var(--bw-font-line-height-tight);
|
|
214
215
|
--bw-text-heading-2xl-weight: var(--bw-font-weight-bold);
|
|
215
216
|
--bw-text-heading-2xl-tracking: var(--bw-font-tracking-tight);
|
|
216
217
|
--bw-text-heading-xl-family: var(--bw-font-family-display);
|
|
217
|
-
--bw-text-heading-xl-size: var(--bw-font-size-
|
|
218
|
+
--bw-text-heading-xl-size: var(--bw-font-size-3xl);
|
|
218
219
|
--bw-text-heading-xl-line-height: var(--bw-font-line-height-tight);
|
|
219
220
|
--bw-text-heading-xl-weight: var(--bw-font-weight-semibold);
|
|
220
221
|
--bw-text-heading-xl-tracking: var(--bw-font-tracking-tight);
|
|
221
222
|
--bw-text-heading-section-family: var(--bw-font-family-display);
|
|
222
|
-
--bw-text-heading-section-size: var(--bw-font-size-
|
|
223
|
+
--bw-text-heading-section-size: var(--bw-font-size-3xl);
|
|
223
224
|
--bw-text-heading-section-line-height: var(--bw-font-line-height-tight);
|
|
224
225
|
--bw-text-heading-section-weight: var(--bw-font-weight-semibold);
|
|
225
226
|
--bw-text-heading-section-tracking: var(--bw-font-tracking-tight);
|
|
226
227
|
--bw-text-heading-lg-family: var(--bw-font-family-sans);
|
|
227
|
-
--bw-text-heading-lg-size: var(--bw-font-size-
|
|
228
|
+
--bw-text-heading-lg-size: var(--bw-font-size-xl);
|
|
228
229
|
--bw-text-heading-lg-line-height: var(--bw-font-line-height-snug);
|
|
229
230
|
--bw-text-heading-lg-weight: var(--bw-font-weight-semibold);
|
|
230
231
|
--bw-text-heading-lg-tracking: var(--bw-font-tracking-normal);
|
|
231
232
|
--bw-text-heading-md-family: var(--bw-font-family-sans);
|
|
232
|
-
--bw-text-heading-md-size: var(--bw-font-size-
|
|
233
|
+
--bw-text-heading-md-size: var(--bw-font-size-lg);
|
|
233
234
|
--bw-text-heading-md-line-height: var(--bw-font-line-height-snug);
|
|
234
235
|
--bw-text-heading-md-weight: var(--bw-font-weight-semibold);
|
|
235
236
|
--bw-text-heading-sm-family: var(--bw-font-family-sans);
|
|
236
|
-
--bw-text-heading-sm-size: var(--bw-font-size-
|
|
237
|
+
--bw-text-heading-sm-size: var(--bw-font-size-md);
|
|
237
238
|
--bw-text-heading-sm-line-height: var(--bw-font-line-height-snug);
|
|
238
239
|
--bw-text-heading-sm-weight: var(--bw-font-weight-semibold);
|
|
239
240
|
--bw-text-body-lg-size: var(--bw-font-size-lg);
|
|
@@ -247,8 +248,8 @@
|
|
|
247
248
|
--bw-text-body-sm-line-height: var(--bw-font-line-height-normal);
|
|
248
249
|
--bw-text-body-sm-weight: var(--bw-font-weight-normal);
|
|
249
250
|
--bw-text-label-family: var(--bw-font-family-sans);
|
|
250
|
-
--bw-text-label-size: var(--bw-font-size-
|
|
251
|
-
--bw-text-label-line-height: var(--bw-font-line-height-
|
|
251
|
+
--bw-text-label-size: var(--bw-font-size-md);
|
|
252
|
+
--bw-text-label-line-height: var(--bw-font-line-height-tight);
|
|
252
253
|
--bw-text-label-weight: var(--bw-font-weight-medium);
|
|
253
254
|
--bw-text-label-tracking: var(--bw-font-tracking-normal);
|
|
254
255
|
--bw-text-caption-family: var(--bw-font-family-sans);
|
|
@@ -266,7 +267,7 @@
|
|
|
266
267
|
--bw-text-code-line-height: var(--bw-font-line-height-normal);
|
|
267
268
|
--bw-text-code-weight: var(--bw-font-weight-normal);
|
|
268
269
|
--bw-duration-instant: 1ms;
|
|
269
|
-
--bw-duration-fast:
|
|
270
|
+
--bw-duration-fast: 120ms;
|
|
270
271
|
--bw-duration-normal: 200ms;
|
|
271
272
|
--bw-duration-moderate: 250ms;
|
|
272
273
|
--bw-duration-slow: 400ms;
|
|
@@ -379,8 +380,8 @@
|
|
|
379
380
|
--bw-elevation-control-inset: inset 0 1px 2px 0 oklch(0 0 0 / 0.04);
|
|
380
381
|
--bw-elevation-panel-highlight: inset 0 1px 0 0 oklch(1 0 0 / 0.6);
|
|
381
382
|
--bw-elevation-floating: var(--bw-elevation-2);
|
|
382
|
-
--bw-density-font-size-base:
|
|
383
|
-
--bw-density-control-height: 2.
|
|
383
|
+
--bw-density-font-size-base: 0.875rem;
|
|
384
|
+
--bw-density-control-height: 2.25rem;
|
|
384
385
|
--bw-density-control-padding-inline: 0.75rem;
|
|
385
386
|
--bw-density-row-padding-block: 0.625rem;
|
|
386
387
|
--bw-density-row-padding-inline: 0.75rem;
|
|
@@ -688,8 +689,8 @@
|
|
|
688
689
|
}
|
|
689
690
|
|
|
690
691
|
[data-density="comfortable"] {
|
|
691
|
-
--bw-density-font-size-base:
|
|
692
|
-
--bw-density-control-height: 2.
|
|
692
|
+
--bw-density-font-size-base: 0.875rem;
|
|
693
|
+
--bw-density-control-height: 2.25rem;
|
|
693
694
|
--bw-density-control-padding-inline: 0.75rem;
|
|
694
695
|
--bw-density-row-padding-block: 0.625rem;
|
|
695
696
|
--bw-density-row-padding-inline: 0.75rem;
|
|
@@ -737,7 +738,7 @@
|
|
|
737
738
|
--bw-control-icon-size: var(--bw-size-control-icon-md);
|
|
738
739
|
--bw-control-gap: var(--bw-size-control-gap-md);
|
|
739
740
|
--bw-control-font-size: var(--bw-font-size-md);
|
|
740
|
-
--bw-component-stat-tile-value-size: var(--bw-font-size-
|
|
741
|
+
--bw-component-stat-tile-value-size: var(--bw-font-size-3xl);
|
|
741
742
|
--bw-font-size-base: var(--bw-density-font-size-base);
|
|
742
743
|
--bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
|
|
743
744
|
--bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
|
|
@@ -751,23 +752,23 @@
|
|
|
751
752
|
--bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
|
|
752
753
|
--bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
|
|
753
754
|
--bw-text-heading-display-size: var(--bw-font-size-6xl);
|
|
754
|
-
--bw-text-heading-2xl-size: var(--bw-font-size-
|
|
755
|
-
--bw-text-heading-xl-size: var(--bw-font-size-
|
|
756
|
-
--bw-text-heading-section-size: var(--bw-font-size-
|
|
757
|
-
--bw-text-heading-lg-size: var(--bw-font-size-
|
|
758
|
-
--bw-text-heading-md-size: var(--bw-font-size-
|
|
759
|
-
--bw-text-heading-sm-size: var(--bw-font-size-
|
|
755
|
+
--bw-text-heading-2xl-size: var(--bw-font-size-4xl);
|
|
756
|
+
--bw-text-heading-xl-size: var(--bw-font-size-3xl);
|
|
757
|
+
--bw-text-heading-section-size: var(--bw-font-size-3xl);
|
|
758
|
+
--bw-text-heading-lg-size: var(--bw-font-size-xl);
|
|
759
|
+
--bw-text-heading-md-size: var(--bw-font-size-lg);
|
|
760
|
+
--bw-text-heading-sm-size: var(--bw-font-size-md);
|
|
760
761
|
--bw-text-body-lg-size: var(--bw-font-size-lg);
|
|
761
762
|
--bw-text-body-md-size: var(--bw-font-size-md);
|
|
762
763
|
--bw-text-body-sm-size: var(--bw-font-size-sm);
|
|
763
|
-
--bw-text-label-size: var(--bw-font-size-
|
|
764
|
+
--bw-text-label-size: var(--bw-font-size-md);
|
|
764
765
|
--bw-text-caption-size: var(--bw-font-size-xs);
|
|
765
766
|
--bw-text-overline-size: var(--bw-font-size-2xs);
|
|
766
767
|
--bw-text-code-size: var(--bw-font-size-sm);
|
|
767
768
|
}
|
|
768
769
|
|
|
769
770
|
[data-density="compact"] {
|
|
770
|
-
--bw-density-font-size-base: 0.
|
|
771
|
+
--bw-density-font-size-base: 0.8125rem;
|
|
771
772
|
--bw-density-control-height: 2rem;
|
|
772
773
|
--bw-density-control-padding-inline: 0.5rem;
|
|
773
774
|
--bw-density-row-padding-block: 0.375rem;
|
|
@@ -816,7 +817,7 @@
|
|
|
816
817
|
--bw-control-icon-size: var(--bw-size-control-icon-md);
|
|
817
818
|
--bw-control-gap: var(--bw-size-control-gap-md);
|
|
818
819
|
--bw-control-font-size: var(--bw-font-size-md);
|
|
819
|
-
--bw-component-stat-tile-value-size: var(--bw-font-size-
|
|
820
|
+
--bw-component-stat-tile-value-size: var(--bw-font-size-3xl);
|
|
820
821
|
--bw-font-size-base: var(--bw-density-font-size-base);
|
|
821
822
|
--bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
|
|
822
823
|
--bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
|
|
@@ -830,24 +831,24 @@
|
|
|
830
831
|
--bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
|
|
831
832
|
--bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
|
|
832
833
|
--bw-text-heading-display-size: var(--bw-font-size-6xl);
|
|
833
|
-
--bw-text-heading-2xl-size: var(--bw-font-size-
|
|
834
|
-
--bw-text-heading-xl-size: var(--bw-font-size-
|
|
835
|
-
--bw-text-heading-section-size: var(--bw-font-size-
|
|
836
|
-
--bw-text-heading-lg-size: var(--bw-font-size-
|
|
837
|
-
--bw-text-heading-md-size: var(--bw-font-size-
|
|
838
|
-
--bw-text-heading-sm-size: var(--bw-font-size-
|
|
834
|
+
--bw-text-heading-2xl-size: var(--bw-font-size-4xl);
|
|
835
|
+
--bw-text-heading-xl-size: var(--bw-font-size-3xl);
|
|
836
|
+
--bw-text-heading-section-size: var(--bw-font-size-3xl);
|
|
837
|
+
--bw-text-heading-lg-size: var(--bw-font-size-xl);
|
|
838
|
+
--bw-text-heading-md-size: var(--bw-font-size-lg);
|
|
839
|
+
--bw-text-heading-sm-size: var(--bw-font-size-md);
|
|
839
840
|
--bw-text-body-lg-size: var(--bw-font-size-lg);
|
|
840
841
|
--bw-text-body-md-size: var(--bw-font-size-md);
|
|
841
842
|
--bw-text-body-sm-size: var(--bw-font-size-sm);
|
|
842
|
-
--bw-text-label-size: var(--bw-font-size-
|
|
843
|
+
--bw-text-label-size: var(--bw-font-size-md);
|
|
843
844
|
--bw-text-caption-size: var(--bw-font-size-xs);
|
|
844
845
|
--bw-text-overline-size: var(--bw-font-size-2xs);
|
|
845
846
|
--bw-text-code-size: var(--bw-font-size-sm);
|
|
846
847
|
}
|
|
847
848
|
|
|
848
849
|
[data-density="spacious"] {
|
|
849
|
-
--bw-density-font-size-base:
|
|
850
|
-
--bw-density-control-height:
|
|
850
|
+
--bw-density-font-size-base: 1rem;
|
|
851
|
+
--bw-density-control-height: 2.5rem;
|
|
851
852
|
--bw-density-control-padding-inline: 1rem;
|
|
852
853
|
--bw-density-row-padding-block: 0.875rem;
|
|
853
854
|
--bw-density-row-padding-inline: 1rem;
|
|
@@ -895,7 +896,7 @@
|
|
|
895
896
|
--bw-control-icon-size: var(--bw-size-control-icon-md);
|
|
896
897
|
--bw-control-gap: var(--bw-size-control-gap-md);
|
|
897
898
|
--bw-control-font-size: var(--bw-font-size-md);
|
|
898
|
-
--bw-component-stat-tile-value-size: var(--bw-font-size-
|
|
899
|
+
--bw-component-stat-tile-value-size: var(--bw-font-size-3xl);
|
|
899
900
|
--bw-font-size-base: var(--bw-density-font-size-base);
|
|
900
901
|
--bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
|
|
901
902
|
--bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
|
|
@@ -909,16 +910,16 @@
|
|
|
909
910
|
--bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
|
|
910
911
|
--bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
|
|
911
912
|
--bw-text-heading-display-size: var(--bw-font-size-6xl);
|
|
912
|
-
--bw-text-heading-2xl-size: var(--bw-font-size-
|
|
913
|
-
--bw-text-heading-xl-size: var(--bw-font-size-
|
|
914
|
-
--bw-text-heading-section-size: var(--bw-font-size-
|
|
915
|
-
--bw-text-heading-lg-size: var(--bw-font-size-
|
|
916
|
-
--bw-text-heading-md-size: var(--bw-font-size-
|
|
917
|
-
--bw-text-heading-sm-size: var(--bw-font-size-
|
|
913
|
+
--bw-text-heading-2xl-size: var(--bw-font-size-4xl);
|
|
914
|
+
--bw-text-heading-xl-size: var(--bw-font-size-3xl);
|
|
915
|
+
--bw-text-heading-section-size: var(--bw-font-size-3xl);
|
|
916
|
+
--bw-text-heading-lg-size: var(--bw-font-size-xl);
|
|
917
|
+
--bw-text-heading-md-size: var(--bw-font-size-lg);
|
|
918
|
+
--bw-text-heading-sm-size: var(--bw-font-size-md);
|
|
918
919
|
--bw-text-body-lg-size: var(--bw-font-size-lg);
|
|
919
920
|
--bw-text-body-md-size: var(--bw-font-size-md);
|
|
920
921
|
--bw-text-body-sm-size: var(--bw-font-size-sm);
|
|
921
|
-
--bw-text-label-size: var(--bw-font-size-
|
|
922
|
+
--bw-text-label-size: var(--bw-font-size-md);
|
|
922
923
|
--bw-text-caption-size: var(--bw-font-size-xs);
|
|
923
924
|
--bw-text-overline-size: var(--bw-font-size-2xs);
|
|
924
925
|
--bw-text-code-size: var(--bw-font-size-sm);
|
package/dist/tokens.dtcg.json
CHANGED
|
@@ -61,13 +61,32 @@
|
|
|
61
61
|
"$value": "2"
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
+
"control": {
|
|
65
|
+
"$type": "dimension",
|
|
66
|
+
"$description": "ADR-126 section 4 and ADR-127 section 6: the five control role variables (height, padding-inline, icon-size, gap, font-size). Every control reads only these and never a density or step token directly. They default to the resolved md tokens (font-size defaults to the ladder md, --bw-font-size-md); a size class (bw-<component>--size-<step>) or a control container re-points them for its subtree; font-size re-points at --bw-font-size-<same step>, never a per-component table. Not a public option and not a new axis: authors still write size. Emitted on :root and re-emitted inside every [data-density] block so a density scoped to a subtree re-resolves them.",
|
|
67
|
+
"height": {
|
|
68
|
+
"$value": "var(--bw-size-control-height-md)"
|
|
69
|
+
},
|
|
70
|
+
"padding-inline": {
|
|
71
|
+
"$value": "var(--bw-size-control-padding-inline-md)"
|
|
72
|
+
},
|
|
73
|
+
"icon-size": {
|
|
74
|
+
"$value": "var(--bw-size-control-icon-md)"
|
|
75
|
+
},
|
|
76
|
+
"gap": {
|
|
77
|
+
"$value": "var(--bw-size-control-gap-md)"
|
|
78
|
+
},
|
|
79
|
+
"font-size": {
|
|
80
|
+
"$value": "var(--bw-font-size-md)"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
64
83
|
"button": {
|
|
65
84
|
"radius": {
|
|
66
85
|
"$type": "dimension",
|
|
67
|
-
"$value": "{size.radius.
|
|
86
|
+
"$value": "{size.radius.lg}",
|
|
68
87
|
"$extensions": {
|
|
69
88
|
"bw": {
|
|
70
|
-
"derived": "var(--bw-size-radius-
|
|
89
|
+
"derived": "var(--bw-size-radius-lg)"
|
|
71
90
|
}
|
|
72
91
|
}
|
|
73
92
|
},
|
|
@@ -141,8 +160,8 @@
|
|
|
141
160
|
"stat-tile": {
|
|
142
161
|
"value-size": {
|
|
143
162
|
"$type": "dimension",
|
|
144
|
-
"$value": "var(--bw-font-size-
|
|
145
|
-
"$description": "Stat tile numeral size (VIZ-001, AC-BW-075, APP-CRAFT section 4 kpi-value pick); a live var() reference so the font scale cascades, and the size modifiers re-point it per tile. ADR-127 / APP-CRAFT:
|
|
163
|
+
"$value": "var(--bw-font-size-3xl)",
|
|
164
|
+
"$description": "Stat tile numeral size (VIZ-001, AC-BW-075, APP-CRAFT section 4 kpi-value pick); a live var() reference so the font scale cascades, and the size modifiers re-point it per tile. ADR-127 / APP-CRAFT: 3xl (24px at the foundation v2 comfortable base) is the ladder pick for a compact KPI numeral; size-sm re-points to 2xl, size-lg to 4xl."
|
|
146
165
|
},
|
|
147
166
|
"sparkline-height": {
|
|
148
167
|
"$type": "dimension",
|
|
@@ -374,15 +393,15 @@
|
|
|
374
393
|
}
|
|
375
394
|
},
|
|
376
395
|
"font": {
|
|
377
|
-
"$description": "Typography tokens (semver-public, brand-overridable). Theme-agnostic. A consuming app rebrands its typeface the same token-first way it rebrands colour, by overriding --bw-font-family-* rather than reaching into brickwork's own classes. Body
|
|
396
|
+
"$description": "Typography tokens (semver-public, brand-overridable). Theme-agnostic. A consuming app rebrands its typeface the same token-first way it rebrands colour, by overriding --bw-font-family-* rather than reaching into brickwork's own classes. Body and display both default to the neutral system sans (foundation v2); brands override either token, and a display override gives headings their own face.",
|
|
378
397
|
"family": {
|
|
379
398
|
"$type": "fontFamily",
|
|
380
399
|
"sans": {
|
|
381
400
|
"$value": "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'"
|
|
382
401
|
},
|
|
383
402
|
"display": {
|
|
384
|
-
"$value": "ui-
|
|
385
|
-
"$description": "
|
|
403
|
+
"$value": "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
404
|
+
"$description": "Foundation v2: the base theme's display face is the system sans, so app headings and body share one family and hierarchy comes from size, weight and tracking. The system-serif fallback (icvoss/django-brickwork#511) rendered as Times on most machines. heading-display / heading-2xl / heading-xl / heading-section still read this token, so a brand or a marketing site sets a distinct display face here (see the northline brand-pack example)."
|
|
386
405
|
},
|
|
387
406
|
"mono": {
|
|
388
407
|
"$value": "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace"
|
|
@@ -432,39 +451,39 @@
|
|
|
432
451
|
},
|
|
433
452
|
"scale": {
|
|
434
453
|
"$type": "number",
|
|
435
|
-
"$description": "ADR-127: unitless type multipliers applied to the type base. Type-owned: deliberately not the control multipliers --bw-size-step-* (ADR-125),
|
|
454
|
+
"$description": "ADR-127: unitless type multipliers applied to the type base. Type-owned: deliberately not the control multipliers --bw-size-step-* (ADR-125), so retuning controls cannot resize text. Foundation v2 ladder: at the 14px comfortable base the steps land on 11, 12, 13, 14, 16, 18, 20, 24, 30, 40 and 60px, so headings keep their old pixel sizes while body and controls drop to app proportions.",
|
|
436
455
|
"2xs": {
|
|
437
|
-
"$value": 0.
|
|
456
|
+
"$value": 0.785714
|
|
438
457
|
},
|
|
439
458
|
"xs": {
|
|
440
|
-
"$value": 0.
|
|
459
|
+
"$value": 0.857143
|
|
441
460
|
},
|
|
442
461
|
"sm": {
|
|
443
|
-
"$value": 0.
|
|
462
|
+
"$value": 0.928571
|
|
444
463
|
},
|
|
445
464
|
"md": {
|
|
446
465
|
"$value": 1
|
|
447
466
|
},
|
|
448
467
|
"lg": {
|
|
449
|
-
"$value": 1.
|
|
468
|
+
"$value": 1.142857
|
|
450
469
|
},
|
|
451
470
|
"xl": {
|
|
452
|
-
"$value": 1.
|
|
471
|
+
"$value": 1.285714
|
|
453
472
|
},
|
|
454
473
|
"2xl": {
|
|
455
|
-
"$value": 1.
|
|
474
|
+
"$value": 1.428571
|
|
456
475
|
},
|
|
457
476
|
"3xl": {
|
|
458
|
-
"$value":
|
|
477
|
+
"$value": 1.714286
|
|
459
478
|
},
|
|
460
479
|
"4xl": {
|
|
461
|
-
"$value": 2.
|
|
480
|
+
"$value": 2.142857
|
|
462
481
|
},
|
|
463
482
|
"5xl": {
|
|
464
|
-
"$value":
|
|
483
|
+
"$value": 2.857143
|
|
465
484
|
},
|
|
466
485
|
"6xl": {
|
|
467
|
-
"$value":
|
|
486
|
+
"$value": 4.285714
|
|
468
487
|
}
|
|
469
488
|
},
|
|
470
489
|
"weight": {
|
|
@@ -567,14 +586,14 @@
|
|
|
567
586
|
}
|
|
568
587
|
},
|
|
569
588
|
"density": {
|
|
570
|
-
"$description": "Density axis: SPACIOUS. Roomier spacing for lower-density, more relaxed screens. Same token names as the comfortable/compact files. Selected via [data-density='spacious']. Colour tokens are unaffected (BR-BW-TOK-004).",
|
|
589
|
+
"$description": "Density axis: SPACIOUS. Foundation v2: type base 16px and 40px md controls, the 0.1.x comfortable proportions, for marketing pages and for consumers that want the previous control and text size. Roomier spacing for lower-density, more relaxed screens. Same token names as the comfortable/compact files. Selected via [data-density='spacious']. Colour tokens are unaffected (BR-BW-TOK-004).",
|
|
571
590
|
"$type": "dimension",
|
|
572
591
|
"font-size-base": {
|
|
573
|
-
"$value": "
|
|
592
|
+
"$value": "1rem",
|
|
574
593
|
"$description": "ADR-127: the type base for this density. The font-size ladder is this value times --bw-font-scale-<step> (md is the base). A gentler spread than control height (about 6 percent against 20 percent): density answers how tight the interface is, and body text does not shrink as fast as the boxes around it. Selected with the other density bases; --bw-font-size-base defaults to it."
|
|
575
594
|
},
|
|
576
595
|
"control-height": {
|
|
577
|
-
"$value": "
|
|
596
|
+
"$value": "2.5rem"
|
|
578
597
|
},
|
|
579
598
|
"control-padding-inline": {
|
|
580
599
|
"$value": "1rem"
|
|
@@ -620,7 +639,7 @@
|
|
|
620
639
|
"$value": "1ms"
|
|
621
640
|
},
|
|
622
641
|
"fast": {
|
|
623
|
-
"$value": "
|
|
642
|
+
"$value": "120ms"
|
|
624
643
|
},
|
|
625
644
|
"normal": {
|
|
626
645
|
"$value": "200ms"
|
|
@@ -1952,25 +1971,6 @@
|
|
|
1952
1971
|
}
|
|
1953
1972
|
}
|
|
1954
1973
|
},
|
|
1955
|
-
"control": {
|
|
1956
|
-
"$type": "dimension",
|
|
1957
|
-
"$description": "ADR-126 section 4 and ADR-127 section 6: the five control role variables (height, padding-inline, icon-size, gap, font-size). Every control reads only these and never a density or step token directly. They default to the resolved md tokens (font-size defaults to the ladder md, --bw-font-size-md); a size class (bw-<component>--size-<step>) or a control container re-points them for its subtree; font-size re-points at --bw-font-size-<same step>, never a per-component table. Not a public option and not a new axis: authors still write size. Emitted on :root and re-emitted inside every [data-density] block so a density scoped to a subtree re-resolves them.",
|
|
1958
|
-
"height": {
|
|
1959
|
-
"$value": "var(--bw-size-control-height-md)"
|
|
1960
|
-
},
|
|
1961
|
-
"padding-inline": {
|
|
1962
|
-
"$value": "var(--bw-size-control-padding-inline-md)"
|
|
1963
|
-
},
|
|
1964
|
-
"icon-size": {
|
|
1965
|
-
"$value": "var(--bw-size-control-icon-md)"
|
|
1966
|
-
},
|
|
1967
|
-
"gap": {
|
|
1968
|
-
"$value": "var(--bw-size-control-gap-md)"
|
|
1969
|
-
},
|
|
1970
|
-
"font-size": {
|
|
1971
|
-
"$value": "var(--bw-font-size-md)"
|
|
1972
|
-
}
|
|
1973
|
-
},
|
|
1974
1974
|
"color": {
|
|
1975
1975
|
"$description": "Semantic tier, LIGHT theme. Role-named tokens (surface, fg, border, accent, status) that ARE the public contract (BR-BW-TOK-001): names are stable, values are brand-overridable. This file holds the authored light values; semantic.dark.tokens.json holds the authored dark values (BR-BW-TOK-002: dark is authored, never derived from light). Both files define the SAME token names. Derived tokens carry their live color-mix expression in $extensions.bw.derived (emitted as the CSS value); $value stays the resolved default and the regression baseline (docs/DESIGN.md section 3).",
|
|
1976
1976
|
"$type": "color",
|
|
@@ -2739,7 +2739,7 @@
|
|
|
2739
2739
|
"$value": "var(--bw-font-family-display)"
|
|
2740
2740
|
},
|
|
2741
2741
|
"size": {
|
|
2742
|
-
"$value": "var(--bw-font-size-
|
|
2742
|
+
"$value": "var(--bw-font-size-4xl)"
|
|
2743
2743
|
},
|
|
2744
2744
|
"line-height": {
|
|
2745
2745
|
"$value": "var(--bw-font-line-height-tight)"
|
|
@@ -2756,7 +2756,7 @@
|
|
|
2756
2756
|
"$value": "var(--bw-font-family-display)"
|
|
2757
2757
|
},
|
|
2758
2758
|
"size": {
|
|
2759
|
-
"$value": "var(--bw-font-size-
|
|
2759
|
+
"$value": "var(--bw-font-size-3xl)"
|
|
2760
2760
|
},
|
|
2761
2761
|
"line-height": {
|
|
2762
2762
|
"$value": "var(--bw-font-line-height-tight)"
|
|
@@ -2774,7 +2774,7 @@
|
|
|
2774
2774
|
"$value": "var(--bw-font-family-display)"
|
|
2775
2775
|
},
|
|
2776
2776
|
"size": {
|
|
2777
|
-
"$value": "var(--bw-font-size-
|
|
2777
|
+
"$value": "var(--bw-font-size-3xl)"
|
|
2778
2778
|
},
|
|
2779
2779
|
"line-height": {
|
|
2780
2780
|
"$value": "var(--bw-font-line-height-tight)"
|
|
@@ -2791,7 +2791,7 @@
|
|
|
2791
2791
|
"$value": "var(--bw-font-family-sans)"
|
|
2792
2792
|
},
|
|
2793
2793
|
"size": {
|
|
2794
|
-
"$value": "var(--bw-font-size-
|
|
2794
|
+
"$value": "var(--bw-font-size-xl)"
|
|
2795
2795
|
},
|
|
2796
2796
|
"line-height": {
|
|
2797
2797
|
"$value": "var(--bw-font-line-height-snug)"
|
|
@@ -2808,7 +2808,7 @@
|
|
|
2808
2808
|
"$value": "var(--bw-font-family-sans)"
|
|
2809
2809
|
},
|
|
2810
2810
|
"size": {
|
|
2811
|
-
"$value": "var(--bw-font-size-
|
|
2811
|
+
"$value": "var(--bw-font-size-lg)"
|
|
2812
2812
|
},
|
|
2813
2813
|
"line-height": {
|
|
2814
2814
|
"$value": "var(--bw-font-line-height-snug)"
|
|
@@ -2822,7 +2822,7 @@
|
|
|
2822
2822
|
"$value": "var(--bw-font-family-sans)"
|
|
2823
2823
|
},
|
|
2824
2824
|
"size": {
|
|
2825
|
-
"$value": "var(--bw-font-size-
|
|
2825
|
+
"$value": "var(--bw-font-size-md)"
|
|
2826
2826
|
},
|
|
2827
2827
|
"line-height": {
|
|
2828
2828
|
"$value": "var(--bw-font-line-height-snug)"
|
|
@@ -2868,15 +2868,15 @@
|
|
|
2868
2868
|
}
|
|
2869
2869
|
},
|
|
2870
2870
|
"label": {
|
|
2871
|
-
"$description": "Interactive control labels (buttons). Carries family and tracking so a brand can set button type once on the ladder (icvoss/django-brickwork#642); defaults
|
|
2871
|
+
"$description": "Interactive control labels (buttons). Carries family and tracking so a brand can set button type once on the ladder (icvoss/django-brickwork#642); defaults to the sans stack and 0em tracking. Foundation v2: md on the ladder (14px at comfortable) with tight line height, so a field label matches its control text.",
|
|
2872
2872
|
"family": {
|
|
2873
2873
|
"$value": "var(--bw-font-family-sans)"
|
|
2874
2874
|
},
|
|
2875
2875
|
"size": {
|
|
2876
|
-
"$value": "var(--bw-font-size-
|
|
2876
|
+
"$value": "var(--bw-font-size-md)"
|
|
2877
2877
|
},
|
|
2878
2878
|
"line-height": {
|
|
2879
|
-
"$value": "var(--bw-font-line-height-
|
|
2879
|
+
"$value": "var(--bw-font-line-height-tight)"
|
|
2880
2880
|
},
|
|
2881
2881
|
"weight": {
|
|
2882
2882
|
"$value": "var(--bw-font-weight-medium)"
|
package/dist/tokens.js
CHANGED
|
@@ -138,6 +138,7 @@ export const tokens = Object.freeze({
|
|
|
138
138
|
"control_height": "var(--bw-control-height)",
|
|
139
139
|
"control_icon_size": "var(--bw-control-icon-size)",
|
|
140
140
|
"control_padding_inline": "var(--bw-control-padding-inline)",
|
|
141
|
+
"control_radius": "var(--bw-control-radius)",
|
|
141
142
|
"debounce_search": "var(--bw-debounce-search)",
|
|
142
143
|
"density_card_padding": "var(--bw-density-card-padding)",
|
|
143
144
|
"density_control_height": "var(--bw-density-control-height)",
|
package/package.json
CHANGED
|
@@ -43,13 +43,25 @@
|
|
|
43
43
|
"$value": "2"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
+
"control": {
|
|
47
|
+
"radius": {
|
|
48
|
+
"$type": "dimension",
|
|
49
|
+
"$value": "{size.radius.lg}",
|
|
50
|
+
"$description": "Foundation v2: the corner of every text-entry and picker control (input, textarea, select, combobox field, date-picker trigger, segmented track). Matches the button radius at 8px so a field and its submit button share one corner; set it once to reshape every control.",
|
|
51
|
+
"$extensions": {
|
|
52
|
+
"bw": {
|
|
53
|
+
"derived": "var(--bw-size-radius-lg)"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
46
58
|
"button": {
|
|
47
59
|
"radius": {
|
|
48
60
|
"$type": "dimension",
|
|
49
|
-
"$value": "{size.radius.
|
|
61
|
+
"$value": "{size.radius.lg}",
|
|
50
62
|
"$extensions": {
|
|
51
63
|
"bw": {
|
|
52
|
-
"derived": "var(--bw-size-radius-
|
|
64
|
+
"derived": "var(--bw-size-radius-lg)"
|
|
53
65
|
}
|
|
54
66
|
}
|
|
55
67
|
},
|
|
@@ -123,8 +135,8 @@
|
|
|
123
135
|
"stat-tile": {
|
|
124
136
|
"value-size": {
|
|
125
137
|
"$type": "dimension",
|
|
126
|
-
"$value": "var(--bw-font-size-
|
|
127
|
-
"$description": "Stat tile numeral size (VIZ-001, AC-BW-075, APP-CRAFT section 4 kpi-value pick); a live var() reference so the font scale cascades, and the size modifiers re-point it per tile. ADR-127 / APP-CRAFT:
|
|
138
|
+
"$value": "var(--bw-font-size-3xl)",
|
|
139
|
+
"$description": "Stat tile numeral size (VIZ-001, AC-BW-075, APP-CRAFT section 4 kpi-value pick); a live var() reference so the font scale cascades, and the size modifiers re-point it per tile. ADR-127 / APP-CRAFT: 3xl (24px at the foundation v2 comfortable base) is the ladder pick for a compact KPI numeral; size-sm re-points to 2xl, size-lg to 4xl."
|
|
128
140
|
},
|
|
129
141
|
"sparkline-height": {
|
|
130
142
|
"$type": "dimension",
|
|
@@ -356,15 +368,15 @@
|
|
|
356
368
|
}
|
|
357
369
|
},
|
|
358
370
|
"font": {
|
|
359
|
-
"$description": "Typography tokens (semver-public, brand-overridable). Theme-agnostic. A consuming app rebrands its typeface the same token-first way it rebrands colour, by overriding --bw-font-family-* rather than reaching into brickwork's own classes. Body
|
|
371
|
+
"$description": "Typography tokens (semver-public, brand-overridable). Theme-agnostic. A consuming app rebrands its typeface the same token-first way it rebrands colour, by overriding --bw-font-family-* rather than reaching into brickwork's own classes. Body and display both default to the neutral system sans (foundation v2); brands override either token, and a display override gives headings their own face.",
|
|
360
372
|
"family": {
|
|
361
373
|
"$type": "fontFamily",
|
|
362
374
|
"sans": {
|
|
363
375
|
"$value": "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'"
|
|
364
376
|
},
|
|
365
377
|
"display": {
|
|
366
|
-
"$value": "ui-
|
|
367
|
-
"$description": "
|
|
378
|
+
"$value": "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
379
|
+
"$description": "Foundation v2: the base theme's display face is the system sans, so app headings and body share one family and hierarchy comes from size, weight and tracking. The system-serif fallback (icvoss/django-brickwork#511) rendered as Times on most machines. heading-display / heading-2xl / heading-xl / heading-section still read this token, so a brand or a marketing site sets a distinct display face here (see the northline brand-pack example)."
|
|
368
380
|
},
|
|
369
381
|
"mono": {
|
|
370
382
|
"$value": "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace"
|
|
@@ -414,39 +426,39 @@
|
|
|
414
426
|
},
|
|
415
427
|
"scale": {
|
|
416
428
|
"$type": "number",
|
|
417
|
-
"$description": "ADR-127: unitless type multipliers applied to the type base. Type-owned: deliberately not the control multipliers --bw-size-step-* (ADR-125),
|
|
429
|
+
"$description": "ADR-127: unitless type multipliers applied to the type base. Type-owned: deliberately not the control multipliers --bw-size-step-* (ADR-125), so retuning controls cannot resize text. Foundation v2 ladder: at the 14px comfortable base the steps land on 11, 12, 13, 14, 16, 18, 20, 24, 30, 40 and 60px, so headings keep their old pixel sizes while body and controls drop to app proportions.",
|
|
418
430
|
"2xs": {
|
|
419
|
-
"$value": 0.
|
|
431
|
+
"$value": 0.785714
|
|
420
432
|
},
|
|
421
433
|
"xs": {
|
|
422
|
-
"$value": 0.
|
|
434
|
+
"$value": 0.857143
|
|
423
435
|
},
|
|
424
436
|
"sm": {
|
|
425
|
-
"$value": 0.
|
|
437
|
+
"$value": 0.928571
|
|
426
438
|
},
|
|
427
439
|
"md": {
|
|
428
440
|
"$value": 1
|
|
429
441
|
},
|
|
430
442
|
"lg": {
|
|
431
|
-
"$value": 1.
|
|
443
|
+
"$value": 1.142857
|
|
432
444
|
},
|
|
433
445
|
"xl": {
|
|
434
|
-
"$value": 1.
|
|
446
|
+
"$value": 1.285714
|
|
435
447
|
},
|
|
436
448
|
"2xl": {
|
|
437
|
-
"$value": 1.
|
|
449
|
+
"$value": 1.428571
|
|
438
450
|
},
|
|
439
451
|
"3xl": {
|
|
440
|
-
"$value":
|
|
452
|
+
"$value": 1.714286
|
|
441
453
|
},
|
|
442
454
|
"4xl": {
|
|
443
|
-
"$value": 2.
|
|
455
|
+
"$value": 2.142857
|
|
444
456
|
},
|
|
445
457
|
"5xl": {
|
|
446
|
-
"$value":
|
|
458
|
+
"$value": 2.857143
|
|
447
459
|
},
|
|
448
460
|
"6xl": {
|
|
449
|
-
"$value":
|
|
461
|
+
"$value": 4.285714
|
|
450
462
|
}
|
|
451
463
|
},
|
|
452
464
|
"weight": {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"density": {
|
|
3
|
-
"$description": "Density axis: COMFORTABLE (default). Density scales spacing/sizing component tokens only, never colour (BR-BW-TOK-004). Same token names as the compact/spacious files. Selected via [data-density='comfortable'] (the default, also emitted on :root).",
|
|
3
|
+
"$description": "Density axis: COMFORTABLE (default). Foundation v2: app proportions, a 14px type base and 36px md controls; the 0.1.x values (16px, 40px) moved to spacious. Density scales spacing/sizing component tokens only, never colour (BR-BW-TOK-004). Same token names as the compact/spacious files. Selected via [data-density='comfortable'] (the default, also emitted on :root).",
|
|
4
4
|
"$type": "dimension",
|
|
5
5
|
"font-size-base": {
|
|
6
|
-
"$value": "
|
|
6
|
+
"$value": "0.875rem",
|
|
7
7
|
"$description": "ADR-127: the type base for this density. The font-size ladder is this value times --bw-font-scale-<step> (md is the base). A gentler spread than control height (about 6 percent against 20 percent): density answers how tight the interface is, and body text does not shrink as fast as the boxes around it. Selected with the other density bases; --bw-font-size-base defaults to it."
|
|
8
8
|
},
|
|
9
9
|
"control-height": {
|
|
10
|
-
"$value": "2.
|
|
10
|
+
"$value": "2.25rem"
|
|
11
11
|
},
|
|
12
12
|
"control-padding-inline": {
|
|
13
13
|
"$value": "0.75rem"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$description": "Density axis: COMPACT. Tighter spacing and control heights for information-dense admin screens. Same token names as the comfortable/spacious files. Selected via [data-density='compact']. Colour tokens are unaffected (BR-BW-TOK-004).",
|
|
4
4
|
"$type": "dimension",
|
|
5
5
|
"font-size-base": {
|
|
6
|
-
"$value": "0.
|
|
6
|
+
"$value": "0.8125rem",
|
|
7
7
|
"$description": "ADR-127: the type base for this density. The font-size ladder is this value times --bw-font-scale-<step> (md is the base). A gentler spread than control height (about 6 percent against 20 percent): density answers how tight the interface is, and body text does not shrink as fast as the boxes around it. Selected with the other density bases; --bw-font-size-base defaults to it."
|
|
8
8
|
},
|
|
9
9
|
"control-height": {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"density": {
|
|
3
|
-
"$description": "Density axis: SPACIOUS. Roomier spacing for lower-density, more relaxed screens. Same token names as the comfortable/compact files. Selected via [data-density='spacious']. Colour tokens are unaffected (BR-BW-TOK-004).",
|
|
3
|
+
"$description": "Density axis: SPACIOUS. Foundation v2: type base 16px and 40px md controls, the 0.1.x comfortable proportions, for marketing pages and for consumers that want the previous control and text size. Roomier spacing for lower-density, more relaxed screens. Same token names as the comfortable/compact files. Selected via [data-density='spacious']. Colour tokens are unaffected (BR-BW-TOK-004).",
|
|
4
4
|
"$type": "dimension",
|
|
5
5
|
"font-size-base": {
|
|
6
|
-
"$value": "
|
|
6
|
+
"$value": "1rem",
|
|
7
7
|
"$description": "ADR-127: the type base for this density. The font-size ladder is this value times --bw-font-scale-<step> (md is the base). A gentler spread than control height (about 6 percent against 20 percent): density answers how tight the interface is, and body text does not shrink as fast as the boxes around it. Selected with the other density bases; --bw-font-size-base defaults to it."
|
|
8
8
|
},
|
|
9
9
|
"control-height": {
|
|
10
|
-
"$value": "
|
|
10
|
+
"$value": "2.5rem"
|
|
11
11
|
},
|
|
12
12
|
"control-padding-inline": {
|
|
13
13
|
"$value": "1rem"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$description": "Motion durations (DESIGN.md section 8.1). instant is 1ms, not 0, so transitionend still fires; shimmer and spin formalise the two hardcoded loop timings; the toast-* rungs are the CBH-009 auto-dismiss ladder, read by bwToast via getComputedStyle, never a transition timing.",
|
|
4
4
|
"$type": "duration",
|
|
5
5
|
"instant": { "$value": "1ms" },
|
|
6
|
-
"fast": { "$value": "
|
|
6
|
+
"fast": { "$value": "120ms" },
|
|
7
7
|
"normal": { "$value": "200ms" },
|
|
8
8
|
"moderate": { "$value": "250ms" },
|
|
9
9
|
"slow": { "$value": "400ms" },
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
},
|
|
13
13
|
"heading-2xl": {
|
|
14
14
|
"family": { "$value": "var(--bw-font-family-display)" },
|
|
15
|
-
"size": { "$value": "var(--bw-font-size-
|
|
15
|
+
"size": { "$value": "var(--bw-font-size-4xl)" },
|
|
16
16
|
"line-height": { "$value": "var(--bw-font-line-height-tight)" },
|
|
17
17
|
"weight": { "$value": "var(--bw-font-weight-bold)" },
|
|
18
18
|
"tracking": { "$value": "var(--bw-font-tracking-tight)" }
|
|
19
19
|
},
|
|
20
20
|
"heading-xl": {
|
|
21
21
|
"family": { "$value": "var(--bw-font-family-display)" },
|
|
22
|
-
"size": { "$value": "var(--bw-font-size-
|
|
22
|
+
"size": { "$value": "var(--bw-font-size-3xl)" },
|
|
23
23
|
"line-height": { "$value": "var(--bw-font-line-height-tight)" },
|
|
24
24
|
"weight": { "$value": "var(--bw-font-weight-semibold)" },
|
|
25
25
|
"tracking": { "$value": "var(--bw-font-tracking-tight)" }
|
|
@@ -27,27 +27,27 @@
|
|
|
27
27
|
"heading-section": {
|
|
28
28
|
"$description": "Marketing section-intro type role (icvoss/django-brickwork#643). Independently themeable from the page-header title's heading-xl role. Defaults duplicate heading-xl's scale references (display family, xl size, tight leading, semibold, tight tracking) so package-default renders stay visually identical while a brand can size section intros without moving page titles, and vice versa.",
|
|
29
29
|
"family": { "$value": "var(--bw-font-family-display)" },
|
|
30
|
-
"size": { "$value": "var(--bw-font-size-
|
|
30
|
+
"size": { "$value": "var(--bw-font-size-3xl)" },
|
|
31
31
|
"line-height": { "$value": "var(--bw-font-line-height-tight)" },
|
|
32
32
|
"weight": { "$value": "var(--bw-font-weight-semibold)" },
|
|
33
33
|
"tracking": { "$value": "var(--bw-font-tracking-tight)" }
|
|
34
34
|
},
|
|
35
35
|
"heading-lg": {
|
|
36
36
|
"family": { "$value": "var(--bw-font-family-sans)" },
|
|
37
|
-
"size": { "$value": "var(--bw-font-size-
|
|
37
|
+
"size": { "$value": "var(--bw-font-size-xl)" },
|
|
38
38
|
"line-height": { "$value": "var(--bw-font-line-height-snug)" },
|
|
39
39
|
"weight": { "$value": "var(--bw-font-weight-semibold)" },
|
|
40
40
|
"tracking": { "$value": "var(--bw-font-tracking-normal)" }
|
|
41
41
|
},
|
|
42
42
|
"heading-md": {
|
|
43
43
|
"family": { "$value": "var(--bw-font-family-sans)" },
|
|
44
|
-
"size": { "$value": "var(--bw-font-size-
|
|
44
|
+
"size": { "$value": "var(--bw-font-size-lg)" },
|
|
45
45
|
"line-height": { "$value": "var(--bw-font-line-height-snug)" },
|
|
46
46
|
"weight": { "$value": "var(--bw-font-weight-semibold)" }
|
|
47
47
|
},
|
|
48
48
|
"heading-sm": {
|
|
49
49
|
"family": { "$value": "var(--bw-font-family-sans)" },
|
|
50
|
-
"size": { "$value": "var(--bw-font-size-
|
|
50
|
+
"size": { "$value": "var(--bw-font-size-md)" },
|
|
51
51
|
"line-height": { "$value": "var(--bw-font-line-height-snug)" },
|
|
52
52
|
"weight": { "$value": "var(--bw-font-weight-semibold)" }
|
|
53
53
|
},
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"weight": { "$value": "var(--bw-font-weight-normal)" }
|
|
69
69
|
},
|
|
70
70
|
"label": {
|
|
71
|
-
"$description": "Interactive control labels (buttons). Carries family and tracking so a brand can set button type once on the ladder (icvoss/django-brickwork#642); defaults
|
|
71
|
+
"$description": "Interactive control labels (buttons). Carries family and tracking so a brand can set button type once on the ladder (icvoss/django-brickwork#642); defaults to the sans stack and 0em tracking. Foundation v2: md on the ladder (14px at comfortable) with tight line height, so a field label matches its control text.",
|
|
72
72
|
"family": { "$value": "var(--bw-font-family-sans)" },
|
|
73
|
-
"size": { "$value": "var(--bw-font-size-
|
|
74
|
-
"line-height": { "$value": "var(--bw-font-line-height-
|
|
73
|
+
"size": { "$value": "var(--bw-font-size-md)" },
|
|
74
|
+
"line-height": { "$value": "var(--bw-font-line-height-tight)" },
|
|
75
75
|
"weight": { "$value": "var(--bw-font-weight-medium)" },
|
|
76
76
|
"tracking": { "$value": "var(--bw-font-tracking-normal)" }
|
|
77
77
|
},
|