Zazz Design Framework
Reference

Flexbox

Utilities for flex container direction, alignment, and child sizing.

Class reference

Direction

ClassProperty
flex-rowflex-direction: row
flex-row-reverseflex-direction: row-reverse
flex-colflex-direction: column
flex-col-reverseflex-direction: column-reverse

Align items

ClassProperty
items-startalign-items: start
items-centeralign-items: center
items-endalign-items: end
items-stretchalign-items: stretch

Justify content

ClassProperty
justify-startjustify-content: start
justify-centerjustify-content: center
justify-endjustify-content: end
justify-stretchjustify-content: stretch
justify-aroundjustify-content: space-around
justify-betweenjustify-content: space-between

Flex child sizing

ClassProperty
flex-1flex: 1
flex-autoflex: auto
flex-initialflex: initial
flex-noneflex: none

Order

ClassProperty
order-firstorder: -9999
order-lastorder: 9999
order-noneorder: 0

Examples

Horizontal row, vertically centered

<div class="flex items-center gap-md">
  <img src="..." alt="" />
  <span>Label</span>
</div>

Stack with consistent gap

<div class="flex flex-col gap-sm">
  <p>First.</p>
  <p>Second.</p>
  <p>Third.</p>
</div>

Push apart

<header class="flex items-center justify-between gap-md">
  <a href="/">Logo</a>
  <nav class="flex gap-sm">
    <a href="/about">About</a>
    <a href="/pricing">Pricing</a>
  </nav>
</header>

Fill remaining space

<div class="flex gap-md">
  <aside style="width: 200px">Fixed sidebar</aside>
  <main class="flex-1">Fills the rest.</main>
</div>

Gap

Use gap-* utilities for spacing between flex children: gap-xs through gap-xl. Replaces margin-on-each-child patterns and handles wrapping cleanly.

What's not included

Zazz doesn't ship flex-wrap, justify-items, align-self, flex-basis, or flex-grow/flex-shrink utilities by default. Apply directly in CSS when you need them:

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

The defaults cover most layout needs without bloating the utility surface. If your project uses one of these patterns frequently, add it as a custom utility.

On this page