Code and presets
Presets
Presets are complete, editable layouts. Load one, then change anything.
Load a preset #
Click a preset under Presets. It replaces the current grid, its tracks, gaps and items. The preset you loaded stays highlighted until you change something. An Undo button appears for a few seconds in case you want your previous layout back.
All presets #
| Preset | Columns | Rows | Good for |
|---|---|---|---|
| 2 columns | 1fr 1fr | auto | Split sections, comparison blocks |
| 3 columns | repeat(3, 1fr) | auto | Feature rows, pricing tiers |
| 4 columns | repeat(4, 1fr) | auto | Icon rows, stats |
| Sidebar + main | 240px 1fr | auto | Docs and admin pages (uses named areas) |
| Header, content, footer | 1fr | auto 1fr auto | Basic page shell (named areas) |
| Holy Grail | 200px 1fr 200px | auto 1fr auto | Classic page with nav and aside (named areas) |
| Dashboard | 220px repeat(3, 1fr) | 64px auto 1fr | Sidebar, top bar, stats and charts (named areas) |
| Magazine | repeat(6, 1fr) | auto × 3 | A large feature with smaller stories |
| Card grid | repeat(4, minmax(0, 1fr)) | auto × 2 | Product and blog cards |
| Gallery | repeat(4, 1fr) | 160px × 3 | Photo grids with mixed sizes |
| Bento | repeat(4, 1fr) | 140px × 3 | Feature showcases |
| Equal columns | repeat(6, 1fr) | auto | Logo strips, toolbars |
| Asymmetric | 2fr 1fr | auto × 2 | Main story with two side items |
Edit after loading #
Presets are ordinary layouts. Rename items, change track sizes, switch named areas on or off, or drag items to new places. For page-height layouts such as Holy Grail, set the height to 100vh in your project.