Design3 min

Visual hierarchy in UI design: how to guide the eye

Visual hierarchy in UI design explained with examples: size, weight, colour, contrast, spacing and position, plus F and Z patterns and how to test hierarchy.

Saurabh YadavFounder, Design Studio by Saurabh
DesignVisual hierarchyTypographyLayout
Share

Visual hierarchy is the order in which people notice things on a screen. When it works, users know where to look and what to do without thinking. When it doesn't, everything shouts and nothing gets heard.

The tools of hierarchy

ToolHow it creates importance
SizeBigger elements are seen first
WeightBold text stands out from regular
ColourSaturated or brand colours attract attention
ContrastHigh contrast pulls focus; low contrast recedes
SpacingSpace around an element makes it feel important
PositionTop and left (in left-to-right languages) are seen early
DepthShadows and layers bring elements forward

Typographic hierarchy

Most screens need only three or four text levels: a title, a section heading, body text and small supporting text. Use a type scale so each level is clearly different, and don't rely on size alone; weight and colour help too.

One primary focus per screen

Decide the single most important thing on each screen, usually the main action, and make it the strongest element. Everything else should step back. Several "primary" buttons cancel each other out. See button design best practices.

Reading patterns: F and Z

  • F-pattern: on text-heavy pages, people scan the top, then down the left side. Put key words at the start of headings and lines.
  • Z-pattern: on simple pages like landing pages, the eye moves across the top, diagonally down and across the bottom. Place the logo, headline and call to action along that path.

Use whitespace as a tool

Space isn't empty. It groups related items, separates sections and gives important elements room to stand out. Crowded screens flatten hierarchy.

How to test hierarchy

  1. Squint test: blur your eyes; the most important element should still stand out.
  2. Five-second test: show the screen for five seconds and ask what people remember.
  3. Greyscale check: remove colour to see if size and weight alone create a clear order.

Tip

If everything is bold, nothing is. Limit emphasis to the few things that really matter.

Work with us

Want a team to design it with you? Our UI/UX design agency for startups and SaaS takes products from research to developer handoff.

FAQ

What is visual hierarchy in UI design?

Visual hierarchy is the arrangement of elements so people notice them in order of importance. Designers use size, weight, colour, contrast, spacing and position to guide the eye to what matters most.

How do you create visual hierarchy?

Decide what matters most on the screen, then make it the largest, boldest or highest-contrast element, give it space and place it where people look first. Reduce emphasis on everything else.

How can I test my design's visual hierarchy?

Use the squint test, a five-second test with users and a greyscale check. If people can't quickly tell what matters most, the hierarchy needs work.

Key takeaways

  • Hierarchy decides what people see first, second and third.
  • Use size, weight, colour, contrast, spacing and position together.
  • Keep three or four clear text levels.
  • Give each screen one primary focus.
  • Test with the squint, five-second and greyscale checks.

What to do next

Run the squint test on your homepage and your most important app screen. If the main action doesn't stand out, start there. For a full UI review, get in touch.

Saurabh Yadav's Memoji

Written by

Saurabh Yadav

Founder of Design Studio by Saurabh, a UI/UX design studio in India. We design apps and websites that feel effortless, from research to shipped pixels. Most recently: Pukaar.ai, as seen on Shark Tank India, and the Demerara Bank app.

Keep reading

All articles →