baseline-foundry 0.1.3

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.
Files changed (145) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +588 -0
  3. package/config/experiments/ibm-plex-engine-smoke.json +115 -0
  4. package/config/experiments/ubuntu-engine-smoke.json +115 -0
  5. package/config/foundation-theme.json +117 -0
  6. package/config/tiers/app.json +120 -0
  7. package/config/tiers/documentation.json +120 -0
  8. package/config/tiers/editorial.json +120 -0
  9. package/config/tiers/os.json +120 -0
  10. package/dist/accordion.d.ts +5 -0
  11. package/dist/accordion.js +32 -0
  12. package/dist/application-layout.d.ts +4 -0
  13. package/dist/application-layout.js +181 -0
  14. package/dist/baseline-grid-overlay.d.ts +5 -0
  15. package/dist/baseline-grid-overlay.js +50 -0
  16. package/dist/baseline-grid-theme.d.ts +3 -0
  17. package/dist/baseline-grid-theme.js +3 -0
  18. package/dist/baseline-grid.d.ts +7 -0
  19. package/dist/baseline-grid.js +35 -0
  20. package/dist/build.d.ts +21 -0
  21. package/dist/build.js +440 -0
  22. package/dist/code-snippet.d.ts +6 -0
  23. package/dist/code-snippet.js +95 -0
  24. package/dist/contextual-menu.d.ts +4 -0
  25. package/dist/contextual-menu.js +156 -0
  26. package/dist/css-app-tier.d.ts +1 -0
  27. package/dist/css-app-tier.js +77 -0
  28. package/dist/css-components/article-pagination.d.ts +13 -0
  29. package/dist/css-components/article-pagination.js +151 -0
  30. package/dist/css-components/button-actions.d.ts +7 -0
  31. package/dist/css-components/button-actions.js +165 -0
  32. package/dist/css-components/cards-options.d.ts +6 -0
  33. package/dist/css-components/cards-options.js +180 -0
  34. package/dist/css-components/chip-badge-status.d.ts +10 -0
  35. package/dist/css-components/chip-badge-status.js +162 -0
  36. package/dist/css-components/content-card.d.ts +25 -0
  37. package/dist/css-components/content-card.js +517 -0
  38. package/dist/css-components/control-row.d.ts +2 -0
  39. package/dist/css-components/control-row.js +18 -0
  40. package/dist/css-components/cta-figure-aspect.d.ts +1 -0
  41. package/dist/css-components/cta-figure-aspect.js +123 -0
  42. package/dist/css-components/document-navigation.d.ts +13 -0
  43. package/dist/css-components/document-navigation.js +400 -0
  44. package/dist/css-components/editorial-content.d.ts +6 -0
  45. package/dist/css-components/editorial-content.js +52 -0
  46. package/dist/css-components/icon.d.ts +1 -0
  47. package/dist/css-components/icon.js +75 -0
  48. package/dist/css-components/interactive-feedback.d.ts +2 -0
  49. package/dist/css-components/interactive-feedback.js +230 -0
  50. package/dist/css-components/interactive-tables.d.ts +7 -0
  51. package/dist/css-components/interactive-tables.js +164 -0
  52. package/dist/css-components/linked-logo-site-layout.d.ts +21 -0
  53. package/dist/css-components/linked-logo-site-layout.js +214 -0
  54. package/dist/css-components/list-tree.d.ts +5 -0
  55. package/dist/css-components/list-tree.js +98 -0
  56. package/dist/css-components/list.d.ts +3 -0
  57. package/dist/css-components/list.js +119 -0
  58. package/dist/css-components/logo-media.d.ts +16 -0
  59. package/dist/css-components/logo-media.js +219 -0
  60. package/dist/css-components/navigation-layout.d.ts +5 -0
  61. package/dist/css-components/navigation-layout.js +151 -0
  62. package/dist/css-components/panel.d.ts +6 -0
  63. package/dist/css-components/panel.js +148 -0
  64. package/dist/css-components/search-box-and-filter.d.ts +9 -0
  65. package/dist/css-components/search-box-and-filter.js +267 -0
  66. package/dist/css-components/sites-editorial-ports.d.ts +19 -0
  67. package/dist/css-components/sites-editorial-ports.js +264 -0
  68. package/dist/css-components/sites-foundation.d.ts +17 -0
  69. package/dist/css-components/sites-foundation.js +173 -0
  70. package/dist/css-components/sites-rich-lists.d.ts +18 -0
  71. package/dist/css-components/sites-rich-lists.js +364 -0
  72. package/dist/css-components/static-content-ports.d.ts +14 -0
  73. package/dist/css-components/static-content-ports.js +206 -0
  74. package/dist/css-components/tab-section.d.ts +19 -0
  75. package/dist/css-components/tab-section.js +103 -0
  76. package/dist/css-components/table.d.ts +7 -0
  77. package/dist/css-components/table.js +79 -0
  78. package/dist/css-components/tabs-choice-breadcrumbs.d.ts +9 -0
  79. package/dist/css-components/tabs-choice-breadcrumbs.js +307 -0
  80. package/dist/css-components/tiered-list-equal-height-row.d.ts +1 -0
  81. package/dist/css-components/tiered-list-equal-height-row.js +286 -0
  82. package/dist/css-components.d.ts +2 -0
  83. package/dist/css-components.js +2701 -0
  84. package/dist/css-grid.d.ts +1 -0
  85. package/dist/css-grid.js +179 -0
  86. package/dist/css.d.ts +6 -0
  87. package/dist/css.js +431 -0
  88. package/dist/experiments/ibm-plex-engine-smoke/styles.css +8969 -0
  89. package/dist/experiments/ibm-plex-engine-smoke/surfaces.json +604 -0
  90. package/dist/experiments/ibm-plex-engine-smoke/tokens.json +217 -0
  91. package/dist/in-page-navigation.d.ts +7 -0
  92. package/dist/in-page-navigation.js +136 -0
  93. package/dist/index.d.ts +37 -0
  94. package/dist/index.js +18 -0
  95. package/dist/interactive-feedback.d.ts +14 -0
  96. package/dist/interactive-feedback.js +96 -0
  97. package/dist/interactive-tables.d.ts +28 -0
  98. package/dist/interactive-tables.js +184 -0
  99. package/dist/list-tree.d.ts +4 -0
  100. package/dist/list-tree.js +44 -0
  101. package/dist/panel-drawer.d.ts +4 -0
  102. package/dist/panel-drawer.js +171 -0
  103. package/dist/presets/app-tier/styles.css +9459 -0
  104. package/dist/presets/app-tier/surfaces.json +1225 -0
  105. package/dist/presets/app-tier/tokens.json +221 -0
  106. package/dist/presets/prose/styles.css +9442 -0
  107. package/dist/presets/prose/surfaces.json +1225 -0
  108. package/dist/presets/prose/tokens.json +221 -0
  109. package/dist/presets.d.ts +6 -0
  110. package/dist/presets.js +27 -0
  111. package/dist/range-controls.d.ts +9 -0
  112. package/dist/range-controls.js +73 -0
  113. package/dist/resizable-aside.d.ts +4 -0
  114. package/dist/resizable-aside.js +328 -0
  115. package/dist/side-navigation.d.ts +4 -0
  116. package/dist/side-navigation.js +219 -0
  117. package/dist/styles.css +9442 -0
  118. package/dist/surfaces.json +1225 -0
  119. package/dist/tabs.d.ts +4 -0
  120. package/dist/tabs.js +88 -0
  121. package/dist/tier-registry.d.ts +10 -0
  122. package/dist/tier-registry.js +25 -0
  123. package/dist/tiers/app/styles.css +9459 -0
  124. package/dist/tiers/app/surfaces.json +1225 -0
  125. package/dist/tiers/app/tokens.json +221 -0
  126. package/dist/tiers/documentation/styles.css +9442 -0
  127. package/dist/tiers/documentation/surfaces.json +1225 -0
  128. package/dist/tiers/documentation/tokens.json +221 -0
  129. package/dist/tiers/editorial/styles.css +9442 -0
  130. package/dist/tiers/editorial/surfaces.json +1225 -0
  131. package/dist/tiers/editorial/tokens.json +221 -0
  132. package/dist/tiers/os/styles.css +9442 -0
  133. package/dist/tiers/os/surfaces.json +1225 -0
  134. package/dist/tiers/os/tokens.json +221 -0
  135. package/dist/tokens.json +221 -0
  136. package/dist/tooltip.d.ts +4 -0
  137. package/dist/tooltip.js +70 -0
  138. package/dist/top-navigation.d.ts +4 -0
  139. package/dist/top-navigation.js +354 -0
  140. package/dist/types.d.ts +155 -0
  141. package/dist/types.js +1 -0
  142. package/dist/vanilla-theme-colors.d.ts +5 -0
  143. package/dist/vanilla-theme-colors.js +208 -0
  144. package/docs/publishing.md +66 -0
  145. package/package.json +108 -0
