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 #

PresetColumnsRowsGood for
2 columns1fr 1frautoSplit sections, comparison blocks
3 columnsrepeat(3, 1fr)autoFeature rows, pricing tiers
4 columnsrepeat(4, 1fr)autoIcon rows, stats
Sidebar + main240px 1frautoDocs and admin pages (uses named areas)
Header, content, footer1frauto 1fr autoBasic page shell (named areas)
Holy Grail200px 1fr 200pxauto 1fr autoClassic page with nav and aside (named areas)
Dashboard220px repeat(3, 1fr)64px auto 1frSidebar, top bar, stats and charts (named areas)
Magazinerepeat(6, 1fr)auto × 3A large feature with smaller stories
Card gridrepeat(4, minmax(0, 1fr))auto × 2Product and blog cards
Galleryrepeat(4, 1fr)160px × 3Photo grids with mixed sizes
Bentorepeat(4, 1fr)140px × 3Feature showcases
Equal columnsrepeat(6, 1fr)autoLogo strips, toolbars
Asymmetric2fr 1frauto × 2Main 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.