The three margin figures are 1 unit on mobile, 2 units on tablet, and 4-5 units on desktop, set from the U.S. Web Design System. Set them as three separate settings in your spec rather than one value stretched across breakpoints.
- Mobile: at least 1 unit between text and the viewport edge
- Tablet: at least 2 units between text and the viewport edge
- | Desktop | Up to 4-5 units |
- Pair these with line-height 5 for body copy and paragraph spacing between 0.5em and 1.5em
- Have new components start from existing typography styles so margins stay consistent across the page
Key Takeaways
- The U.S. Web Design System gives three horizontal margin rules you can set today: 1 unit at mobile, 2 units on tablet, and up to 4-5 units on desktop widths.
- Vertical rhythm depends on line-height and paragraph spacing. One line-height setting handles extended reading well, while paragraph spacing should sit between clear bounds.
- The GOV.UK Design System tells you to start from existing typography styles when you build new components.
- Text needs enough contrast against its background, but not so much that it reads harshly.
- These are the numbers you settle in a design review. Everything after that — exact pixel values, breakpoint names — follows from them.
If you review landing page layouts with a designer before launch, margin is where most disagreements start. The copy sits too close to the edge. The column runs wide on a monitor. The headline drifts apart from the paragraph under it. This post gives you three margin figures to anchor those talks, plus the supporting spacing rules that make the layout hold up once real text lands in it.
The first thing to know is that "margin" does two jobs. Horizontal margin keeps text off the edge of the screen and away from adjacent elements. Vertical spacing — line-height and paragraph margin — keeps lines and paragraphs from colliding or drifting apart. You need both. A page with correct horizontal margin and messy paragraph spacing still reads poorly. So does the reverse.
The three horizontal margin figures
The U.S. Web Design System sets clear floor values for horizontal margin around the body of your text, scaled to device width.
Here they are in one place:
| Width | Minimum horizontal margin |
|---|---|
| Mobile | At least 1 unit |
| Tablet | At least 2 units |
| Desktop | As much as 4-5 units |
Mobile first. Keep at least 1 unit of margin between your text and the edge of the viewport. On narrow screens, every pixel counts against your reading column. Push text flush to the edge and it becomes hard to track line by line. One unit is the floor, not a target you sit exactly on. Give yourself a little breathing room when you can.
Tablet widths need more. Set at least 2 units between the text and the viewport edge. A tablet gives you more horizontal room than a phone, so a wider margin looks right and reads right. It also stops the line length from creeping past the point where the eye starts losing its place on return sweeps.
Desktop is where layouts get loose. The System notes that desktop widths can call for a horizontal margin of 4-5 units between the body of the text and any adjacent elements. Note the phrasing: this isn't only about the viewport edge. On a wide screen, your text sits next to a sidebar, a card, an image, or a form. The margin that matters is the gap between your text block and whatever sits beside it. If that gap collapses, your paragraph visually merges with the element next to it.
Treat these as three separate settings in your layout spec. Don't pick one value and stretch it across breakpoints. A designer building the page should be able to look at your spec and see three rows: mobile, tablet, desktop. That removes the guesswork during build and gives you a clean thing to check at review.
Line-height and paragraph spacing
Horizontal margin handles the edges. Now handle the inside of the text block.
Line-height sets the vertical distance between baselines of consecutive lines. Set it too tight and lines crowd each other. Set it too loose and the eye struggles to find the next line. The U.S. Web Design System calls the line-height 5 value a good option for most reading text, especially text meant for extended reading. If your design system already carries USWDS tokens, use that one for body copy and stop deliberating.
Paragraph spacing is the gap between two paragraphs. Too little and the paragraphs blur together. Too much and the flow breaks into unrelated chunks. The System gives you the bounds: using more than 1.5em disturbs the flow of the text, and using less than 0.5em doesn't provide enough separation.
So the working range for paragraph spacing sits between 0.5em and 1.5em. Pick a value inside that range and hold it. em ties spacing to the font size, so it scales when the type size changes across breakpoints. That's the right unit for this job, because a gap that looks correct at one size looks wrong at another if it's fixed in pixels.
One more thing to check during review: contrast. The WebAIM guidance on fonts says to ensure sufficient, but not too much, contrast between the text and the background. This isn't a margin number, but it belongs in the same conversation. A perfectly margined block on a background that barely differs from the text color still fails the reader. Check it while you're in the layout, not after.
What to put in the spec
Hand your designer a short spec with these items, in this order:
- Mobile horizontal margin: the 1-unit floor from the System, plus whatever you add for comfort.
- Tablet horizontal margin: the 2-unit floor.
- Desktop horizontal margin: 4-5 units between the text body and adjacent elements.
- Line-height: the line-height 5 value, or your system's equivalent for extended reading.
- Paragraph spacing: a value between 0.5em and 1.5em, held constant across breakpoints.
- Contrast check: text against background, verified before sign-off.
This list takes a minute to write and removes most of the back-and-forth that happens mid-build.
Keep new components on the existing type styles
The GOV.UK Design System gives one rule that keeps a landing page from drifting: when creating new components, always start by using the existing typography styles.
This matters for margin because every new component you invent brings its own spacing decisions. A testimonial block, a pricing card, a FAQ accordion — each one needs horizontal padding and vertical spacing. If the designer builds each from scratch, you end up with five slightly different gaps and no way to explain why they differ.
Start from the type styles already in your system. The GOV.UK rule keeps you on styles that already exist: start from the existing typography styles. New components inherit them, and the page stays visually consistent without anyone re-deriving the numbers each time.
Practically, this changes how you review. When a new block appears in a layout, your first question isn't "does this look right?" It's "which existing type style does this use?" If the answer is "none, we made a new one," ask why. Sometimes a genuinely new element justifies a new style. Most of the time it doesn't.
This also protects you at scale. A long page with many sections does not. Small inconsistencies multiply until the whole layout feels loose.
Putting the three figures to work in a review
Take a landing page layout your designer has just sent over. It has a hero, three feature blocks, a testimonial, and a closing call to action. Here's how the margin conversation goes with these figures in hand.
Start with the hero. On mobile, check the gap between the headline text and the screen edge. If it sits under 1 unit, flag it. On tablet, same check against the 2-unit floor. On desktop, look at the headline against any element beside it — a hero image, a navigation bar — and confirm the gap is at least 4-5 units.
Move to the feature blocks. Each one contains a short paragraph. Check line-height first. If the lines look cramped, ask whether the block uses the line-height 5 value. If the paragraphs inside a block look like one run-on mass, check paragraph spacing against the 0.5em to 1.5em bounds.
Then check the testimonial. Testimonials often get styled as a special case with their own padding. Ask which existing type style it uses. If it uses one, its margins should already match the rest of the page. If it doesn't, that's a consistency risk worth raising now rather than after launch.
Finally, the closing call to action. Text next to a button or a form field is exactly the "adjacent element" case the desktop rule covers.
Walk the page in this order every time. It takes a few minutes and catches the spacing problems before they reach a build.
Related guides: Landing page line-height: 3 figures to check in copy · Landing page performance budget: 7 figures to check first · Tax on landing page prices: 3 figures to show.
Questions that come up in reviews
Does mobile margin change if the text block sits inside a card? Cards usually add their own internal padding on top of the viewport margin. The 1-unit floor still applies between your text and the edge of the viewport, so confirm both layers exist. A card that touches the screen edge with text inside at zero padding fails the rule even if the card looks intentional.
Is 4-5 units on desktop a hard maximum? No. The System says desktop widths can require as much as 4-5 units between the text and adjacent elements. Wider gaps are fine when the layout calls for them. The floor is what protects readability; the upper end is a design choice within that range.
What if our design system doesn't use USWDS tokens? The underlying ideas still apply. You need a line-height that supports extended reading, a paragraph gap inside a defensible range, and horizontal margins that grow from mobile to desktop. Map the USWDS values onto your own scale and document the mapping once.
Who confirms the final values — designer or marketer? Both, in different ways. The designer owns implementation and consistency with existing styles. You own the reading experience on the page you're shipping. Agree on the three horizontal figures before build starts, then verify at review.
The sources here don't settle how these margin rules should change for unusually long words, wide tables, or text set very large, so raise those cases directly with your design lead before locking the spec.
A short checklist before sign-off
Use this in the final review pass. It maps one-to-one with the figures above.
- Mobile text sits at least 1 unit from the viewport edge.
- Tablet text sits at least 2 units from the viewport edge.
- Desktop text keeps 4-5 units between the text body and adjacent elements.
- Body text uses a line-height suited to extended reading.
- Paragraph spacing sits between 0.5em and 1.5em.
- New blocks reuse existing type styles rather than inventing new ones.
- Text and background contrast passes a visual check.
Run the checklist top to bottom on every layout. If a box fails, flag it with the specific figure, not a general comment. "Feature block B: desktop gap is under 4 units" gets fixed faster than "spacing feels off."
Three margin figures, one line-height choice, one paragraph range, one reuse rule, one contrast check. That's the whole set. Set them early, write them down, and the rest of the review gets a lot quieter.