How to Test Dark Mode Rendering on Your Website

To test dark mode on your website, open your site with dark mode switched on — either by toggling your operating system’s dark theme or by emulating prefers-color-scheme: dark in your browser’s developer tools — then click through every page and check that text stays readable, images and logos still work, and no element disappears into the background.

Most site owners never run this test. Their site looks perfect in light mode, so they assume it looks fine everywhere. But a large share of visitors browse with dark mode enabled — on phones especially — and for those visitors, an untested site can look broken: grey text on dark grey, a logo that vanishes, buttons you can’t read, or images with white boxes around them.

What Is Dark Mode Rendering?

Dark mode is a display setting in the operating system and the browser that asks websites to swap their colour scheme: dark backgrounds, light text. When a visitor has dark mode on, their browser sends a signal called prefers-color-scheme: dark to every site they visit. A site that supports dark mode reads that signal and serves its dark stylesheet. A site that doesn’t simply renders in its normal light colours — which is fine, as long as nothing goes wrong in the process.

The trouble starts in the middle ground. Many sites partially support dark mode: the theme ships a dark variant, but some elements — a plugin widget, a form, an embedded map, a logo with a transparent background — were never updated for it. The result is a site that looks intentional in light mode and accidental in dark mode. Every major operating system and browser ships dark mode, so a share of your visitors are already seeing your dark rendering, whether you tested it or not.

How Do I Turn On Dark Mode to Test It?

You have two routes: change the setting on your device, or emulate it in the browser without touching your system settings.

On your device. Windows: Settings → Personalization → Colors → Dark. macOS: System Settings → Appearance → Dark. iPhone: Settings → Display & Brightness → Dark. Android: Settings → Display → Dark theme. Once the OS is in dark mode, most browsers follow automatically.

In the browser, without changing your system. This is the faster route for testing. In Chrome or Edge, open DevTools (F12 or Ctrl+Shift+I), open the Command Palette (Ctrl+Shift+P), type “Show rendering”, and in the Rendering panel set “Emulate CSS media feature prefers-color-scheme” to dark. In Firefox, open DevTools and toggle the dark-mode simulation icon in the inspector menu. Safari’s Responsive Design Mode lets you switch appearance per tab.

The DevTools route is the one I use most, because it lets me flip between light and dark on the same page in seconds — and flipping back and forth is exactly how you spot the elements that change badly.

How Do I Test Dark Mode on My Website?

A real dark mode test is a page-by-page walkthrough, not a glance at the homepage. Here is the method that catches the most defects:

1. Walk your key pages. Open the homepage in dark mode, then your most-visited pages, your contact or signup page, and any page with a form or checkout. Forms and embedded tools are where dark mode breaks most often, because they are usually styled by a different plugin than the rest of the page.

2. Check text contrast on every section. Read the body copy, headings, footer, and any text on an image or coloured banner. The classic failure is text that was a soft grey in light mode — perfectly readable on white — and stays soft grey on a near-black background, where it becomes nearly invisible. Links are another common casualty: a dark blue link on a dark background is unreadable.

3. Look at every image and logo. Logos with transparent backgrounds are the number-one dark mode casualty. A dark logo designed for a white header simply disappears on a dark header. Images with white backgrounds show up as bright white rectangles floating on a dark page. If your logo vanishes, you need a light variant of it for dark mode, or a subtle background behind it.

4. Test your forms and buttons. Fill in a contact form in dark mode. Placeholder text, input borders, error messages, and success messages are all styled separately, and one of them is almost always too dark to read. Submit the form and check the confirmation message too.

5. Check embedded content. Maps, videos, social feeds, and third-party widgets bring their own styles. A map embed stays light in dark mode unless you style it, and a widget with a white background can create a glaring bright block in the middle of an otherwise dark page.

6. Test on a real phone, not just your desktop. Desktop emulation is a great start, but it doesn’t show you what the site looks like under your phone’s actual dark theme. Open your site on your phone with dark mode on, scroll through the homepage, and take screenshots. View them on your computer afterwards — problems you miss on a small screen jump out in a still image.

