Skip to content

Patterns Overview

Airframe ships 62 CSS patterns, plus typography roles grouped with the gallery. @airframeui/core/catalog is the source of truth. Base element styles (dividers, lists, links) and form helpers are documented here too.

A visual index of every group lives on the patterns gallery.

Base styling patterns for content and layout primitives.

  • Divider - Styled <hr> / vertical aria-orientation
  • Images - Responsive images and figure defaults
  • Link - Link defaults
  • Lists - List defaults and .af-list
  • Section & Surface - Structural containers for spacing and backgrounds

Text roles and page type from typography.css. Full examples: Typography. Utilities: Typography utilities.

  • Text roles - Display, af-text-h*, body, caption, overline
  • Lead - Larger muted intro copy
  • Eyebrow - Uppercase section label (af-is-on-primary on brand)
  • Fluid & stats - Clamp headings and af-stat-display
  • Prose - Readable line length (af-prose, narrow, wide)
  • Blockquote - Native quote and af-blockquote

Action patterns with a shared af-btn grammar.

Status indicators, tags, and loading placeholders.

  • Avatar - User profile images
  • Badge - Small status indicators
  • Chip - Tags, filters, and removable items
  • Icon Box - Icon container for feature cards
  • Pill - Compact labeled chips for tags and meta
  • Skeleton - Content placeholders
  • Spinner - Loading indicators

Complete form patterns for building accessible, user-friendly forms.

Navigation patterns for site navigation, tabs, breadcrumbs, and pagination.

Patterns for displaying content, messages, and status information.

  • Alert - Alert messages
  • Banner - Site-wide banner messages
  • Callout - Subtle alert variant
  • Card - Card layouts and variants
  • Empty State - Empty state displays
  • KPI - Key Performance Indicator displays
  • Meter - Meter elements for measurements
  • Progress - Progress bars
  • Toast - Toast notifications
  • Tooltip - CSS-only tooltips using aria-label

Patterns for displaying structured data and information.

Overlay patterns for modal dialogs, backdrops, and drawers.

  • Backdrop - Full-screen overlay backdrop
  • Dialog - Modal dialogs using native <dialog> element
  • Drawer - Side drawer panels
  • Page Loader - Full-page / auth loader

Browse detailed documentation for each category:

Print helpers (af-no-print, af-page-break*) live with the other utilities, on Print Utilities.

All patterns are available when you import the core CSS:

@import "@airframeui/core/core.css";

Each pattern uses semantic class names with the af- prefix. For example:

  • af-btn for buttons
  • af-card for cards
  • af-input for inputs
  • af-table for tables

See the Usage guide for more information on getting started with Airframe patterns.

Need a whole section? Start from Blocks, then change it. A complete screen? Start from Blueprints, then change that too. Structure arranges UI; patterns are the pieces.