Visual design fundamentals
Learn the core visual principles that make interfaces clear and attractive.
Topic 8 — Visual design fundamentals
Goal: Learn the core visual principles that make interfaces clear and attractive.
Lesson 8.1 — Visual hierarchy: telling the eye where to go
Tessa pins her first Wanderwell screen to the team board — a trip-summary card she spent two evenings on. Marcus, her mentor, looks at it and says one thing: "Where do you want me to look first?" She'd never asked herself that. The price, the photo, the dates, and the Book now button all sat at roughly the same weight. His eye had nowhere to land.
That problem has a name. Visual hierarchy means arranging elements so the eye knows what's most important and where to look first. It's the single most important principle in UI. Get it right and a screen feels calm and obvious. Get it wrong and everything shouts at once, the user freezes, and the most important action gets lost.
You build hierarchy with three levers, and Tessa already knew them from styling shop windows — she just never had words for them.
- Size. Bigger reads as more important. A large headline outranks small body text before anyone decides to read it.
- Color and contrast. A bright button against a muted background pulls the eye like a single lit lamp in a dim room.
- Position and spacing. We scan top-to-bottom, and an element sitting alone in its own space feels important precisely because nothing crowds it.
There's a free test for it. Squint at your design — or blur it — until the detail dissolves. The shapes that still stand out should be the ones that matter most. If everything stays equally bold, you have no hierarchy.
The squint test is the fastest design review there is: if the right things don't survive the blur, the eye won't find them either.
Tessa squints at her card. The photo dominates; the price and button vanish into grey. She bumps the price up, gives the button Wanderwell's brand teal, and floats it alone at the bottom. Re-squint: now the price and Book now are the two things that survive. Same content, different screen.
Lesson 8.2 — Whitespace: letting the design breathe
Tessa's instinct, fresh from retail, is to fill the shelf. Every pixel of an empty screen feels like a missed chance to tell the user something. So her early mockups are dense — labels nudged against inputs, cards touching, text running edge to edge. Marcus sends back four words: "Let it breathe more."
Whitespace — the empty space between and around elements — is the difference between a design that looks cramped and one that looks polished. Far from wasted space, it is the room that lets each element be seen on its own. Beginners cram; professionals give things space, and the result reads as confident and expensive without a single new feature added.
Career-changers expect whitespace to be a vague feel-it-out thing. It isn't. Most teams pin it to a number. Wanderwell uses an 8-point grid — every gap, padding, and margin is a multiple of 8 pixels (8, 16, 24, 32...). Why 8 specifically? The real reason is display density. Modern screens render at 1x, 2x, and 3x — a phone packs two or three physical pixels into each design pixel — and multiplying a value by 2 or 3 has to land on a whole pixel, or the renderer fudges it and edges go soft. Eight scales cleanly every time (8 → 16 → 24), so icons and thin borders stay sharp on every device. An odd value like 5 doesn't: at 1.5x it becomes 7.5px, the renderer can't draw half a pixel, and you get a blurry line. (The neater fit into common screen widths is a nice bonus, but it's secondary.) The grid also kills guesswork — when Dev the engineer builds Tessa's screen he never has to ask "is that gap 13 or 14 pixels?" It's 16. Google's Material Design is built on this system, and Apple's guidelines lean on it too.
Tessa retries her card on the grid: 24px of padding inside, 16 between the price and the dates, 8 hugging each label to its field. Nothing changed but the air. It looks like a different team made it.
Lesson 8.3 — Alignment and consistency: the quiet professionalism
Marcus once told Tessa that amateur and professional UI often use the exact same colors and fonts. The gap between them is mostly two unglamorous habits.
The first is alignment: lining elements up along invisible shared edges, usually using a grid. When a label's left edge, a heading's left edge, and a button's left edge all sit on one vertical line, the screen feels intentional. When they're each a few pixels off, it feels sloppy — and the user feels it even though they couldn't tell you why. Tessa starts snapping everything to a guide down her canvas, and her work stops looking "homemade."
The second is consistency: same styles for the same things, everywhere. Buttons look like buttons. Every heading at the same level shares one size. Spacing follows one repeating pattern. Once users learn that teal-and-rounded means "tappable action," they stop relearning it on every screen. (It's also exactly why design systems exist, which is the next topic.)
Priya, the PM, frames it in business terms: every inconsistency is a tiny moment where the user has to stop and think, and a user who isn't thinking about how to use Wanderwell is a user who keeps booking trips. Discipline here is conversion, not fussiness.
Lesson 8.4 — Color and type: restraint over flair
Tessa's second mockup arrives with six colors and three fonts. It's lively. It's also exhausting to look at, and Marcus gently walks her back.
Color discipline is mostly about using less. A clean palette has one or two brand colors, a few neutrals (greys for text, borders, and backgrounds), and one clear accent reserved for the most important action on the screen. When the accent appears rarely, it means something — the eye goes straight to it. Tessa cuts Wanderwell down to teal as the brand color, a warm coral accent for primary buttons, and a small ladder of greys for everything else.
Color should also mean something. Red signals errors, green signals success, and using those conventions saves you from explaining anything. Inventing your own color language — green for an error — just confuses people who arrive with the standard one already in their heads.
Typography runs on the same restraint. Pick one or two readable fonts, then build a clear type scale: distinct, deliberate sizes for headings, subheadings, and body, with obvious jumps between them. Headings clearly bigger than body gives you half of Lesson 8.1's hierarchy for free. Readability beats novelty — a striking font nobody can read at 14px is a failed font. Tessa picks one clean sans-serif and three sizes: 28 for the title, 18 for headings, 16 for body. Boring on paper, sharp on screen. Consistent, well-sized type does most of the heavy lifting in a clean interface.
Lesson 8.5 — Accessibility: contrast that includes more people
Hannah, the researcher, brings a clip to the team's Friday share-out: a user in his sixties squinting at his phone in a sunny café, unable to read Wanderwell's light-grey helper text. "He's trying," she says. "He literally can't see it."
That's the everyday face of accessibility — designing so more people can actually use the product. The most common failure online is the easiest one to make: light-grey text on a white background. It looks elegant on a bright studio monitor and disappears for anyone older, anyone outdoors, anyone with average eyesight.
The fix is measurable, which is good news for someone learning the rules rather than guessing. The standard is WCAG (Web Content Accessibility Guidelines), and its widely-used AA level sets a contrast floor:
- At least 4.5:1 contrast between normal body text and its background.
- At least 3:1 for large text (roughly 18pt, or 14pt bold, and up) and for UI elements like icons and input borders.
A free contrast checker — WebAIM's is the classic — gives you the exact ratio in seconds, so you never eyeball it. Tessa runs Wanderwell's grey helper text: 2.9:1, fail. She darkens it until the checker reads 4.6:1, and now it passes for everyone, including the man in the café.
This isn't a nice-to-have anymore. Accessibility is expected by users and increasingly required by law, so building it in from the first mockup is far cheaper than retrofitting it after a complaint.
And here's the thread running through this whole topic. None of this — hierarchy, spacing, alignment, consistency, restrained color, accessible contrast, readable type — is innate artistic talent. They're learnable rules. Tessa arrived able to see when something looked off but unable to fix it. Six weeks of applying these rules carefully, and her work passes review like a professional's — because that's exactly what disciplined rule-following produces.
Worked example — Tessa rebuilds the booking-confirmation screen
Priya hands Tessa a real task: the booking-confirmation screen tests badly. Users miss the confirmation number and email support to ask "did my trip book?" Watch the six principles stack up.
First, hierarchy. A just-booked traveler needs reassurance plus the confirmation number, so Tessa makes a big green checkmark and "You're booked!" the largest things on the screen, with the confirmation code right under them in bold. The squint test confirms it: blur the screen and those are all that survive.
Next, whitespace and alignment on the 8-point grid. She gives the confirmation block 32px of breathing room and snaps the trip details, dates, and "Manage booking" button to one shared left edge. The screen stops feeling like a receipt.
Then color and type. Green for the success state (meaning, not decoration), the coral accent saved for the single "Manage booking" button, everything else in restrained greys, one font on her three-size scale.
Finally, accessibility. She runs every text color through the contrast checker. The date text was a stylish light grey at 3.1:1 — below the 4.5:1 floor — so she darkens it until it passes.
Hannah retests with five users. All five spot the confirmation number instantly, and the "did it book?" support emails stop. Marcus signs off and the screen ships. Tessa changed no features and wrote no code — she just applied six learnable rules.
Key terms
- Visual hierarchy — arranging elements (via size, contrast, position) so the eye finds what matters first.
- Squint test — blurring a design to check whether the most important elements still stand out.
- Whitespace — the empty space around elements that makes a design clear and breathable.
- 8-point grid — spacing in multiples of 8px so layout is consistent and renders crisply.
- Alignment — lining elements along shared invisible edges, usually via a grid.
- Consistency — same styles for the same things everywhere, reducing the user's mental effort.
- Type scale — a set of distinct, deliberate text sizes for headings, subheadings, and body.
- WCAG AA contrast — the standard: ≥4.5:1 for normal text, ≥3:1 for large text.
Try this
Screenshot one screen of an app you use daily. First, run the squint test (blur your eyes or zoom out): what survives, and is it the thing that should matter most? Then pick the body text and the lightest grey text you can find and check both with the WebAIM Contrast Checker — does each clear 4.5:1? You've just done the two reviews Tessa runs on every screen, and you'll start seeing low-contrast grey text everywhere once you know to look.
Common pitfalls
- Everything competing for attention. When the heading, the body, and the button are all bold, nothing leads. Pick one focal point per screen and let the rest recede.
- Cramming to fill space. Treating whitespace as wasted and packing elements tight. The cure is mechanical: put spacing on an 8-point grid and add air.
- Too many colors and fonts. Six colors and three fonts read as chaos. Restraint — a couple of brand colors, neutrals, one accent, one or two fonts — looks more professional, not less.
- Light-grey text on white. The most common accessibility failure: refined on a bright monitor, invisible to many real users. Always verify with a contrast checker.
Key takeaways
- Visual hierarchy (via size, color/contrast, position) guides the eye to what matters most — verify it with the squint test.
- Whitespace, alignment, and consistency quietly separate professional UI from amateur work; an 8-point grid keeps spacing intentional.
- Use a small, meaningful color palette (one or two brand colors, neutrals, one accent) and a clear type scale with one or two readable fonts.
- Meet accessibility standards: WCAG AA requires ≥4.5:1 contrast for normal text and ≥3:1 for large text; avoid light-grey-on-white.
- These are learnable rules, not innate talent — a beginner who applies them carefully produces professional results.
Preparing your quiz…