@bwui/tokens 0.1.7 → 0.1.9

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.
@@ -240,36 +240,6 @@
240
240
  "light": "1.25"
241
241
  }
242
242
  },
243
- "bw-size-text-step-xs": {
244
- "type": "COLOR_OR_FLOAT",
245
- "valuesByMode": {
246
- "light": "0.875"
247
- }
248
- },
249
- "bw-size-text-step-sm": {
250
- "type": "COLOR_OR_FLOAT",
251
- "valuesByMode": {
252
- "light": "0.9375"
253
- }
254
- },
255
- "bw-size-text-step-md": {
256
- "type": "COLOR_OR_FLOAT",
257
- "valuesByMode": {
258
- "light": "1"
259
- }
260
- },
261
- "bw-size-text-step-lg": {
262
- "type": "COLOR_OR_FLOAT",
263
- "valuesByMode": {
264
- "light": "1.125"
265
- }
266
- },
267
- "bw-size-text-step-xl": {
268
- "type": "COLOR_OR_FLOAT",
269
- "valuesByMode": {
270
- "light": "1.25"
271
- }
272
- },
273
243
  "bw-size-control-height-xs": {
274
244
  "type": "COLOR_OR_FLOAT",
275
245
  "valuesByMode": {
@@ -390,36 +360,6 @@
390
360
  "light": "var(--bw-space-3)"
391
361
  }
392
362
  },
393
- "bw-size-control-font-size-xs": {
394
- "type": "COLOR_OR_FLOAT",
395
- "valuesByMode": {
396
- "light": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)))"
397
- }
398
- },
399
- "bw-size-control-font-size-sm": {
400
- "type": "COLOR_OR_FLOAT",
401
- "valuesByMode": {
402
- "light": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)))"
403
- }
404
- },
405
- "bw-size-control-font-size-md": {
406
- "type": "COLOR_OR_FLOAT",
407
- "valuesByMode": {
408
- "light": "var(--bw-text-label-size)"
409
- }
410
- },
411
- "bw-size-control-font-size-lg": {
412
- "type": "COLOR_OR_FLOAT",
413
- "valuesByMode": {
414
- "light": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)))"
415
- }
416
- },
417
- "bw-size-control-font-size-xl": {
418
- "type": "COLOR_OR_FLOAT",
419
- "valuesByMode": {
420
- "light": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)))"
421
- }
422
- },
423
363
  "bw-size-touch-target-min": {
424
364
  "type": "COLOR_OR_FLOAT",
425
365
  "valuesByMode": {
@@ -483,7 +423,7 @@
483
423
  "bw-control-font-size": {
484
424
  "type": "COLOR_OR_FLOAT",
485
425
  "valuesByMode": {
486
- "light": "var(--bw-size-control-font-size-md)"
426
+ "light": "var(--bw-font-size-md)"
487
427
  }
488
428
  },
489
429
  "bw-component-icon-stroke-width": {
@@ -561,7 +501,7 @@
561
501
  "bw-component-stat-tile-value-size": {
562
502
  "type": "COLOR_OR_FLOAT",
563
503
  "valuesByMode": {
564
- "light": "var(--bw-font-size-3xl)"
504
+ "light": "var(--bw-font-size-4xl)"
565
505
  }
566
506
  },
567
507
  "bw-component-stat-tile-sparkline-height": {
@@ -828,64 +768,142 @@
828
768
  "light": "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace"
829
769
  }
830
770
  },
771
+ "bw-font-size-base": {
772
+ "type": "COLOR_OR_FLOAT",
773
+ "valuesByMode": {
774
+ "light": "var(--bw-density-font-size-base)"
775
+ }
776
+ },
831
777
  "bw-font-size-2xs": {
832
778
  "type": "COLOR_OR_FLOAT",
833
779
  "valuesByMode": {
834
- "light": "0.6875rem"
780
+ "light": "max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)))"
835
781
  }
836
782
  },
837
783
  "bw-font-size-xs": {
838
784
  "type": "COLOR_OR_FLOAT",
839
785
  "valuesByMode": {
840
- "light": "0.75rem"
786
+ "light": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)))"
841
787
  }
842
788
  },
843
789
  "bw-font-size-sm": {
844
790
  "type": "COLOR_OR_FLOAT",
845
791
  "valuesByMode": {
846
- "light": "0.875rem"
792
+ "light": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)))"
847
793
  }
848
794
  },
849
795
  "bw-font-size-md": {
850
796
  "type": "COLOR_OR_FLOAT",
851
797
  "valuesByMode": {
852
- "light": "1rem"
798
+ "light": "var(--bw-font-size-base)"
853
799
  }
854
800
  },
855
801
  "bw-font-size-lg": {
856
802
  "type": "COLOR_OR_FLOAT",
857
803
  "valuesByMode": {
858
- "light": "1.125rem"
804
+ "light": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)))"
859
805
  }
860
806
  },
861
807
  "bw-font-size-xl": {
862
808
  "type": "COLOR_OR_FLOAT",
863
809
  "valuesByMode": {
864
- "light": "1.5rem"
810
+ "light": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)))"
865
811
  }
866
812
  },
867
813
  "bw-font-size-2xl": {
868
814
  "type": "COLOR_OR_FLOAT",
869
815
  "valuesByMode": {
870
- "light": "2rem"
816
+ "light": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)))"
871
817
  }
872
818
  },
873
819
  "bw-font-size-3xl": {
874
820
  "type": "COLOR_OR_FLOAT",
875
821
  "valuesByMode": {
876
- "light": "2.5rem"
822
+ "light": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)))"
877
823
  }
878
824
  },
879
825
  "bw-font-size-4xl": {
880
826
  "type": "COLOR_OR_FLOAT",
881
827
  "valuesByMode": {
882
- "light": "3rem"
828
+ "light": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)))"
883
829
  }
884
830
  },
