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
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
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
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.
Weekly report
Sign-ups are up 8 percent. Most came from the new pricing page.
Open report →TextLinkLogo
Lighter layers, a blue and a logo made for dark
Weekly report
Sign-ups are up 8 percent. Most came from the new pricing page.
Open report →TextLinkLogo
Light-mode blue and logo on pure black
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
Tokens: new values for surfaces and blue, the photo stays
Weekend at the lake
One invert filter: a negative photo, a glowing shadow
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
- Apple Human Interface Guidelines: Dark Mode
- Apple Human Interface Guidelines: Color
- Nielsen Norman Group: Dark Mode vs. Light Mode: Which Is Better?
- W3C: Understanding WCAG 2.1: Contrast (Minimum)