Proximity
UI DesignWhat is Proximity
Proximity is a Gestalt principle stating that elements close to each other are seen as related, while elements far apart are seen as separate groups. In UI design, spacing alone can show which items belong together.
How Proximity works
- Small gaps: Items inside a group sit close together
- Larger gaps: Groups are separated by more space
- Strong cue: Proximity can overpower color or shape similarity
How to use Proximity
Place labels close to their own field in forms and group related fields. In cards, keep a title, image and actions together. Use more space between groups than inside them. This makes extra borders and dividers less necessary.
Why Proximity matters
Wrong spacing makes users connect the wrong items, such as a label with the wrong field.
Frequently asked questions
How does proximity apply to forms?
Place each label close to its own field, with more space between field groups than inside them. If a label sits halfway between two fields, users cannot tell which field it belongs to.
Which is stronger, proximity or similarity?
Proximity is one of the strongest grouping cues. NN/g notes it can overpower other cues such as similar color or shape, so spacing often decides what users see as a group.
Where does the proximity principle come from?
It is one of the Gestalt principles, described by Gestalt psychologists in the first half of the 20th century to explain how people group what they see.
Related terms
View all UI Design terms →Gestalt Principles
Gestalt Principles are fundamental laws of visual perception that describe how humans naturally organize visual elements into groups or…
White Space
White Space (also known as negative space) is the empty area between and around elements in a design. It's not necessarily white in color…
Alignment
Alignment is the placement of elements along shared edges or lines . When titles, text, images and buttons line up, a layout looks orderly…
Card
A card is a container that groups short, related information about one subject , such as a product, article or job. It roughly looks like…
Visual Hierarchy
Visual hierarchy is the order in which the eye moves through the elements on a screen. Designers set it with contrast, size and grouping…
Input Field
An input field, or text field, is a box where users type information , such as a name, email address or password. It is the most common…
