One
A card in the switcher.
Barefoot CSS
Resize the box, not your browser window. Every primitive and component below adapts to the container it sits in. Drag the bottom-right corner of any box, or use the width slider (arrow keys work). Read the live width under each box — the layout reflows while the viewport never moves.
Back to the conformance demo · layout docs.
.bf-flow — rhythm that breathesA vertical stack whose gap tightens as the container narrows (and opens up when wide), via container units. No media query.
A plain paragraph of body text. The vertical rhythm between these blocks is set by the container, not the screen — widen the box and the gap opens up.
Another block. In a narrow sidebar the same markup reads tight; in a wide column it breathes.
And a third, to make the rhythm obvious as you drag.
.bf-switcher — side-by-side ↔ stackedChildren share a row while the container is wide; each drops to its own full-width row when it gets narrow. The switch happens at the container, not the viewport.
A card in the switcher.
Another card.
A third card.
form[data-form="adaptive"] — one-column reflowThe same form collapses its row to one column when the container narrows. The error summary stays hidden until a field is user-invalid — pure CSS.
.bf-sidebar — split ↔ stackThe aside sits beside the main content while the container is wide, then drops below it when the container narrows past the breakpoint (40rem).
A sidebar whose main column is a switcher, holding an adaptive table and an adaptive card. Shrink the box and the sidebar stacks, the switcher stacks, and the table card-stacks — all from one resize.