UX6: Visual design: type, colour, space and motion

Lesson 3 of 5 · reading 15–25 minutes; practice and project time is on the module page

Space, grids and alignment

🎯You'll be able to

Use a spacing scale and a simple grid so that screens look calm and consistent, and so developers can build them exactly.

🏠The everyday picture

In a well-laid table for a meal, plates are evenly spaced and cutlery lines up. Nobody measures it, but everyone notices when it's off.

📘What it really is

📝A worked example

Input: the starter's spacing tokens.

"space": { "1": 5, "2": 10, "3": 15, "4": 20, "5": 30 }

Steps:

  1. Check each value: 5, 10, 15 and 30 aren't multiples of 4.
  2. Replace with a scale in steps of 4: { "1": 4, "2": 8, "3": 12, "4": 16, "5": 24, "6": 32 }.
  3. Run npm run tokens, then npm run test:system.

Expected output: test 4 passes, and prototype/tokens.css contains --space-1: 4px; to --space-6: 32px;.

🌍Where it's used

📝Case scenario

A shopping app had 23 different gap sizes across its screens. A designer reduced them to six tokens; developers replaced hard-coded values with the tokens over two sprints, and the app looked tidier without any visual redesign.

🖱️Try it

Measure the gaps on one screen of an app you use (screenshot and count pixels, or use developer tools on a website). Success: you list at least five gaps and say whether they follow a scale.

⚠️Common mistakes

🛠️For your project

Project 3's test 4 checks that every spacing token is a multiple of 4 and that steps grow in order.

✅Quick check

Why use a spacing scale?

Show the answer

So spacing is consistent and designers and developers choose from the same small set of values.

What does proximity mean in layout?

Show the answer

Related items are placed close together, and unrelated items further apart.

← PreviousColour and contrast
ProLearners Assist