UX & UI Design
02 / Grids, Spacing & Responsive
Key question
Where does everything go, on every screen?
Layout determines how content is distributed across a surface. On the web, this surface isn't fixed: it ranges from 320 pixels on a small mobile phone to over 2,000 pixels on a large monitor. A grid, a clear spacing system, and a few breakpoints make this manageable.
Learning objective: You can set up a column grid and spacing system, and plan a layout for mobile, tablet, and desktop.
Order arises from a few, repeated dimensions.
2.1 / The column grid
Columns, gutters, margins.
A grid divides the area into columns. Three dimensions determine it:
01
Columns
Usually 12 on desktop, 8 on tablet, 4 on mobile.
02
Piers
The gap between columns, for example 24 px.
03
Borders
The distance to the screen edge, at least 16 px on mobile.
For body text, an additional maximum width of about 65 to 75 characters applies. That's why text sits in a narrower column on large screens, even if the grid is wider.
The grid is the invisible handrail.
2.2 / Spacing as a system
A scale instead of chance.
Instead of choosing every spacing from scratch, you use a scale, such as 4, 8, 12, 16, 24, 32, 48, and 64 pixels. Small spaces keep related elements together, while large ones separate sections. The law of proximity makes these groupings visible.
In Figma and in the code, the values are stored as tokens, such as space-4 for 16 pixels. This ensures the spacing is identical in both design and implementation.
Proximity reveals what belongs together.
2.3 / Responsive Design
Mobile-first, then wider.
Mobile-first means designing the narrowest view first. That’s where you see what is truly important. Wider screens offer more space, but rarely new content. Breakpoints are placed where the layout breaks, not for specific devices.
Typical patterns: columns stack on mobile phones, navigation moves into a tab bar or menu, images are cropped instead of scaled down, and tables turn into cards.
Your mobile shows what really matters.
Exercise
A layout in three widths
Task: Design the Velowerk homepage for three widths.
STEP 1
Set up a grid: columns, gutters and margins for mobile, tablet and desktop.
STEP 2
Define a spacing scale with five to eight values.
STEP 3
Design for mobile first, then tablet and desktop.
STEP 4
Check every view: Where is the main action located, is the text easy to read?
Evaluation: What did you leave out on mobile, and is it really missing on desktop?