Skip to content
NewTemplates & toolkits are on the way — join the waitlist
Hecham Gazhi

UI Design · Lesson 03 / 12

Gestalt principles

How the brain groups what it sees — proximity, similarity, common region, continuity, closure, figure–ground, common fate and more — and how to use each principle to create clear, organised layouts.

4 min read · 5 quiz questions

What is Gestalt?

Gestalt is a German word meaning "shape" or "form". Gestalt psychology, developed in the early 20th century by Max Wertheimer, Wolfgang Köhler and Kurt Koffka, studied how people perceive visual elements as organised wholes rather than separate parts.

The key idea: the whole is perceived as something different from the sum of its parts. We don't see 12 dots; we see two groups of six. We don't see a set of lines; we see a box. UI designers use these tendencies to make layouts understandable at a glance — without extra lines, labels or explanations.

Live preview

Proximity — two groups

Similarity — blue squares vs dots

Common region — the boxed pair

Proximity

Elements that are close to each other are perceived as a group. Proximity is one of the strongest grouping principles — often stronger than colour or shape.

  • Place a form label closer to its own input than to the input above.
  • Use more space between sections than between items inside a section.
  • Group related buttons together; separate destructive actions.
Exampletext
✗ Ambiguous                ✓ Clear
  Email                      Email
                             [______________]
  [______________]
  Password                   Password
                             [______________]
  [______________]

Similarity

Elements that look alike — in colour, shape, size or style — are perceived as related or having the same function.

  • Style all links the same way so people recognise them as clickable.
  • Use the same card design for items of the same type.
  • Make a different element look different on purpose (e.g. the selected tab, a sale price).

Common mistake: Styling non-clickable text like links (blue, underlined). Similarity tells users it should work like a link — and it doesn't.

Common region

Elements inside the same boundary are perceived as a group, even if they are far apart or look different. Cards, panels, table rows with backgrounds and boxed sections all use common region.

  • Use cards to group an image, title, price and button for one product.
  • Use a subtle background to group a set of filters.
  • Avoid boxing everything — too many borders create visual noise. Often proximity alone is enough.

Continuity

The eye follows lines, curves and aligned elements, and perceives elements arranged on a line as related.

  • Align items on a clear axis so the eye flows through them (left edges of a form, a timeline).
  • Horizontal carousels that cut off the last item suggest "there's more — keep scrolling".
  • Progress steppers connect steps with a line to show sequence.

Closure

People fill in missing parts to perceive a complete shape. A circle drawn with a gap still reads as a circle.

  • Icons and logos can be simplified because the brain completes them.
  • A card partially visible at the edge of the screen is understood as a full card.
  • Loading spinners use incomplete circles that still read as a circle in motion.

Figure–ground

People separate what they see into a foreground object (figure) and a background (ground). Clear figure–ground contrast tells people what to focus on.

  • Dim the page behind a modal so the modal is clearly the figure.
  • Use a background colour or shadow to lift a sheet or menu above the page.
  • Text on busy photos needs an overlay or shadow so it separates from the ground.

Common fate, symmetry and focal point

PrincipleWhat it saysUI example
Common fateElements moving together are seen as a groupSelected items animate together when dragged
Symmetry & orderPeople prefer simple, symmetrical, orderly formsBalanced layouts feel stable and calm
Focal pointWhatever stands out visually captures attention firstA single coloured button on a neutral screen
Uniform connectednessElements connected by lines are seen as related — strongest of allConnected steps in a stepper; related nodes in a diagram

Using principles together

Real interfaces combine several principles. A product card uses common region (the card boundary), proximity (title near price), similarity (all cards styled the same) and focal point (the coloured button). When principles conflict — for example, two items close together but styled differently — the stronger signal usually wins, so be deliberate.

Do

  • Use spacing as your first grouping tool.
  • Keep repeated items visually identical.
  • Make one focal point per area.
  • Check groupings in greyscale and at a glance.

Don't

  • Add borders and dividers everywhere.
  • Place labels exactly between two fields.
  • Style unrelated things the same way.
  • Let decorative elements compete with content.

Before adding a divider line, try adjusting spacing. Proximity can often do the same job with less visual noise.

Key takeaways

  • Gestalt principles describe how people perceive elements as organised groups.
  • Proximity is often the strongest grouping tool: more space between groups than within them.
  • Similarity signals related function; common region groups elements inside a boundary.
  • Continuity, closure and figure–ground guide the eye and focus attention.
  • Combine principles deliberately and prefer spacing over extra lines and boxes.

Exercise

Group a settings screen

  1. List 12 settings for an app (notifications, privacy, language, etc.).
  2. Group them into 3–4 sections using only spacing — no lines or boxes.
  3. Add section headings and check that each label sits closest to its control.
  4. Try a second version using cards (common region). Which feels clearer?
  5. Identify which Gestalt principles each version uses.

Test yourself

Gestalt principles quiz

5 questions. Score 70% or more to complete the lesson.

  1. 1.A form label sits exactly between two inputs, so it's unclear which it belongs to. Which principle fixes it?
  2. 2.Styling all links the same colour uses…
  3. 3.Putting related items inside one card uses…
  4. 4.Dimming the page behind a modal relies on…
  5. 5.A carousel cuts off the last card at the screen edge. Which principle tells users there's more?