@bwui/css 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.
@@ -51,11 +51,6 @@
51
51
  --bw-size-step-md: 1;
52
52
  --bw-size-step-lg: 1.125;
53
53
  --bw-size-step-xl: 1.25;
54
- --bw-size-text-step-xs: 0.875;
55
- --bw-size-text-step-sm: 0.9375;
56
- --bw-size-text-step-md: 1;
57
- --bw-size-text-step-lg: 1.125;
58
- --bw-size-text-step-xl: 1.25;
59
54
  --bw-size-control-height-xs: max(1.5rem, calc(var(--bw-density-control-height) * var(--bw-size-step-xs)));
60
55
  --bw-size-control-height-sm: max(1.5rem, calc(var(--bw-density-control-height) * var(--bw-size-step-sm)));
61
56
  --bw-size-control-height-md: var(--bw-density-control-height);
@@ -76,11 +71,6 @@
76
71
  --bw-size-control-gap-md: var(--bw-space-2);
77
72
  --bw-size-control-gap-lg: var(--bw-space-3);
78
73
  --bw-size-control-gap-xl: var(--bw-space-3);
79
- --bw-size-control-font-size-xs: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)));
80
- --bw-size-control-font-size-sm: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)));
81
- --bw-size-control-font-size-md: var(--bw-text-label-size);
82
- --bw-size-control-font-size-lg: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)));
83
- --bw-size-control-font-size-xl: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)));
84
74
  --bw-size-touch-target-min: 2.75rem;
85
75
  --bw-size-max-width-prose: 65ch;
86
76
  --bw-size-max-width-form: 32rem;
@@ -91,7 +81,7 @@
91
81
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
92
82
  --bw-control-icon-size: var(--bw-size-control-icon-md);
93
83
  --bw-control-gap: var(--bw-size-control-gap-md);
94
- --bw-control-font-size: var(--bw-size-control-font-size-md);
84
+ --bw-control-font-size: var(--bw-font-size-md);
95
85
  --bw-component-icon-size-sm: 1rem;
96
86
  --bw-component-icon-size-md: 1.25rem;
97
87
  --bw-component-icon-size-lg: 1.5rem;
@@ -109,7 +99,7 @@
109
99
  --bw-component-toggle-track-height: 1.25rem;
110
100
  --bw-component-toggle-thumb-size: 0.875rem;
111
101
  --bw-component-toggle-thumb-inset: 0.25rem;
112
- --bw-component-stat-tile-value-size: var(--bw-font-size-3xl);
102
+ --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
113
103
  --bw-component-stat-tile-sparkline-height: 2rem;
114
104
  --bw-component-progress-track-height: 0.5rem;
115
105
  --bw-component-ranked-list-bar-thickness: 0.375rem;
@@ -154,16 +144,29 @@
154
144
  --bw-font-family-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
155
145
  --bw-font-family-display: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', Times, serif;
156
146
  --bw-font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;
157
- --bw-font-size-2xs: 0.6875rem;
158
- --bw-font-size-xs: 0.75rem;
159
- --bw-font-size-sm: 0.875rem;
160
- --bw-font-size-md: 1rem;
161
- --bw-font-size-lg: 1.125rem;
162
- --bw-font-size-xl: 1.5rem;
163
- --bw-font-size-2xl: 2rem;
164
- --bw-font-size-3xl: 2.5rem;
165
- --bw-font-size-4xl: 3rem;
166
- --bw-font-size-5xl: 3.75rem;
147
+ --bw-font-size-base: var(--bw-density-font-size-base);
148
+ --bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
149
+ --bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
150
+ --bw-font-size-sm: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)));
151
+ --bw-font-size-md: var(--bw-font-size-base);
152
+ --bw-font-size-lg: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)));
153
+ --bw-font-size-xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)));
154
+ --bw-font-size-2xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)));
155
+ --bw-font-size-3xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)));
156
+ --bw-font-size-4xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)));
157
+ --bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
158
+ --bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
159
+ --bw-font-scale-2xs: 0.6875;
160
+ --bw-font-scale-xs: 0.75;
161
+ --bw-font-scale-sm: 0.875;
162
+ --bw-font-scale-md: 1;
163
+ --bw-font-scale-lg: 1.125;
164
+ --bw-font-scale-xl: 1.25;
165
+ --bw-font-scale-2xl: 1.5;
166
+ --bw-font-scale-3xl: 2;
167
+ --bw-font-scale-4xl: 2.5;
168
+ --bw-font-scale-5xl: 3;
169
+ --bw-font-scale-6xl: 3.75;
167
170
  --bw-font-weight-normal: 400;
168
171
  --bw-font-weight-medium: 500;
169
172
  --bw-font-weight-semibold: 600;
@@ -186,22 +189,22 @@
186
189
  --bw-component-scorecard-columns-sm: 2;
187
190
  --bw-component-scorecard-columns-lg: 4;
188
191
  --bw-text-heading-display-family: var(--bw-font-family-display);
189
- --bw-text-heading-display-size: var(--bw-font-size-5xl);
192
+ --bw-text-heading-display-size: var(--bw-font-size-6xl);
190
193
  --bw-text-heading-display-line-height: var(--bw-font-line-height-tight);
191
194
  --bw-text-heading-display-weight: var(--bw-font-weight-bold);
192
195
  --bw-text-heading-display-tracking: var(--bw-font-tracking-tight);
193
196
  --bw-text-heading-2xl-family: var(--bw-font-family-display);
194
- --bw-text-heading-2xl-size: var(--bw-font-size-2xl);
197
+ --bw-text-heading-2xl-size: var(--bw-font-size-3xl);
195
198
  --bw-text-heading-2xl-line-height: var(--bw-font-line-height-tight);
196
199
  --bw-text-heading-2xl-weight: var(--bw-font-weight-bold);
197
200
  --bw-text-heading-2xl-tracking: var(--bw-font-tracking-tight);
198
201
  --bw-text-heading-xl-family: var(--bw-font-family-display);
199
- --bw-text-heading-xl-size: var(--bw-font-size-xl);
202
+ --bw-text-heading-xl-size: var(--bw-font-size-2xl);
200
203
  --bw-text-heading-xl-line-height: var(--bw-font-line-height-tight);
201
204
  --bw-text-heading-xl-weight: var(--bw-font-weight-semibold);
202
205
  --bw-text-heading-xl-tracking: var(--bw-font-tracking-tight);
203
206
  --bw-text-heading-section-family: var(--bw-font-family-display);
204
- --bw-text-heading-section-size: var(--bw-font-size-xl);
207
+ --bw-text-heading-section-size: var(--bw-font-size-2xl);
205
208
  --bw-text-heading-section-line-height: var(--bw-font-line-height-tight);
206
209
  --bw-text-heading-section-weight: var(--bw-font-weight-semibold);
207
210
  --bw-text-heading-section-tracking: var(--bw-font-tracking-tight);
@@ -350,6 +353,7 @@
350
353
  --bw-elevation-3: 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1);
351
354
  --bw-elevation-4: 0 10px 15px -3px oklch(0 0 0 / 0.1), 0 4px 6px -4px oklch(0 0 0 / 0.1);
352
355
  --bw-elevation-5: 0 20px 25px -5px oklch(0 0 0 / 0.1), 0 8px 10px -6px oklch(0 0 0 / 0.1);
356
+ --bw-density-font-size-base: 1rem;
353
357
  --bw-density-control-height: 2.5rem;
354
358
  --bw-density-control-padding-inline: 0.75rem;
355
359
  --bw-density-row-padding-block: 0.625rem;
@@ -625,6 +629,7 @@
625
629
  }
626
630
 
627
631
  [data-density="comfortable"] {
632
+ --bw-density-font-size-base: 1rem;
628
633
  --bw-density-control-height: 2.5rem;
629
634
  --bw-density-control-padding-inline: 0.75rem;
630
635
  --bw-density-row-padding-block: 0.625rem;
@@ -658,19 +663,42 @@
658
663
  --bw-size-control-gap-md: var(--bw-space-2);
659
664
  --bw-size-control-gap-lg: var(--bw-space-3);
660
665
  --bw-size-control-gap-xl: var(--bw-space-3);
661
- --bw-size-control-font-size-xs: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)));
662
- --bw-size-control-font-size-sm: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)));
663
- --bw-size-control-font-size-md: var(--bw-text-label-size);
664
- --bw-size-control-font-size-lg: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)));
665
- --bw-size-control-font-size-xl: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)));
666
666
  --bw-control-height: var(--bw-size-control-height-md);
667
667
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
668
668
  --bw-control-icon-size: var(--bw-size-control-icon-md);
669
669
  --bw-control-gap: var(--bw-size-control-gap-md);
670
- --bw-control-font-size: var(--bw-size-control-font-size-md);
670
+ --bw-control-font-size: var(--bw-font-size-md);
671
+ --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
672
+ --bw-font-size-base: var(--bw-density-font-size-base);
673
+ --bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
674
+ --bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
675
+ --bw-font-size-sm: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)));
676
+ --bw-font-size-md: var(--bw-font-size-base);
677
+ --bw-font-size-lg: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)));
678
+ --bw-font-size-xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)));
679
+ --bw-font-size-2xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)));
680
+ --bw-font-size-3xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)));
681
+ --bw-font-size-4xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)));
682
+ --bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
683
+ --bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
684
+ --bw-text-heading-display-size: var(--bw-font-size-6xl);
685
+ --bw-text-heading-2xl-size: var(--bw-font-size-3xl);
686
+ --bw-text-heading-xl-size: var(--bw-font-size-2xl);
687
+ --bw-text-heading-section-size: var(--bw-font-size-2xl);
688
+ --bw-text-heading-lg-size: var(--bw-font-size-lg);
689
+ --bw-text-heading-md-size: var(--bw-font-size-md);
690
+ --bw-text-heading-sm-size: var(--bw-font-size-sm);
691
+ --bw-text-body-lg-size: var(--bw-font-size-lg);
692
+ --bw-text-body-md-size: var(--bw-font-size-md);
693
+ --bw-text-body-sm-size: var(--bw-font-size-sm);
694
+ --bw-text-label-size: var(--bw-font-size-sm);
695
+ --bw-text-caption-size: var(--bw-font-size-xs);
696
+ --bw-text-overline-size: var(--bw-font-size-2xs);
697
+ --bw-text-code-size: var(--bw-font-size-sm);
671
698
  }
