layout component

Drop-in semantic component. See examples, sizes, variants, and source.

Layout Components

Layout components replace utility-class chains in component markup. Each one is a semantic noun that takes orthogonal adjectives — primarily compact/spacious for density and horizontal/vertical for orientation.

See CLASS_SYSTEM.md for the full grammar.

Stack

Vertical layout. Default density is cozy (gap-4); use compact for tighter stacks or spacious for breathing room.

Default (cozy)

Item 1
Item 2
Item 3

Compact

Item 1
Item 2
Item 3

Spacious

Item 1
Item 2
Item 3

Row

Horizontal layout, items vertically centered by default.

Default (cozy)

Compact

New Active Error

Spacious

A
B
C

Grid

Auto-responsive grid: 1 column on mobile, 2 on tablet, 3 on desktop.

Default

Card 1
Card 2
Card 3
Card 4
Card 5
Card 6

Spacious

Card 1
Card 2
Card 3

Container

Centered, max-width content wrapper. Default caps at max-w-7xl; compact narrows to max-w-3xl, spacious opens to max-w-screen-2xl.

Default

Page content sits inside this max-width wrapper.

Compact (article width)

Narrower for prose-heavy content.

Spacer

Flex spacer. Bare spacer grows to fill available space. Sized variants (xs/sm/md/lg/xl) take a fixed amount.

Pushing items apart

Fixed spacer (lg)

Bento

Asymmetric grid for marketing/feature blocks. The featured role spans 2×2.

Bento with a featured block

B
C
D
E

Shell

Full-page application frame: a CSS Grid with header / sidebar / main areas. Used as the page-root wrapper for app-shaped layouts. Not previewed inline because it requires height: 100vh.

<div class="shell">
  <header class="header">…</header>
  <aside class="sidebar">…</aside>
  <main class="main">…</main>
</div>