Designing Dark Mode: Surfaces, Colour Tokens and Images
Visual HierarchyTYPENORMLabs8 minNovember 3, 2026

Designing Dark Mode: Surfaces, Colour Tokens and Images

What the research says about dark mode for reading and battery life, how dark surfaces show elevation, why colour tokens need a second set of values, and what happens to logos, illustrations and ads when the background flips.

When DoorDash's web order flow has no restaurants for a location, it fills the page with STAY TUNED in large display letters: nine letters in six colours, on white.

Unavailable delivery state
Unavailable delivery state — Unavailable delivery inventory becomes a large illustrated empty state without removing navigation or fulfillment controls.

Those colours were picked for a white page. The bright yellow U barely separates from the background, and the dark green D stands out most. Measured against #121212, a common dark-mode background, the order flips: the U goes from 1.29:1 to 14.52:1 and the D from 8.05:1 to 2.33:1. The lettering is decorative, so no contrast rule applies to it.

What dark mode is

Dark mode is a colour scheme that puts light text and controls on a dark background, the reverse of the dark-on-light default most interfaces use. Operating systems made it a system-wide setting between 2018 and 2019: macOS Mojave in 2018, then iOS 13 and Android 10 in 2019.

A dark theme is a separate set of values for the same design: backgrounds, surfaces, text, borders, brand colours, shadows and images. Teams that treat it as a CSS filter or a quick inversion ship the problems below.

Reading performance and eyesight

The research on reading leans toward light mode for most people. In a 2013 study in Ergonomics, Piepenbrock and colleagues tested younger and older adults on visual acuity and proofreading with dark-on-light and light-on-dark text. Dark text on a light background did better in both age groups. Nielsen Norman Group's review of the literature reaches the same conclusion for people with normal or corrected vision, and notes that some people with cataracts and related conditions may do better with light text on dark (NN/g — Dark Mode vs. Light Mode).

The reason usually given is pupil size. A bright page makes the pupil contract, which sharpens focus, much as a smaller aperture does on a camera.

So dark mode is not a reading upgrade. People pick it for other reasons: a dim room, a phone checked in bed, a screen that sits beside a film or a game, or plain preference. Those are good reasons to offer it.

Battery life on OLED screens

Dark mode saves power only on OLED and similar displays, where each pixel produces its own light and a black pixel is switched off. LCD screens light the whole panel from behind, so a dark interface saves little or nothing there.

Purdue researchers measured the saving on several OLED phones and presented it at MobiSys 2021 (Purdue University). At 100% brightness, switching from light to dark mode cut display power by 39% to 47% on average. At 30% to 50% brightness, the saving was 3% to 9%.

Surfaces and elevation

In a light theme, a card or menu that sits above the page is usually shown with a shadow. Shadows barely show on a near-black background, so dark themes signal elevation with lightness instead: the closer a surface is to the user, the lighter its grey.

Material Design's dark theme guidance made this concrete (Material Design — Dark theme). The base surface is #121212, and higher surfaces get a semi-transparent white overlay on top of it:

ElevationWhite overlayResulting greyWhite text on it
Base (0dp)0%#12121218.73:1
1dp5%#1E1E1E16.67:1
6dp11%#2C2C2C13.97:1
24dp16%#38383811.73:1

Material 3 has since replaced the overlay with a set of tonal surface colours, but the principle is the same. Text on the highest surface still has to pass.

Twitch's web directory, which rendered dark in our signed-out capture, shows the same layering. We sampled the pixels: the main page is #0E0E10, the top bar #18181A, and the Live Channels sidebar #27262C. Against each other those greys are close, 1.09:1 between page and top bar and 1.29:1 between page and sidebar. That's enough to separate regions without drawing a line. White text on the page comes out at 19.28:1.

Live channel directory
Live channel directory — Switching tabs replaces category covers with live stream cards while keeping language, tag, and sort controls.

The background is not pure black. #000000 gives white text the full 21:1, and a shadow on it doesn't show at all. On some OLED panels pure black also makes smearing visible when content scrolls.

Text and colour tokens

Dark mode is easiest to build when colours are named by role rather than by value. A token called text-primary or surface-raised can hold one hex value in the light theme and another in the dark theme. A token called gray-900 can't, because "the darkest grey" means a different thing on each background. This is the same structure that a visual hierarchy is built on: the roles stay fixed and the values change.

Text in a dark theme is usually set slightly below full white so it doesn't glare. Material's guidance uses white at 87% opacity for high-emphasis text, 60% for medium and 38% for disabled. The high- and medium-emphasis values have to be checked against the actual surfaces they sit on, including the raised ones, using the same rules covered in meeting WCAG AA with a color contrast checker. WCAG's contrast requirements apply equally to both themes.

Brand colours need their own dark values too. Saturated colours that look solid on white can vibrate on near-black, so dark themes often use a lighter, less saturated tint of the brand colour. The ratios can also move in your favour. DoorDash's logo red, which we sampled as #FB310D, is 3.79:1 on white, which fails for normal-size text. On #121212 it's 4.95:1, which passes. Twitch's purple category buttons, #5F15C6, carry white labels at 8.72:1, while the purple against the page behind it is only 2.21:1. The label identifies the control, so that's fine here, but an icon-only button in the same purple would be hard to make out.

Check these in both themes:

  • Borders and dividers, which often disappear on dark surfaces and need a lighter value rather than a darker one
  • Focus rings, especially ones built from the brand colour
  • Error, warning and success colours, where the light-theme red or green can be too dark to read
  • Disabled states, which can drop below anything a person can see
  • Charts, where a categorical palette tuned for white may lose its darkest series

