CSS Grid Generator
Draw the layout, name the areas, copy the grid — with the rectangle rule checked as you paint
.layout {
display: grid;
grid-template-columns: 240px 1fr;
grid-template-rows: auto 1fr auto;
grid-template-areas:
"header header"
"sidebar main"
"footer footer";
gap: 16px;
}
.header { grid-area: header; }
.sidebar { grid-area: sidebar; }
.main { grid-area: main; }
.footer { grid-area: footer; }<div class="layout">
<div class="header">header</div>
<div class="sidebar">sidebar</div>
<div class="main">main</div>
<div class="footer">footer</div>
</div>grid grid-cols-[240px_1fr] grid-rows-[auto_1fr_auto] gap-[16px]Now use it on something
Every effect, block, page and template in the catalog is styled against tokens shaped exactly like these — so they take your values rather than fighting them.
npx shadcn@latest add https://hoverlab.dev/r/hoverlab.json
- 1
- 2
- 1
- 2
- 3
Names the regions instead of counting line numbers, so a child says grid-area: sidebar and never has to know which column it landed in. Off, the grid just flows items in order.
Click to paint with main; click a painted cell again to clear it. The map follows the track counts above.
The gutter between tracks. Grid gaps never collapse and never appear on the outside edge, which is the whole reason this replaced margins.
One value emits the short gap: 16px. Off, you get gap: row column — the same order as every other CSS shorthand.
items moves each box inside its own cell. content moves the whole grid inside the container, and only does anything when the tracks add up to less than the space available.
Keep this layout. This browser remembers what you last had open. A free account remembers the ones you name, on every machine you use.
- Flexbox PlaygroundEvery flex container and flex item property on one screen, against a live row you can add to and resize. Shows the three-part flex shorthand as the browser actually resolves it, including the basis-versus-width trap.
- Email TemplatesWelcome, verify, reset and receipt — as nested tables with inline styles, because Outlook renders through Word. Text/plain version included.
- Spacing ScaleGenerate a whole spacing ladder from two decisions: a base unit and a progression — linear multiples or one of the same five modular ratios the typography tool uses. Every step is drawn at its actual size, so you see whether neighbours are distinguishable before you commit. Export as CSS variables, Tailwind spacing config, or JSON.