Law of Similarity
Synonyms: similarity principle, Gestalt principle of similarity, law of likeness, grouping by similarity, visual similarity
Definition
Use cases
- Fake links: Body text uses the link blue for emphasis. Users tap it, nothing happens, and trust drops.
- Look-alike buttons: "Delete account" and "Save changes" share the same filled style. Users read them as equal, and a destructive action is one careless tap away.
- Static cards that look tappable: A dashboard styles clickable and read-only cards the same way. Users tap the static ones and report bugs.
How it's used in practice
- One style per job: Give each element type (primary button, link, tag, status) one visual treatment and lock it into components.
- Run a style audit: Paste every button from a flow onto one page. A style that shows up once is a new job or a mistake.
- Break the pattern on purpose: Make the one thing you want noticed look different, such as one filled button among outline buttons.
- Pair it with spacing: Group related items with spacing too. When the 2 conflict, spacing wins.
- Hand off states: Document hover, selected, disabled, and error states so engineers don't invent new look-alikes.
Challenges & limitations
- Hard to spot in testing: Users rarely say "these looked related." The problem shows up as misclicks in session recordings.
- Style drift: Teams add "just one more" button variant each sprint, and nobody notices until an audit.
- Too much sameness: When everything matches, users can't find the main action.
Free resources
- NN/g: Similarity, Gestalt Principle 1 for UI Design — short video version of the principle for quick team sharing
- Jakob Nielsen: Gestalt Principles for Visual UI Design — the 9 grouping cues that carry the most weight in UI layouts
- Smashing Magazine: Improve Your Designs With the Principles of Similarity and Proximity — Jon Hensley's real-world examples of both principles in use
