Skip to content
Ben Serkan Zararsız

Dark mode is not inverted

Flipping white to black is the fastest way to build a dark mode, and the fastest way to make it tiring to read.

On this page
  1. Intro
  2. Not black, not white
  3. Depth works differently
  4. Colors need their own values
  5. Tokens, not a filter

Most first dark modes I see are the light mode with the colors swapped. White becomes black, black becomes white, done. It works for a screenshot. After ten minutes of reading, it hurts.

Not black, not white

Pure white text on pure black glows. Thin letters start to shimmer and long text gets hard to follow. A very dark grey background and an off white text color are calmer, and still have plenty of contrast.

A quiet evening

The train left on time. Most seats were empty, the lights were dimmed, and the only sound was the rain on the windows. She opened the book she had carried around for weeks and finally started reading.

Contrast

Dark grey and off white: calm to read

A quiet evening

The train left on time. Most seats were empty, the lights were dimmed, and the only sound was the rain on the windows. She opened the book she had carried around for weeks and finally started reading.

Contrast

Pure black and pure white: the letters glow

Both are far above the 4.5:1 minimum. Switch to thin text and read a few lines on each side.

Depth works differently

In light mode, shadows show what is on top. On a dark background shadows almost vanish. Use lighter surfaces instead: the closer something is to the viewer, the lighter its background. A menu above a card above the page, each one step lighter.

Inbox

Lena Hofer

Can we move the review to Thursday?

Surface

Closer means lighter

Inbox

Lena Hofer

Can we move the review to Thursday?

Surface

Black on black: the shadow has nothing to fall on

Lift the card. On the right the shadow grows too, you just cannot see it.

Colors need their own values

A brand blue that works on white is often too dark and too saturated on black. Every color needs a second value for dark mode, checked for contrast, not just inverted. Images and logos too: a dark logo on a dark page disappears.

Fernway

Weekly report

Sign-ups are up 8 percent. Most came from the new pricing page.

Open report →
ShareDuplicateDelete

TextLinkLogo

Lighter layers, a blue and a logo made for dark

Fernway

Weekly report

Sign-ups are up 8 percent. Most came from the new pricing page.

Open report →
ShareDuplicateDelete

TextLinkLogo

Light-mode blue and logo on pure black

Contrast is measured live from the colors above. 4.5:1 is the minimum for text.

Tokens, not a filter

The quickest dark mode is one line of code that inverts the whole page. It flips everything, also what should never flip: photos turn into negatives, and shadows start to glow.

Weekend at the lake

2 nights · from €180

Tokens: new values for surfaces and blue, the photo stays

Weekend at the lake

2 nights · from €180

One invert filter: a negative photo, a glowing shadow

Both start from the same light design.

Plan it in the design system from the start, as tokens with a light and a dark value. Then dark mode is a setting, not a second product.

Sources

  1. Apple Human Interface Guidelines: Dark Mode
  2. Apple Human Interface Guidelines: Color
  3. Nielsen Norman Group: Dark Mode vs. Light Mode: Which Is Better?
  4. W3C: Understanding WCAG 2.1: Contrast (Minimum)