Logos, illustrations and ads

Images are where a dark theme is most likely to break, because they don't use your tokens.

Logos. A dark logo on a transparent background disappears on a dark page, the same way DoorDash's dark green D falls from 8.05:1 to 2.33:1. Ship a light variant, or place the logo on a light plate.

Illustrations and diagrams. Line art drawn in black on white needs a dark version, or a card that keeps it on white. The card is easier to read than black lines on near-black, but it becomes the brightest rectangle on the screen. Photos can usually stay as they are.

Ads and embeds. These are designed for whatever page the advertiser or the embed's owner had in mind, which is often a white one. On the Twitch directory, a pale lavender ad banner sits above the Browse heading, at 10.95:1 against the near-black page around it. In a dark room that is a block of glare in the middle of the screen. You can't recolour an ad, so the choices are where the slot sits and how much of the reading path it interrupts.

On the web, <picture> with a prefers-color-scheme media query serves a different image per theme without JavaScript:

<picture>
  <source srcset="/logo-light.svg" media="(prefers-color-scheme: dark)">
  <img src="/logo-dark.svg" alt="Company name">
</picture>

The system setting and the in-app switch

Apple's guidelines say to follow the system appearance and avoid offering a separate appearance setting inside an app, because it makes people adjust two settings to get the result they want (Apple HIG — Dark Mode). The system setting can also switch automatically between light and dark through the day, possibly while your app is open, so the change has to work live.

On the web, the browser exposes the system setting through the prefers-color-scheme media query. The color-scheme property, or a <meta name="color-scheme" content="light dark"> tag, tells the browser that the page supports both, so scrollbars, form controls and the default page background follow along.

Websites often add their own switch anyway, because people read the same site on several devices with different settings. If you add one, give it three options: System, Light and Dark, with System as the default. Save the choice, and apply it before the page first paints. A site that loads light and then switches to dark after its script runs flashes white on every page load, which is worse in a dark room than having no dark mode at all.

When to build it

A dark theme is a second design to maintain, test and screenshot. It pays off first in products people use for long sessions in dim light: media, streaming, chat, developer tools, reading apps at night. For a marketing site or an occasional-use form, a dark theme that follows the system setting, with no in-app switch, covers most people.

If you do build one, design both themes at once from the start. Adding dark mode to a product whose colours were never tokenised means finding every hard-coded hex value, every dark logo and every illustration drawn for white, which is a large job.

FAQ

Is dark mode better for your eyes?

No, not for reading. Dark text on light came out ahead in the studies above. People pick dark mode for a dim room, and NN/g notes that some people with cataracts may read better with it.

Does dark mode save battery?

On OLED screens, yes. Purdue measured 39% to 47% less display power at full brightness and 3% to 9% at 30% to 50% brightness. On LCD screens the saving is negligible.

Should a dark theme use pure black?

Usually not. A dark grey such as #121212 still shows a shadow and avoids smearing on some OLED screens. Some apps offer a separate true-black option for OLED users.

Do I need to check contrast twice?

Yes. Every colour that carries meaning needs a passing ratio in each theme, against every surface it can sit on. Decorative lettering and disabled controls are exempt.

Sources: NN/g — Dark Mode vs. Light Mode: Which Is Better? · Piepenbrock, C. et al. (2013), "Positive display polarity is advantageous for both younger and older adults," Ergonomics 56(7) · Purdue University — Dark mode may not save your phone's battery life as much as you think · Material Design — Dark theme · Apple HIG — Dark Mode. Contrast ratios for DoorDash and Twitch were computed from pixels sampled in our captures.

Free UX Snapshot for 50 Product Teams

Apply now and get a complimentary UX Snapshot — our rapid clarity audit delivered in 48 hours. Limited to the first 50 products.

Apply for Free UX Snapshot

Comments

Loading comments…

Related

Navigation Design

YouTube UX Teardown, October 2026: The Hype Chart, From List to Mini-Player

YouTube's Brazilian Hype Top 100 keeps its name on screen from the list to the watch page, where it is labelled Unlisted and drops the hyped labels, and on to the mini-player. The rows print views and age but no hype count. October 2026 edition, with a comparison against our June screens.

TYPENORMLabs · 4 min · November 27, 2026

Media & Entertainment
Web
Navigation Design
YouTube UX Teardown, October 2026: The Hype Chart, From List to Mini-Player

UX Clarity

Wise UX Teardown: Remitly on Top of Wise's Own Price Table

For 1,000 USD to EUR, the first row of Wise's own provider comparison is Remitly, 0.34 EUR ahead of Wise, while Wise's row gets the green fill and the largest type. A teardown of the converter, rate chart, comparison table and send calculator on Wise's US site.

TYPENORMLabs · 6 min · November 3, 2026

Fintech
Web
UX Clarity
Wise UX Teardown: Remitly on Top of Wise's Own Price Table

Information Architecture

WhatsApp UX Teardown: Download on Every Page, Then a Business Site That Asks You to Choose

Every consumer page on whatsapp.com keeps a green Download button at the right end of the nav. The For Business link opens whatsappbusiness.com, where the hero offers Get Started and Download App at equal size, one scroll above the cards that explain the two business products.

TYPENORMLabs · 5 min · November 7, 2026

SaaS
Web
Conversational
WhatsApp UX Teardown: Download on Every Page, Then a Business Site That Asks You to Choose