Subgrid Card Alignment

When cards in a grid have different content lengths, their internal regions (header, body, footer) sit at different heights. data-layout-subgrid shares row tracks across siblings so regions align. Compare the blue header bands and grey footer bands below.

Without Subgrid

Each card sizes its header, body, and footer independently. The blue header bands end at different heights. The grey footer bands start at different heights.

Setup

Drop a single stylesheet link into your HTML and start building immediately. No bundler, no config, no JavaScript framework required. Works with any backend.

Responsive Grid with Fluid Typography and Container Queries Built In

Reflows automatically.

Theming

Design token control:

  • Color palettes
  • Spacing scale
  • Typography presets
  • Border radius tokens
  • Shadow layers
Accessible by Default with Semantic HTML and ARIA

Screen readers just work.

With Subgrid

Same cards, but children share the parent's row tracks. All blue header bands end at the same line. All grey footer bands start at the same line. Content areas fill the middle uniformly.

Setup

Drop a single stylesheet link into your HTML and start building immediately. No bundler, no config, no JavaScript framework required. Works with any backend.

Responsive Grid with Fluid Typography and Container Queries Built In

Reflows automatically.

Theming

Design token control:

  • Color palettes
  • Spacing scale
  • Typography presets
  • Border radius tokens
  • Shadow layers
Accessible by Default with Semantic HTML and ARIA

Screen readers just work.