672
699
 
673
700
  [data-density="compact"] {
701
+ --bw-density-font-size-base: 0.9375rem;
674
702
  --bw-density-control-height: 2rem;
675
703
  --bw-density-control-padding-inline: 0.5rem;
676
704
  --bw-density-row-padding-block: 0.375rem;
@@ -704,19 +732,42 @@
704
732
  --bw-size-control-gap-md: var(--bw-space-2);
705
733
  --bw-size-control-gap-lg: var(--bw-space-3);
706
734
  --bw-size-control-gap-xl: var(--bw-space-3);
707
- --bw-size-control-font-size-xs: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)));
708
- --bw-size-control-font-size-sm: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)));
709
- --bw-size-control-font-size-md: var(--bw-text-label-size);
710
- --bw-size-control-font-size-lg: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)));
711
- --bw-size-control-font-size-xl: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)));
712
735
  --bw-control-height: var(--bw-size-control-height-md);
713
736
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
714
737
  --bw-control-icon-size: var(--bw-size-control-icon-md);
715
738
  --bw-control-gap: var(--bw-size-control-gap-md);
716
- --bw-control-font-size: var(--bw-size-control-font-size-md);
739
+ --bw-control-font-size: var(--bw-font-size-md);
740
+ --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
741
+ --bw-font-size-base: var(--bw-density-font-size-base);
742
+ --bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
743
+ --bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
744
+ --bw-font-size-sm: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)));
745
+ --bw-font-size-md: var(--bw-font-size-base);
746
+ --bw-font-size-lg: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)));
747
+ --bw-font-size-xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)));
748
+ --bw-font-size-2xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)));
749
+ --bw-font-size-3xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)));
750
+ --bw-font-size-4xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)));
751
+ --bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
752
+ --bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
753
+ --bw-text-heading-display-size: var(--bw-font-size-6xl);
754
+ --bw-text-heading-2xl-size: var(--bw-font-size-3xl);
755
+ --bw-text-heading-xl-size: var(--bw-font-size-2xl);
756
+ --bw-text-heading-section-size: var(--bw-font-size-2xl);
757
+ --bw-text-heading-lg-size: var(--bw-font-size-lg);
758
+ --bw-text-heading-md-size: var(--bw-font-size-md);
759
+ --bw-text-heading-sm-size: var(--bw-font-size-sm);
760
+ --bw-text-body-lg-size: var(--bw-font-size-lg);
761
+ --bw-text-body-md-size: var(--bw-font-size-md);
762
+ --bw-text-body-sm-size: var(--bw-font-size-sm);
763
+ --bw-text-label-size: var(--bw-font-size-sm);
764
+ --bw-text-caption-size: var(--bw-font-size-xs);
765
+ --bw-text-overline-size: var(--bw-font-size-2xs);
766
+ --bw-text-code-size: var(--bw-font-size-sm);
717
767
  }
718
768
 
719
769
  [data-density="spacious"] {
770
+ --bw-density-font-size-base: 1.0625rem;
720
771
  --bw-density-control-height: 3rem;
721
772
  --bw-density-control-padding-inline: 1rem;
722
773
  --bw-density-row-padding-block: 0.875rem;
@@ -750,16 +801,38 @@
750
801
  --bw-size-control-gap-md: var(--bw-space-2);
751
802
  --bw-size-control-gap-lg: var(--bw-space-3);
752
803
  --bw-size-control-gap-xl: var(--bw-space-3);
753
- --bw-size-control-font-size-xs: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xs)));
754
- --bw-size-control-font-size-sm: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-sm)));
755
- --bw-size-control-font-size-md: var(--bw-text-label-size);
756
- --bw-size-control-font-size-lg: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-lg)));
757
- --bw-size-control-font-size-xl: max(var(--bw-font-size-xs), calc(var(--bw-text-label-size) * var(--bw-size-text-step-xl)));
758
804
  --bw-control-height: var(--bw-size-control-height-md);
759
805
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
760
806
  --bw-control-icon-size: var(--bw-size-control-icon-md);
761
807
  --bw-control-gap: var(--bw-size-control-gap-md);
762
- --bw-control-font-size: var(--bw-size-control-font-size-md);
808
+ --bw-control-font-size: var(--bw-font-size-md);
809
+ --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
810
+ --bw-font-size-base: var(--bw-density-font-size-base);
811
+ --bw-font-size-2xs: max(0.6875rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xs)));
812
+ --bw-font-size-xs: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xs)));
813
+ --bw-font-size-sm: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-sm)));
814
+ --bw-font-size-md: var(--bw-font-size-base);
815
+ --bw-font-size-lg: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-lg)));
816
+ --bw-font-size-xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-xl)));
817
+ --bw-font-size-2xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-2xl)));
818
+ --bw-font-size-3xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-3xl)));
819
+ --bw-font-size-4xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-4xl)));
820
+ --bw-font-size-5xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-5xl)));
821
+ --bw-font-size-6xl: max(0.75rem, calc(var(--bw-font-size-base) * var(--bw-font-scale-6xl)));
822
+ --bw-text-heading-display-size: var(--bw-font-size-6xl);
823
+ --bw-text-heading-2xl-size: var(--bw-font-size-3xl);
824
+ --bw-text-heading-xl-size: var(--bw-font-size-2xl);
825
+ --bw-text-heading-section-size: var(--bw-font-size-2xl);
826
+ --bw-text-heading-lg-size: var(--bw-font-size-lg);
827
+ --bw-text-heading-md-size: var(--bw-font-size-md);
828
+ --bw-text-heading-sm-size: var(--bw-font-size-sm);
829
+ --bw-text-body-lg-size: var(--bw-font-size-lg);
830
+ --bw-text-body-md-size: var(--bw-font-size-md);
831
+ --bw-text-body-sm-size: var(--bw-font-size-sm);
832
+ --bw-text-label-size: var(--bw-font-size-sm);
833
+ --bw-text-caption-size: var(--bw-font-size-xs);
834
+ --bw-text-overline-size: var(--bw-font-size-2xs);
835
+ --bw-text-code-size: var(--bw-font-size-sm);
763
836
  }
764
837
 
