Skip to content

Patterns Overview

Airframe includes 70+ CSS patterns organized into 8 categories. This page provides a quick reference to all available patterns.

Base styling patterns for content and layout primitives.

  • Divider - Styled <hr> element
  • Images - Responsive images and figure defaults
  • Links - Link defaults
  • Lists - List defaults and .af-list
  • Section & Surface - Structural containers for spacing and backgrounds
  • Typography - Semantic headings, text roles, blockquote

Interactive elements for user actions and status indicators.

  • Button - Primary button pattern with variants and states
  • Button Group - Grouped buttons with connected styling
  • Icon Button - Icon-only buttons
  • Link Button - Links styled as buttons
  • 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

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

Utility patterns and helpers.

Browse detailed documentation for each category:

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.