Browse CSS

Alignment and text

Align content and apply readable emphasis with theme-aware utilities.

Align items

ClassBehavior
items-startAlign children at the cross-axis start.
items-centerCenter children on the cross axis.
items-endAlign children at the cross-axis end.
items-stretchStretch children across the cross axis.
items-baselineAlign text baselines.
self-startAlign one child at the cross-axis start.
self-centerCenter one child on the cross axis.
self-endAlign one child at the cross-axis end.
self-stretchStretch one child across the cross axis.

Use these with flex or grid containers. A stack’s cross axis is horizontal; a horizontal cluster’s cross axis is vertical.

Distribute content

ClassBehavior
justify-startGroup content at the main-axis start.
justify-centerCenter content along the main axis.
justify-endGroup content at the main-axis end.
justify-betweenPut available space between children.
justify-aroundSpace around children; half as much at the outer edges.
justify-evenlyEqual space between children and outer edges.

Text and tables

ClassBehavior
text-startAlign text at the start of its reading direction.
text-endAlign text at the end of its reading direction.
text-centerCenter text.
align-middleVertically center inline or table-cell content.
font-semiboldFont weight 600.
mutedThe theme’s secondary text color.

Responsive actions

Project overview

Wrapping actions stay aligned on narrow screens.

Explore Buttons
<div class="cluster justify-between items-center gap-md">
  <p class="m-0">Project overview</p>
  <a class="btn secondary" href="/components/button">Explore Buttons</a>
</div>

Right-to-left layouts

Start and end follow dir. Prefer these utilities over left/right CSS when an interface supports multiple languages.

סקירת הפרויקטמוכן
<div class="panel cluster justify-between items-center gap-md" dir="rtl" lang="he">
  <strong>סקירת הפרויקט</strong>
  <span class="badge">מוכן</span>
</div>