Grid
The layout grid and the spacing scale.
-
A realistic layout
Sidebar + content + widgets, collapsing to a single column on small screens.
- Equal columns
-
Grid system
A 12-column layout grid. Container .grid-12; children take .col-span-1….col-span-12. Responsive tiers: .col-md-N (≥768px) and .col-lg-N (≥1024px) — combine with a base span for the mobile width, e.g. class="col-span-12 col-md-6 col-lg-4".
-
Gutters
.gap-sm and .gap-lg change the gutter; default is --space-6.
-
How it works
- The 12 columns are minmax(0, 1fr) tracks, so content never overflows its column. - Columns are mobile-first: below 640px every column becomes full width automatically. - .col-md-N takes effect ≥768px, .col-lg-N ≥1024px — later tiers win.
- Mixed widths
-
Nesting
A .grid-12 inside a column starts its own 12 columns.
-
Offsets
Start a column at a specific track with .col-start-N (2–4 provided).
-
Responsive tiers
Stacked on mobile → 2-up on tablet → 3-up on desktop. Resize to watch it change.