Applying white space in UI design

[unable to retrieve full-text content]

8 practical tips, with examples.

Good UI design is the thoughtful application of whitespace at all scales of an interface, from component to page, micro to macro. When whitespace is used well, the result is an interface that is harmonious, legible, and, above all, effective and easy to use.

1 / Follow the Law of Proximity.

The amount of whitespace between elements in the UI indicate how the elements relate to one another. The Law of Proximity suggests that:

  1. Related elements should be spaced closer together. Conversely, unrelated elements should be spaced further apart.
  2. Elements of the same “type” should be spaced evenly apart.

Follow these basic rules to help users readily organize and perceive logical groupings in your UI.

Whitespace works hand in hand with the size, weight, and color of the text to convey the hierarchy of elements in an interface.

2 / Start from a baseline of generous whitespace.

Let your design breathe. A reliable way to improve the usability of an interface is to ensure that there is a generous amount of whitespace between all its elements.

The form controls here are spaced too closely together.
The form controls here are appropriately spaced apart, and more comfortable on the eye.

There are exceptions, of course (see the last tip below), but for most UIs, having a generous amount of whitespace is usually better than having too little.

3 / Use whitespace to focus attention on particular design elements.

Having less information and fewer elements on the page can help bring clarity and focus, and draw attention to the information and elements that are on the page.

Whitespace can also be an effective way to add emphasis to text. It can be used in combination with — and even as an alternative to — bumping up the text size, or changing the color, case, or weight of the text.

̇

̇

̇

This sentence, surrounded by whitespace, is a case in point.

̣

̣

̣

Making an element bigger or brighter isn’t the only way to draw attention to it. Consider that when everything is bigger and brighter and important, nothing actually is.

4 / Use the same method for measuring space in both design and implementation.

The space between adjacent text elements can be measured in one of two ways.

Between adjacent “bounding boxes”

This method is how most UI rendering engines (eg. the Document Object Model on a webpage) measure space. However, this method is not particularly precise because there is excess space that is “unaccounted” for at the top and bottom of each bounding box.

Measuring space between adjacent “bounding boxes”.

Between adjacent cap heights

This method is more precise, but could complicate implementation.

Measuring space between adjacent cap heights.

Both methods are reasonable, but have different trade-offs. What is important here is that the same method for measuring space is used in both design and implementation. This is to ensure that the design can be accurately translated into code.

5 / Use a spacing system.

A spacing system specifies the set of possible spacing values to be used in a design. Using a spacing system can help bring about a sense of consistency and harmony to a UI.

You only really need a handful of values in a spacing system. Here, four different spacing values are used, namely 12, 16, 32, and 56.

A spacing system is to whitespace what a color palette is to color. Just like a color palette, a spacing system forces you to make UI design decisions from a constrained set of options. With a spacing system in place, you need only consider the handful of spacing values from the system during the UI design process. This makes design iteration faster and more systematic.

6 / Avoid using spacing values that are visually too similar.

When spacing values are mathematically different but visually too similar, the way that users perceive logical groupings in the UI could become ambiguous. Contrast matters. If your intent is for two spacing values to be different, then make it readily obvious that they are in fact different.

The space above and below each “actions row” are too similar, and it is unclear which video each action row is supposed to be associated with.
Having sufficient space below each “actions row” helps to clarify the relationship between each video and its associated actions.

Consider having a wider “spread” of values in your spacing system, with a visually obvious difference between adjacent spacing values.

This is a non-linear spacing system with a progressively larger increment going from one spacing value to the next.

7 / Reduce the line-height (ie. leading) as text size increases.

Increasing the text size while keeping the same proportional line-height will result in there being too much whitespace between each line of text. Relative to the text size, the proportional line-height of headings should generally be less than the line-height of the body copy.

The two lines of text are too far apart from one another.
When a smaller line-height is used, the two lines of text are perceived as a single visual group.

8 / In an information-dense UI, rely on other techniques besides whitespace to convey how elements in the UI relate to one another.

For example:

  • Adding a subtle fill or border around a group of related elements.
  • Using a line to separate adjacent elements that are closely-packed vertically. Or, using an interpunct character (“·”) to separate adjacent elements that are arranged horizontally.
  • Changing the size, case, weight, or color of the text as a way to associate or differentiate UI elements.
Increasing information density through reducing whitespace, reducing the text size, and adding a subtle horizontal line to ensure that adjacent rows are perceived as being visually distinct from each another.

Making an interface more information dense could help to make it more efficient to use. Remember that an interface that is information dense does not necessarily need to feel cluttered or overwhelming.

An effective way to learn about whitespace — and, indeed, UI design in general — is to create a “master copy”: pick one or more screens from any app or website with an interface that you admire, and recreate it in its entirety, from scratch. You will gain an insight into the many small design decisions that were made, discover interesting patterns, and see how the above tips about whitespace actually play out in well-crafted UIs.

There are reasons for why an interface “looks right”. Through experience and practice, you can hone your visual sense and intuition about how to apply whitespace in your designs. Your users will thank you for it.

If you enjoyed this article, follow me on Twitter, LinkedIn, or Medium.

The UX Collective donates US$1 for each article published on our platform. This story contributed to Bay Area Black Designers: a professional development community for Black people who are digital designers and researchers in the San Francisco Bay Area. By joining together in community, members share inspiration, connection, peer mentorship, professional development, resources, feedback, support, and resilience. Silence against systemic racism is not an option. Build the design community you believe in.


Applying white space in UI design was originally published in UX Collective on Medium, where people are continuing the conversation by highlighting and responding to this story.

Leave a comment

Your email address will not be published.