Visual Hierarchy, Gestalt and Typography
Use size, contrast, spacing and grouping to show what matters most, apply Gestalt principles, and choose readable type and purposeful color.
Welcome back!
Step 1 of 13Learn
Where does your eye go first?
Open any well-designed product page and notice what you see first: usually the product name and photo, then the price, then a single bold "Add to cart" button. That order isn't accidental. It's visual hierarchy: arranging elements so their importance is obvious before anyone reads a word.
Designers control hierarchy with a handful of tools:
- Size: larger elements read as more important.
- Contrast and color: a saturated button on a neutral page draws the eye.
- Weight: bold text stands out from regular text.
- Position: in left-to-right languages, people often start at the top left. Content "above the fold" (visible without scrolling) gets more attention, though people do scroll when the page gives them reason to.
- Spacing: elements surrounded by empty space feel more important and easier to focus on.
A quick test is the squint test: blur your eyes or the screenshot and see what still stands out. If it's a decorative banner instead of the main action, the hierarchy is wrong.
A common mistake is making everything important. When five buttons are all big, bold and colorful, none of them stands out. Good hierarchy means deciding what's primary (usually one main action per screen), what's secondary, and what can quietly recede.
Step 2 of 13Diagram
The eye path on a product page
A strong hierarchy decides the order in which the eye moves. Size, contrast and position do the steering. Tap a step to see which tool is doing the work.
Tap a shape with to see more.
- Product photo
Largest element, placed at the top: size and position win first.
- Product name
Large, heavy type right next to the photo.
- Price
Bold, but smaller than the name: important, yet secondary.
- Add to cart
The only high-contrast filled button, so it stands out as the one action.
- Description and reviews
Regular body text lower down, for people who want more.
Step 3 of 13Practice · Choose one
A sign-up screen has four buttons of equal size and bright color: "Sign up," "Learn more," "Watch video" and "Contact sales." Users hesitate. What is the best fix?
Step 4 of 13Learn
Gestalt principles
The Gestalt principles come from early 20th-century psychology research on how people perceive visual patterns. The brain automatically groups elements, and designers use that tendency to show relationships without extra lines or labels.
- Proximity: items close together are seen as a group. A label placed closer to its input field than to the field above it is clearly linked to the right field.
- Similarity: items that look alike (same color, shape or size) are seen as related. All clickable links in one color tell users "these behave the same way."
- Common region: items inside the same boundary, such as a card or box, are seen as a group.
- Continuity: the eye follows lines and curves, so aligned items read as a sequence.
- Closure: the brain fills in gaps, completing shapes that are only suggested.
- Figure and ground: we separate a foreground object from its background. Modal dialogs dim the page behind them to make this obvious.
Proximity is the one designers break most often. Forms where each label sits exactly halfway between two fields, or product cards where the price is closer to the next product than to its own, create confusion that no amount of color can fix. Before adding borders and dividers, try adjusting spacing: often, more space between groups and less space within them does the job.
Step 5 of 13Practice · Match the pairs
Match each design choice to the Gestalt principle it uses.
Tap an answer, then tap the place where it belongs (or drag it there).
- A label sits right above its input with extra space before the next field
- All links on a site share the same blue color
- Related settings are placed inside one bordered card
- The page behind a pop-up dialog is dimmed
Step 6 of 13Flashcards
Gestalt principles in interfaces
Tap a card to flip it.
Step 7 of 13Learn
Typography for reading
Most of what users do on screens is read, so typography is one of the most important parts of interface design.
Readable body text. On the web, body text is commonly set at 16 pixels or larger. Smaller text strains eyes, especially on phones and for older users.
Line length. Lines that are too long make it hard to find the start of the next line; lines that are too short break up reading. A common guideline is roughly 50 to 75 characters per line for body text.
Line height. Body text usually reads well with line spacing around 1.4 to 1.6 times the font size.
A clear type scale. Use a small set of sizes consistently: for example, body, small, and three heading levels. If every heading is a slightly different size, users can't tell the levels apart.
Limited fonts. One or two typefaces are plenty for most products. Use weight and size, not new fonts, to create contrast.
Alignment. Left-aligned text (in left-to-right languages) is easiest to read in long passages. Centered text works for short headings but becomes tiring for paragraphs. Fully justified text can create uneven gaps between words.
These are guidelines, not laws. Test on real devices with real content, and pay attention to how your text looks in other languages, which may run longer or need different line spacing.
Step 8 of 13Diagram
Comfortable line length for body text
Line length is counted in characters per line, including spaces. Too short and the eye jumps constantly; too long and readers lose their place when returning to the next line.
Tap a shape with to see more.
- Narrow phone column
Fine for short captions, choppy for long articles.
- Often-cited ideal (~66)
Within the 45 to 75 range typographers have recommended for decades.
- Full-width desktop text
Text stretched across a wide screen: set a max width on the text container.
Step 9 of 13Practice · Select all that apply
Which typography choices generally improve readability of body text on a website?
Select all that apply.
Step 10 of 13Learn
Color with a purpose
Color does three jobs in interfaces: brand, meaning and hierarchy. Problems start when it's used only for decoration.
Use color consistently for meaning. If red means error, don't also use it for a "Sale" badge and a heading. Common conventions: red for errors and destructive actions, green for success, amber or yellow for warnings, and one brand color for primary actions.
Limit the palette. A typical interface uses one or two brand colors, a set of neutrals (grays) for text and backgrounds, and a few semantic colors for status. More than that, and nothing stands out.
Never rely on color alone. About 1 in 12 men and 1 in 200 women have some form of color vision deficiency, most commonly difficulty telling red from green. An error shown only by a red border may be invisible to them. Add an icon, text ("Required"), or a pattern. The same rule applies to charts: label lines directly or use different line styles, not just different colors.
Check contrast. Light gray text on white may look elegant on a designer's high-end screen and be unreadable on a cheap laptop in sunlight. You'll learn how to measure contrast in the next lesson.
Remember dark mode. Many users switch themes. Colors that work on white can fail on dark backgrounds, so define colors as a system and test both.
Step 11 of 13Note
Step 12 of 13Practice · True or false
Marking required form fields only with red text color is enough, as long as the red is bright.
Step 13 of 13Practice · What would you do?
What would you do?
In a product grid, each item's price sits exactly halfway between its own photo and the photo of the product below. Testers sometimes read the wrong price. What is the most effective fix?
Lesson complete!