JOURNAL / PRODUCT DESIGN / ACCESSIBILITY

Follow the system theme before you build a dark mode switch

Most people already chose light or dark in their system settings. Respect that first with prefers-color-scheme and color-scheme, design dark as a real second theme, and add your own switch only with a reason, and always with a System option.

· 5 MIN READ · Blanche Agency
Engraving-style drawing on lemon yellow of a vintage round porcelain wall switch with a small brass toggle.
Original illustration: the switch is the second decision, not the first. · Blanche Agency · aiBLANCHE / 2026

INTRODUCTION

Somewhere in most product backlogs there is a ticket that says “add dark mode toggle”. It usually arrives with a mock-up of a little sun and moon icon in the header, and it usually gets built in that order: the switch first, the dark theme second. That is backwards. The people using your product have, in most cases, already made this choice once, in their system settings. The first job of a dark theme is to respect that choice. A switch is a second, optional decision.

The preference already exists

Every major operating system now has a light and a dark appearance, and many people set it to change automatically with the time of day. Apple's Human Interface Guidelines on Dark Mode are blunt about what this means for apps: people generally expect every app to respect their systemwide preference, and apps should avoid offering their own appearance setting. An app-specific option, Apple argues, creates more work, because people have to adjust more than one setting, and worse, they may think the app is broken when it ignores the system choice.

The web has the same signal. The prefers-color-scheme media feature tells a page whether the person has asked for a light or dark appearance. The color-scheme property tells the browser which schemes the page supports, so it can draw the canvas, scrollbars and default form controls to match. MDN also recommends declaring it in a meta tag before any CSS, which helps prevent a flash of the wrong colours while the page loads.

Put together, a product can follow the system with no button at all. That is the baseline worth shipping first.

Dark mode is a second theme, not an inversion

The hard part is not detecting the preference. It is designing a dark theme that holds up. Apple's guidance notes that dark colours are not simply inversions of light ones: backgrounds get dimmer, foregrounds brighter, and some colours stay as they are. In practice, three things break most often.

  • Hard-coded colours. A theme works when components ask for roles such as surface, text, border and accent, and each theme answers with its own value. If a button has a raw hex colour in its stylesheet, it will be wrong in one of the two themes.

  • Contrast. WCAG's contrast minimum asks for at least 4.5:1 for normal text and 3:1 for large text, and it applies to each theme separately. Apple asks for at least 4.5:1 and suggests aiming for 7:1 for small text in custom colours. Secondary greys and placeholder text are the usual failures in dark themes, and disabled controls get even dimmer, which is one more reason a disabled button should not be a riddle.

  • Images and pure white. A product photo or logo on a white rectangle glows in a dark interface. Apple suggests slightly darkening images with white backgrounds, and the web.dev guide to prefers-color-scheme uses an off-white rather than pure white for text, so it does not bleed against dark surfaces. Logos often need their own dark-background version.

When your own switch earns its place

There are good reasons to add one. On the web, the person may not control the device: a shared office computer, a kiosk, a work laptop with a managed setting. Some people want a reading-heavy site dark at night while keeping the rest of their system light. And many people simply do not know the system setting exists.

If you add a control, the shape matters more than the icon. A two-state light/dark toggle forces people out of the automatic behaviour the moment they touch it, and often with no way back. A three-way choice, System, Light and Dark, with System as the default, keeps the original preference available and makes the product's behaviour explicit. Store the choice where it will be found again: on the device for anonymous visitors, on the account if you want it to follow people across devices. And apply it before the first paint, or people will see the wrong theme flash on every page load.

A worked example

Picture a hypothetical scheduling product used by clinic staff on shared front-desk computers and on their own phones. The team plans a header toggle. A better order: first, ship both themes driven by prefers-color-scheme, with tokens for every colour and the colour-scheme meta tag in place. Phones that switch to dark in the evening now just work. Second, look at the shared computers: they are set to light by the IT department, but night-shift staff want dark. That is a real reason, so the product adds an Appearance setting with System, Light and Dark, stored per user account. Day staff never touch it. Nothing about the first step was wasted.

The serious counterargument

Brands with a strong visual identity sometimes resist a dark theme altogether, and they are not always wrong. Apple itself allows a permanently dark appearance in rare cases, such as immersive media apps where the interface should recede. A product built on one carefully tuned palette may be better served by a single excellent theme than by two mediocre ones. But that is a decision to make on purpose, with contrast checked and images tested, not a default you fall into because the theme work was never scheduled.

The order of work

Define colours as roles, build the dark values, test contrast in both themes, fix images and logos, and let the system preference drive it all. Then ask whether anyone actually needs a switch. If they do, give them three options, keep System as the default and remember their answer. Sources checked on 28 November 2026.

KEEP THINKING

Keep reading.

More ideas on building better brands and digital products.

Product design

A countdown should count down to something real

Product design

A link should say where it goes

View all articles