Layout — Flex
horizontal sets display: flex; flex-direction: row; vertical sets
flex-direction: column. Both are plain switches — see
Responsive below for why they have no @breakpoint form.
<div and-layout="horizontal gap:sm align:center justify:between"> <span>start</span> <span>between</span> <span>end</span></div>Alignment
Section titled “Alignment”| Token | Values | CSS property |
|---|---|---|
align:* | start, end, center, baseline, stretch | align-items |
justify:* | start, end, center, between, around, evenly | justify-content |
wrap:* | nowrap, wrap, wrap-reverse | flex-wrap |
start/end map to flex-start/flex-end; between/around/evenly map to
space-between/space-around/space-evenly.
gap, gap-x (column-gap), gap-y (row-gap) — driven by the same
spacing scale as padding and margin, and the same
selectors work whether the container is horizontal, vertical, or grid (gap
is a CSS property both layout modes share).
<div and-layout="horizontal gap:md">…</div><div and-layout="grid cols:3 gap-x:sm gap-y:lg">…</div>Responsive
Section titled “Responsive”align:*, justify:*, wrap:*, and every gap* token accept a @breakpoint
suffix (see Overview → Responsive for the
breakpoint table). The bare horizontal/vertical switches do not — there’s no
horizontal@md, so this package can’t flip flex direction at a breakpoint on
its own; do that with your own media query on top if you need it.
Next steps
Section titled “Next steps”Recipes — the toolbar, media object, and vertical stack patterns are all built from these tokens directly.