885
831
  "bw-font-size-5xl": {
886
832
  "type": "COLOR_OR_FLOAT",
887
833
  "valuesByMode": {
888
- "light": "3.75rem"
834
+ "light": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)))"
835
+ }
836
+ },
837
+ "bw-font-size-6xl": {
838
+ "type": "COLOR_OR_FLOAT",
839
+ "valuesByMode": {
840
+ "light": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)))"
841
+ }
842
+ },
843
+ "bw-font-scale-2xs": {
844
+ "type": "COLOR_OR_FLOAT",
845
+ "valuesByMode": {
846
+ "light": "0.6875"
847
+ }
848
+ },
849
+ "bw-font-scale-xs": {
850
+ "type": "COLOR_OR_FLOAT",
851
+ "valuesByMode": {
852
+ "light": "0.75"
853
+ }
854
+ },
855
+ "bw-font-scale-sm": {
856
+ "type": "COLOR_OR_FLOAT",
857
+ "valuesByMode": {
858
+ "light": "0.875"
859
+ }
860
+ },
861
+ "bw-font-scale-md": {
862
+ "type": "COLOR_OR_FLOAT",
863
+ "valuesByMode": {
864
+ "light": "1"
865
+ }
866
+ },
867
+ "bw-font-scale-lg": {
868
+ "type": "COLOR_OR_FLOAT",
869
+ "valuesByMode": {
870
+ "light": "1.125"
871
+ }
872
+ },
873
+ "bw-font-scale-xl": {
874
+ "type": "COLOR_OR_FLOAT",
875
+ "valuesByMode": {
876
+ "light": "1.25"
877
+ }
878
+ },
879
+ "bw-font-scale-2xl": {
880
+ "type": "COLOR_OR_FLOAT",
881
+ "valuesByMode": {
882
+ "light": "1.5"
883
+ }
884
+ },
885
+ "bw-font-scale-3xl": {
886
+ "type": "COLOR_OR_FLOAT",
887
+ "valuesByMode": {
888
+ "light": "2"
889
+ }
890
+ },
891
+ "bw-font-scale-4xl": {
892
+ "type": "COLOR_OR_FLOAT",
893
+ "valuesByMode": {
894
+ "light": "2.5"
895
+ }
896
+ },
897
+ "bw-font-scale-5xl": {
898
+ "type": "COLOR_OR_FLOAT",
899
+ "valuesByMode": {
900
+ "light": "3"
901
+ }
902
+ },
903
+ "bw-font-scale-6xl": {
904
+ "type": "COLOR_OR_FLOAT",
905
+ "valuesByMode": {
906
+ "light": "3.75"
889
907
  }
890
908
  },
891
909
  "bw-font-weight-normal": {
@@ -1023,7 +1041,7 @@
1023
1041
  "bw-text-heading-display-size": {
1024
1042
  "type": "COLOR_OR_FLOAT",
1025
1043
  "valuesByMode": {
1026
- "light": "var(--bw-font-size-5xl)"
1044
+ "light": "var(--bw-font-size-6xl)"
1027
1045
  }
1028
1046
  },
1029
1047
  "bw-text-heading-display-line-height": {
@@ -1053,7 +1071,7 @@
1053
1071
  "bw-text-heading-2xl-size": {
1054
1072
  "type": "COLOR_OR_FLOAT",
1055
1073
  "valuesByMode": {
1056
- "light": "var(--bw-font-size-2xl)"
1074
+ "light": "var(--bw-font-size-3xl)"
1057
1075
  }
1058
1076
  },
1059
1077
  "bw-text-heading-2xl-line-height": {
@@ -1083,7 +1101,7 @@
1083
1101
  "bw-text-heading-xl-size": {
1084
1102
  "type": "COLOR_OR_FLOAT",
1085
1103
  "valuesByMode": {
1086
- "light": "var(--bw-font-size-xl)"
1104
+ "light": "var(--bw-font-size-2xl)"
1087
1105
  }
1088
1106
  },
1089
1107
  "bw-text-heading-xl-line-height": {
@@ -1113,7 +1131,7 @@
1113
1131
  "bw-text-heading-section-size": {
1114
1132
  "type": "COLOR_OR_FLOAT",
1115
1133
  "valuesByMode": {
1116
- "light": "var(--bw-font-size-xl)"
1134
+ "light": "var(--bw-font-size-2xl)"
1117
1135
  }
1118
1136
  },
1119
1137
  "bw-text-heading-section-line-height": {
@@ -2004,6 +2022,12 @@
2004
2022
  "light": "0 20px 25px -5px oklch(0 0 0 / 0.5), 0 8px 10px -6px oklch(0 0 0 / 0.4), inset 0 1px 0 0 oklch(1 0 0 / 0.06)"
2005
2023
  }
2006
2024
  },
2025
+ "bw-density-font-size-base": {
2026
+ "type": "COLOR_OR_FLOAT",
2027
+ "valuesByMode": {
2028
+ "light": "1.0625rem"
2029
+ }
2030
+ },
2007
2031
  "bw-density-control-height": {
2008
2032
  "type": "COLOR_OR_FLOAT",
2009
2033
  "valuesByMode": {
@@ -175,7 +175,12 @@ export default {
175
175
  {
176
176
  "lineHeight": "var(--bw-text-code-line-height)"
177
177
  }
178
- ]
178
+ ],
179
+ "xs": "var(--bw-font-size-xs)",
180
+ "sm": "var(--bw-font-size-sm)",
181
+ "md": "var(--bw-font-size-md)",
182
+ "lg": "var(--bw-font-size-lg)",
183
+ "xl": "var(--bw-font-size-xl)"
179
184
  }
180
185
  }
181
186
  }
@@ -116,6 +116,11 @@
116
116
  --text-overline--line-height: var(--bw-text-overline-line-height);
117
117
  --text-code: var(--bw-text-code-size);
118
118
  --text-code--line-height: var(--bw-text-code-line-height);
119
+ --text-xs: var(--bw-font-size-xs);
120
+ --text-sm: var(--bw-font-size-sm);
121
+ --text-md: var(--bw-font-size-md);
122
+ --text-lg: var(--bw-font-size-lg);
123
+ --text-xl: var(--bw-font-size-xl);
119
124
  --font-sans: var(--bw-font-family-sans);
120
125
  --font-display: var(--bw-font-family-display);
121
126
  --font-mono: var(--bw-font-family-mono);
@@ -244,6 +244,7 @@
244
244
  "--bw-density-card-padding",
245
245
  "--bw-density-control-height",
246
246
  "--bw-density-control-padding-inline",
247
+ "--bw-density-font-size-base",
247
248
  "--bw-density-page-gutter-inline",
248
249
  "--bw-density-rail-width",
249
250
  "--bw-density-rail-width-expanded",
@@ -288,11 +289,24 @@
288
289
  "--bw-font-line-height-relaxed",
289
290
  "--bw-font-line-height-snug",
290
291
  "--bw-font-line-height-tight",
292
+ "--bw-font-scale-2xl",
293
+ "--bw-font-scale-2xs",
294
+ "--bw-font-scale-3xl",
295
+ "--bw-font-scale-4xl",
296
+ "--bw-font-scale-5xl",
297
+ "--bw-font-scale-6xl",
298
+ "--bw-font-scale-lg",
299
+ "--bw-font-scale-md",
300
+ "--bw-font-scale-sm",
301
+ "--bw-font-scale-xl",
302
+ "--bw-font-scale-xs",
291
303
  "--bw-font-size-2xl",
292
304
  "--bw-font-size-2xs",
293
305
  "--bw-font-size-3xl",
294
306
  "--bw-font-size-4xl",
295
307
  "--bw-font-size-5xl",
308
+ "--bw-font-size-6xl",
309
+ "--bw-font-size-base",
296
310
  "--bw-font-size-lg",
297
311
  "--bw-font-size-md",
298
312
  "--bw-font-size-sm",
@@ -318,11 +332,6 @@
318
332
  "--bw-size-border-hairline",
319
333
  "--bw-size-border-nav-marker",
320
334
  "--bw-size-border-thick",
321
- "--bw-size-control-font-size-lg",
322
- "--bw-size-control-font-size-md",
323
- "--bw-size-control-font-size-sm",
324
- "--bw-size-control-font-size-xl",
325
- "--bw-size-control-font-size-xs",
326
335
  "--bw-size-control-gap-lg",
327
336
  "--bw-size-control-gap-md",
328
337
  "--bw-size-control-gap-sm",
@@ -353,11 +362,6 @@
353
362
  "--bw-size-step-sm",
354
363
  "--bw-size-step-xl",
355
364
  "--bw-size-step-xs",
356
- "--bw-size-text-step-lg",
357
- "--bw-size-text-step-md",
358
- "--bw-size-text-step-sm",
359
- "--bw-size-text-step-xl",
360
- "--bw-size-text-step-xs",
361
365
  "--bw-size-touch-target-min",
362
366
  "--bw-space-0",
363
367
  "--bw-space-0-5",
package/dist/tokens.css CHANGED
@@ -44,11 +44,6 @@
44
44
  --bw-size-step-md: 1;
45
45
  --bw-size-step-lg: 1.125;
46
46
  --bw-size-step-xl: 1.25;
47
- --bw-size-text-step-xs: 0.875;
48
- --bw-size-text-step-sm: 0.9375;
49
- --bw-size-text-step-md: 1;
50
- --bw-size-text-step-lg: 1.125;
51
- --bw-size-text-step-xl: 1.25;
52
47
  --bw-size-control-height-xs: max(1.5rem, calc(var(--bw-density-control-height) * var(--bw-size-step-xs)));
53
48
  --bw-size-control-height-sm: max(1.5rem, calc(var(--bw-density-control-height) * var(--bw-size-step-sm)));
54
49
  --bw-size-control-height-md: var(--bw-density-control-height);
@@ -69,11 +64,6 @@
69
64
  --bw-size-control-gap-md: var(--bw-space-2);
70
65
  --bw-size-control-gap-lg: var(--bw-space-3);
71
66
  --bw-size-control-gap-xl: var(--bw-space-3);
72
- --bw-size-control-font-size-xs: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)));
73
- --bw-size-control-font-size-sm: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)));
74
- --bw-size-control-font-size-md: var(--bw-text-label-size);
75
- --bw-size-control-font-size-lg: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)));
76
- --bw-size-control-font-size-xl: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)));
77
67
  --bw-size-touch-target-min: 2.75rem;
