Sub topic 7
Layout, grids, and spacing rules
This chapter assumes you can build a layout in Figma, Illustrator, or InDesign. It also assumes you know what a column, a gutter, and a margin are, and that you have read the chapter on how a guideline document is organized. Here you learn how to read the layout section of a brand guide, apply it to different formats, and keep spacing consistent when the format changes.
What layout rules settle
Color and type tell you what the brand looks like in pieces. Layout rules tell you how the pieces sit together. A layout section usually settles four decisions:
- Structure: how many columns the grid has, how wide the gutters and margins are, and where content may sit.
- Spacing: the base unit and the allowed steps, so gaps between elements are never arbitrary.
- Alignment and hierarchy: where the logo, headline, and body text go, and which edges they align to.
- Whitespace: how much empty space the brand expects, often described as "generous" or "open."
Two designers working from the same grid should produce pages that feel related, even for different products.
Reading the grid specification
A grid specification is a set of numbers per format. A typical guide gives a table like this one. The values are an invented example brand.
| Format | Columns | Gutter | Outer margin |
|---|---|---|---|
| Web, 1024 px and wider | 12 | 24 px | 32 px |
| Web, below 768 px | 4 | 16 px | 16 px |
| A4 print | 6 | 5 mm | 15 mm |
| Social post, 1080 × 1080 px | 4 | 24 px | 64 px |
Read the table for these details before you build:
- Units. Print uses millimeters or points, and screens use pixels. Do not convert by eye. Use the unit the guide gives.
- Breakpoints. The guide may name the widths at which the grid changes. Use those exact widths, not the ones your framework ships with.
- Fixed or fluid. Some guides fix margins and let columns flex. Others fix column width. If the guide does not say, check its own sample layouts.
- Safe areas. Social, video, and print formats often need an area kept free of content, such as a bleed or a platform interface zone.
The spacing scale
Most guides define one base unit and allow only multiples of it. The example brand uses 8 px, the --brand-space-unit value you saw in the token examples. Allowed gaps are 8, 16, 24, 32, 48 px, and so on.
A scale helps in three ways. It removes small decisions, since you pick a step instead of a number. It makes inconsistency visible, because a 13 px gap stands out. It also makes handoff easier, because a developer can read your spacing as named steps.
Some guides add a half step (4 px) for tight pairs such as an icon beside its label. Use it only if the guide lists it. If the guide gives no half step, an off-scale gap is a deviation you should flag, not a small adjustment.
Many guides tie spacing to the logo as well, using the clear space unit from the logo chapter. For example, "section padding is at least 2x the logo mark height." When a rule is written relative to the logo, measure from the logo as placed, not from the master file.
Encoding a grid in CSS
This stylesheet builds the example grid from the table. It reuses the 8 px unit as the one source for spacing, so the grid and the spacing scale cannot drift apart.
:root {
--brand-space-unit: 8px;
--space-1: var(--brand-space-unit);
--space-2: calc(var(--brand-space-unit) * 2);
--space-3: calc(var(--brand-space-unit) * 3);
--space-4: calc(var(--brand-space-unit) * 4);
--space-6: calc(var(--brand-space-unit) * 6);
--grid-columns: 12;
--grid-gutter: var(--space-3);
--grid-margin: var(--space-4);
--content-max: 1200px;
}
@media (max-width: 767px) {
:root {
--grid-columns: 4;
--grid-gutter: var(--space-2);
--grid-margin: var(--space-2);
}
}
.page {
max-width: var(--content-max);
margin-inline: auto;
padding-inline: var(--grid-margin);
}
.grid {
display: grid;
grid-template-columns: repeat(var(--grid-columns), 1fr);
column-gap: var(--grid-gutter);
row-gap: var(--space-3);
}
.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }
@media (max-width: 767px) {
.span-8,
.span-4 { grid-column: span 4; }
}
.section {
padding-block: var(--space-6);
}The breakpoint changes only the custom properties and the column spans. Nothing else needs to know the grid changed, which is the main benefit of expressing rules as variables.
From grid to layout decisions
The grid is a frame. The brand rules tell you how to use it. Work through the same steps each time:
- Choose the format and its grid. Set up columns, gutters, and margins in your tool before placing anything.
- Place the anchors first. Put the logo in its approved position, then the headline. Guides usually fix the logo to a corner or a defined zone, with clear space around it.
- Align to column edges. Text blocks and images should start and end on column boundaries. An element that floats between columns reads as a mistake.
- Space with the scale. Give related items small steps and separate groups with larger steps. Spacing within a group should always be smaller than spacing between groups.
- Check the whitespace. If the guide asks for generous space, resist filling every gap. Empty space is part of the brand.
The diagram shows the order of these checks.
Adapting layouts across formats
Most real work involves a format the guide only partly covers. A banner, a slide deck, or a packaging sleeve may have no grid of its own. Use these principles to adapt without breaking the rules:
- Keep the ratios, not the pixels. If the web grid uses a 24 px gutter at 1200 px, the gutter is 2% of the width. Scale proportionally for a wider or narrower format, then round to the nearest step on the spacing scale.
- Keep the unit. Even in a custom format, build spacing from the base unit.
- Keep the hierarchy. The logo, headline, and supporting text keep their relative order and prominence, even if their positions change.
- Keep the clear space. Logo clear space does not shrink because the format is small. If the logo cannot fit with its clear space, the logo version or the layout has to change.
Record every adapted grid you create. When the guide is silent, the next chapters cover how to document that decision and ask for approval.
Common errors
- Using the framework's default grid. Bootstrap's 12-column grid with its default gutter may not match the brand's gutter. Override the values.
- Off-scale spacing from nudging. Designers drag an element a few pixels to "feel right." Turn on snapping to the base unit, and set tool-level layout grids for columns and baseline.
- Aligning to the content, not the grid. Centering a block on a page when the grid places it on columns 2 to 7 breaks the alignment of everything near it.
- Equal spacing everywhere. If all gaps are 24 px, groups disappear. Use the scale to separate related items from unrelated ones.
- Ignoring safe areas. Text placed inside a platform's interface zone, or inside a print trim zone, will be cut off or covered.
- Mixing units in handoff. Giving a developer print millimeters, or a printer pixels, causes conversion errors. Specify units in every handoff note.
Checking your work
Before you submit, run this short check:
- Is every column, gutter, and margin value taken from the guide for this format?
- Does every gap equal a step on the spacing scale?
- Do text and image edges land on column boundaries?
- Is the logo in an approved position with its full clear space?
- Is anything inside a safe area or bleed zone it should not be?
- Is the whitespace at least as open as the guide's own sample layouts?
A failed answer is either a fix you make now or a deviation you note for review.
Exercise
A brand guide gives a 12-column web grid with a 24 px gutter and an 8 px spacing unit. You are asked to design a 600 px wide email, and the guide has no email grid. Describe how you would set up the layout and what you would document.
Show answer
Keep the brand's structure and scale it. Use the 8 px unit for all spacing, and keep gutters on the scale (16 px is a likely fit at this width, since 24 px would take too large a share of 600 px). Reduce the column count to 4 so columns stay readable, and set margins at 16 or 24 px. Place the logo in its approved position with full clear space, keep headline, body, and button in the same order of prominence as on the web, and align all content to column edges. Document the adapted grid (columns, gutter, margin, unit) and the reason for it, and flag it in review because the guide had no email rule.