@bwui/css 0.1.8 → 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.
- package/dist/brickwork.css +171 -74
- package/package.json +2 -2
- package/src/layers/components.css +27 -25
- package/src/layers/marketing.css +4 -4
- package/src/layout.css +9 -1
- package/src/primitives.css +14 -0
package/dist/brickwork.css
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
158
|
-
--bw-font-size-
|
|
159
|
-
--bw-font-size-
|
|
160
|
-
--bw-font-size-
|
|
161
|
-
--bw-font-size-
|
|
162
|
-
--bw-font-size-
|
|
163
|
-
--bw-font-size-
|
|
164
|
-
--bw-font-size-
|
|
165
|
-
--bw-font-size-
|
|
166
|
-
--bw-font-size-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
/*
|
|
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
|
|
3286
|
-
*
|
|
3287
|
-
*
|
|
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
|
|
3313
|
-
*
|
|
3314
|
-
*
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
@@ -7515,35 +7612,35 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
|
|
|
7515
7612
|
--bw-control-padding-inline: var(--bw-size-control-padding-inline-xs);
|
|
7516
7613
|
--bw-control-icon-size: var(--bw-size-control-icon-xs);
|
|
7517
7614
|
--bw-control-gap: var(--bw-size-control-gap-xs);
|
|
7518
|
-
--bw-control-font-size: var(--bw-
|
|
7615
|
+
--bw-control-font-size: var(--bw-font-size-xs);
|
|
7519
7616
|
}
|
|
7520
7617
|
.bw-combobox--size-sm {
|
|
7521
7618
|
--bw-control-height: var(--bw-size-control-height-sm);
|
|
7522
7619
|
--bw-control-padding-inline: var(--bw-size-control-padding-inline-sm);
|
|
7523
7620
|
--bw-control-icon-size: var(--bw-size-control-icon-sm);
|
|
7524
7621
|
--bw-control-gap: var(--bw-size-control-gap-sm);
|
|
7525
|
-
--bw-control-font-size: var(--bw-
|
|
7622
|
+
--bw-control-font-size: var(--bw-font-size-sm);
|
|
7526
7623
|
}
|
|
7527
7624
|
.bw-combobox--size-md {
|
|
7528
7625
|
--bw-control-height: var(--bw-size-control-height-md);
|
|
7529
7626
|
--bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
|
|
7530
7627
|
--bw-control-icon-size: var(--bw-size-control-icon-md);
|
|
7531
7628
|
--bw-control-gap: var(--bw-size-control-gap-md);
|
|
7532
|
-
--bw-control-font-size: var(--bw-
|
|
7629
|
+
--bw-control-font-size: var(--bw-font-size-md);
|
|
7533
7630
|
}
|
|
7534
7631
|
.bw-combobox--size-lg {
|
|
7535
7632
|
--bw-control-height: var(--bw-size-control-height-lg);
|
|
7536
7633
|
--bw-control-padding-inline: var(--bw-size-control-padding-inline-lg);
|
|
7537
7634
|
--bw-control-icon-size: var(--bw-size-control-icon-lg);
|
|
7538
7635
|
--bw-control-gap: var(--bw-size-control-gap-lg);
|
|
7539
|
-
--bw-control-font-size: var(--bw-
|
|
7636
|
+
--bw-control-font-size: var(--bw-font-size-lg);
|
|
7540
7637
|
}
|
|
7541
7638
|
.bw-combobox--size-xl {
|
|
7542
7639
|
--bw-control-height: var(--bw-size-control-height-xl);
|
|
7543
7640
|
--bw-control-padding-inline: var(--bw-size-control-padding-inline-xl);
|
|
7544
7641
|
--bw-control-icon-size: var(--bw-size-control-icon-xl);
|
|
7545
7642
|
--bw-control-gap: var(--bw-size-control-gap-xl);
|
|
7546
|
-
--bw-control-font-size: var(--bw-
|
|
7643
|
+
--bw-control-font-size: var(--bw-font-size-xl);
|
|
7547
7644
|
}
|
|
7548
7645
|
.bw-combobox {
|
|
7549
7646
|
/* Chip block size (CMB-038): the control height less the frame's own
|
|
@@ -9580,7 +9677,7 @@ a.bw-chip {
|
|
|
9580
9677
|
.bw-token-specimen__heading {
|
|
9581
9678
|
margin: 0;
|
|
9582
9679
|
font-family: var(--bw-font-family-sans);
|
|
9583
|
-
font-size: var(--bw-font-size-
|
|
9680
|
+
font-size: var(--bw-font-size-2xl);
|
|
9584
9681
|
font-weight: var(--bw-font-weight-semibold);
|
|
9585
9682
|
color: var(--bw-color-fg);
|
|
9586
9683
|
line-height: var(--bw-font-line-height-snug);
|
|
@@ -11677,7 +11774,7 @@ never colour alone to signal "recommended" (the badge
|
|
|
11677
11774
|
}
|
|
11678
11775
|
|
|
11679
11776
|
.bw-pricing-tier__price-value {
|
|
11680
|
-
font-size: var(--bw-font-size-
|
|
11777
|
+
font-size: var(--bw-font-size-4xl);
|
|
11681
11778
|
font-weight: var(--bw-font-weight-bold);
|
|
11682
11779
|
line-height: var(--bw-font-line-height-tight);
|
|
11683
11780
|
font-variant-numeric: tabular-nums;
|
|
@@ -12261,7 +12358,7 @@ same shape as .bw-cta--bleed). */
|
|
|
12261
12358
|
margin: 0;
|
|
12262
12359
|
color: var(--bw-color-fg-on-inverse);
|
|
12263
12360
|
font-family: var(--bw-text-heading-display-family);
|
|
12264
|
-
font-size: clamp(1.75rem, 6vw, var(--bw-font-size-
|
|
12361
|
+
font-size: clamp(1.75rem, 6vw, var(--bw-font-size-4xl));
|
|
12265
12362
|
overflow-wrap: break-word;
|
|
12266
12363
|
font-weight: var(--bw-text-heading-display-weight);
|
|
12267
12364
|
line-height: var(--bw-text-heading-display-line-height);
|
|
@@ -12886,7 +12983,7 @@ so dark surfaces return to the plain elevation ramp here.
|
|
|
12886
12983
|
.bw-portrait__name {
|
|
12887
12984
|
margin: 0;
|
|
12888
12985
|
font-family: var(--bw-font-family-display);
|
|
12889
|
-
font-size: var(--bw-font-size-
|
|
12986
|
+
font-size: var(--bw-font-size-4xl);
|
|
12890
12987
|
font-weight: var(--bw-font-weight-semibold);
|
|
12891
12988
|
color: var(--bw-color-fg);
|
|
12892
12989
|
line-height: var(--bw-font-line-height-tight);
|
|
@@ -13086,7 +13183,7 @@ ADR-108 reusable marketing proof primitive) ------
|
|
|
13086
13183
|
.bw-proof-collage__heading {
|
|
13087
13184
|
margin: 0;
|
|
13088
13185
|
font-family: var(--bw-font-family-display);
|
|
13089
|
-
font-size: var(--bw-font-size-
|
|
13186
|
+
font-size: var(--bw-font-size-4xl);
|
|
13090
13187
|
font-weight: var(--bw-font-weight-semibold);
|
|
13091
13188
|
color: var(--bw-color-fg);
|
|
13092
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.
|
|
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.
|
|
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
|
|
37
|
-
*
|
|
38
|
-
*
|
|
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
|
|
64
|
-
*
|
|
65
|
-
*
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
@@ -4266,35 +4268,35 @@ a.bw-ranked-list__row:focus-visible .bw-ranked-list__label {
|
|
|
4266
4268
|
--bw-control-padding-inline: var(--bw-size-control-padding-inline-xs);
|
|
4267
4269
|
--bw-control-icon-size: var(--bw-size-control-icon-xs);
|
|
4268
4270
|
--bw-control-gap: var(--bw-size-control-gap-xs);
|
|
4269
|
-
--bw-control-font-size: var(--bw-
|
|
4271
|
+
--bw-control-font-size: var(--bw-font-size-xs);
|
|
4270
4272
|
}
|
|
4271
4273
|
.bw-combobox--size-sm {
|
|
4272
4274
|
--bw-control-height: var(--bw-size-control-height-sm);
|
|
4273
4275
|
--bw-control-padding-inline: var(--bw-size-control-padding-inline-sm);
|
|
4274
4276
|
--bw-control-icon-size: var(--bw-size-control-icon-sm);
|
|
4275
4277
|
--bw-control-gap: var(--bw-size-control-gap-sm);
|
|
4276
|
-
--bw-control-font-size: var(--bw-
|
|
4278
|
+
--bw-control-font-size: var(--bw-font-size-sm);
|
|
4277
4279
|
}
|
|
4278
4280
|
.bw-combobox--size-md {
|
|
4279
4281
|
--bw-control-height: var(--bw-size-control-height-md);
|
|
4280
4282
|
--bw-control-padding-inline: var(--bw-size-control-padding-inline-md);
|
|
4281
4283
|
--bw-control-icon-size: var(--bw-size-control-icon-md);
|
|
4282
4284
|
--bw-control-gap: var(--bw-size-control-gap-md);
|
|
4283
|
-
--bw-control-font-size: var(--bw-
|
|
4285
|
+
--bw-control-font-size: var(--bw-font-size-md);
|
|
4284
4286
|
}
|
|
4285
4287
|
.bw-combobox--size-lg {
|
|
4286
4288
|
--bw-control-height: var(--bw-size-control-height-lg);
|
|
4287
4289
|
--bw-control-padding-inline: var(--bw-size-control-padding-inline-lg);
|
|
4288
4290
|
--bw-control-icon-size: var(--bw-size-control-icon-lg);
|
|
4289
4291
|
--bw-control-gap: var(--bw-size-control-gap-lg);
|
|
4290
|
-
--bw-control-font-size: var(--bw-
|
|
4292
|
+
--bw-control-font-size: var(--bw-font-size-lg);
|
|
4291
4293
|
}
|
|
4292
4294
|
.bw-combobox--size-xl {
|
|
4293
4295
|
--bw-control-height: var(--bw-size-control-height-xl);
|
|
4294
4296
|
--bw-control-padding-inline: var(--bw-size-control-padding-inline-xl);
|
|
4295
4297
|
--bw-control-icon-size: var(--bw-size-control-icon-xl);
|
|
4296
4298
|
--bw-control-gap: var(--bw-size-control-gap-xl);
|
|
4297
|
-
--bw-control-font-size: var(--bw-
|
|
4299
|
+
--bw-control-font-size: var(--bw-font-size-xl);
|
|
4298
4300
|
}
|
|
4299
4301
|
.bw-combobox {
|
|
4300
4302
|
/* Chip block size (CMB-038): the control height less the frame's own
|
|
@@ -6331,7 +6333,7 @@ a.bw-chip {
|
|
|
6331
6333
|
.bw-token-specimen__heading {
|
|
6332
6334
|
margin: 0;
|
|
6333
6335
|
font-family: var(--bw-font-family-sans);
|
|
6334
|
-
font-size: var(--bw-font-size-
|
|
6336
|
+
font-size: var(--bw-font-size-2xl);
|
|
6335
6337
|
font-weight: var(--bw-font-weight-semibold);
|
|
6336
6338
|
color: var(--bw-color-fg);
|
|
6337
6339
|
line-height: var(--bw-font-line-height-snug);
|
package/src/layers/marketing.css
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
/*
|
|
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);
|
package/src/primitives.css
CHANGED
|
@@ -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 {
|