78
68
  --bw-size-max-width-prose: 65ch;
79
69
  --bw-size-max-width-form: 32rem;
@@ -84,7 +74,7 @@
84
74
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
85
75
  --bw-control-icon-size: var(--bw-size-control-icon-md);
86
76
  --bw-control-gap: var(--bw-size-control-gap-md);
87
- --bw-control-font-size: var(--bw-size-control-font-size-md);
77
+ --bw-control-font-size: var(--bw-font-size-md);
88
78
  --bw-component-icon-size-sm: 1rem;
89
79
  --bw-component-icon-size-md: 1.25rem;
90
80
  --bw-component-icon-size-lg: 1.5rem;
@@ -102,7 +92,7 @@
102
92
  --bw-component-toggle-track-height: 1.25rem;
103
93
  --bw-component-toggle-thumb-size: 0.875rem;
104
94
  --bw-component-toggle-thumb-inset: 0.25rem;
105
- --bw-component-stat-tile-value-size: var(--bw-font-size-3xl);
95
+ --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
106
96
  --bw-component-stat-tile-sparkline-height: 2rem;
107
97
  --bw-component-progress-track-height: 0.5rem;
108
98
  --bw-component-ranked-list-bar-thickness: 0.375rem;
@@ -147,16 +137,29 @@
147
137
  --bw-font-family-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
148
138
  --bw-font-family-display: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', Times, serif;
149
139
  --bw-font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;
150
- --bw-font-size-2xs: 0.6875rem;
151
- --bw-font-size-xs: 0.75rem;
152
- --bw-font-size-sm: 0.875rem;
153
- --bw-font-size-md: 1rem;
154
- --bw-font-size-lg: 1.125rem;
155
- --bw-font-size-xl: 1.5rem;
156
- --bw-font-size-2xl: 2rem;
157
- --bw-font-size-3xl: 2.5rem;
158
- --bw-font-size-4xl: 3rem;
159
- --bw-font-size-5xl: 3.75rem;
140
+ --bw-font-size-base: var(--bw-density-font-size-base);
141
+ --bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
142
+ --bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
143
+ --bw-font-size-sm: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)));
144
+ --bw-font-size-md: var(--bw-font-size-base);
145
+ --bw-font-size-lg: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)));
146
+ --bw-font-size-xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)));
147
+ --bw-font-size-2xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)));
148
+ --bw-font-size-3xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)));
149
+ --bw-font-size-4xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)));
150
+ --bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
151
+ --bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
152
+ --bw-font-scale-2xs: 0.6875;
153
+ --bw-font-scale-xs: 0.75;
154
+ --bw-font-scale-sm: 0.875;
155
+ --bw-font-scale-md: 1;
156
+ --bw-font-scale-lg: 1.125;
157
+ --bw-font-scale-xl: 1.25;
158
+ --bw-font-scale-2xl: 1.5;
159
+ --bw-font-scale-3xl: 2;
160
+ --bw-font-scale-4xl: 2.5;
161
+ --bw-font-scale-5xl: 3;
162
+ --bw-font-scale-6xl: 3.75;
160
163
  --bw-font-weight-normal: 400;
161
164
  --bw-font-weight-medium: 500;
162
165
  --bw-font-weight-semibold: 600;
@@ -179,22 +182,22 @@
179
182
  --bw-component-scorecard-columns-sm: 2;
180
183
  --bw-component-scorecard-columns-lg: 4;
181
184
  --bw-text-heading-display-family: var(--bw-font-family-display);
182
- --bw-text-heading-display-size: var(--bw-font-size-5xl);
185
+ --bw-text-heading-display-size: var(--bw-font-size-6xl);
183
186
  --bw-text-heading-display-line-height: var(--bw-font-line-height-tight);
184
187
  --bw-text-heading-display-weight: var(--bw-font-weight-bold);
185
188
  --bw-text-heading-display-tracking: var(--bw-font-tracking-tight);
186
189
  --bw-text-heading-2xl-family: var(--bw-font-family-display);
187
- --bw-text-heading-2xl-size: var(--bw-font-size-2xl);
190
+ --bw-text-heading-2xl-size: var(--bw-font-size-3xl);
188
191
  --bw-text-heading-2xl-line-height: var(--bw-font-line-height-tight);
189
192
  --bw-text-heading-2xl-weight: var(--bw-font-weight-bold);
190
193
  --bw-text-heading-2xl-tracking: var(--bw-font-tracking-tight);
191
194
  --bw-text-heading-xl-family: var(--bw-font-family-display);
192
- --bw-text-heading-xl-size: var(--bw-font-size-xl);
195
+ --bw-text-heading-xl-size: var(--bw-font-size-2xl);
193
196
  --bw-text-heading-xl-line-height: var(--bw-font-line-height-tight);
194
197
  --bw-text-heading-xl-weight: var(--bw-font-weight-semibold);
195
198
  --bw-text-heading-xl-tracking: var(--bw-font-tracking-tight);
196
199
  --bw-text-heading-section-family: var(--bw-font-family-display);
