#Overview

A divider helps to structure a page visually.

#When to use

  • To separate list items
  • When white space or titles are not sufficient to convey the hierarchy or architecture of the user interface

#When not to use

  • When white space or titles are already sufficient to separate content

#Anatomy

#Color

Dividers always use the same color. This is to maintain consistency and reduce maintenance work.

There is one exception for the specifications table on the Product Detail Page (PDP), which uses a lighter gray of #EEEEEE.

color
  1. Galaxus
  2. Digitec

#Best practices

#Divider width: Default vs Hover

Do

Align dividers with the elements they are dividing.

image-do

Don't

Do not align dividers with the outer edges of the parent element.

image-dont

Do

Dividers can be stretched to the outer edges of the parent element as a hover effect only.

image-do

#Dividers are not used for headings

Do

Use text weight and size to separate headers from list items whenever possible.

image-do

Don't

Do not use separator lines to separate headings from content.

image-dont

#Dividers do not separate content sections

Do

Use white space to separate content sections.

image-do

Don't

Adding a separator adds visual noise, and it is more difficult to see where the list ends.

image-do

#Vertical dividers are used between elements

Do

Use vertical dividers between elements in a horizontal list.

image-do

Don't

Do not begin or end a horizontal list with a divider.

image-dont

#Exceptions

#Products in List mode

Do

Product List Items always begin and end with a divider. This is needed to hold the contents of the element together.

image-do

Don't

Don’t use Product List Items without dividers, as they easily fall apart from a visual perspective.

image-dont

#Products or Teasers between paragraphs

Do

Use dividers for all UI elements within or between paragraphs to separate them from the text.

image-do

Don't

Don’t place UI elements between or within paragraphs without dividers.

image-dont