axi-designv1.50.0

Layout

Stack

Vertical rhythm between siblings, set once on the parent instead of as a margin on every child.

.axi-stack

The gap is a knob rather than a scale step because the two honest spacings - a stack of controls and a stack of panels - differ by more than one step, and a modifier class per spacing is how a layout helper turns into a framework. Setting the gap on the container means the last child never leaves a trailing margin behind.

Three demo rows in a stack

StableAnnotation
<div class="axi-stack" style="--axi-stack-gap: 20px">
  <div class="axi-row"><a class="axi-btn axi-btn--primary" href="#">Primary</a><a class="axi-btn" href="#">Default</a></div>
  <div class="axi-row"><button class="axi-pill" aria-pressed="true" type="button">Pressed</button><button class="axi-pill" aria-pressed="false" type="button">Unpressed</button></div>
  <div class="axi-row"><span class="axi-chip axi-chip--ok">Stable</span><span class="axi-chip axi-chip--meta">Annotation</span></div>
</div>

Knobs

PropertySetsFallback
--axi-stack-gapgap between .axi-stack children12px