← Back to the principles list

Law of similarity in ecommerce

Next principle →

Things that look alike seem to belong together and work alike.

If a diet tag sits in the same box as a size button, shoppers expect it to do something when clicked. When nothing happens, the page feels broken and some of them give up.

Law of similarity
Made-up example: tags that look like buttons get clicked like buttons.

The law of similarity, one of the Gestalt rules for how we group what we see, says that things sharing a color, shape or size seem to belong together.

On a store page, that means every look should have one job. Give clickable things one style and plain facts another, so a shopper never has to guess what can be pressed.

Law of similarity example: diet tags boxed like hot sauce size buttons

A hot sauce page shows two diet tags, Gluten-Free and Vegan, and two size buttons: 5oz Bottle at $8 and 10oz Bottle at $14. The tags sit in exactly the same box as the size buttons, so the shopper sees four identical boxes. Most shoppers click Gluten-Free, nothing happens and they give up, which earns $0. The owner takes the box off the tags and leaves the words in place. Both results here are made up: most shoppers now choose the 5oz Bottle, an $8 order. Give buttons one look and plain facts another.

How the law of similarity works with other principles: 4 store examples

Matching looks tell shoppers what belongs together and what works the same way. These pairs show one rule it gets confused with, one that breaks it on purpose and two it helps. Every store below is made up to show the idea.

Law of similarity vs the law of proximity

Often confused with: Both sort things into groups, but the law of similarity does it by matching looks, and the law of proximity does it by closeness.

Illustrative store example: A hardware store shows screws and nails on matching gray cards, so they look like one family, which is similarity. Leave a wide gap before the nails and they start to look like a separate group, which is proximity, even though the cards still match.

Law of proximity: how spacing tells shoppers what goes together →

Law of similarity vs the Von Restorff effect

Clashes with: A consistent product grid tells shoppers the cards are equals, while the Von Restorff effect works by making one card different on purpose.

Illustrative store example: A fishing gear store has twenty matching rod cards and turns one bright red to mark the rod that suits beginners. That helps a beginner, so break the pattern only for a true reason like this and keep every other card the same.

Von Restorff effect: when breaking the pattern helps →

Law of similarity and signifiers

Works with: A signifier is a visual clue that something can be pressed, and the law of similarity spreads that clue, because matching buttons teach shoppers what else works.

Illustrative store example: A guitar store uses one dark rounded style for every button, so a shopper who has pressed Add to cart knows String guide can be pressed too. Then an app adds a flat gray button with no edge and shoppers miss it, so restyle it to match.

Signifiers: how to show shoppers what they can press →

Law of similarity and the group attractiveness effect

Works with: Products that share a color and style read as one group, and seeing them as a group can make each piece look better.

Illustrative store example: A baby clothes store photographs a hat, a bib and a blanket in three different settings, so they never read as a set. Shoot them together against one backdrop in one color family, and say on the page that each piece is sold separately.

Group attractiveness effect: why items look better together →

Put it into practice

How do I keep styles consistent across my Shopify theme?

Write a short list: one style for the main button, one for option pickers such as size, one for links and one for plain tags. Check your product page, cart and collection page against it. Apps are often the culprit, since each can bring its own buttons. Restyle what you can so every clickable thing follows the list.

What happens if everything on the page looks the same?

Nothing tells a shopper where to go next. Keep similarity for things that do the same job. Size pickers and Add to cart do different jobs, so they shouldn't look alike, and the main button should still be the easiest thing to spot.

How is the law of similarity different from a mental model?

A mental model is what a shopper already believes about how stores work, such as a cart icon leading to the cart. The law of similarity works inside your own page: things that look alike get treated alike. Both matter. A shopper learns your button style from the first button they press, then expects the next one to match.

How do I find tags that shoppers mistake for buttons?

Watch a few session recordings on phones or check a tap map, which shows where people tap. Repeated taps on a tag, a review score or a plain photo are the clue. You can also ask someone which things on a page they think can be pressed before they touch it. If they point at a tag, change its look.