Layout

Switcher

The .switcher layout arranges items horizontally until its container becomes too narrow, then stacks them vertically.

Use it for responsive groups such as cards, pricing blocks, and feature lists, especially when the number of items varies.

Usage

  • Add class="switcher" to the container element.
  • Optionally, set --switcher-breakpoint to control the width at which the layout changes. The default breakpoint is 68ch.
  • Optionally, set --gap to adjust spacing and --switcher-vertical-alignment to align items vertically.

Default switcher

Starter

For simple projects.

Pro

For growing teams.

Enterprise

For large organizations.

Set a custom breakpoint and gap

Design

Tokens and components.

Build

Layouts and utilities.

Ship

Docs and production bundle.

Scale

Patterns for teams.

Footer