The Practical Theme

Toggle Light/Dark

A stack arranges its children in a vertical column with an equal gap between each item, so you don't have to add top or bottom margins to every element you put into it. It's the go-to layout for forms, paragraphs of text, card bodies, and anywhere you want consistent vertical rhythm.

By default, items stretch to fill the stack's width. Pair wa-stack with a wa-gap-* class to control the spacing and a wa-align-items-* class to change how children line up horizontally.

Examples

Stacks are well suited for forms, text, and ensuring consistent spacing between elements in the document flow.

Align Items

By default, items stretch to fill the inline size of the wa-stack container. Add any wa-align-items-* class to change how items line up in the inline direction.

Gap

By default, the gap between stack items uses --wa-space-m from your theme. Add any wa-gap-* class to change the spacing between items.