197
- --bw-text-heading-section-size: var(--bw-font-size-xl);
200
+ --bw-text-heading-section-size: var(--bw-font-size-2xl);
198
201
  --bw-text-heading-section-line-height: var(--bw-font-line-height-tight);
199
202
  --bw-text-heading-section-weight: var(--bw-font-weight-semibold);
200
203
  --bw-text-heading-section-tracking: var(--bw-font-tracking-tight);
@@ -343,6 +346,7 @@
343
346
  --bw-elevation-3: 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1);
344
347
  --bw-elevation-4: 0 10px 15px -3px oklch(0 0 0 / 0.1), 0 4px 6px -4px oklch(0 0 0 / 0.1);
345
348
  --bw-elevation-5: 0 20px 25px -5px oklch(0 0 0 / 0.1), 0 8px 10px -6px oklch(0 0 0 / 0.1);
349
+ --bw-density-font-size-base: 1rem;
346
350
  --bw-density-control-height: 2.5rem;
347
351
  --bw-density-control-padding-inline: 0.75rem;
348
352
  --bw-density-row-padding-block: 0.625rem;
@@ -618,6 +622,7 @@
618
622
  }
619
623
 
620
624
  [data-density="comfortable"] {
625
+ --bw-density-font-size-base: 1rem;
621
626
  --bw-density-control-height: 2.5rem;
622
627
  --bw-density-control-padding-inline: 0.75rem;
623
628
  --bw-density-row-padding-block: 0.625rem;
@@ -651,19 +656,42 @@
651
656
  --bw-size-control-gap-md: var(--bw-space-2);
652
657
  --bw-size-control-gap-lg: var(--bw-space-3);
653
658
  --bw-size-control-gap-xl: var(--bw-space-3);
654
- --bw-size-control-font-size-xs: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)));
655
- --bw-size-control-font-size-sm: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)));
656
- --bw-size-control-font-size-md: var(--bw-text-label-size);
657
- --bw-size-control-font-size-lg: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)));
658
- --bw-size-control-font-size-xl: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)));
659
659
  --bw-control-height: var(--bw-size-control-height-md);
660
660
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
661
661
  --bw-control-icon-size: var(--bw-size-control-icon-md);
662
662
  --bw-control-gap: var(--bw-size-control-gap-md);
663
- --bw-control-font-size: var(--bw-size-control-font-size-md);
663
+ --bw-control-font-size: var(--bw-font-size-md);
664
+ --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
665
+ --bw-font-size-base: var(--bw-density-font-size-base);
666
+ --bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
667
+ --bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
668
+ --bw-font-size-sm: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)));
669
+ --bw-font-size-md: var(--bw-font-size-base);
670
+ --bw-font-size-lg: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)));
671
+ --bw-font-size-xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)));
672
+ --bw-font-size-2xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)));
673
+ --bw-font-size-3xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)));
674
+ --bw-font-size-4xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)));
675
+ --bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
676
+ --bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
677
+ --bw-text-heading-display-size: var(--bw-font-size-6xl);
678
+ --bw-text-heading-2xl-size: var(--bw-font-size-3xl);
679
+ --bw-text-heading-xl-size: var(--bw-font-size-2xl);
680
+ --bw-text-heading-section-size: var(--bw-font-size-2xl);
681
+ --bw-text-heading-lg-size: var(--bw-font-size-lg);
682
+ --bw-text-heading-md-size: var(--bw-font-size-md);
683
+ --bw-text-heading-sm-size: var(--bw-font-size-sm);
684
+ --bw-text-body-lg-size: var(--bw-font-size-lg);
685
+ --bw-text-body-md-size: var(--bw-font-size-md);
686
+ --bw-text-body-sm-size: var(--bw-font-size-sm);
687
+ --bw-text-label-size: var(--bw-font-size-sm);
688
+ --bw-text-caption-size: var(--bw-font-size-xs);
689
+ --bw-text-overline-size: var(--bw-font-size-2xs);
690
+ --bw-text-code-size: var(--bw-font-size-sm);
664
691
  }
665
692
 
666
693
  [data-density="compact"] {
694
+ --bw-density-font-size-base: 0.9375rem;
667
695
  --bw-density-control-height: 2rem;
668
696
  --bw-density-control-padding-inline: 0.5rem;
669
697
  --bw-density-row-padding-block: 0.375rem;
@@ -697,19 +725,42 @@
697
725
  --bw-size-control-gap-md: var(--bw-space-2);
698
726
  --bw-size-control-gap-lg: var(--bw-space-3);
699
727
  --bw-size-control-gap-xl: var(--bw-space-3);
700
- --bw-size-control-font-size-xs: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)));
701
- --bw-size-control-font-size-sm: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)));
702
- --bw-size-control-font-size-md: var(--bw-text-label-size);
703
- --bw-size-control-font-size-lg: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)));
704
- --bw-size-control-font-size-xl: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)));
705
728
  --bw-control-height: var(--bw-size-control-height-md);
706
729
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
707
730
  --bw-control-icon-size: var(--bw-size-control-icon-md);
708
731
  --bw-control-gap: var(--bw-size-control-gap-md);
709
- --bw-control-font-size: var(--bw-size-control-font-size-md);
732
+ --bw-control-font-size: var(--bw-font-size-md);
733
+ --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
734
+ --bw-font-size-base: var(--bw-density-font-size-base);
735
+ --bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
736
+ --bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
737
+ --bw-font-size-sm: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)));
738
+ --bw-font-size-md: var(--bw-font-size-base);
739
+ --bw-font-size-lg: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)));
740
+ --bw-font-size-xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)));
741
+ --bw-font-size-2xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)));
742
+ --bw-font-size-3xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)));
743
+ --bw-font-size-4xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)));
744
+ --bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
745
+ --bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
746
+ --bw-text-heading-display-size: var(--bw-font-size-6xl);
747
+ --bw-text-heading-2xl-size: var(--bw-font-size-3xl);
748
+ --bw-text-heading-xl-size: var(--bw-font-size-2xl);
749
+ --bw-text-heading-section-size: var(--bw-font-size-2xl);
750
+ --bw-text-heading-lg-size: var(--bw-font-size-lg);
751
+ --bw-text-heading-md-size: var(--bw-font-size-md);
752
+ --bw-text-heading-sm-size: var(--bw-font-size-sm);
753
+ --bw-text-body-lg-size: var(--bw-font-size-lg);
754
+ --bw-text-body-md-size: var(--bw-font-size-md);
755
+ --bw-text-body-sm-size: var(--bw-font-size-sm);
756
+ --bw-text-label-size: var(--bw-font-size-sm);
757
+ --bw-text-caption-size: var(--bw-font-size-xs);
758
+ --bw-text-overline-size: var(--bw-font-size-2xs);
759
+ --bw-text-code-size: var(--bw-font-size-sm);
710
760
  }
711
761
 