What Breaks Most Often in Dark Mode?

After testing dozens of sites, the same five defects show up again and again:

Invisible text. Soft grey or dark blue text that worked on white and fails on black. The most damaging defect, because it makes your content literally unreadable for dark mode visitors.

Vanishing logos. A dark logo on a dark header — ask yourself whether a stranger could still recognise your brand mark.

White boxes around images. Product photos, screenshots, and icons saved with white backgrounds become bright rectangles on a dark page. Transparent PNGs or dark-friendly image treatments fix this.

Broken buttons. A button whose text and background both darken, leaving white text on a slightly lighter button — or dark text on a dark button. Hover states are often worse than the resting state, because the hover colour was chosen for light mode.

Unreadable form feedback. Error messages in red-on-dark and success messages in pale green-on-dark are both hard to read — and they matter most exactly when the visitor is trying to complete something, so a failure here costs you conversions.

If you find any of these, the fix is usually small — a colour override in your theme’s dark stylesheet, a light logo variant, or a prefers-color-scheme media query for the offending element. The expensive part is never the fix; it’s discovering the problem, and that is what the test is for.

A 10-Minute Dark Mode Test You Can Run Today

Here is the mini-test I run on every site I work on:

  1. Open your homepage in Chrome DevTools and emulate prefers-color-scheme: dark. Screenshot it.
  2. Flip back to light mode, screenshot the same page, and put the two side by side. Anything that changed for the worse is your defect list.
  3. Check the header logo, main heading, first paragraph, and first call-to-action button — note any that are hard to read or invisible.
  4. Open your contact form and submit it with a test message. Read the confirmation in dark mode.
  5. Open the same homepage on your phone with dark mode on, and scroll through it slowly. Screenshot anything that looks off.

I ran this test on a small business site earlier this year and found three defects in ten minutes: the logo vanished into the dark header, the footer text was grey-on-grey, and the “Get a quote” button turned unreadable on hover. None of them showed up in light mode. All three were fixed with a few lines of CSS the same afternoon.

Dark mode isn’t a feature you add and forget — it’s a second rendering of your whole site. Test it once, fix what breaks, and re-check it whenever you change your theme, logo, or colours, because any of those changes can quietly break dark mode again.

If your layout looks right in dark mode but still feels off on smaller screens, the problem may be the layout, not the colours — try your site in our free responsive preview tool and see exactly how it renders on phones, tablets, and desktops.

FAQ

How do I test dark mode on my website?

The fastest way to test dark mode on your website is to emulate it in your browser: in Chrome or Edge, open DevTools, open the Command Palette, type “Show rendering”, and set “Emulate CSS media feature prefers-color-scheme” to dark. Then click through your homepage, forms, and key pages, checking text stays readable and your logo stays visible. For a final check, open the site on a real phone with dark mode switched on.

Why does my website look broken in dark mode?

Most dark mode breakage comes from elements that were styled for light backgrounds only: soft grey text that becomes invisible on dark backgrounds, dark logos that vanish on dark headers, images with white backgrounds that appear as bright boxes, and form messages in colours that don’t read on dark. It also happens when a theme ships a partial dark variant — the main content is dark, but a plugin widget or form keeps its light styling.

Does my website need a dark mode?

Not necessarily — a site that renders cleanly in light mode for dark mode visitors is perfectly fine. What it must not do is render half-broken: invisible text, vanishing logos, or unreadable buttons. If your theme offers a dark variant, test it properly; if it doesn’t, make sure your light design still displays correctly when a visitor’s browser requests dark mode.

How do I add dark mode to my WordPress site?

Many modern WordPress themes include a built-in dark mode toggle or automatically follow the visitor’s prefers-color-scheme setting — check your theme’s Customizer first. If yours doesn’t, a plugin like WP Dark Mode adds a toggle and a dark stylesheet, with a prefers-color-scheme: dark media query in Additional CSS for anything it misses.

Leave a Comment