765
838
  :root {
@@ -1068,6 +1141,20 @@ a:hover {
1068
1141
  --bw-weight: var(--bw-text-code-weight);
1069
1142
  }
1070
1143
 
1144
+ /* Text size utilities (ADR-127 section 5) ---------------------------------
1145
+ * bw-text-<step> sets font-size and nothing else: a pick on the computed type
1146
+ * ladder (the type base times --bw-font-scale-<step>, floored), the same token
1147
+ * a control of that step reads through --bw-control-font-size, so a button
1148
+ * size="sm" and bw-text-sm are one size. Line height, weight and family come
1149
+ * from a role class (bw-body-*, bw-heading-*, bw-label) or inherit. There are
1150
+ * no bw-font-* size utilities. Steps above xl are roles, not size choices, and
1151
+ * bw-text-2xs ships only when a template emits it (ADR-090). */
1152
+ .bw-text-xs { font-size: var(--bw-font-size-xs); }
1153
+ .bw-text-sm { font-size: var(--bw-font-size-sm); }
1154
+ .bw-text-md { font-size: var(--bw-font-size-md); }
1155
+ .bw-text-lg { font-size: var(--bw-font-size-lg); }
1156
+ .bw-text-xl { font-size: var(--bw-font-size-xl); }
1157
+
1071
1158
  /* Color roles ------------------------------------------------------------ */
1072
1159
 
1073
1160
  .bw-fg {
@@ -1161,7 +1248,15 @@ a:hover {
1161
1248
  margin-block: var(--bw-space-6);
1162
1249
  }
1163
1250
 
1164
- /* Type role aliases used by gallery copy-own pages */
1251
+ /* DEPRECATED type role aliases (ADR-127 section 5, ADR-125 section 6 window).
1252
+ * bw-text-display-md, bw-text-title-lg|md|sm, bw-text-body-lg|md|sm and
1253
+ * bw-text-label-md are role aliases under a bw-text- prefix that the size
1254
+ * utilities (bw-text-xs to bw-text-xl, primitives.css) now own. They keep
1255
+ * working for the deprecation window and are removed in the next major release
1256
+ * of django-brickwork and the @bwui/css release shipped with it. Use a role
1257
+ * class instead: bw-body-*, bw-heading-*, bw-label. They do not all map one to
1258
+ * one: title-lg is sans at the heading-xl size where bw-heading-xl is the
1259
+ * display serif, and label-md uppercases where bw-label does not. */
1165
1260
  .bw-text-display-md {
1166
1261
  font-family: var(--bw-text-display-lg-family);
1167
1262
  font-size: var(--bw-text-display-lg-size);
@@ -3282,9 +3377,9 @@ a:hover {
3282
3377
  font: inherit;
3283
3378
  font-family: var(--bw-text-label-family);
3284
3379
  /* Type follows the step: the size is the fifth role variable (ADR-126
3285
- * section 4), the label role size at md and scaled by the text step ratio at
3286
- * the other steps, never below the 12 px legibility floor. Family, weight,
3287
- * line height and tracking stay the label role at every step (BTN-011). */
3380
+ * section 4, ADR-127 section 6), the ladder step with the button's own step
3381
+ * name (md is --bw-font-size-md, 1rem at comfortable). Family, weight, line
3382
+ * height and tracking stay the label role at every step (BTN-011). */
3288
3383
  font-size: var(--bw-control-font-size);
3289
3384
  font-weight: var(--bw-text-label-weight);
3290
3385
  line-height: var(--bw-text-label-line-height);
@@ -3309,9 +3404,10 @@ a:hover {
3309
3404
  * role variables at the resolved step tokens: height, padding, icon, gap and
3310
3405
  * the label font size. The box tokens are the density control base times the
3311
3406
  * kit-wide multiplier (--bw-size-step-*), so every density keeps five distinct
3312
- * heights; the font size is the label role size times the gentler text
3313
- * multiplier (--bw-size-text-step-*), clamped to the 12 px legibility floor.
3314
- * No rule here computes a multiplier. Button earns all five steps, xs to xl
3407
+ * heights; the font size is the computed type ladder step with the SAME name
3408
+ * (ADR-127 section 6: --bw-font-size-<step>, so button sm and bw-text-sm are
3409
+ * one token, floored at 12 px by the ladder itself). There is no control font
3410
+ * table and no text multiplier here. No rule here computes a multiplier. Button earns all five steps, xs to xl
3315
3411
  * (BTN-003). The 1.5rem target floor is carried by the height tokens (compact
3316
3412
  * xs is exactly 1.5rem), not by a rule here. xs and xl have no bare spelling:
3317
3413
  * they were never shipped, so they are new-grammar only and are not part of the
@@ -3331,35 +3427,35 @@ a:hover {
3331
3427
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-xs);
3332
3428
  --bw-control-icon-size: var(--bw-size-control-icon-xs);
3333
3429
  --bw-control-gap: var(--bw-size-control-gap-xs);
3334
- --bw-control-font-size: var(--bw-size-control-font-size-xs);
3430
+ --bw-control-font-size: var(--bw-font-size-xs);
3335
3431
  }
3336
3432
  .bw-btn--sm, .bw-btn--size-sm {
3337
3433
  --bw-control-height: var(--bw-size-control-height-sm);
3338
3434
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-sm);
3339
3435
  --bw-control-icon-size: var(--bw-size-control-icon-sm);
3340
3436
  --bw-control-gap: var(--bw-size-control-gap-sm);
3341
- --bw-control-font-size: var(--bw-size-control-font-size-sm);
3437
+ --bw-control-font-size: var(--bw-font-size-sm);
3342
3438
  }
3343
3439
  .bw-btn--md, .bw-btn--size-md {
3344
3440
  --bw-control-height: var(--bw-size-control-height-md);
3345
3441
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
3346
3442
  --bw-control-icon-size: var(--bw-size-control-icon-md);
3347
3443
  --bw-control-gap: var(--bw-size-control-gap-md);
3348
- --bw-control-font-size: var(--bw-size-control-font-size-md);
3444
+ --bw-control-font-size: var(--bw-font-size-md);
3349
3445
  }
3350
3446
  .bw-btn--lg, .bw-btn--size-lg {
3351
3447
  --bw-control-height: var(--bw-size-control-height-lg);
3352
3448
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-lg);
3353
3449
  --bw-control-icon-size: var(--bw-size-control-icon-lg);
3354
3450
  --bw-control-gap: var(--bw-size-control-gap-lg);
3355
- --bw-control-font-size: var(--bw-size-control-font-size-lg);
3451
+ --bw-control-font-size: var(--bw-font-size-lg);
3356
3452
  }
3357
3453
  .bw-btn--size-xl {
3358
3454
  --bw-control-height: var(--bw-size-control-height-xl);
3359
3455
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-xl);
3360
3456
  --bw-control-icon-size: var(--bw-size-control-icon-xl);
3361
3457
  --bw-control-gap: var(--bw-size-control-gap-xl);
3362
- --bw-control-font-size: var(--bw-size-control-font-size-xl);
3458
+ --bw-control-font-size: var(--bw-font-size-xl);
3363
3459
  }
3364
3460
  /* The glyph and the label are one line of content. The icon is a bw-icon, and
3365
3461
  * a bare .bw-icon (wave-e) paints a raised box and a muted ink, which showed
@@ -5259,7 +5355,7 @@ button.bw-account-menu__item {
5259
5355
  * to point at, so the literal lives inline in the fallback slot. */
5260
5356
  .bw-skeleton--title {
5261
5357
  inline-size: var(--bw-skeleton-w, 40%);
5262
- block-size: var(--bw-skeleton-h, var(--bw-font-size-2xl));
5358
+ block-size: var(--bw-skeleton-h, var(--bw-font-size-3xl));
5263
5359
  margin-block-end: var(--bw-space-2);
5264
5360
  }