712
762
  [data-density="spacious"] {
763
+ --bw-density-font-size-base: 1.0625rem;
713
764
  --bw-density-control-height: 3rem;
714
765
  --bw-density-control-padding-inline: 1rem;
715
766
  --bw-density-row-padding-block: 0.875rem;
@@ -743,16 +794,38 @@
743
794
  --bw-size-control-gap-md: var(--bw-space-2);
744
795
  --bw-size-control-gap-lg: var(--bw-space-3);
745
796
  --bw-size-control-gap-xl: var(--bw-space-3);
746
- --bw-size-control-font-size-xs: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)));
747
- --bw-size-control-font-size-sm: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)));
748
- --bw-size-control-font-size-md: var(--bw-text-label-size);
749
- --bw-size-control-font-size-lg: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)));
750
- --bw-size-control-font-size-xl: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)));
751
797
  --bw-control-height: var(--bw-size-control-height-md);
752
798
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
753
799
  --bw-control-icon-size: var(--bw-size-control-icon-md);
754
800
  --bw-control-gap: var(--bw-size-control-gap-md);
755
- --bw-control-font-size: var(--bw-size-control-font-size-md);
801
+ --bw-control-font-size: var(--bw-font-size-md);
802
+ --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
803
+ --bw-font-size-base: var(--bw-density-font-size-base);
804
+ --bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
805
+ --bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
806
+ --bw-font-size-sm: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)));
807
+ --bw-font-size-md: var(--bw-font-size-base);
808
+ --bw-font-size-lg: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)));
809
+ --bw-font-size-xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)));
810
+ --bw-font-size-2xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)));
811
+ --bw-font-size-3xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)));
812
+ --bw-font-size-4xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)));
813
+ --bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
814
+ --bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
815
+ --bw-text-heading-display-size: var(--bw-font-size-6xl);
816
+ --bw-text-heading-2xl-size: var(--bw-font-size-3xl);
817
+ --bw-text-heading-xl-size: var(--bw-font-size-2xl);
818
+ --bw-text-heading-section-size: var(--bw-font-size-2xl);
819
+ --bw-text-heading-lg-size: var(--bw-font-size-lg);
820
+ --bw-text-heading-md-size: var(--bw-font-size-md);
821
+ --bw-text-heading-sm-size: var(--bw-font-size-sm);
822
+ --bw-text-body-lg-size: var(--bw-font-size-lg);
823
+ --bw-text-body-md-size: var(--bw-font-size-md);
824
+ --bw-text-body-sm-size: var(--bw-font-size-sm);
825
+ --bw-text-label-size: var(--bw-font-size-sm);
826
+ --bw-text-caption-size: var(--bw-font-size-xs);
827
+ --bw-text-overline-size: var(--bw-font-size-2xs);
828
+ --bw-text-code-size: var(--bw-font-size-sm);
756
829
  }
757
830
 
758
831
  :root {
@@ -122,8 +122,8 @@
122
122
  "stat-tile": {
123
123
  "value-size": {
124
124
  "$type": "dimension",
125
- "$value": "var(--bw-font-size-3xl)",
126
- "$description": "Stat tile numeral size (VIZ-001, AC-BW-075); a live var() reference so the font scale cascades, and the size modifiers re-point it per tile."
125
+ "$value": "var(--bw-font-size-4xl)",
126
+ "$description": "Stat tile numeral size (VIZ-001, AC-BW-075); a live var() reference so the font scale cascades, and the size modifiers re-point it per tile. ADR-127: a pick on the ladder (4xl, the 2.5rem the default tile has always rendered at comfortable)."
127
127
  },
128
128
  "sparkline-height": {
129
129
  "$type": "dimension",
@@ -371,36 +371,81 @@
371
371
  },
372
372
  "size": {
373
373
  "$type": "dimension",
374
+ "$description": "ADR-127: the font-size ladder is computed, never authored per step. Each step is the type base (--bw-font-size-base, density-selected) times the unitless type-owned multiplier --bw-font-scale-<step>, floored (2xs never below 0.6875rem, xs and above never below 0.75rem); md is the base. Named text steps, the type roles, the control font size and the bw-text-* utilities are picks on this one ladder. Sizes stay in rem. Re-emitted inside every [data-density] block so a density scoped to a subtree recomputes type with the control geometry.",
375
+ "base": {
376
+ "$value": "var(--bw-density-font-size-base)",
377
+ "$description": "ADR-127: the type base. Defaults to the density type base; retune a whole brand type size by overriding --bw-density-font-size-base per density (or this token on the element that carries data-density). Not a step: nothing sizes to it by name except md."
378
+ },
374
379
  "2xs": {
375
- "$value": "0.6875rem",
380
+ "$value": "max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)))",
376
381
  "$description": "Chrome-text floor (TYP-022): overlines and micro-labels only; never body, interactive labels, form help/error, or table cell content. Scales with rem / browser zoom."
377
382
  },
378
383
  "xs": {
379
- "$value": "0.75rem"
384
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)))"
380
385
  },
381
386
  "sm": {
382
- "$value": "0.875rem"
387
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)))"
383
388
  },
384
389
  "md": {
385
- "$value": "1rem"
390
+ "$value": "var(--bw-font-size-base)"
386
391
  },
387
392
  "lg": {
388
- "$value": "1.125rem"
393
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)))"
389
394
  },
390
395
  "xl": {
391
- "$value": "1.5rem"
396
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)))"
392
397
  },
393
398
  "2xl": {
394
- "$value": "2rem"
399
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)))"
395
400
  },
396
401
  "3xl": {
397
- "$value": "2.5rem"
402
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)))"
398
403
  },
399
404
  "4xl": {
400
- "$value": "3rem"
405
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)))"
406
+ },
407
+ "5xl": {
408
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)))"
409
+ },
410
+ "6xl": {
411
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)))"
412
+ }
413
+ },
414
+ "scale": {
415
+ "$type": "number",
416
+ "$description": "ADR-127: unitless type multipliers applied to the type base. Type-owned: deliberately not the control multipliers --bw-size-step-* (ADR-125), even though the first six values coincide, so retuning controls cannot resize text. Starting ratios confirmed by the three-density visual check; the shape is fixed.",
417
+ "2xs": {
418
+ "$value": 0.6875
419
+ },
420
+ "xs": {
421
+ "$value": 0.75
422
+ },
423
+ "sm": {
424
+ "$value": 0.875
425
+ },
426
+ "md": {
427
+ "$value": 1
428
+ },
429
+ "lg": {
430
+ "$value": 1.125
431
+ },
432
+ "xl": {
433
+ "$value": 1.25
434
+ },
435
+ "2xl": {
436
+ "$value": 1.5
437
+ },
438
+ "3xl": {
439
+ "$value": 2
440
+ },
441
+ "4xl": {
442
+ "$value": 2.5
401
443
  },
402
444
  "5xl": {
403
- "$value": "3.75rem"
445
+ "$value": 3
446
+ },
447
+ "6xl": {
448
+ "$value": 3.75
404
449
  }
405
450
  },
406
451
  "weight": {
@@ -498,6 +543,10 @@
498
543
  "density": {
499
544
  "$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).",
500
545
  "$type": "dimension",
546
+ "font-size-base": {
547
+ "$value": "1.0625rem",
548
+ "$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."
549
+ },
501
550
  "control-height": {
502
551
  "$value": "3rem"
503
552
  },
@@ -949,25 +998,6 @@
949
998
  "$value": 1.25
950
999
  }
951
1000
  },
