Design Principles — Why Some Things Just Work
What you'll learn
- The core principles behind every good design
- Hierarchy, contrast, alignment, whitespace
- Why "good design is invisible"
- You'll fix a badly-designed card with CSS
Good design is invisible 👁️
When a design is great, you don't notice it — you just find what you need effortlessly. You only notice design when it's bad: a confusing form, a button you can't find. UX (User Experience) design is making things work so smoothly they feel obvious. It's not about decoration; it's about clarity. A few principles do most of the work:
1. Visual Hierarchy. Your eye should instantly know what's most important. Big, bold, high-contrast = important; small, light = secondary. A page where everything shouts (all bold, all huge) is a page where nothing stands out. Guide the eye: title > subtitle > body > caption.
2. Contrast. Elements that are different should look clearly different. The most important button should pop against the background. Light-gray text on a white background may look elegant to you but is invisible to many users (this is also an accessibility issue — later lesson).
3. Alignment. Line things up. Invisible grid lines connecting elements make a layout feel calm and professional; random positions feel chaotic and amateur. When in doubt, align to a common edge.
4. Whitespace (negative space). The empty space around things. Beginners cram everything together to "use the space"; pros add breathing room. Whitespace isn't wasted — it groups related items, separates unrelated ones, and makes content readable. Apple's designs are famous for generous whitespace.
5. Proximity. Things that belong together should be close together; unrelated things should be apart. A label sitting right next to its input "belongs" to it; a caption far from its image looks orphaned.
Master these five and your interfaces immediately look more professional — no artistic talent required. Design is a learnable skill, mostly about applying principles consistently, not innate creativity.
Apply hierarchy and whitespace. The card below has no visual hierarchy — everything is the same size and cramped. In the <style>, make:
.titlebigger and bold —font-sizeat least24pxandfont-weight: bold.cardhave breathing room —paddingat least24px
Gestalt principles — how the eye groups things 🧩
There's a deeper reason those five principles work: the human brain doesn't see individual elements one by one — it automatically groups them into patterns. This is Gestalt psychology ("gestalt" = "shape/form" in German), and a handful of its rules explain almost every layout decision you'll ever make:
1. Similarity. Elements that look alike (same color, shape, or size) are perceived as related, even with no lines or boxes around them. Three blue buttons scattered across a page still read as "the same kind of thing" just because they share a color.
2. Proximity revisited. You already met this: closeness implies grouping. Gestalt explains why — the brain assumes nearby things share a purpose before it even reads the content.
3. Common region. Put a border or background behind a group of items (a card, a panel) and the brain treats everything inside as one unit — even more strongly than proximity alone. This is why "cards" are everywhere in modern UI: a shared background is the fastest way to say "these things belong together."
4. Continuity. The eye follows the smoothest path. Elements arranged along a line or curve are read as a connected sequence — this is why a horizontal row of steps ("1 → 2 → 3") feels like a process, not three random boxes.
5. Closure. The brain fills in missing gaps to perceive a complete shape. A logo made of a few disconnected arcs still reads as a circle. This lets designers imply shapes with less visual weight than drawing them fully.
Why this matters practically: when a layout "feels off" but you can't say why, it's often a Gestalt violation — items that should look related (same action) don't share a visual trait, or unrelated items are accidentally grouped by shared color or closeness. Naming the principle lets you diagnose and fix the actual cause instead of randomly nudging pixels.
Apply common region and similarity. The three items below are meant to be a single related group (a settings panel), but nothing visually groups them, and the "Danger" action doesn't stand out from the safe ones. In the <style>:
- Give
.panela visible background (any color other thanwhite/transparent) andborder-radiusof at least8px— this creates common region so the three rows read as one group - Give
.dangera distinctcolorofred(or#dc2626) so it visually stands out as a different kind of action (Gestalt similarity — it should NOT match the other two rows)
Real-world case study: Google's 41 shades of blue 🔍
In 2009, Google's design team wanted to pick one "best" blue for its links. Instead of a designer choosing by eye, Google ran an A/B test: they showed different, nearly identical shades of blue to slices of live search traffic and measured which shade got more clicks.
The winning shade reportedly earned Google an estimated $200 million a year in extra ad revenue — from a barely perceptible color change. The story became famous (and controversial) inside the design world: designer Douglas Bowman publicly resigned partly over this level of data-driven micro-optimization, arguing it crowded out design judgment and slowed everything down.
Both sides have a point, and that's exactly the lesson. Data can reveal real, high-value details (contrast and color genuinely change behavior at scale). But not every decision needs 41 variants tested — for most teams, applying the principles in this lesson well (hierarchy, contrast, alignment, whitespace, proximity, and Gestalt grouping) gets you 95% of the way, and real user research (a later lesson) tells you when it's actually worth testing further.
Question 1 of 6
What is visual hierarchy?
Question 2 of 6
Whitespace (empty space) is…
Question 3 of 6
The principle of 'proximity' says…
Question 4 of 6
Which Gestalt principle explains why a card's background makes its contents feel like one group?
Question 5 of 6
Why did three same-colored but scattered buttons still read as 'the same kind of thing'?
Question 6 of 6
What's the balanced takeaway from Google's '41 shades of blue' story?
Summary
- Good UX is invisible — clarity over decoration
- Five principles: hierarchy, contrast, alignment, whitespace, proximity
- Gestalt principles (similarity, common region, continuity, closure) explain why grouping works
- Design is a learnable skill, not innate talent
- You added hierarchy and whitespace to a real card, then grouped a settings panel with common region and similarity
- Google's "41 shades of blue" shows both the power and the cost of over-testing small decisions
Next: Typography & Color — the two elements that most shape how a design feels.
Practice
Reading is not learning until you run something. Pick one.