5265
5361
  .bw-skeleton--text {
@@ -5718,9 +5814,10 @@ a.bw-stat:hover {
5718
5814
  .bw-stat__value {
5719
5815
  margin: 0;
5720
5816
  /* The component token scales the numeral (VIZ-001, AC-BW-075); until it is
5721
- emitted by the token build it falls back to the 3xl step, the same
5817
+ emitted by the token build it falls back to the 4xl step (ADR-127: the
5818
+ 2.5rem the default tile has always rendered at comfortable), the same
5722
5819
  inline-token-with-fallback mechanism as .bw-spinner's size. */
5723
- font-size: var(--bw-component-stat-tile-value-size, var(--bw-font-size-3xl));
5820
+ font-size: var(--bw-component-stat-tile-value-size, var(--bw-font-size-4xl));
5724
5821
  font-weight: var(--bw-font-weight-semibold);
5725
5822
  line-height: var(--bw-font-line-height-tight);
5726
5823
  font-variant-numeric: tabular-nums; /* a column of tiles never jitters as digits change */
@@ -5734,11 +5831,11 @@ a.bw-stat:hover {
5734
5831
  /* size arg (VIZ-027): modifiers re-point the value-size component token, so
5735
5832
  the numeral rule itself never forks. */
5736
5833
  .bw-stat--sm, .bw-stat--size-sm {
5737
- --bw-component-stat-tile-value-size: var(--bw-font-size-2xl);
5834
+ --bw-component-stat-tile-value-size: var(--bw-font-size-3xl);
5738
5835
  padding: var(--bw-space-3);
5739
5836
  }
5740
5837
  .bw-stat--lg, .bw-stat--size-lg {
5741
- --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
5838
+ --bw-component-stat-tile-value-size: var(--bw-font-size-5xl);
5742
5839
  padding: var(--bw-space-6);
5743
5840
  }
5744
5841
  /* chrome="plain" (#694): proof figures without card chrome. Default remains
@@ -5909,7 +6006,7 @@ a.bw-stat--chrome-plain:hover {
5909
6006
  }
5910
6007
  .bw-stat-comparison__current {
5911
6008
  margin: 0;
5912
- font-size: var(--bw-component-stat-tile-value-size, var(--bw-font-size-3xl));
6009
+ font-size: var(--bw-component-stat-tile-value-size, var(--bw-font-size-4xl));
5913
6010
  font-weight: var(--bw-font-weight-semibold);
5914
6011
  line-height: var(--bw-font-line-height-tight);
5915
6012
  font-variant-numeric: tabular-nums;
@@ -5931,11 +6028,11 @@ a.bw-stat--chrome-plain:hover {
5931
6028
  same value-size component token _stat.html uses, so a comparison tile
5932
6029
  sits at the same scale as a plain stat tile sharing its grid. */
5933
6030
  .bw-stat-comparison--sm, .bw-stat-comparison--size-sm {
5934
- --bw-component-stat-tile-value-size: var(--bw-font-size-2xl);
6031
+ --bw-component-stat-tile-value-size: var(--bw-font-size-3xl);
5935
6032
  padding: var(--bw-space-3);
5936
6033
  }
5937
6034
  .bw-stat-comparison--lg, .bw-stat-comparison--size-lg {
5938
- --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
6035
+ --bw-component-stat-tile-value-size: var(--bw-font-size-5xl);
5939
6036
  padding: var(--bw-space-6);
5940
6037
  }
5941
6038
  /* The trend row (_trend_indicator.html's css_class seam, matching #334's own
@@ -7503,15 +7600,65 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7503
7600
  * own .bw-input class. The enhanced input composes .bw-input in its class
7504
7601
  * list too (compose, never duplicate); only combobox-specific physics live
7505
7602
  * here. */
7603
+ /* Size (CMB-002, ADR-125, ADR-126): the combobox reads only the control role
7604
+ * variables (height, padding-inline, icon size, gap, font size). They are
7605
+ * declared on :root and re-emitted in every [data-density] block, so a bare
7606
+ * combobox is md at the density in force; bw-combobox--size-<step> re-points
7607
+ * them for the whole control, so the frame, the chips, the option rows, the
7608
+ * chevron and the clear control all follow one step and the text scales with
7609
+ * it. The grammar is the kit's one size class grammar (no bare spelling). */
7610
+ .bw-combobox--size-xs {
7611
+ --bw-control-height: var(--bw-size-control-height-xs);
7612
+ --bw-control-padding-inline: var(--bw-size-control-padding-inline-xs);
7613
+ --bw-control-icon-size: var(--bw-size-control-icon-xs);
7614
+ --bw-control-gap: var(--bw-size-control-gap-xs);
7615
+ --bw-control-font-size: var(--bw-font-size-xs);
7616
+ }
7617
+ .bw-combobox--size-sm {
7618
+ --bw-control-height: var(--bw-size-control-height-sm);
7619
+ --bw-control-padding-inline: var(--bw-size-control-padding-inline-sm);
7620
+ --bw-control-icon-size: var(--bw-size-control-icon-sm);
7621
+ --bw-control-gap: var(--bw-size-control-gap-sm);
7622
+ --bw-control-font-size: var(--bw-font-size-sm);
7623
+ }
7624
+ .bw-combobox--size-md {
7625
+ --bw-control-height: var(--bw-size-control-height-md);
7626
+ --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
7627
+ --bw-control-icon-size: var(--bw-size-control-icon-md);
7628
+ --bw-control-gap: var(--bw-size-control-gap-md);
7629
+ --bw-control-font-size: var(--bw-font-size-md);
7630
+ }
7631
+ .bw-combobox--size-lg {
7632
+ --bw-control-height: var(--bw-size-control-height-lg);
7633
+ --bw-control-padding-inline: var(--bw-size-control-padding-inline-lg);
7634
+ --bw-control-icon-size: var(--bw-size-control-icon-lg);
7635
+ --bw-control-gap: var(--bw-size-control-gap-lg);
7636
+ --bw-control-font-size: var(--bw-font-size-lg);
7637
+ }
7638
+ .bw-combobox--size-xl {
7639
+ --bw-control-height: var(--bw-size-control-height-xl);
7640
+ --bw-control-padding-inline: var(--bw-size-control-padding-inline-xl);
7641
+ --bw-control-icon-size: var(--bw-size-control-icon-xl);
7642
+ --bw-control-gap: var(--bw-size-control-gap-xl);
7643
+ --bw-control-font-size: var(--bw-font-size-xl);
7644
+ }
7506
7645
  .bw-combobox {
7507
7646
  /* Chip block size (CMB-038): the control height less the frame's own
7508
7647
  * block padding, never below the 1.5rem WCAG 2.5.8 target plus the chip's
7509
- * hairline border. Shared by the chip and the multiple-mode input. */
7648
+ * hairline border. Shared by the chip and the multiple-mode input. It
7649
+ * reads the role variable, so it follows the size step. */
7510
7650
  --bw-combobox-chip-size: max(
7511
7651
  calc(1.5rem + 2 * var(--bw-size-border-hairline)),
7512
- calc(var(--bw-density-control-height) - 2 * var(--bw-space-2))
7652
+ calc(var(--bw-control-height) - 2 * var(--bw-space-2))
7513
7653
  );
7654
+ /* The clear control's square: the step's icon plus its own padding, never
7655
+ * under the 1.5rem WCAG 2.5.8 floor (CMB-053). */
7656
+ --bw-combobox-clear-size: max(1.5rem, calc(var(--bw-control-icon-size) + 2 * var(--bw-space-1)));
7657
+ /* Room kept at the inline end for the chevron (padding, glyph, breathing
7658
+ * space); the clear control adds its own square when it is shown. */
7659
+ --bw-combobox-end-gutter: calc(var(--bw-control-padding-inline) + var(--bw-control-icon-size) + var(--bw-space-1));
7514
7660
  position: relative;
7661
+ font-size: var(--bw-control-font-size);
7515
7662
  }
7516
7663
  /* Chips and the input share one wrapping row; the absolutely positioned
7517
7664
  * listbox anchors to it. The input trades .bw-input's full width for a
@@ -7523,10 +7670,83 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7523
7670
  align-items: center;
7524
7671
  gap: var(--bw-space-1);
7525
7672
  }
7673
+ /* The frame reads the role variables (CMB-002), not the density tokens, so the
7674
+ * size step resizes it; the text takes the step's font size. The end padding
7675
+ * clears the chevron, and the clear control when it is shown. */
7526
7676
  .bw-combobox__input {
7527
7677
  flex: 1 1 var(--bw-component-menu-min-width);
7528
7678
  inline-size: auto;
7529
7679
  min-inline-size: 0;
7680
+ block-size: var(--bw-control-height);
7681
+ padding-inline: var(--bw-control-padding-inline) var(--bw-combobox-end-gutter);
7682
+ font-size: var(--bw-control-font-size);
7683
+ }
7684
+ .bw-combobox:not(.bw-combobox--multiple) .bw-combobox__field:has(.bw-combobox__clear:not([hidden])) .bw-combobox__input {
7685
+ padding-inline-end: calc(var(--bw-combobox-end-gutter) + var(--bw-combobox-clear-size));
7686
+ }
7687
+ /* Open affordance (CMB-034): the same chevron token as bw-select, drawn as a
7688
+ * pseudo-element at the inline end so it mirrors under RTL with logical
7689
+ * offsets and needs no markup. Visual only: the whole input is the click
7690
+ * target, so it takes no pointer events. It turns over while the list is
7691
+ * open. A read-only control cannot open, so it shows no chevron. */
7692
+ .bw-combobox__field::after {
7693
+ content: "";
7694
+ position: absolute;
7695
+ inset-inline-end: var(--bw-control-padding-inline);
7696
+ inset-block-start: calc(var(--bw-control-height) / 2);
7697
+ inline-size: var(--bw-control-icon-size);
7698
+ block-size: var(--bw-control-icon-size);
7699
+ background-image: var(--bw-component-select-indicator);
7700
+ background-repeat: no-repeat;
7701
+ background-position: center;
7702
+ background-size: contain;
7703
+ translate: 0 -50%;
7704
+ pointer-events: none;
7705
+ transition: var(--bw-transition-transform);
7706
+ }
7707
+ .bw-combobox[data-bw-open] .bw-combobox__field::after {
7708
+ rotate: 180deg;
7709
+ }
7710
+ .bw-combobox__field:has(.bw-combobox__input[readonly])::after {
7711
+ display: none;
7712
+ }
7713
+ /* Clear control (CMB-015): an icon-only button seated just inside the chevron,
7714
+ * centred on the first row of the frame. It is rendered with the hidden
7715
+ * attribute and shown only while there is a value or a query and the control
7716
+ * is operable. fg-muted on the frame fill, as for the chip remove. */
7717
+ .bw-combobox__clear {
7718
+ position: absolute;
7719
+ inset-inline-end: calc(var(--bw-control-padding-inline) + var(--bw-control-icon-size));
7720
+ inset-block-start: calc(var(--bw-control-height) / 2);
7721
+ translate: 0 -50%;
7722
+ display: inline-flex;
7723
+ align-items: center;
7724
+ justify-content: center;
7725
+ inline-size: var(--bw-combobox-clear-size);
7726
+ block-size: var(--bw-combobox-clear-size);
7727
+ padding: 0;
7728
+ background: transparent;
7729
+ border: 0;
7730
+ border-radius: var(--bw-radius-full);
7731
+ color: var(--bw-color-fg-muted);
7732
+ cursor: pointer;
7733
+ transition: var(--bw-transition-colors);
7734
+ }
7735
+ .bw-combobox__clear .bw-icon,
7736
+ .bw-combobox__clear svg {
7737
+ inline-size: var(--bw-control-icon-size);
7738
+ block-size: var(--bw-control-icon-size);
7739
+ background: transparent;
7740
+ border-radius: 0;
7741
+ color: inherit;
7742
+ }
7743
+ .bw-combobox__clear:hover {
7744
+ background-color: var(--bw-state-hover-overlay);
7745
+ color: var(--bw-color-fg);
7746
+ }
7747
+ .bw-combobox__clear:active {
7748
+ background-color: var(--bw-state-active-overlay);
7749
+ transition-duration: var(--bw-duration-instant);
7530
7750
  }
7531
7751
  /* Placeholder colour (CMB-035, GAP-CMB-15): the shipped bundle had no
7532
7752
  * placeholder rule, so the UA default applied. Scoped to the combobox input;
@@ -7551,15 +7771,18 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7551
7771
  * goes borderless so it reads as part of the field. Single mode is untouched:
7552
7772
  * it keeps the bare .bw-input frame (CMB-030). */
7553
7773
  .bw-combobox--multiple .bw-combobox__field {
7554
- min-block-size: var(--bw-density-control-height);
7774
+ min-block-size: var(--bw-control-height);
7555
7775
  padding-block: var(--bw-space-1);
7556
- padding-inline: var(--bw-density-control-padding-inline);
7776
+ padding-inline: var(--bw-control-padding-inline) var(--bw-combobox-end-gutter);
7557
7777
  background: var(--bw-color-surface);
7558
7778
  border: var(--bw-size-border-hairline) solid var(--bw-color-border-control);
7559
7779
  border-radius: var(--bw-radius-md);
7560
7780
  box-shadow: inset 0 1px 2px 0 oklch(0 0 0 / 0.04);
7561
7781
  transition: var(--bw-transition-colors), var(--bw-transition-shadow);
7562
7782
  }
7783
+ .bw-combobox--multiple .bw-combobox__field:has(.bw-combobox__clear:not([hidden])) {
7784
+ padding-inline-end: calc(var(--bw-combobox-end-gutter) + var(--bw-combobox-clear-size));
7785
+ }
7563
7786
  .bw-combobox--multiple .bw-combobox__field:hover:where(
7564
7787
  :not(:focus-within):not(:has(.bw-combobox__input:disabled, .bw-combobox__input[readonly]))
7565
7788
  ) {
@@ -7604,6 +7827,7 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7604
7827
  block-size: auto;
7605
7828
  min-block-size: var(--bw-combobox-chip-size, 1.5rem);
7606
7829
  padding-inline: var(--bw-space-1);
7830
+ font-size: var(--bw-control-font-size);
7607
7831
  background: transparent;
7608
7832
  border: 0;
7609
7833
  box-shadow: none;
@@ -7666,7 +7890,9 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7666
7890
  padding: var(--bw-space-2) var(--bw-space-3);
7667
7891
  border-radius: var(--bw-radius-md);
7668
7892
  color: var(--bw-color-fg);
7669
- font-size: var(--bw-text-body-sm-size);
7893
+ /* The rows follow the control's step so a larger control lists larger text
7894
+ * (CMB-038); the line height stays the body-sm leading ratio. */
7895
+ font-size: var(--bw-control-font-size);
7670
7896
  line-height: var(--bw-text-body-sm-line-height);
7671
7897
  cursor: pointer;
7672
7898
  transition: var(--bw-transition-colors);
@@ -7684,6 +7910,46 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7684
7910
  .bw-combobox__option[aria-selected="true"] {
7685
7911
  font-weight: var(--bw-font-weight-medium);
7686
7912
  }
7913
+ /* Selected check (CMB-033): in multiple mode a chosen row also shows a check at
7914
+ * its inline end, so selection is not carried by weight alone (CMB-054). It is
7915
+ * a mask over currentColor, so it takes the row's ink in both themes and needs
7916
+ * no markup or raw colour. */
7917
+ .bw-combobox__listbox[aria-multiselectable="true"] .bw-combobox__option[aria-selected="true"]::after {
7918
+ content: "";
7919
+ flex: none;
7920
+ margin-inline-start: auto;
7921
+ inline-size: var(--bw-control-icon-size);
7922
+ block-size: var(--bw-control-icon-size);
7923
+ background-color: currentColor;
7924
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
7925
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
7926
+ }
7927
+ /* Groups (CMB-017): a wrapper row (presentation) holds the heading and a
7928
+ * role="group" list of options. The wrapper is hidden while none of its
7929
+ * options is visible; arrow movement never lands on a heading because it is
7930
+ * not an option. The heading is the quiet label tier. */
7931
+ .bw-combobox__group {
7932
+ margin: 0;
7933
+ padding: 0;
7934
+ list-style: none;
7935
+ }
7936
+ .bw-combobox__group + .bw-combobox__group,
7937
+ .bw-combobox__option + .bw-combobox__group {
7938
+ margin-block-start: var(--bw-space-1);
7939
+ }
7940
+ .bw-combobox__group-label {
7941
+ display: block;
7942
+ padding: var(--bw-space-2) var(--bw-space-3) var(--bw-space-1);
7943
+ color: var(--bw-color-fg-muted);
7944
+ font-size: var(--bw-control-font-size);
7945
+ font-weight: var(--bw-font-weight-medium);
7946
+ line-height: var(--bw-text-body-sm-line-height);
7947
+ }
7948
+ .bw-combobox__group-options {
7949
+ margin: 0;
7950
+ padding: 0;
7951
+ list-style: none;
7952
+ }
7687
7953
  /* Disabled option (CMB-016): stays visible and filterable, paints the flat
7688
7954
  * disabled colours, shows no hover wash and cannot be chosen (the behaviour
7689
7955
  * skips it). The state is also carried by aria-disabled, not colour alone. */
@@ -7707,7 +7973,7 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7707
7973
  .bw-combobox__empty {
7708
7974
  padding: var(--bw-space-2) var(--bw-space-3);
7709
7975
  color: var(--bw-color-fg-muted);
7710
- font-size: var(--bw-text-body-sm-size);
7976
+ font-size: var(--bw-control-font-size);
7711
7977
  line-height: var(--bw-text-body-sm-line-height);
7712
7978
  }
7713
7979
  /* Server-filter failure row (CMB-019): the same row shape as the empty
@@ -7715,7 +7981,7 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7715
7981
  .bw-combobox__error {
7716
7982
  padding: var(--bw-space-2) var(--bw-space-3);
7717
7983
  color: var(--bw-color-danger-fg);
7718
- font-size: var(--bw-text-body-sm-size);
7984
+ font-size: var(--bw-control-font-size);
7719
7985
  line-height: var(--bw-text-body-sm-line-height);
7720
7986
  }
7721
7987
  /* Selected-value chips (multiple mode, CMP-028): the selected wash at
@@ -7730,7 +7996,7 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7730
7996
  background: var(--bw-state-selected-bg);
7731
7997
  border: var(--bw-size-border-hairline) solid var(--bw-color-border);
7732
7998
  border-radius: var(--bw-radius-full);
7733
- font-size: var(--bw-text-body-sm-size);
7999
+ font-size: var(--bw-control-font-size);
7734
8000
  line-height: var(--bw-text-body-sm-line-height);
7735
8001
  }
7736
8002
  .bw-combobox__chip-remove {
@@ -7753,6 +8019,16 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7753
8019
  cursor: pointer;
7754
8020
  transition: var(--bw-transition-colors);
7755
8021
  }
8022
+ /* The glyph follows the step, like the clear control's: the wave-e .bw-icon box
8023
+ * (a raised fill and a larger default) must not show inside a chip. */
8024
+ .bw-combobox__chip-remove .bw-icon,
8025
+ .bw-combobox__chip-remove svg {
8026
+ inline-size: var(--bw-control-icon-size);
8027
+ block-size: var(--bw-control-icon-size);
8028
+ background: transparent;
8029
+ border-radius: 0;
8030
+ color: inherit;
8031
+ }
7756
8032
  .bw-combobox__chip-remove:hover {
7757
8033
  background-color: var(--bw-state-hover-overlay);
7758
8034
  color: var(--bw-color-fg);
@@ -7761,6 +8037,15 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
7761
8037
  background-color: var(--bw-state-active-overlay);
7762
8038
  transition-duration: var(--bw-duration-instant);
7763
8039
  }
8040
+ /* Read-only or disabled (CMB-024, CMB-025): chips stay as text; their remove
8041
+ * controls and the clear control are not operable, so they are not shown. */
8042
+ .bw-combobox__field:has(.bw-combobox__input[readonly], .bw-combobox__input:disabled) .bw-combobox__chip-remove,
8043
+ .bw-combobox__field:has(.bw-combobox__input[readonly], .bw-combobox__input:disabled) .bw-combobox__clear {
8044
+ display: none;
8045
+ }
8046
+ .bw-combobox__field:has(.bw-combobox__input[readonly], .bw-combobox__input:disabled) .bw-combobox__chip {
8047
+ padding-inline-end: var(--bw-space-3);
8048
+ }
7764
8049
 
7765
8050
  /* --- Dismissible exit (0.9.0 interaction set, CMP-010/012 adoption) ---------- */
7766
8051
 
@@ -9392,7 +9677,7 @@ a.bw-chip {
9392
9677
  .bw-token-specimen__heading {
9393
9678
  margin: 0;
9394
9679
  font-family: var(--bw-font-family-sans);
9395
- font-size: var(--bw-font-size-xl);
9680
+ font-size: var(--bw-font-size-2xl);
9396
9681
  font-weight: var(--bw-font-weight-semibold);
9397
9682
  color: var(--bw-color-fg);
9398
9683
  line-height: var(--bw-font-line-height-snug);
@@ -11489,7 +11774,7 @@ never colour alone to signal "recommended" (the badge
11489
11774
  }
11490
11775
 
11491
11776
  .bw-pricing-tier__price-value {
11492
- font-size: var(--bw-font-size-3xl);
11777
+ font-size: var(--bw-font-size-4xl);
11493
11778
  font-weight: var(--bw-font-weight-bold);
11494
11779
  line-height: var(--bw-font-line-height-tight);
11495
11780
  font-variant-numeric: tabular-nums;
@@ -12073,7 +12358,7 @@ same shape as .bw-cta--bleed). */
12073
12358
  margin: 0;
12074
12359
  color: var(--bw-color-fg-on-inverse);
12075
12360
  font-family: var(--bw-text-heading-display-family);
12076
- font-size: clamp(1.75rem, 6vw, var(--bw-font-size-3xl));
12361
+ font-size: clamp(1.75rem, 6vw, var(--bw-font-size-4xl));
12077
12362
  overflow-wrap: break-word;
12078
12363
  font-weight: var(--bw-text-heading-display-weight);
12079
12364
  line-height: var(--bw-text-heading-display-line-height);
@@ -12698,7 +12983,7 @@ so dark surfaces return to the plain elevation ramp here.
12698
12983
  .bw-portrait__name {
12699
12984
  margin: 0;
12700
12985
  font-family: var(--bw-font-family-display);
12701
- font-size: var(--bw-font-size-3xl);
12986
+ font-size: var(--bw-font-size-4xl);
12702
12987
  font-weight: var(--bw-font-weight-semibold);
12703
12988
  color: var(--bw-color-fg);
12704
12989
  line-height: var(--bw-font-line-height-tight);
@@ -12898,7 +13183,7 @@ ADR-108 reusable marketing proof primitive) ------
12898
13183
  .bw-proof-collage__heading {
12899
13184
  margin: 0;
12900
13185
  font-family: var(--bw-font-family-display);
12901
- font-size: var(--bw-font-size-3xl);
13186
+ font-size: var(--bw-font-size-4xl);
12902
13187
  font-weight: var(--bw-font-weight-semibold);
12903
13188
  color: var(--bw-color-fg);
12904
13189
  line-height: var(--bw-font-line-height-tight);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bwui/css",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Framework-agnostic Brickwork primitives and component classes. Consumes @bwui/tokens and works with plain HTML, Django, or any framework — no JavaScript required.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,7 +21,7 @@
21
21
  "./src/*": "./src/*"
22
22
  },
23
23
  "dependencies": {
24
- "@bwui/tokens": "0.1.7"
24
+ "@bwui/tokens": "0.1.9"
25
25
  },
26
26
  "devDependencies": {
27
27
  "tsx": "^4.19.2"
@@ -33,9 +33,9 @@
33
33
  font: inherit;
34
34
  font-family: var(--bw-text-label-family);
35
35
  /* Type follows the step: the size is the fifth role variable (ADR-126
36
- * section 4), the label role size at md and scaled by the text step ratio at
37
- * the other steps, never below the 12 px legibility floor. Family, weight,
38
- * line height and tracking stay the label role at every step (BTN-011). */
36
+ * section 4, ADR-127 section 6), the ladder step with the button's own step
37
+ * name (md is --bw-font-size-md, 1rem at comfortable). Family, weight, line
38
+ * height and tracking stay the label role at every step (BTN-011). */
39
39
  font-size: var(--bw-control-font-size);
40
40
  font-weight: var(--bw-text-label-weight);
41
41
  line-height: var(--bw-text-label-line-height);
@@ -60,9 +60,10 @@
60
60
  * role variables at the resolved step tokens: height, padding, icon, gap and
61
61
  * the label font size. The box tokens are the density control base times the
62
62
  * kit-wide multiplier (--bw-size-step-*), so every density keeps five distinct
63
- * heights; the font size is the label role size times the gentler text
64
- * multiplier (--bw-size-text-step-*), clamped to the 12 px legibility floor.
65
- * No rule here computes a multiplier. Button earns all five steps, xs to xl
63
+ * heights; the font size is the computed type ladder step with the SAME name
64
+ * (ADR-127 section 6: --bw-font-size-<step>, so button sm and bw-text-sm are
65
+ * one token, floored at 12 px by the ladder itself). There is no control font
66
+ * table and no text multiplier here. No rule here computes a multiplier. Button earns all five steps, xs to xl
66
67
  * (BTN-003). The 1.5rem target floor is carried by the height tokens (compact
67
68
  * xs is exactly 1.5rem), not by a rule here. xs and xl have no bare spelling:
68
69
  * they were never shipped, so they are new-grammar only and are not part of the
@@ -82,35 +83,35 @@
82
83
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-xs);
83
84
  --bw-control-icon-size: var(--bw-size-control-icon-xs);
84
85
  --bw-control-gap: var(--bw-size-control-gap-xs);
85
- --bw-control-font-size: var(--bw-size-control-font-size-xs);
86
+ --bw-control-font-size: var(--bw-font-size-xs);
86
87
  }
87
88
  .bw-btn--sm, .bw-btn--size-sm {
88
89
  --bw-control-height: var(--bw-size-control-height-sm);
89
90
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-sm);
90
91
  --bw-control-icon-size: var(--bw-size-control-icon-sm);
91
92
  --bw-control-gap: var(--bw-size-control-gap-sm);
92
- --bw-control-font-size: var(--bw-size-control-font-size-sm);
93
+ --bw-control-font-size: var(--bw-font-size-sm);
93
94
  }
94
95
  .bw-btn--md, .bw-btn--size-md {
95
96
  --bw-control-height: var(--bw-size-control-height-md);
96
97
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
97
98
  --bw-control-icon-size: var(--bw-size-control-icon-md);
98
99
  --bw-control-gap: var(--bw-size-control-gap-md);
99
- --bw-control-font-size: var(--bw-size-control-font-size-md);
100
+ --bw-control-font-size: var(--bw-font-size-md);
100
101
  }
101
102
  .bw-btn--lg, .bw-btn--size-lg {
102
103
  --bw-control-height: var(--bw-size-control-height-lg);
103
104
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-lg);
104
105
  --bw-control-icon-size: var(--bw-size-control-icon-lg);
105
106
  --bw-control-gap: var(--bw-size-control-gap-lg);
106
- --bw-control-font-size: var(--bw-size-control-font-size-lg);
107
+ --bw-control-font-size: var(--bw-font-size-lg);
107
108
  }
108
109
  .bw-btn--size-xl {
109
110
  --bw-control-height: var(--bw-size-control-height-xl);
110
111
  --bw-control-padding-inline: var(--bw-size-control-padding-inline-xl);
111
112
  --bw-control-icon-size: var(--bw-size-control-icon-xl);
112
113
  --bw-control-gap: var(--bw-size-control-gap-xl);
113
- --bw-control-font-size: var(--bw-size-control-font-size-xl);
114
+ --bw-control-font-size: var(--bw-font-size-xl);
114
115
  }
115
116
  /* The glyph and the label are one line of content. The icon is a bw-icon, and
116
117
  * a bare .bw-icon (wave-e) paints a raised box and a muted ink, which showed
@@ -2010,7 +2011,7 @@ button.bw-account-menu__item {
2010
2011
  * to point at, so the literal lives inline in the fallback slot. */
2011
2012
  .bw-skeleton--title {
2012
2013
  inline-size: var(--bw-skeleton-w, 40%);
2013
- block-size: var(--bw-skeleton-h, var(--bw-font-size-2xl));
2014
+ block-size: var(--bw-skeleton-h, var(--bw-font-size-3xl));
2014
2015
  margin-block-end: var(--bw-space-2);
2015
2016
  }
2016
2017
  .bw-skeleton--text {
@@ -2469,9 +2470,10 @@ a.bw-stat:hover {
2469
2470
  .bw-stat__value {
2470
2471
  margin: 0;
2471
2472
  /* The component token scales the numeral (VIZ-001, AC-BW-075); until it is
2472
- emitted by the token build it falls back to the 3xl step, the same
2473
+ emitted by the token build it falls back to the 4xl step (ADR-127: the
2474
+ 2.5rem the default tile has always rendered at comfortable), the same
2473
2475
  inline-token-with-fallback mechanism as .bw-spinner's size. */
2474
- font-size: var(--bw-component-stat-tile-value-size, var(--bw-font-size-3xl));
2476
+ font-size: var(--bw-component-stat-tile-value-size, var(--bw-font-size-4xl));
2475
2477
  font-weight: var(--bw-font-weight-semibold);
2476
2478
  line-height: var(--bw-font-line-height-tight);
2477
2479
  font-variant-numeric: tabular-nums; /* a column of tiles never jitters as digits change */
@@ -2485,11 +2487,11 @@ a.bw-stat:hover {
2485
2487
  /* size arg (VIZ-027): modifiers re-point the value-size component token, so
2486
2488
  the numeral rule itself never forks. */
2487
2489
  .bw-stat--sm, .bw-stat--size-sm {
2488
- --bw-component-stat-tile-value-size: var(--bw-font-size-2xl);
2490
+ --bw-component-stat-tile-value-size: var(--bw-font-size-3xl);
2489
2491
  padding: var(--bw-space-3);
2490
2492
  }
2491
2493
  .bw-stat--lg, .bw-stat--size-lg {
2492
- --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
2494
+ --bw-component-stat-tile-value-size: var(--bw-font-size-5xl);
2493
2495
  padding: var(--bw-space-6);
2494
2496
  }
2495
2497
  /* chrome="plain" (#694): proof figures without card chrome. Default remains
@@ -2660,7 +2662,7 @@ a.bw-stat--chrome-plain:hover {
2660
2662
  }
2661
2663
  .bw-stat-comparison__current {
2662
2664
  margin: 0;
2663
- font-size: var(--bw-component-stat-tile-value-size, var(--bw-font-size-3xl));
2665
+ font-size: var(--bw-component-stat-tile-value-size, var(--bw-font-size-4xl));
2664
2666
  font-weight: var(--bw-font-weight-semibold);
2665
2667
  line-height: var(--bw-font-line-height-tight);
2666
2668
  font-variant-numeric: tabular-nums;
@@ -2682,11 +2684,11 @@ a.bw-stat--chrome-plain:hover {
2682
2684
  same value-size component token _stat.html uses, so a comparison tile
2683
2685
  sits at the same scale as a plain stat tile sharing its grid. */
2684
2686
  .bw-stat-comparison--sm, .bw-stat-comparison--size-sm {
2685
- --bw-component-stat-tile-value-size: var(--bw-font-size-2xl);
2687
+ --bw-component-stat-tile-value-size: var(--bw-font-size-3xl);
2686
2688
  padding: var(--bw-space-3);
2687
2689
  }
2688
2690
  .bw-stat-comparison--lg, .bw-stat-comparison--size-lg {
2689
- --bw-component-stat-tile-value-size: var(--bw-font-size-4xl);
2691
+ --bw-component-stat-tile-value-size: var(--bw-font-size-5xl);
2690
2692
  padding: var(--bw-space-6);
2691
2693
  }
2692
2694
  /* The trend row (_trend_indicator.html's css_class seam, matching #334's own
@@ -4254,15 +4256,65 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4254
4256
  * own .bw-input class. The enhanced input composes .bw-input in its class
4255
4257
  * list too (compose, never duplicate); only combobox-specific physics live
4256
4258
  * here. */
4259
+ /* Size (CMB-002, ADR-125, ADR-126): the combobox reads only the control role
4260
+ * variables (height, padding-inline, icon size, gap, font size). They are
4261
+ * declared on :root and re-emitted in every [data-density] block, so a bare
4262
+ * combobox is md at the density in force; bw-combobox--size-<step> re-points
4263
+ * them for the whole control, so the frame, the chips, the option rows, the
4264
+ * chevron and the clear control all follow one step and the text scales with
4265
+ * it. The grammar is the kit's one size class grammar (no bare spelling). */
4266
+ .bw-combobox--size-xs {
4267
+ --bw-control-height: var(--bw-size-control-height-xs);
4268
+ --bw-control-padding-inline: var(--bw-size-control-padding-inline-xs);
4269
+ --bw-control-icon-size: var(--bw-size-control-icon-xs);
4270
+ --bw-control-gap: var(--bw-size-control-gap-xs);
4271
+ --bw-control-font-size: var(--bw-font-size-xs);
4272
+ }
4273
+ .bw-combobox--size-sm {
4274
+ --bw-control-height: var(--bw-size-control-height-sm);
4275
+ --bw-control-padding-inline: var(--bw-size-control-padding-inline-sm);
4276
+ --bw-control-icon-size: var(--bw-size-control-icon-sm);
4277
+ --bw-control-gap: var(--bw-size-control-gap-sm);
4278
+ --bw-control-font-size: var(--bw-font-size-sm);
4279
+ }
4280
+ .bw-combobox--size-md {
4281
+ --bw-control-height: var(--bw-size-control-height-md);
4282
+ --bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
4283
+ --bw-control-icon-size: var(--bw-size-control-icon-md);
4284
+ --bw-control-gap: var(--bw-size-control-gap-md);
4285
+ --bw-control-font-size: var(--bw-font-size-md);
4286
+ }
4287
+ .bw-combobox--size-lg {
4288
+ --bw-control-height: var(--bw-size-control-height-lg);
4289
+ --bw-control-padding-inline: var(--bw-size-control-padding-inline-lg);
4290
+ --bw-control-icon-size: var(--bw-size-control-icon-lg);
4291
+ --bw-control-gap: var(--bw-size-control-gap-lg);
4292
+ --bw-control-font-size: var(--bw-font-size-lg);
4293
+ }
4294
+ .bw-combobox--size-xl {
4295
+ --bw-control-height: var(--bw-size-control-height-xl);
4296
+ --bw-control-padding-inline: var(--bw-size-control-padding-inline-xl);
4297
+ --bw-control-icon-size: var(--bw-size-control-icon-xl);
4298
+ --bw-control-gap: var(--bw-size-control-gap-xl);
4299
+ --bw-control-font-size: var(--bw-font-size-xl);
4300
+ }
4257
4301
  .bw-combobox {
4258
4302
  /* Chip block size (CMB-038): the control height less the frame's own
4259
4303
  * block padding, never below the 1.5rem WCAG 2.5.8 target plus the chip's
4260
- * hairline border. Shared by the chip and the multiple-mode input. */
4304
+ * hairline border. Shared by the chip and the multiple-mode input. It
4305
+ * reads the role variable, so it follows the size step. */
4261
4306
  --bw-combobox-chip-size: max(
4262
4307
  calc(1.5rem + 2 * var(--bw-size-border-hairline)),
4263
- calc(var(--bw-density-control-height) - 2 * var(--bw-space-2))
4308
+ calc(var(--bw-control-height) - 2 * var(--bw-space-2))
4264
4309
  );
4310
+ /* The clear control's square: the step's icon plus its own padding, never
4311
+ * under the 1.5rem WCAG 2.5.8 floor (CMB-053). */
4312
+ --bw-combobox-clear-size: max(1.5rem, calc(var(--bw-control-icon-size) + 2 * var(--bw-space-1)));
4313
+ /* Room kept at the inline end for the chevron (padding, glyph, breathing
4314
+ * space); the clear control adds its own square when it is shown. */
4315
+ --bw-combobox-end-gutter: calc(var(--bw-control-padding-inline) + var(--bw-control-icon-size) + var(--bw-space-1));
4265
4316
  position: relative;
4317
+ font-size: var(--bw-control-font-size);
4266
4318
  }
4267
4319
  /* Chips and the input share one wrapping row; the absolutely positioned
4268
4320
  * listbox anchors to it. The input trades .bw-input's full width for a
@@ -4274,10 +4326,83 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4274
4326
  align-items: center;
4275
4327
  gap: var(--bw-space-1);
4276
4328
  }
4329
+ /* The frame reads the role variables (CMB-002), not the density tokens, so the
4330
+ * size step resizes it; the text takes the step's font size. The end padding
4331
+ * clears the chevron, and the clear control when it is shown. */
4277
4332
  .bw-combobox__input {
4278
4333
  flex: 1 1 var(--bw-component-menu-min-width);
4279
4334
  inline-size: auto;
4280
4335
  min-inline-size: 0;
4336
+ block-size: var(--bw-control-height);
4337
+ padding-inline: var(--bw-control-padding-inline) var(--bw-combobox-end-gutter);
4338
+ font-size: var(--bw-control-font-size);
4339
+ }
4340
+ .bw-combobox:not(.bw-combobox--multiple) .bw-combobox__field:has(.bw-combobox__clear:not([hidden])) .bw-combobox__input {
4341
+ padding-inline-end: calc(var(--bw-combobox-end-gutter) + var(--bw-combobox-clear-size));
4342
+ }
4343
+ /* Open affordance (CMB-034): the same chevron token as bw-select, drawn as a
4344
+ * pseudo-element at the inline end so it mirrors under RTL with logical
4345
+ * offsets and needs no markup. Visual only: the whole input is the click
4346
+ * target, so it takes no pointer events. It turns over while the list is
4347
+ * open. A read-only control cannot open, so it shows no chevron. */
4348
+ .bw-combobox__field::after {
4349
+ content: "";
4350
+ position: absolute;
4351
+ inset-inline-end: var(--bw-control-padding-inline);
4352
+ inset-block-start: calc(var(--bw-control-height) / 2);
4353
+ inline-size: var(--bw-control-icon-size);
4354
+ block-size: var(--bw-control-icon-size);
4355
+ background-image: var(--bw-component-select-indicator);
4356
+ background-repeat: no-repeat;
4357
+ background-position: center;
4358
+ background-size: contain;
4359
+ translate: 0 -50%;
4360
+ pointer-events: none;
4361
+ transition: var(--bw-transition-transform);
4362
+ }
4363
+ .bw-combobox[data-bw-open] .bw-combobox__field::after {
4364
+ rotate: 180deg;
4365
+ }
4366
+ .bw-combobox__field:has(.bw-combobox__input[readonly])::after {
4367
+ display: none;
4368
+ }
4369
+ /* Clear control (CMB-015): an icon-only button seated just inside the chevron,
4370
+ * centred on the first row of the frame. It is rendered with the hidden
4371
+ * attribute and shown only while there is a value or a query and the control
4372
+ * is operable. fg-muted on the frame fill, as for the chip remove. */
4373
+ .bw-combobox__clear {
4374
+ position: absolute;
4375
+ inset-inline-end: calc(var(--bw-control-padding-inline) + var(--bw-control-icon-size));
4376
+ inset-block-start: calc(var(--bw-control-height) / 2);
4377
+ translate: 0 -50%;
4378
+ display: inline-flex;
4379
+ align-items: center;
4380
+ justify-content: center;
4381
+ inline-size: var(--bw-combobox-clear-size);
4382
+ block-size: var(--bw-combobox-clear-size);
4383
+ padding: 0;
4384
+ background: transparent;
4385
+ border: 0;
4386
+ border-radius: var(--bw-radius-full);
4387
+ color: var(--bw-color-fg-muted);
4388
+ cursor: pointer;
4389
+ transition: var(--bw-transition-colors);
4390
+ }
4391
+ .bw-combobox__clear .bw-icon,
4392
+ .bw-combobox__clear svg {
4393
+ inline-size: var(--bw-control-icon-size);
4394
+ block-size: var(--bw-control-icon-size);
4395
+ background: transparent;
4396
+ border-radius: 0;
4397
+ color: inherit;
4398
+ }
4399
+ .bw-combobox__clear:hover {
4400
+ background-color: var(--bw-state-hover-overlay);
4401
+ color: var(--bw-color-fg);
4402
+ }
4403
+ .bw-combobox__clear:active {
4404
+ background-color: var(--bw-state-active-overlay);
4405
+ transition-duration: var(--bw-duration-instant);
4281
4406
  }
4282
4407
  /* Placeholder colour (CMB-035, GAP-CMB-15): the shipped bundle had no
4283
4408
  * placeholder rule, so the UA default applied. Scoped to the combobox input;
@@ -4302,15 +4427,18 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4302
4427
  * goes borderless so it reads as part of the field. Single mode is untouched:
4303
4428
  * it keeps the bare .bw-input frame (CMB-030). */
4304
4429
  .bw-combobox--multiple .bw-combobox__field {
4305
- min-block-size: var(--bw-density-control-height);
4430
+ min-block-size: var(--bw-control-height);
4306
4431
  padding-block: var(--bw-space-1);
4307
- padding-inline: var(--bw-density-control-padding-inline);
4432
+ padding-inline: var(--bw-control-padding-inline) var(--bw-combobox-end-gutter);
4308
4433
  background: var(--bw-color-surface);
4309
4434
  border: var(--bw-size-border-hairline) solid var(--bw-color-border-control);
4310
4435
  border-radius: var(--bw-radius-md);
4311
4436
  box-shadow: inset 0 1px 2px 0 oklch(0 0 0 / 0.04);
4312
4437
  transition: var(--bw-transition-colors), var(--bw-transition-shadow);
4313
4438
  }
4439
+ .bw-combobox--multiple .bw-combobox__field:has(.bw-combobox__clear:not([hidden])) {
4440
+ padding-inline-end: calc(var(--bw-combobox-end-gutter) + var(--bw-combobox-clear-size));
4441
+ }
4314
4442
  .bw-combobox--multiple .bw-combobox__field:hover:where(
4315
4443
  :not(:focus-within):not(:has(.bw-combobox__input:disabled, .bw-combobox__input[readonly]))
4316
4444
  ) {
@@ -4355,6 +4483,7 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4355
4483
  block-size: auto;
4356
4484
  min-block-size: var(--bw-combobox-chip-size, 1.5rem);
4357
4485
  padding-inline: var(--bw-space-1);
4486
+ font-size: var(--bw-control-font-size);
4358
4487
  background: transparent;
4359
4488
  border: 0;
4360
4489
  box-shadow: none;
@@ -4417,7 +4546,9 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4417
4546
  padding: var(--bw-space-2) var(--bw-space-3);
4418
4547
  border-radius: var(--bw-radius-md);
4419
4548
  color: var(--bw-color-fg);
4420
- font-size: var(--bw-text-body-sm-size);
4549
+ /* The rows follow the control's step so a larger control lists larger text
4550
+ * (CMB-038); the line height stays the body-sm leading ratio. */
4551
+ font-size: var(--bw-control-font-size);
4421
4552
  line-height: var(--bw-text-body-sm-line-height);
4422
4553
  cursor: pointer;
4423
4554
  transition: var(--bw-transition-colors);
@@ -4435,6 +4566,46 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4435
4566
  .bw-combobox__option[aria-selected="true"] {
4436
4567
  font-weight: var(--bw-font-weight-medium);
4437
4568
  }
4569
+ /* Selected check (CMB-033): in multiple mode a chosen row also shows a check at
4570
+ * its inline end, so selection is not carried by weight alone (CMB-054). It is
4571
+ * a mask over currentColor, so it takes the row's ink in both themes and needs
4572
+ * no markup or raw colour. */
4573
+ .bw-combobox__listbox[aria-multiselectable="true"] .bw-combobox__option[aria-selected="true"]::after {
4574
+ content: "";
4575
+ flex: none;
4576
+ margin-inline-start: auto;
4577
+ inline-size: var(--bw-control-icon-size);
4578
+ block-size: var(--bw-control-icon-size);
4579
+ background-color: currentColor;
4580
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
4581
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
4582
+ }
4583
+ /* Groups (CMB-017): a wrapper row (presentation) holds the heading and a
4584
+ * role="group" list of options. The wrapper is hidden while none of its
4585
+ * options is visible; arrow movement never lands on a heading because it is
4586
+ * not an option. The heading is the quiet label tier. */
4587
+ .bw-combobox__group {
4588
+ margin: 0;
4589
+ padding: 0;
4590
+ list-style: none;
4591
+ }
4592
+ .bw-combobox__group + .bw-combobox__group,
4593
+ .bw-combobox__option + .bw-combobox__group {
4594
+ margin-block-start: var(--bw-space-1);
4595
+ }
4596
+ .bw-combobox__group-label {
4597
+ display: block;
4598
+ padding: var(--bw-space-2) var(--bw-space-3) var(--bw-space-1);
4599
+ color: var(--bw-color-fg-muted);
4600
+ font-size: var(--bw-control-font-size);
4601
+ font-weight: var(--bw-font-weight-medium);
4602
+ line-height: var(--bw-text-body-sm-line-height);
4603
+ }
4604
+ .bw-combobox__group-options {
4605
+ margin: 0;
4606
+ padding: 0;
4607
+ list-style: none;
4608
+ }
4438
4609
  /* Disabled option (CMB-016): stays visible and filterable, paints the flat
4439
4610
  * disabled colours, shows no hover wash and cannot be chosen (the behaviour
4440
4611
  * skips it). The state is also carried by aria-disabled, not colour alone. */
@@ -4458,7 +4629,7 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4458
4629
  .bw-combobox__empty {
4459
4630
  padding: var(--bw-space-2) var(--bw-space-3);
4460
4631
  color: var(--bw-color-fg-muted);
4461
- font-size: var(--bw-text-body-sm-size);
4632
+ font-size: var(--bw-control-font-size);
4462
4633
  line-height: var(--bw-text-body-sm-line-height);
4463
4634
  }
4464
4635
  /* Server-filter failure row (CMB-019): the same row shape as the empty
@@ -4466,7 +4637,7 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4466
4637
  .bw-combobox__error {
4467
4638
  padding: var(--bw-space-2) var(--bw-space-3);
4468
4639
  color: var(--bw-color-danger-fg);
4469
- font-size: var(--bw-text-body-sm-size);
4640
+ font-size: var(--bw-control-font-size);
4470
4641
  line-height: var(--bw-text-body-sm-line-height);
4471
4642
  }
4472
4643
  /* Selected-value chips (multiple mode, CMP-028): the selected wash at
@@ -4481,7 +4652,7 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4481
4652
  background: var(--bw-state-selected-bg);
4482
4653
  border: var(--bw-size-border-hairline) solid var(--bw-color-border);
4483
4654
  border-radius: var(--bw-radius-full);
4484
- font-size: var(--bw-text-body-sm-size);
4655
+ font-size: var(--bw-control-font-size);
4485
4656
  line-height: var(--bw-text-body-sm-line-height);
4486
4657
  }
4487
4658
  .bw-combobox__chip-remove {
@@ -4504,6 +4675,16 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4504
4675
  cursor: pointer;
4505
4676
  transition: var(--bw-transition-colors);
4506
4677
  }
4678
+ /* The glyph follows the step, like the clear control's: the wave-e .bw-icon box
4679
+ * (a raised fill and a larger default) must not show inside a chip. */
4680
+ .bw-combobox__chip-remove .bw-icon,
4681
+ .bw-combobox__chip-remove svg {
4682
+ inline-size: var(--bw-control-icon-size);
4683
+ block-size: var(--bw-control-icon-size);
4684
+ background: transparent;
4685
+ border-radius: 0;
4686
+ color: inherit;
4687
+ }
4507
4688
  .bw-combobox__chip-remove:hover {
4508
4689
  background-color: var(--bw-state-hover-overlay);
4509
4690
  color: var(--bw-color-fg);
@@ -4512,6 +4693,15 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
4512
4693
  background-color: var(--bw-state-active-overlay);
4513
4694
  transition-duration: var(--bw-duration-instant);
4514
4695
  }
4696
+ /* Read-only or disabled (CMB-024, CMB-025): chips stay as text; their remove
4697
+ * controls and the clear control are not operable, so they are not shown. */
4698
+ .bw-combobox__field:has(.bw-combobox__input[readonly], .bw-combobox__input:disabled) .bw-combobox__chip-remove,
4699
+ .bw-combobox__field:has(.bw-combobox__input[readonly], .bw-combobox__input:disabled) .bw-combobox__clear {
4700
+ display: none;
4701
+ }
4702
+ .bw-combobox__field:has(.bw-combobox__input[readonly], .bw-combobox__input:disabled) .bw-combobox__chip {
4703
+ padding-inline-end: var(--bw-space-3);
4704
+ }
4515
4705
 
4516
4706
  /* --- Dismissible exit (0.9.0 interaction set, CMP-010/012 adoption) ---------- */
4517
4707
 
@@ -6143,7 +6333,7 @@ a.bw-chip {
6143
6333
  .bw-token-specimen__heading {
6144
6334
  margin: 0;
6145
6335
  font-family: var(--bw-font-family-sans);
6146
- font-size: var(--bw-font-size-xl);
6336
+ font-size: var(--bw-font-size-2xl);
6147
6337
  font-weight: var(--bw-font-weight-semibold);
6148
6338
  color: var(--bw-color-fg);
6149
6339
  line-height: var(--bw-font-line-height-snug);
@@ -1558,7 +1558,7 @@ never colour alone to signal "recommended" (the badge
1558
1558
  }
1559
1559
 
1560
1560
  .bw-pricing-tier__price-value {
1561
- font-size: var(--bw-font-size-3xl);
1561
+ font-size: var(--bw-font-size-4xl);
1562
1562
  font-weight: var(--bw-font-weight-bold);
1563
1563
  line-height: var(--bw-font-line-height-tight);
1564
1564
  font-variant-numeric: tabular-nums;
@@ -2142,7 +2142,7 @@ same shape as .bw-cta--bleed). */
2142
2142
  margin: 0;
2143
2143
  color: var(--bw-color-fg-on-inverse);
2144
2144
  font-family: var(--bw-text-heading-display-family);
2145
- font-size: clamp(1.75rem, 6vw, var(--bw-font-size-3xl));
2145
+ font-size: clamp(1.75rem, 6vw, var(--bw-font-size-4xl));
2146
2146
  overflow-wrap: break-word;
2147
2147
  font-weight: var(--bw-text-heading-display-weight);
2148
2148
  line-height: var(--bw-text-heading-display-line-height);
@@ -2767,7 +2767,7 @@ so dark surfaces return to the plain elevation ramp here.
2767
2767
  .bw-portrait__name {
2768
2768
  margin: 0;
2769
2769
  font-family: var(--bw-font-family-display);
2770
- font-size: var(--bw-font-size-3xl);
2770
+ font-size: var(--bw-font-size-4xl);
2771
2771
  font-weight: var(--bw-font-weight-semibold);
2772
2772
  color: var(--bw-color-fg);
2773
2773
  line-height: var(--bw-font-line-height-tight);
@@ -2967,7 +2967,7 @@ ADR-108 reusable marketing proof primitive) ------
2967
2967
  .bw-proof-collage__heading {
2968
2968
  margin: 0;
2969
2969
  font-family: var(--bw-font-family-display);
2970
- font-size: var(--bw-font-size-3xl);
2970
+ font-size: var(--bw-font-size-4xl);
2971
2971
  font-weight: var(--bw-font-weight-semibold);
2972
2972
  color: var(--bw-color-fg);
2973
2973
  line-height: var(--bw-font-line-height-tight);
package/src/layout.css CHANGED
@@ -59,7 +59,15 @@
59
59
  margin-block: var(--bw-space-6);
60
60
  }
61
61
 
62
- /* Type role aliases used by gallery copy-own pages */
62
+ /* DEPRECATED type role aliases (ADR-127 section 5, ADR-125 section 6 window).
63
+ * bw-text-display-md, bw-text-title-lg|md|sm, bw-text-body-lg|md|sm and
64
+ * bw-text-label-md are role aliases under a bw-text- prefix that the size
65
+ * utilities (bw-text-xs to bw-text-xl, primitives.css) now own. They keep
66
+ * working for the deprecation window and are removed in the next major release
67
+ * of django-brickwork and the @bwui/css release shipped with it. Use a role
68
+ * class instead: bw-body-*, bw-heading-*, bw-label. They do not all map one to
69
+ * one: title-lg is sans at the heading-xl size where bw-heading-xl is the
70
+ * display serif, and label-md uppercases where bw-label does not. */
63
71
  .bw-text-display-md {
64
72
  font-family: var(--bw-text-display-lg-family);
65
73
  font-size: var(--bw-text-display-lg-size);
@@ -104,6 +104,20 @@
104
104
  --bw-weight: var(--bw-text-code-weight);
105
105
  }
106
106
 
107
+ /* Text size utilities (ADR-127 section 5) ---------------------------------
108
+ * bw-text-<step> sets font-size and nothing else: a pick on the computed type
109
+ * ladder (the type base times --bw-font-scale-<step>, floored), the same token
110
+ * a control of that step reads through --bw-control-font-size, so a button
111
+ * size="sm" and bw-text-sm are one size. Line height, weight and family come
112
+ * from a role class (bw-body-*, bw-heading-*, bw-label) or inherit. There are
113
+ * no bw-font-* size utilities. Steps above xl are roles, not size choices, and
114
+ * bw-text-2xs ships only when a template emits it (ADR-090). */
115
+ .bw-text-xs { font-size: var(--bw-font-size-xs); }
116
+ .bw-text-sm { font-size: var(--bw-font-size-sm); }
117
+ .bw-text-md { font-size: var(--bw-font-size-md); }
118
+ .bw-text-lg { font-size: var(--bw-font-size-lg); }
119
+ .bw-text-xl { font-size: var(--bw-font-size-xl); }
120
+
107
121
  /* Color roles ------------------------------------------------------------ */
108
122
 
109
123
  .bw-fg {