952
- "text-step": {
953
- "$type": "number",
954
- "$description": "ADR-125 and ADR-126 section 4: unitless multipliers applied to the label type size so a control's text follows its step. Deliberately gentler than the box multipliers (--bw-size-step-*): type has a legibility floor, so xs may not fall to 0.75 of the label (10.5 px at the 14 px label). The resolved size is clamped to --bw-font-size-xs. Starting ratios; the shape is fixed.",
955
- "xs": {
956
- "$value": 0.875
957
- },
958
- "sm": {
959
- "$value": 0.9375
960
- },
961
- "md": {
962
- "$value": 1
963
- },
964
- "lg": {
965
- "$value": 1.125
966
- },
967
- "xl": {
968
- "$value": 1.25
969
- }
970
- },
971
1001
  "control-height": {
972
1002
  "$description": "ADR-125: computed, never authored per step. density control height x step multiplier, clamped to the 1.5rem WCAG 2.5.8 floor (md is the base and is not clamped). Re-emitted inside every [data-density] block so a density scoped to a subtree re-resolves the whole scale.",
973
1003
  "xs": {
@@ -1040,24 +1070,6 @@
1040
1070
  "$value": "var(--bw-space-3)"
1041
1071
  }
1042
1072
  },
1043
- "control-font-size": {
1044
- "$description": "ADR-126 section 4: label type size inside a control, by step. md is the label role size (--bw-text-label-size, the type ramp's label); the other steps are that size times --bw-size-text-step-<step>, clamped to the --bw-font-size-xs legibility floor (TYP-022), so text resizes with the box, the icon and the gap. Density does not change it. Re-emitted inside every [data-density] block beside the other resolved control tokens.",
1045
- "xs": {
1046
- "$value": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)))"
1047
- },
1048
- "sm": {
1049
- "$value": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)))"
1050
- },
1051
- "md": {
1052
- "$value": "var(--bw-text-label-size)"
1053
- },
1054
- "lg": {
1055
- "$value": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)))"
1056
- },
1057
- "xl": {
1058
- "$value": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)))"
1059
- }
1060
- },
1061
1073
  "touch-target-min": {
1062
1074
  "$value": "2.75rem"
1063
1075
  },
@@ -1081,7 +1093,7 @@
1081
1093
  },
1082
1094
  "control": {
1083
1095
  "$type": "dimension",
1084
- "$description": "ADR-126 section 4: the four control role variables. Every control reads only these and never a density or step token directly. They default to the resolved md tokens; a size class (bw-<component>--size-<step>) or a control container re-points them for its subtree. 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.",
1096
+ "$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.",
1085
1097
  "height": {
1086
1098
  "$value": "var(--bw-size-control-height-md)"
1087
1099
  },
@@ -1095,7 +1107,7 @@
1095
1107
  "$value": "var(--bw-size-control-gap-md)"
1096
1108
  },
1097
1109
  "font-size": {
1098
- "$value": "var(--bw-size-control-font-size-md)"
1110
+ "$value": "var(--bw-font-size-md)"
1099
1111
  }
1100
1112
  },
1101
1113
  "color": {
@@ -1774,15 +1786,15 @@
1774
1786
  "$type": "other"
1775
1787
  },