@@ -0,0 +1,307 @@
1
+ export function tabsChoiceBreadcrumbsCss(options) {
2
+ const { bodyCaseTypeStyles, bodyStrongTypeStyles, bodyTypeStyles, buttonMarginBottom, buttonPadding, } = options;
3
+ return `:where(.bf-theme) :where(.bf-tabs) {
4
+ display: grid;
5
+ min-inline-size: 0;
6
+ }
7
+
8
+ :where(.bf-theme) :where(.bf-tabs-list) {
9
+ border-bottom: var(--bf-border-width) solid var(--bf-color-border-default);
10
+ display: flex;
11
+ gap: 0;
12
+ list-style: none;
13
+ /* Tabs keep their occupied block on the grid at the list boundary rather
14
+ than leaving each link's control compensation between its active rule and
15
+ the list rule. */
16
+ margin: 0 0 calc((var(--bf-baseline) * 2) - var(--bf-border-width));
17
+ min-inline-size: 0;
18
+ overflow-x: auto;
19
+ padding: 0;
20
+ white-space: nowrap;
21
+ }
22
+
23
+ :where(.bf-theme) :where(.bf-tabs-item) {
24
+ margin: 0;
25
+ min-inline-size: 0;
26
+ padding: 0;
27
+ }
28
+
29
+ :where(.bf-theme) :where(.bf-tabs-link) {
30
+ ${bodyTypeStyles} align-items: center;
31
+ background: transparent;
32
+ border: 0;
33
+ border-bottom: var(--bf-bar-thickness) solid transparent;
34
+ color: var(--bf-color-text-muted);
35
+ cursor: pointer;
36
+ display: inline-flex;
37
+ gap: calc(var(--bf-baseline) * 0.5);
38
+ justify-content: center;
39
+ margin-bottom: 0;
40
+ padding-block-end: calc(var(--bf-body-nudge-end) + var(--bf-baseline) - var(--bf-bar-thickness));
41
+ padding-block-start: var(--bf-body-nudge-start);
42
+ padding-inline: var(--bf-control-inline-padding-action);
43
+ text-decoration: none;
44
+ }
45
+
46
+ :where(.bf-theme) :where(.bf-tabs-link:hover) {
47
+ background: var(--bf-color-background-hover);
48
+ color: var(--bf-color-text-default);
49
+ }
50
+
51
+ :where(.bf-theme) :where(.bf-tabs-link:focus:not(:focus-visible)) {
52
+ outline: none;
53
+ }
54
+
55
+ :where(.bf-theme) :where(.bf-tabs-link:focus-visible) {
56
+ color: var(--bf-color-text-default);
57
+ outline: 2px solid var(--bf-color-focus);
58
+ outline-offset: -2px;
59
+ }
60
+
61
+ :where(.bf-theme) :where(.bf-tabs-link.is-active, .bf-tabs-link[aria-selected='true']) {
62
+ border-bottom-color: var(--bf-color-text-default);
63
+ color: var(--bf-color-text-default);
64
+ }
65
+
66
+ :where(.bf-theme) :where(.bf-tabs-panel) {
67
+ min-inline-size: 0;
68
+ }
69
+
70
+ :where(.bf-theme) :where(.bf-tabs-panel)[aria-hidden='true'] {
71
+ display: none;
72
+ }
73
+
74
+ :where(.bf-theme) :where(.bf-tabs.is-equal) {
75
+ --bf-ui-tabs-equal-min: 8rem;
76
+ }
77
+
78
+ :where(.bf-theme) :where(.bf-tabs.is-equal) :where(.bf-tabs-list) {
79
+ display: grid;
80
+ gap: calc(var(--bf-baseline) * 2);
81
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--bf-ui-tabs-equal-min)), 1fr));
82
+ overflow: visible;
83
+ white-space: normal;
84
+ }
85
+
86
+ :where(.bf-theme) :where(.bf-tabs.is-equal) :where(.bf-tabs-item) {
87
+ min-inline-size: 0;
88
+ white-space: normal;
89
+ }
90
+
91
+ :where(.bf-theme) :where(.bf-tabs.is-equal) :where(.bf-tabs-link) {
92
+ display: flex;
93
+ inline-size: 100%;
94
+ text-align: center;
95
+ white-space: normal;
96
+ }
97
+
98
+ :where(.bf-theme) :where(.bf-choice-list) {
99
+ display: grid;
100
+ gap: var(--bf-field-gap);
101
+ }
102
+
103
+ :where(.bf-theme) :where(.bf-choice-row) {
104
+ align-items: center;
105
+ background: var(--bf-color-background-default);
106
+ border: var(--bf-border-width) solid var(--bf-color-border-default);
107
+ color: var(--bf-color-text-default);
108
+ cursor: pointer;
109
+ display: grid;
110
+ gap: calc(var(--bf-baseline) * 0.75);
111
+ grid-template-columns: auto minmax(0, 1fr) auto;
112
+ margin: 0 0 ${buttonMarginBottom};
113
+ min-inline-size: 0;
114
+ ${buttonPadding} padding-inline: var(--bf-control-inline-padding-field);
115
+ }
116
+
117
+ :where(.bf-theme) :where(.bf-choice-row:hover) {
118
+ background: var(--bf-color-background-hover);
119
+ }
120
+
121
+ :where(.bf-theme) :where(.bf-choice-row:has(:focus-visible)) {
122
+ outline: 2px solid var(--bf-color-focus);
123
+ outline-offset: -2px;
124
+ }
125
+
126
+ :where(.bf-theme) :where(.bf-choice-row input[type='radio']) {
127
+ margin: 0;
128
+ }
129
+
130
+ :where(.bf-theme) :where(.bf-choice-row-name) {
131
+ ${bodyStrongTypeStyles} display: block;
132
+ margin: 0;
133
+ min-inline-size: 0;
134
+ overflow: hidden;
135
+ text-overflow: ellipsis;
136
+ }
137
+
138
+ :where(.bf-theme) :where(.bf-choice-row-meta) {
139
+ ${bodyTypeStyles} color: var(--bf-color-text-muted);
140
+ display: block;
141
+ margin: 0;
142
+ min-inline-size: 0;
143
+ overflow: hidden;
144
+ text-overflow: ellipsis;
145
+ white-space: nowrap;
146
+ }
147
+
148
+ :where(.bf-theme) :where(.bf-choice-row.is-active),
149
+ :where(.bf-theme) :where(.bf-choice-row:has(input[type='radio']:checked)) {
150
+ background: var(--bf-color-background-active);
151
+ border-color: var(--bf-color-focus);
152
+ }
153
+
154
+ :where(.bf-theme) :where(.bf-inline-options) {
155
+ border-bottom: var(--bf-border-width) solid var(--bf-color-border-default);
156
+ display: grid;
157
+ gap: var(--bf-field-gap);
158
+ padding-block-end: calc(var(--bf-panel-padding-block) - var(--bf-border-width));
159
+ padding-block-start: var(--bf-panel-padding-block);
160
+ padding-inline: var(--bf-panel-padding-inline);
161
+ }
162
+
163
+ :where(.bf-theme) :where(.bf-inline-options-heading) {
164
+ ${bodyCaseTypeStyles} color: var(--bf-color-text-muted);
165
+ display: block;
166
+ margin: 0;
167
+ }
168
+
169
+ :where(.bf-theme) :where(.bf-inline-options-heading) :where(.bf-form-label) {
170
+ color: inherit;
171
+ }
172
+
173
+ :where(.bf-theme) :where(.bf-inline-options-options) {
174
+ display: flex;
175
+ flex-wrap: wrap;
176
+ gap: calc(var(--bf-baseline) * 3);
177
+ }
178
+
179
+ :where(.bf-theme) :where(.bf-inline-options-option) {
180
+ align-items: center;
181
+ cursor: pointer;
182
+ display: flex;
183
+ gap: var(--bf-field-gap);
184
+ }
185
+
186
+ :where(.bf-theme) :where(.bf-inline-options-option) input[type='radio'] {
187
+ margin: 0;
188
+ }
189
+
190
+ :where(.bf-theme) :where(.bf-segmented-control, .bf-tab-buttons) {
191
+ display: block;
192
+ min-inline-size: 0;
193
+ }
194
+
195
+ :where(.bf-theme) :where(.bf-segmented-control-list, .bf-tab-buttons-list) {
196
+ display: flex;
197
+ flex-wrap: wrap;
198
+ list-style: none;
199
+ margin: 0;
200
+ min-inline-size: 0;
201
+ padding: 0;
202
+ }
203
+
204
+ :where(.bf-theme) :where(.bf-segmented-control-item, .bf-tab-buttons-item) {
205
+ margin: 0;
206
+ min-inline-size: 0;
207
+ padding: 0;
208
+ }
209
+
210
+ :where(.bf-theme) :where(.bf-segmented-control-item + .bf-segmented-control-item, .bf-tab-buttons-item + .bf-tab-buttons-item) {
211
+ margin-inline-start: calc(var(--bf-border-width) * -1);
212
+ }
213
+
214
+ :where(.bf-theme) :where(.bf-segmented-control-button, .bf-tab-buttons-button) {
215
+ ${bodyTypeStyles} align-items: center;
216
+ appearance: none;
217
+ background-color: var(--bf-color-background-default);
218
+ border: var(--bf-border-width) solid var(--bf-color-border-high-contrast);
219
+ border-radius: 0;
220
+ color: var(--bf-color-text-default);
221
+ cursor: pointer;
222
+ display: inline-flex;
223
+ justify-content: center;
224
+ margin-bottom: ${buttonMarginBottom};
225
+ max-inline-size: 100%;
226
+ overflow: hidden;
227
+ ${buttonPadding} padding-inline: var(--bf-control-inline-padding-action);
228
+ text-align: center;
229
+ text-decoration: none;
230
+ text-overflow: ellipsis;
231
+ white-space: nowrap;
232
+ }
233
+
234
+ :where(.bf-theme) :where(.bf-segmented-control-item:first-child .bf-segmented-control-button, .bf-tab-buttons-item:first-child .bf-tab-buttons-button) {
235
+ border-end-start-radius: var(--bf-radius);
236
+ border-start-start-radius: var(--bf-radius);
237
+ }
238
+
239
+ :where(.bf-theme) :where(.bf-segmented-control-item:last-child .bf-segmented-control-button, .bf-tab-buttons-item:last-child .bf-tab-buttons-button) {
240
+ border-end-end-radius: var(--bf-radius);
241
+ border-start-end-radius: var(--bf-radius);
242
+ }
243
+
244
+ :where(.bf-theme) :where(.bf-segmented-control-button:hover, .bf-tab-buttons-button:hover) {
245
+ background-color: var(--bf-color-background-hover);
246
+ }
247
+
248
+ :where(.bf-theme) :where(.bf-segmented-control-button:focus:not(:focus-visible), .bf-tab-buttons-button:focus:not(:focus-visible)) {
249
+ outline: none;
250
+ }
251
+
252
+ :where(.bf-theme) :where(.bf-segmented-control-button:focus-visible, .bf-tab-buttons-button:focus-visible) {
253
+ outline: 2px solid var(--bf-color-focus);
254
+ outline-offset: -2px;
255
+ z-index: 2;
256
+ }
257
+
258
+ :where(.bf-theme) :where(.bf-segmented-control-button.is-active, .bf-tab-buttons-button.is-active, .bf-segmented-control-button[aria-pressed='true'], .bf-tab-buttons-button[aria-pressed='true'], .bf-segmented-control-button[aria-selected='true'], .bf-tab-buttons-button[aria-selected='true']) {
259
+ background-color: var(--bf-color-background-active);
260
+ color: var(--bf-color-text-default);
261
+ z-index: 1;
262
+ }
263
+
264
+ :where(.bf-theme) :where(.bf-breadcrumbs) {
265
+ display: block;
266
+ margin: 0;
267
+ width: 100%;
268
+ }
269
+
270
+ :where(.bf-theme) :where(.bf-breadcrumbs-items) {
271
+ align-items: center;
272
+ display: flex;
273
+ flex-wrap: wrap;
274
+ gap: calc(var(--bf-baseline) * 0.5) calc(var(--bf-baseline) * 1.25);
275
+ list-style: none;
276
+ margin: 0;
277
+ min-inline-size: 0;
278
+ padding: 0;
279
+ }
280
+
281
+ :where(.bf-theme) :where(.bf-breadcrumbs-item) {
282
+ ${bodyCaseTypeStyles} color: var(--bf-color-text-muted);
283
+ margin: 0;
284
+ min-inline-size: 0;
285
+ }
286
+
287
+ :where(.bf-theme) :where(.bf-breadcrumbs-item) + :where(.bf-breadcrumbs-item)::before {
288
+ color: var(--bf-color-text-muted);
289
+ content: "/";
290
+ margin-inline-end: calc(var(--bf-baseline) * 0.75);
291
+ }
292
+
293
+ :where(.bf-theme) :where(.bf-breadcrumbs-item) a {
294
+ color: inherit;
295
+ text-decoration: none;
296
+ }
297
+
298
+ :where(.bf-theme) :where(.bf-breadcrumbs-item) a:hover {
299
+ color: var(--bf-color-text-default);
300
+ text-decoration: underline;
301
+ }
302
+
303
+ :where(.bf-theme) :where(.bf-breadcrumbs-item [aria-current='page'], .bf-breadcrumbs-item.is-active) {
304
+ color: var(--bf-color-text-default);
305
+ }
306
+ `;
307
+ }
@@ -0,0 +1 @@
1
+ export declare function tieredListEqualHeightRowCss(): string;
@@ -0,0 +1,286 @@
1
+ export function tieredListEqualHeightRowCss() {
2
+ return `/* ------------------------------------------------------------------ */
3
+ /* Tiered list */
4
+ /* Editorial pattern (Vanilla parity): paired list of titles + */
5
+ /* descriptions under a top-level title + description, with optional */
6
+ /* CTA. Vanilla uses media queries at tablet/desktop; Baseline Foundry */
7
+ /* uses container queries on the pattern itself so the layout reacts */
8
+ /* to its own width (panels, drawers, narrow main areas) instead of */
9
+ /* the viewport. Stack gaps own semantics; text keeps compensation. */
10
+ /* ------------------------------------------------------------------ */
11
+
12
+ :where(.bf-theme) :where(.bf-tiered-list) {
13
+ container-type: inline-size;
14
+ display: grid;
15
+ gap: var(--bf-section-space-shallow);
16
+ }
17
+
18
+ :where(.bf-theme) :where(.bf-tiered-list-items) {
19
+ display: grid;
20
+ gap: var(--bf-section-space-shallow);
21
+ }
22
+
23
+ :where(.bf-theme) :where(.bf-tiered-list-header),
24
+ :where(.bf-theme) :where(.bf-tiered-list-item),
25
+ :where(.bf-theme) :where(.bf-tiered-list-cta) {
26
+ column-gap: var(--bf-grid-gap-inline);
27
+ display: grid;
28
+ grid-template-columns: minmax(0, 1fr);
29
+ }
30
+
31
+ /* Consumer-proven compact rows. These are deliberately independent of the
32
+ editorial hanging-indent composition below: flush rows describe a plain
33
+ two-slot datum while triple rows add a named intermediate role. */
34
+ :where(.bf-theme) :where(.bf-tiered-list.is-flush, .bf-tiered-list.is-triple) :where(.bf-tiered-list-item) {
35
+ align-items: start;
36
+ grid-template-columns: minmax(0, 1fr);
37
+ }
38
+
39
+ :where(.bf-theme) :where(.bf-tiered-list-item-label, .bf-tiered-list-item-role, .bf-tiered-list-item-value) {
40
+ display: block;
41
+ font-family: var(--bf-body-font-family);
42
+ font-size: var(--bf-body-font-size);
43
+ font-style: var(--bf-body-font-style);
44
+ font-weight: var(--bf-body-font-weight);
45
+ line-height: var(--bf-body-line-height);
46
+ margin-block: 0 var(--bf-body-margin-bottom);
47
+ min-inline-size: 0;
48
+ overflow-wrap: anywhere;
49
+ padding-block-end: 0;
50
+ padding-block-start: var(--bf-body-nudge-start);
51
+ }
52
+
53
+ :where(.bf-theme) :where(.bf-tiered-list-item-role) {
54
+ color: var(--bf-color-text-muted);
55
+ }
56
+
57
+ :where(.bf-theme) :where(ol.bf-tiered-list, ul.bf-tiered-list, ol.bf-tiered-list-items, ul.bf-tiered-list-items) {
58
+ list-style: none;
59
+ margin: 0;
60
+ padding: 0;
61
+ }
62
+
63
+ :where(.bf-theme) :where(.bf-tiered-list-header) > :where(.bf-rule),
64
+ :where(.bf-theme) :where(.bf-tiered-list-item) > :where(.bf-rule),
65
+ :where(.bf-theme) :where(.bf-tiered-list-cta) > :where(.bf-rule) {
66
+ grid-column: 1 / -1;
67
+ }
68
+
69
+ /* ------------------------------------------------------------------ */
70
+ /* Medium container (≥ 38.75rem): items use BF’s 8-column grid with a */
71
+ /* hanging indent. Vanilla: title col 3 / span 2, description col 5 / */
72
+ /* span 4. The rule above each item starts at col 3 to match. */
73
+ /* ------------------------------------------------------------------ */
74
+ @container (width >= 38.75rem) {
75
+ :where(.bf-theme) :where(.bf-tiered-list:not(.is-list-full-width):not(.is-flush):not(.is-triple)) :where(.bf-tiered-list-item),
76
+ :where(.bf-theme) :where(.bf-tiered-list:not(.is-list-full-width):not(.is-flush):not(.is-triple)) :where(.bf-tiered-list-cta) {
77
+ grid-template-columns: repeat(8, minmax(0, 1fr));
78
+ }
79
+
80
+ :where(.bf-theme) :where(.bf-tiered-list:not(.is-list-full-width):not(.is-flush):not(.is-triple)) :where(.bf-tiered-list-item) > :where(.bf-rule),
81
+ :where(.bf-theme) :where(.bf-tiered-list:not(.is-list-full-width):not(.is-flush):not(.is-triple)) :where(.bf-tiered-list-cta) > :where(.bf-rule) {
82
+ grid-column: 3 / span 6;
83
+ }
84
+
85
+ :where(.bf-theme) :where(.bf-tiered-list:not(.is-list-full-width):not(.is-flush):not(.is-triple)) :where(.bf-tiered-list-item-title) {
86
+ grid-column: 3 / span 2;
87
+ }
88
+
89
+ :where(.bf-theme) :where(.bf-tiered-list:not(.is-list-full-width):not(.is-flush):not(.is-triple)) :where(.bf-tiered-list-item-description),
90
+ :where(.bf-theme) :where(.bf-tiered-list:not(.is-list-full-width):not(.is-flush):not(.is-triple)) :where(.bf-tiered-list-cta-block) {
91
+ grid-column: 5 / span 4;
92
+ }
93
+ }
94
+
95
+ /* ------------------------------------------------------------------ */
96
+ /* Header split (≥ 64.75rem): unchanged 50/50 title/description. */
97
+ /* ------------------------------------------------------------------ */
98
+ @container (width >= 64.75rem) {
99
+ :where(.bf-theme) :where(.bf-tiered-list:not(.is-description-full-width)) :where(.bf-tiered-list-header) {
100
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
101
+ }
102
+ }
103
+
104
+ /* ------------------------------------------------------------------ */
105
+ /* Equal-height row (Vanilla parity). */
106
+ /* Cross-column row alignment via CSS subgrid: each column is a 4-row */
107
+ /* subgrid so items at the same vertical position across columns share */
108
+ /* the same baseline (e.g. icon row, title row, description row, */
109
+ /* trailing list row). Vanilla uses media queries; BF uses container */
110
+ /* queries on the row itself so the layout reacts to its own width. */
111
+ /* Optional cross-column dividers via .is-divider-1 / -2 / -3 mirror */
112
+ /* Vanilla’s has-divider-N modifiers (renamed for the BF is-* rule). */
113
+ /* ------------------------------------------------------------------ */
114
+ :where(.bf-theme) :where(.bf-equal-height-row) {
115
+ container-type: inline-size;
116
+ display: grid;
117
+ gap: var(--bf-grid-gap-block) var(--bf-grid-gap-inline);
118
+ /* Keep the logical track system on the query container itself. Container
119
+ queries cannot style their own container, so responsive descendants span
120
+ these tracks instead of relying on an ineligible self-query. */
121
+ grid-template-columns: repeat(8, minmax(0, 1fr));
122
+ margin-block-end: var(--bf-section-space-shallow);
123
+ position: relative;
124
+ }
125
+
126
+ :where(.bf-theme) :where(.bf-equal-height-row-col) {
127
+ border-block-start: var(--bf-border-width) solid var(--bf-color-border-low-contrast);
128
+ display: grid;
129
+ grid-column: 1 / -1;
130
+ grid-row: span 4;
131
+ grid-template-rows: subgrid;
132
+ margin-block-end: var(--bf-space-1);
133
+ position: relative;
134
+ }
135
+
136
+ /* Responsive aspect media can make a shared subgrid track land between
137
+ baselines. Snap that media box itself; the surrounding composition still
138
+ does not own or erase any child's semantic margins. */
139
+ @supports (block-size: calc-size(auto, round(up, size, 1px))) {
140
+ :where(.bf-theme) :where(.bf-equal-height-row-item) > :where(.bf-aspect) {
141
+ block-size: calc-size(auto, round(up, size, var(--bf-baseline)));
142
+ }
143
+ }
144
+
145
+ :where(.bf-theme) :where(.bf-equal-height-row-col.is-borderless) {
146
+ border-block-start: 0;
147
+ }
148
+
149
+ @container (width >= 38.75rem) {
150
+ :where(.bf-theme) :where(.bf-equal-height-row-col) {
151
+ grid-column: span 8;
152
+ grid-template-columns: subgrid;
153
+ }
154
+
155
+ :where(.bf-theme) :where(.bf-equal-height-row-col) > :where(.bf-equal-height-row-item) {
156
+ grid-column: span 4;
157
+ }
158
+
159
+ :where(.bf-theme) :where(.bf-equal-height-row-col) > :where(.bf-equal-height-row-item):first-child {
160
+ grid-row: span 100;
161
+ }
162
+
163
+ :where(.bf-theme) :where(.bf-equal-height-row.is-wrap) :where(.bf-equal-height-row-col) {
164
+ grid-column: span 4;
165
+ grid-template-columns: none;
166
+ }
167
+
168
+ :where(.bf-theme) :where(.bf-equal-height-row.is-wrap) :where(.bf-equal-height-row-col) > :where(.bf-equal-height-row-item) {
169
+ grid-column: auto;
170
+ }
171
+
172
+ :where(.bf-theme) :where(.bf-equal-height-row.is-wrap) :where(.bf-equal-height-row-col) > :where(.bf-equal-height-row-item):first-child {
173
+ grid-row: auto;
174
+ }
175
+ }
176
+
177
+ @container (width >= 64.75rem) {
178
+ :where(.bf-theme) :where(.bf-equal-height-row-col) {
179
+ border-block-start: 0;
180
+ grid-column: span 2;
181
+ margin-block-end: 0;
182
+ }
183
+ }
184
+
185
+ /* The Sites equal-heights composition constrains two-item groups to the
186
+ trailing half of the large grid and three-item groups to its trailing
187
+ three quarters. These modifiers preserve those rendered proportions while
188
+ keeping the existing equal-height row as the single alignment primitive. */
189
+ @media (width >= 64.75rem) {
190
+ :where(.bf-theme) :where(.bf-equal-height-row.is-columns-2) {
191
+ inline-size: calc(50% - (var(--bf-grid-gap-inline) / 2));
192
+ margin-inline-start: auto;
193
+ }
194
+
195
+ :where(.bf-theme) :where(.bf-equal-height-row.is-columns-2) :where(.bf-equal-height-row-col) {
196
+ grid-column: span 4;
197
+ }
198
+
199
+ :where(.bf-theme) :where(.bf-equal-height-row.is-columns-3) {
200
+ grid-template-columns: repeat(6, minmax(0, 1fr));
201
+ inline-size: calc(75% - (var(--bf-grid-gap-inline) / 4));
202
+ margin-inline-start: auto;
203
+ }
204
+
205
+ :where(.bf-theme) :where(.bf-equal-height-row.is-columns-3) :where(.bf-equal-height-row-col) {
206
+ grid-column: span 2;
207
+ }
208
+ }
209
+
210
+ /* Cross-column dividers — Vanilla pattern uses a single ::before for */
211
+ /* divider-1 and a single ::after for divider-2; the third divider */
212
+ /* falls back onto whichever pseudo is still available. */
213
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-1)::before,
214
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-2)::after,
215
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-3:not(.is-divider-1))::before,
216
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-3:not(.is-divider-2))::after {
217
+ background-color: var(--bf-color-border-low-contrast);
218
+ block-size: 1px;
219
+ content: "";
220
+ display: none;
221
+ grid-column: 1 / -1;
222
+ inset-inline: 0;
223
+ margin: auto;
224
+ position: absolute;
225
+ }
226
+
227
+ @container (width >= 64.75rem) {
228
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-1)::before,
229
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-2)::after,
230
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-3:not(.is-divider-1))::before,
231
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-3:not(.is-divider-2))::after {
232
+ display: block;
233
+ }
234
+ }
235
+
236
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-1)::before {
237
+ grid-row: 2;
238
+ }
239
+
240
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-2)::after {
241
+ grid-row: 3;
242
+ }
243
+
244
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-3:not(.is-divider-1))::before,
245
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-3:not(.is-divider-2))::after,
246
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-3:not(.is-divider-1):not(.is-divider-2))::before {
247
+ grid-row: 4;
248
+ }
249
+
250
+ :where(.bf-theme) :where(.bf-equal-height-row.is-divider-3:not(.is-divider-1):not(.is-divider-2))::after {
251
+ display: none;
252
+ }
253
+
254
+ /* Flush and triple rows remain intrinsic at narrow widths, then gain their
255
+ aligned slots only when their own container has room. */
256
+ @container (width >= 32rem) {
257
+ :where(.bf-theme) :where(.bf-tiered-list.is-flush) :where(.bf-tiered-list-item) {
258
+ grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
259
+ }
260
+
261
+ :where(.bf-theme) :where(.bf-tiered-list.is-flush) :where(.bf-tiered-list-item-label, .bf-tiered-list-item-title) {
262
+ grid-column: 1;
263
+ }
264
+
265
+ :where(.bf-theme) :where(.bf-tiered-list.is-flush) :where(.bf-tiered-list-item-value, .bf-tiered-list-item-description) {
266
+ grid-column: 2;
267
+ }
268
+
269
+ :where(.bf-theme) :where(.bf-tiered-list.is-triple) :where(.bf-tiered-list-item) {
270
+ grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
271
+ }
272
+
273
+ :where(.bf-theme) :where(.bf-tiered-list.is-triple) :where(.bf-tiered-list-item-label) {
274
+ grid-column: 1;
275
+ }
276
+
277
+ :where(.bf-theme) :where(.bf-tiered-list.is-triple) :where(.bf-tiered-list-item-role) {
278
+ grid-column: 2;
279
+ }
280
+
281
+ :where(.bf-theme) :where(.bf-tiered-list.is-triple) :where(.bf-tiered-list-item-value) {
282
+ grid-column: 3;
283
+ }
284
+ }
285
+ `;
286
+ }
@@ -0,0 +1,2 @@
1
+ import type { ThemeSurface, ThemeTokens } from "./types.js";
2
+ export declare function componentsCss(tokens: ThemeTokens, themeSurfaces?: ThemeSurface[]): string;