Skip to content

Structure

Structure is how Airframe arranges UI. Two kinds:

Primitives — how children relate. Stack, inline, grid.

Shells — how the viewport is divided. App chrome, cover. Future: mobile page layouts.

A visual index with live previews lives on the structure gallery.

Prefer these classes over display utilities (af-flex, af-justify-*). Reach for Display & Alignment only when a primitive is not enough.

How children relate.

  • Stackaf-stack* — vertical column
  • Inlineaf-inline* — horizontal wrap
  • Clusteraf-cluster — wrap + center alignment
  • Spreadaf-spread — space-between
  • Centeraf-center — center on both axes
  • Gridaf-grid* — equal columns and 12-column system
  • Sidebaraf-sidebar — in-page main + aside grid
  • Containeraf-container* — max-width wrapper
  • Spaceraf-spacer-* — one-off vertical gap
  • Masonryaf-masonry* — experimental waterfall columns

How the viewport is divided. Distinct from primitives. A shell is not a complete screen — that is a blueprint.

  • Appaf-app — dashboard chrome; af-is-collapsed for the icon rail
  • Coveraf-cover — full-viewport cover

Shells overview.

Section and surface are patterns, not structure. See Section & Surface.