1776
1788
  "text": {
1777
- "$description": "Type roles (DESIGN.md section 7.4): each role bundles family, size, line-height, weight and tracking. Every value is a literal var() reference into the --bw-font-* scales, so a brand override of a scale step cascades through every role that uses it. Components consume roles, never raw scale steps.",
1789
+ "$description": "Type roles (DESIGN.md section 7.4): each role bundles family, size, line-height, weight and tracking. Every size is a named pick on the computed font-size ladder (ADR-127: a role never carries a literal rem or its own multiplier), so a brand override of the type base or a step cascades through every role that uses it. Components consume roles, never raw scale steps. At comfortable density each role renders the size it always has; the raw step names above lg moved up one step.",
1778
1790
  "$type": "other",
1779
1791
  "heading-display": {
1780
- "$description": "Marketing display type role (1.2.0, BR-BW-MKT marketing tokens): the hero/section headline voice, above the app's largest heading role (heading-2xl). Bundles the display family at the 5xl size step with a tight line-height, bold weight and tight tracking, matching heading-2xl's bundling shape one step up the scale.",
1792
+ "$description": "Marketing display type role (1.2.0, BR-BW-MKT marketing tokens): the hero/section headline voice, above the app's largest heading role (heading-2xl). Bundles the display family at the 6xl size step (the 3.75rem the role has always been) with a tight line-height, bold weight and tight tracking, matching heading-2xl's bundling shape one step up the scale.",
1781
1793
  "family": {
1782
1794
  "$value": "var(--bw-font-family-display)"
1783
1795
  },
1784
1796
  "size": {
1785
- "$value": "var(--bw-font-size-5xl)"
1797
+ "$value": "var(--bw-font-size-6xl)"
1786
1798
  },
1787
1799
  "line-height": {
1788
1800
  "$value": "var(--bw-font-line-height-tight)"
@@ -1799,7 +1811,7 @@
1799
1811
  "$value": "var(--bw-font-family-display)"
1800
1812
  },
1801
1813
  "size": {
1802
- "$value": "var(--bw-font-size-2xl)"
1814
+ "$value": "var(--bw-font-size-3xl)"
1803
1815
  },
1804
1816
  "line-height": {
1805
1817
  "$value": "var(--bw-font-line-height-tight)"
@@ -1816,7 +1828,7 @@
1816
1828
  "$value": "var(--bw-font-family-display)"
1817
1829
  },
1818
1830
  "size": {
1819
- "$value": "var(--bw-font-size-xl)"
1831
+ "$value": "var(--bw-font-size-2xl)"
1820
1832
  },
1821
1833
  "line-height": {
1822
1834
  "$value": "var(--bw-font-line-height-tight)"
@@ -1834,7 +1846,7 @@
1834
1846
  "$value": "var(--bw-font-family-display)"
1835
1847
  },
1836
1848
  "size": {
1837
- "$value": "var(--bw-font-size-xl)"
1849
+ "$value": "var(--bw-font-size-2xl)"
1838
1850
  },
1839
1851
  "line-height": {
1840
1852
  "$value": "var(--bw-font-line-height-tight)"
package/dist/tokens.js CHANGED
@@ -139,6 +139,7 @@ export const tokens = Object.freeze({
139
139
  "density_card_padding": "var(--bw-density-card-padding)",
140
140
  "density_control_height": "var(--bw-density-control-height)",
141
141
  "density_control_padding_inline": "var(--bw-density-control-padding-inline)",
142
+ "density_font_size_base": "var(--bw-density-font-size-base)",
142
143
  "density_page_gutter_inline": "var(--bw-density-page-gutter-inline)",
143
144
  "density_rail_width": "var(--bw-density-rail-width)",
144
145
  "density_rail_width_expanded": "var(--bw-density-rail-width-expanded)",
@@ -183,11 +184,24 @@ export const tokens = Object.freeze({
183
184
  "font_line_height_relaxed": "var(--bw-font-line-height-relaxed)",
184
185
  "font_line_height_snug": "var(--bw-font-line-height-snug)",
185
186
  "font_line_height_tight": "var(--bw-font-line-height-tight)",
187
+ "font_scale_2xl": "var(--bw-font-scale-2xl)",
188
+ "font_scale_2xs": "var(--bw-font-scale-2xs)",
189
+ "font_scale_3xl": "var(--bw-font-scale-3xl)",
190
+ "font_scale_4xl": "var(--bw-font-scale-4xl)",
191
+ "font_scale_5xl": "var(--bw-font-scale-5xl)",
192
+ "font_scale_6xl": "var(--bw-font-scale-6xl)",
193
+ "font_scale_lg": "var(--bw-font-scale-lg)",
194
+ "font_scale_md": "var(--bw-font-scale-md)",
195
+ "font_scale_sm": "var(--bw-font-scale-sm)",
196
+ "font_scale_xl": "var(--bw-font-scale-xl)",
197
+ "font_scale_xs": "var(--bw-font-scale-xs)",
186
198
  "font_size_2xl": "var(--bw-font-size-2xl)",
187
199
  "font_size_2xs": "var(--bw-font-size-2xs)",
188
200
  "font_size_3xl": "var(--bw-font-size-3xl)",
189
201
  "font_size_4xl": "var(--bw-font-size-4xl)",
190
202
  "font_size_5xl": "var(--bw-font-size-5xl)",
203
+ "font_size_6xl": "var(--bw-font-size-6xl)",
204
+ "font_size_base": "var(--bw-font-size-base)",
191
205
  "font_size_lg": "var(--bw-font-size-lg)",
192
206
  "font_size_md": "var(--bw-font-size-md)",
193
207
  "font_size_sm": "var(--bw-font-size-sm)",
@@ -272,11 +286,6 @@ export const tokens = Object.freeze({
272
286
  "size_border_hairline": "var(--bw-size-border-hairline)",
273
287
  "size_border_nav_marker": "var(--bw-size-border-nav-marker)",
274
288
  "size_border_thick": "var(--bw-size-border-thick)",
275
- "size_control_font_size_lg": "var(--bw-size-control-font-size-lg)",
276
- "size_control_font_size_md": "var(--bw-size-control-font-size-md)",
277
- "size_control_font_size_sm": "var(--bw-size-control-font-size-sm)",
278
- "size_control_font_size_xl": "var(--bw-size-control-font-size-xl)",
279
- "size_control_font_size_xs": "var(--bw-size-control-font-size-xs)",
280
289
  "size_control_gap_lg": "var(--bw-size-control-gap-lg)",
281
290
  "size_control_gap_md": "var(--bw-size-control-gap-md)",
282
291
  "size_control_gap_sm": "var(--bw-size-control-gap-sm)",
@@ -307,11 +316,6 @@ export const tokens = Object.freeze({
307
316
  "size_step_sm": "var(--bw-size-step-sm)",
308
317
  "size_step_xl": "var(--bw-size-step-xl)",
309
318
  "size_step_xs": "var(--bw-size-step-xs)",
310
- "size_text_step_lg": "var(--bw-size-text-step-lg)",
311
- "size_text_step_md": "var(--bw-size-text-step-md)",
312
- "size_text_step_sm": "var(--bw-size-text-step-sm)",
313
- "size_text_step_xl": "var(--bw-size-text-step-xl)",
314
- "size_text_step_xs": "var(--bw-size-text-step-xs)",
315
319
  "size_touch_target_min": "var(--bw-size-touch-target-min)",
316
320
  "space_0": "var(--bw-space-0)",
317
321
  "space_0_5": "var(--bw-space-0-5)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bwui/tokens",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Brickwork design tokens — the platform-neutral source of truth (DTCG source, multi-target build).",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -104,8 +104,8 @@
104
104
  "stat-tile": {
105
105
  "value-size": {
106
106
  "$type": "dimension",
107
- "$value": "var(--bw-font-size-3xl)",
108
- "$description": "Stat tile numeral size (VIZ-001, AC-BW-075); a live var() reference so the font scale cascades, and the size modifiers re-point it per tile."
107
+ "$value": "var(--bw-font-size-4xl)",
108
+ "$description": "Stat tile numeral size (VIZ-001, AC-BW-075); a live var() reference so the font scale cascades, and the size modifiers re-point it per tile. ADR-127: a pick on the ladder (4xl, the 2.5rem the default tile has always rendered at comfortable)."
109
109
  },
110
110
  "sparkline-height": {
111
111
  "$type": "dimension",
@@ -353,36 +353,81 @@
353
353
  },
354
354
  "size": {
355
355
  "$type": "dimension",
356
+ "$description": "ADR-127: the font-size ladder is computed, never authored per step. Each step is the type base (--bw-font-size-base, density-selected) times the unitless type-owned multiplier --bw-font-scale-<step>, floored (2xs never below 0.6875rem, xs and above never below 0.75rem); md is the base. Named text steps, the type roles, the control font size and the bw-text-* utilities are picks on this one ladder. Sizes stay in rem. Re-emitted inside every [data-density] block so a density scoped to a subtree recomputes type with the control geometry.",
357
+ "base": {
358
+ "$value": "var(--bw-density-font-size-base)",
359
+ "$description": "ADR-127: the type base. Defaults to the density type base; retune a whole brand type size by overriding --bw-density-font-size-base per density (or this token on the element that carries data-density). Not a step: nothing sizes to it by name except md."
360
+ },
356
361
  "2xs": {
357
- "$value": "0.6875rem",
362
+ "$value": "max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)))",
358
363
  "$description": "Chrome-text floor (TYP-022): overlines and micro-labels only; never body, interactive labels, form help/error, or table cell content. Scales with rem / browser zoom."
359
364
  },
360
365
  "xs": {
361
- "$value": "0.75rem"
366
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)))"
367
+ },
368
+ "sm": {
369
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)))"
370
+ },
371
+ "md": {
372
+ "$value": "var(--bw-font-size-base)"
373
+ },
374
+ "lg": {
375
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)))"
376
+ },
377
+ "xl": {
378
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)))"
379
+ },
380
+ "2xl": {
381
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)))"
382
+ },
383
+ "3xl": {
384
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)))"
385
+ },
386
+ "4xl": {
387
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)))"
388
+ },
389
+ "5xl": {
390
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)))"
391
+ },
392
+ "6xl": {
393
+ "$value": "max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)))"
394
+ }
395
+ },
396
+ "scale": {
397
+ "$type": "number",
398
+ "$description": "ADR-127: unitless type multipliers applied to the type base. Type-owned: deliberately not the control multipliers --bw-size-step-* (ADR-125), even though the first six values coincide, so retuning controls cannot resize text. Starting ratios confirmed by the three-density visual check; the shape is fixed.",
399
+ "2xs": {
400
+ "$value": 0.6875
401
+ },
402
+ "xs": {
403
+ "$value": 0.75
362
404
  },
363
405
  "sm": {
364
- "$value": "0.875rem"
406
+ "$value": 0.875
365
407
  },
366
408
  "md": {
367
- "$value": "1rem"
409
+ "$value": 1
368
410
  },
369
411
  "lg": {
370
- "$value": "1.125rem"
412
+ "$value": 1.125
371
413
  },
372
414
  "xl": {
373
- "$value": "1.5rem"
415
+ "$value": 1.25
374
416
  },
375
417
  "2xl": {
376
- "$value": "2rem"
418
+ "$value": 1.5
377
419
  },
378
420
  "3xl": {
379
- "$value": "2.5rem"
421
+ "$value": 2
380
422
  },
381
423
  "4xl": {
382
- "$value": "3rem"
424
+ "$value": 2.5
383
425
  },
384
426
  "5xl": {
385
- "$value": "3.75rem"
427
+ "$value": 3
428
+ },
429
+ "6xl": {
430
+ "$value": 3.75
386
431
  }
387
432
  },
