For most business websites, the right way to embrace the dark mode trend is to support it rather than switch to it: keep a light design as the default and let the site follow each visitor’s device setting. That serves people who prefer dark screens without making text harder to read for everyone else. Here is what dark mode does well, where it falls short, and how to add it properly.
What dark mode is
Dark mode shows light text on a dark background. Every major phone and computer operating system now has a system-wide setting for it, and browsers pass that preference along to websites. A site built to listen can switch its colors automatically, with no button to press.
Why people turn it on
- Comfort in dim light. A bright white screen in a dark room is harsh. Many people switch to dark mode in the evening, or set their phones to change automatically at sunset.
- Battery life on OLED screens. On OLED displays, now common on phones, dark pixels draw less power. The savings are largest at high brightness and modest at typical indoor brightness. LCD screens, still common on laptops and monitors, save little because the backlight stays on.
- Light sensitivity. People with migraines, some eye conditions or a sensitivity to glare often find dark screens easier to tolerate.
- Taste. Plenty of people simply like the look.
What the research says about readability
The popular claim that dark mode is easier on everyone’s eyes doesn’t hold up well. Research summarized by the Nielsen Norman Group found that people with normal vision read and proofread more accurately with dark text on a light background, and the advantage grows as text gets smaller. Some people with cataracts and similar conditions do better with dark mode. The practical conclusion: offer the choice and respect it, rather than forcing one look on every visitor.
How to add dark mode properly
Follow the device setting
CSS can detect a visitor’s preference with the prefers-color-scheme media query, and the color-scheme property tells the browser to draw its own parts, such as form fields and scrollbars, in matching colors. The newer light-dark() function, supported across major browsers since 2024, lets each color declare its light and dark versions in a single line.
Build colors as a system, not a filter
Define your palette as named colors for the background, raised surfaces, body text, muted text, borders and your brand accent, then supply a dark version of each. Never simply invert the light design. Inverted photos look wrong, and inverted brand colors stop looking like your brand.
Avoid pure black and pure white
Very dark gray backgrounds with off-white text are easier to read than pure white on pure black, which can appear to glow or smear for some readers. Use slightly lighter grays for raised elements such as cards and menus, since shadows barely show on dark backgrounds.
Check contrast in both modes
The WCAG accessibility guidelines ask for a contrast ratio of at least 4.5:1 for body text and 3:1 for large text. A brand blue that passes on white often fails on dark gray, so dark mode usually needs lighter tints of your brand colors. Check both sets, not just the one you designed first.
Plan for logos and images
A dark logo disappears on a dark background, so prepare a light version; the HTML picture element can swap images based on the color scheme. Icons drawn as SVG can follow the text color automatically. Product photos shot on white backgrounds turn into bright boxes, so consider transparent or neutral backgrounds for key images.
A toggle is optional
Following the device setting covers most visitors. If you add a switch, remember the visitor’s choice and apply it before the page draws, or they will see a flash of the wrong colors on every load.
Test with real content
Switch your own phone to dark mode and walk through the site: menus, forms, error messages, tables, and the checkout or booking flow. Watch for third-party embeds such as maps, booking widgets and chat windows, which often stay bright and need a frame or a dark option from the provider. Make sure focus outlines and form borders are still visible in both modes, since keyboard users depend on them.
Don’t forget email
Newsletters and receipts face the same issue, with less control. Some email apps honor the dark styles you write, some recolor your message on their own, and some leave it alone. If email is a big part of your marketing, test your main messages in dark mode, give dark logos a light outline or a solid background, and avoid text baked into images.
Is dark by default right for your brand?
A dark default can suit brands built around evenings and atmosphere, such as entertainment venues, photographers or some technology products. For most service businesses, including clinics, contractors, law firms and retailers, a light default with full dark mode support is the safer choice. Apps are different: customers expect a mobile app to follow the phone’s setting, so plan both color sets from the first screen.
What it takes to add dark mode to an existing site
On a site whose colors are already defined in one place, adding dark mode is a contained job: define the dark palette, adjust images and logos, then test every page type in both modes. On an older site with colors scattered through hundreds of style rules, the cleanup comes first, and that cleanup is often worth doing for its own sake because it makes every later design change cheaper.
Digital Designs, which has taken over Code Crafted Digital’s clients, can design dark mode into a new site or add it to the one you have. See our website design services, or our mobile and web app development if your app needs both color schemes.