Layout grids and 8-point spacing

Pick the right frame size, set up column grids, and space everything on a consistent scale.

Module 3: Visual design for screens · Lesson 7 of 19 · 17 min read · Free

Look at any app that feels "clean" and you'll find the same secret: things line up, and the gaps between them follow a pattern. That isn't talent. It's a grid and a spacing scale, set up before the first button is drawn.

Choose the frame size

Design at the size most of your users have, then check the extremes.

  • Android phones: 360 px wide is the classic starting point, and it matches a huge share of phones in Nigeria. Larger Android phones are around 400–412 px.
  • iPhones: around 390–430 px wide, depending on the model.
  • Desktop: 1440 px wide is a common design size; also check 1280.

These are points or density-independent pixels, not the phone's real pixel count. A 360 px design fills a phone that physically has 1080 pixels across, because each design pixel becomes 3 real ones. That's why developers ask for images at 2x and 3x (lesson 5.3).

Layout grids

A 4-column grid on a phone and a 12-column grid on desktop

Select a frame and add a layout guide in the right sidebar (the + next to Layout guide), then switch it to Columns. Three numbers matter:

  • Columns: usually 4 on phones, 8 on tablets, 12 on desktop.
  • Margin: the space between the screen edge and your content, often 16–24 px on phones and 80 px or more on desktop.
  • Gutter: the gap between columns, often 16–24 px.

Set the type to Stretch so the columns fill the width between the margins. Each column's width then works out like this:

Column width = (frame width − 2 × margin − (columns − 1) × gutter) ÷ columns

For a 360 px phone with 4 columns, 16 px margins and 16 px gutters: (360 − 32 − 48) ÷ 4 = 70 px. The layout calculator attached to this lesson does this sum for you.

Content then snaps to the columns: a full-width button spans all 4, two product cards side by side take 2 columns each.

The 8-point spacing system

Pick spacing from a fixed scale instead of typing whatever looks right: 4, 8, 16, 24, 32, 40, 48, 64. Use 4 for tiny gaps, like an icon to its label, and multiples of 8 for everything else.

An 8-point spacing scale

Why bother? Because 13 px here and 15 px there looks slightly wrong even when people can't say why, and because developers can build a fixed scale quickly and consistently. It also makes decisions faster: you pick from seven values instead of a hundred.

Proximity: space shows what belongs together

Things that belong together sit closer together. A label sits 4–8 px above its input; the next field sits 16–24 px below. The gap between sections is bigger than any gap inside a section. Get this right and people understand the screen before they read a word.

Check yourself

Answer in your head first, then open each question to see the answer and why.

  1. A 360 px phone frame has 4 columns, 16 px margins and 16 px gutters. How wide is each column?

    • A 70 px
    • B 90 px
    • C 82 px
    • D 64 px
    Show the answer

    A) 70 px — (360 − 32 − 3 × 16) ÷ 4 = 280 ÷ 4 = 70 px.

  2. Which set of spacing values follows the 8-point system?

    • A 4, 8, 16, 24, 32
    • B 5, 10, 15, 20
    • C 3, 7, 13, 17
    • D 6, 12, 18, 30
    Show the answer

    A) 4, 8, 16, 24, 32 — 4 for tiny gaps, then multiples of 8.

  3. How many columns does a phone layout grid usually have?

    • A 4
    • B 12
    • C 1
    • D 24
    Show the answer

    A) 4 — Phones usually use 4 columns, tablets 8 and desktops 12.

More free lessons: What UI and UX designers actually do · Understanding users without fooling yourself · Auto layout · Clickable prototypes · Case studies and your portfolio