388
433
  "weight": {
@@ -2,6 +2,10 @@
2
2
  "density": {
3
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).",
4
4
  "$type": "dimension",
5
+ "font-size-base": {
6
+ "$value": "1rem",
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
+ },
5
9
  "control-height": {
6
10
  "$value": "2.5rem"
7
11
  },
@@ -2,6 +2,10 @@
2
2
  "density": {
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
+ "font-size-base": {
6
+ "$value": "0.9375rem",
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
+ },
5
9
  "control-height": {
6
10
  "$value": "2rem"
7
11
  },
@@ -2,6 +2,10 @@
2
2
  "density": {
3
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).",
4
4
  "$type": "dimension",
5
+ "font-size-base": {
6
+ "$value": "1.0625rem",
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
+ },
5
9
  "control-height": {
6
10
  "$value": "3rem"
7
11
  },
@@ -331,25 +331,6 @@
331
331
  "$value": 1.25
332
332
  }
333
333
  },
334
- "text-step": {
335
- "$type": "number",
336
- "$description": "ADR-125 and ADR-126 section 4: unitless multipliers applied to the label type size so a control's text follows its step. Deliberately gentler than the box multipliers (--bw-size-step-*): type has a legibility floor, so xs may not fall to 0.75 of the label (10.5 px at the 14 px label). The resolved size is clamped to --bw-font-size-xs. Starting ratios; the shape is fixed.",
337
- "xs": {
338
- "$value": 0.875
339
- },
340
- "sm": {
341
- "$value": 0.9375
342
- },
343
- "md": {
344
- "$value": 1
345
- },
346
- "lg": {
347
- "$value": 1.125
348
- },
349
- "xl": {
350
- "$value": 1.25
351
- }
352
- },
353
334
  "control-height": {
354
335
  "$description": "ADR-125: computed, never authored per step. density control height x step multiplier, clamped to the 1.5rem WCAG 2.5.8 floor (md is the base and is not clamped). Re-emitted inside every [data-density] block so a density scoped to a subtree re-resolves the whole scale.",
355
336
  "xs": {
@@ -422,24 +403,6 @@
422
403
  "$value": "var(--bw-space-3)"
423
404
  }
424
405
  },
425
- "control-font-size": {
426
- "$description": "ADR-126 section 4: label type size inside a control, by step. md is the label role size (--bw-text-label-size, the type ramp's label); the other steps are that size times --bw-size-text-step-<step>, clamped to the --bw-font-size-xs legibility floor (TYP-022), so text resizes with the box, the icon and the gap. Density does not change it. Re-emitted inside every [data-density] block beside the other resolved control tokens.",
427
- "xs": {
428
- "$value": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)))"
429
- },
430
- "sm": {
431
- "$value": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)))"
432
- },
433
- "md": {
434
- "$value": "var(--bw-text-label-size)"
435
- },
436
- "lg": {
437
- "$value": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)))"
438
- },
439
- "xl": {
440
- "$value": "max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)))"
441
- }
442
- },
443
406
  "touch-target-min": {
444
407
  "$value": "2.75rem"
445
408
  },
@@ -463,7 +426,7 @@
463
426
  },
464
427
  "control": {
465
428
  "$type": "dimension",
466
- "$description": "ADR-126 section 4: the four control role variables. Every control reads only these and never a density or step token directly. They default to the resolved md tokens; a size class (bw-<component>--size-<step>) or a control container re-points them for its subtree. 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.",
429
+ "$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.",
467
430
  "height": {
468
431
  "$value": "var(--bw-size-control-height-md)"
469
432
  },
@@ -477,7 +440,7 @@
477
440
  "$value": "var(--bw-size-control-gap-md)"
478
441
  },
479
442
  "font-size": {
480
- "$value": "var(--bw-size-control-font-size-md)"
443
+ "$value": "var(--bw-font-size-md)"
481
444
  }
482
445
  }
483
446
  }
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "text": {
3
- "$description": "Type roles (DESIGN.md section 7.4): each role bundles family, size, line-height, weight and tracking. Every value is a literal var() reference into the --bw-font-* scales, so a brand override of a scale step cascades through every role that uses it. Components consume roles, never raw scale steps.",
3
+ "$description": "Type roles (DESIGN.md section 7.4): each role bundles family, size, line-height, weight and tracking. Every size is a named pick on the computed font-size ladder (ADR-127: a role never carries a literal rem or its own multiplier), so a brand override of the type base or a step cascades through every role that uses it. Components consume roles, never raw scale steps. At comfortable density each role renders the size it always has; the raw step names above lg moved up one step.",
4
4
  "$type": "other",
5
5
  "heading-display": {
6
- "$description": "Marketing display type role (1.2.0, BR-BW-MKT marketing tokens): the hero/section headline voice, above the app's largest heading role (heading-2xl). Bundles the display family at the 5xl size step with a tight line-height, bold weight and tight tracking, matching heading-2xl's bundling shape one step up the scale.",
6
+ "$description": "Marketing display type role (1.2.0, BR-BW-MKT marketing tokens): the hero/section headline voice, above the app's largest heading role (heading-2xl). Bundles the display family at the 6xl size step (the 3.75rem the role has always been) with a tight line-height, bold weight and tight tracking, matching heading-2xl's bundling shape one step up the scale.",
7
7
  "family": { "$value": "var(--bw-font-family-display)" },
8
- "size": { "$value": "var(--bw-font-size-5xl)" },
8
+ "size": { "$value": "var(--bw-font-size-6xl)" },
9
9
  "line-height": { "$value": "var(--bw-font-line-height-tight)" },
10
10
  "weight": { "$value": "var(--bw-font-weight-bold)" },
11
11
  "tracking": { "$value": "var(--bw-font-tracking-tight)" }
12
12
  },
13
13
  "heading-2xl": {
14
14
  "family": { "$value": "var(--bw-font-family-display)" },
15
- "size": { "$value": "var(--bw-font-size-2xl)" },
15
+ "size": { "$value": "var(--bw-font-size-3xl)" },
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-xl)" },
22
+ "size": { "$value": "var(--bw-font-size-2xl)" },
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,7 +27,7 @@
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-xl)" },
30
+ "size": { "$value": "var(--bw-font-size-2xl)" },
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)" }