Why Your UI Spacing Looks Junior: 6 Spacing Fixes
Six spacing fixes that make a screen look senior: steps of 8, headings tied to their text, one side margin, equal gaps, space instead of lines and a clear home bar. Each built side by side with the real values.

Junior spacing is rarely one big mistake. It is a dozen gaps picked by eye, each a few pixels off, and together they make a screen look nervous. Below are six fixes, each rebuilt side by side with every gap measured, so you can see the numbers behind the difference and copy them.
The pink bands in every picture are the gaps, drawn the way Figma draws auto layout spacing, with the value in the tag.
1. Space in steps of 8
Junior

Senior

The junior card has seven different gaps and two different side margins. Nothing is wrong enough to point at, yet the card feels off. The senior card uses only 4, 8 and 16, so the same distance always means the same thing.
Material Design puts components on an 8dp grid and lets icons, type and small parts inside a component use 4. That gives you a short menu: 4, 8, 16, 24, 32, 48. When a gap is not on the menu, round it to the nearest step.
In Figma, type spacing values into auto layout instead of dragging layers by eye. In CSS, keep the scale as tokens so nobody types 13.
2. Tie headings to their text
Junior

Senior

With 16 above and 16 below, the heading "Notifications" floats halfway between two groups, and the eye cannot tell which group it names. With 32 above and 8 below, the heading sticks to the rows it labels.
This is the proximity principle. NN/g's article on it notes that well-designed pages place a section's text closer to its heading than to the section before it. A simple rule: the space above a heading is at least twice the space below it.
3. Line up on one margin
Junior

Senior

In the junior card, four parts start at four left edges: 10, 22, 16 and 28. The eye reads each jump as a new level, so the card looks like it has structure it does not have. In the senior card, everything starts at 16, the dashed line.
Material's layout grid uses 16dp side margins on a phone at its 360dp breakpoint. Set that margin once on the screen frame, then let every child fill the width. Indent only when you mean "this belongs to that", like a nested list.
4. Same gap, same things
Junior

Senior

The junior chips sit 3 to 14 apart, with row gaps of 6, 14, 4 and 11. Uneven space draws groups that do not exist: "Productivity" and "Startups" look like a pair, and the second row looks like its own set. At 8 everywhere, the chips read as one list.
Repeated items get one gap, both across and down. In Figma, wrap the chips in one auto layout frame with wrap turned on and the same horizontal and vertical gap. In CSS that is flex-wrap: wrap with gap: 8px.
5. Space, not lines
Junior

Senior

Every line in the junior summary says "new section", so a five-row receipt is cut into five separate boxes. The senior version drops the border and the rules and lets space do the grouping: 24 under the amount, 16 under the item, 8 between the fees, 24 before the total.
The order adds up: $42.00 plus $3.99 delivery plus $1.50 service fee is $47.49. Keep a divider only where space alone cannot separate two things, such as a long scrolling list of identical rows.
6. Clear the home bar
Junior

Senior

At 8 from the bottom edge, the junior button sits under the home bar, which turns white over the dark button. The senior button sits 34 from the edge, so the bar has its own space and a swipe up to go home does not start on Add to Bag.
Apple's layout guidance says respecting the safe area keeps system UI from covering your content and controls. Do not hardcode the number: in iOS, pin the button to the safe area, and on the web use env(safe-area-inset-bottom).
The six fixes in one table
| # | Junior | Senior | Value |
|---|---|---|---|
| 1 | Gaps of 1, 13, 3, 21 | One scale | 4, 8, 16, 24, 32 |
| 2 | 16 above and below a heading | More above than below | 32 above, 8 below |
| 3 | Left edges at 10, 22, 16, 28 | One side margin | 16 on a phone |
| 4 | Chip gaps from 3 to 14 | One gap for repeated items | 8 |
| 5 | A line under every row | Space groups the rows | 24, 16, 8, 24 |
| 6 | Button 8 from the edge | Button inside the safe area | 34 in this example |
The scale as tokens
:root {
--space-1: 4px; /* inside a component */
--space-2: 8px; /* related items, chip gaps */
--space-4: 16px; /* screen margin, between groups */
--space-6: 24px; /* between sections */
--space-8: 32px; /* above a heading */
}
.bottom-bar {
padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
}
For the difference between the space inside a box and the space between boxes, read padding vs margin. For columns and gutters, the grid systems guide. The same junior and senior series covers typography, color and cards.
FAQ
What is the 8 point grid in UI design?
It means every size and gap is a multiple of 8: 8, 16, 24, 32 and so on. Material Design uses an 8dp grid for components and 4dp for icons, type and small parts inside them.
How much space should go above and below a heading?
More above than below, so the heading sits with the text it introduces. A ratio of at least two to one works: 32 above and 8 below in a settings list.
What margin should a mobile screen have?
16 is the common choice. Material's layout grid uses 16dp margins on a 360dp phone. Whatever you pick, use the same margin for every element on the screen.
Should I use dividers or whitespace between list rows?
Start with whitespace, because space groups rows without adding noise. Keep a divider only when rows are identical and space alone cannot separate them.
How far should a button sit from the bottom of the screen?
Inside the safe area, never under the home bar. Pin the button to the safe area in iOS or add env(safe-area-inset-bottom) in CSS, instead of a fixed number.
Sources
- Spacing methods, Material Design: components align to an 8dp grid, and iconography, typography and some elements within components can align to a 4dp grid.
- Responsive layout grid, Material Design: at a 360dp breakpoint the layout grid uses 16dp margins.
- Proximity Principle in Visual Design, Aurora Harley, NN/g: varying whitespace unites or separates elements, and a section's text sits closer to its heading than the text before it.
- Layout, Apple Human Interface Guidelines: respecting the safe area keeps system UI and hardware features from covering content and controls.
- env() and gap, MDN Web Docs.
- Guide to auto layout, Figma Help Center: padding, gap and wrap.
- The demos follow the shape of a LinkedIn profile, an iOS Settings list, an Airbnb trips card, Medium's topic chips, a Stripe Checkout summary and an iOS product page. They are our own builds, not measurements of those products. Maya Chen, Fern & Co, the Lisbon trip, the order and the linen shirt are invented examples. The 32 above and 8 below, and the 34 under the button, are this lesson's chosen values, not standards.
- First published as a carousel on UX Brainy.





