Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Dark mode makes form text invisible: how to find and fix it

CNV-392Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Many phones and computers let people choose a dark appearance. Browsers expose that choice to websites through the prefers-color-scheme setting. Some themes, page builders and browser extensions react to it and change colours. Others don't.

The problem appears when only part of the page changes. A theme may turn the text light for dark mode but leave the input background white. Or the browser may draw form controls dark while your CSS forces the text to stay dark. The result is text that is there but cannot be seen: what a visitor types, the placeholder hint, the labels, or the dropdown options.

How a dark mode visitor loses the form
  1. Visitor opens pageDevice is set to dark mode
  2. Sees the formLabels and fields load
  3. Types in a fieldLight text on a light background
  4. Submits the formNever reached
  5. Lead arrivesNever reached

The form works technically, but the visitor cannot read it, so the journey stops at the fields.

Why it costs you leads or sales

People who can't see what they type assume the form is broken. Some give up. Others submit with typos in their email or phone number because they can't check it, so the lead exists but you can't reach them. Nothing errors, so you see no alert, just fewer submissions from a group of visitors.

The business impact is usually low because only part of your traffic uses dark mode. But on mobile-heavy campaigns the share can be meaningful, and the fix takes minutes.

Form completion by display modeExample numbers
Form completion by display mode (example)Light mode: 12 %; Dark mode (broken): 7 %; Dark mode (fixed): 12 %05912712Light modeDark mode (broken)Dark mode (fixed)%

Example: illustrative numbers only. Visitors in dark mode complete the form less often when the text is unreadable.

How to check if your site has it

Test your form in dark mode
  1. Switch your device to dark mode

    On iPhone: Settings > Display & Brightness > Dark. On Android: Settings > Display > Dark theme. On Windows or macOS, use the system appearance setting.

  2. Or emulate it in Chrome DevTools

    Open DevTools, press Ctrl+Shift+P (Cmd+Shift+P on Mac), type 'Emulate CSS prefers-color-scheme: dark' and press Enter.

  3. Fill in every field

    Type in text fields, open dropdowns, tick checkboxes, and look at placeholders, labels, error messages and the submit button.

  4. Test in more than one browser

    Safari, Chrome and Samsung Internet handle dark mode differently. Also try a dark-mode browser extension if your audience may use one.

  5. Test embedded forms too

    Forms inside an iframe (for example from a form or CRM tool) have their own styles and may not match your page.

What you should see

Broken

  • Typed text is white on a white field
  • Placeholder text is almost invisible
  • Dropdown options are unreadable
  • Visitor cannot check their email address

Fixed

  • Typed text contrasts with the field background
  • Placeholders are readable but lighter than typed text
  • Dropdowns match the field colours
  • Form looks right in light and dark mode

How to fix it

The safest fix is to give inputs their own text and background colours, so they never depend on inherited values. Then tell the browser which colour schemes your page supports with color-scheme.

Explicit colours for light and dark modecss
:root {
  color-scheme: light dark;
}

input,
textarea,
select {
  color: #111111;
  background-color: #ffffff;
  border: 1px solid #767676;
}

input::placeholder,
textarea::placeholder {
  color: #666666;
}

@media (prefers-color-scheme: dark) {
  input,
  textarea,
  select {
    color: #f2f2f2;
    background-color: #1e1e1e;
    border-color: #8a8a8a;
  }
  input::placeholder,
  textarea::placeholder {
    color: #a8a8a8;
  }
}
Where to add the CSS on your platform
  1. Open the customiser

    Go to Appearance > Customize > Additional CSS (or Appearance > Editor > Styles > Additional CSS in block themes).

  2. Paste the CSS

    Add the snippet and publish. If your form plugin has its own colour settings, set them there too, as plugin styles can override yours.

How to confirm it's fixed

Confirmation checklist
  • Typed text is clearly readable in light and dark mode
  • Placeholders are readable
  • Dropdown options and checkboxes are visible
  • Autofilled fields are readable
  • Error messages are readable
  • Embedded or iframe forms were checked too
  • Tested on at least one real phone, not only DevTools

How to prevent it happening again

Dark mode problems often return after a theme update, a new form plugin or a redesign. Add a dark mode check to your release routine. Use explicit input colours in your design system rather than relying on inherited ones. When you add a new form, view it in both modes before publishing.

Quick reference: common causes and fixes
CauseWhat you seeFix
Input background not setWhite text on a white fieldSet background-color and color on inputs
Text forced dark, page darkBlack text on a dark fieldUse a dark mode media query
Placeholder colour inheritedHint text vanishesStyle ::placeholder
Embedded form stylesDifferent colours from the pageSet colours inside the form tool
Browser extension forced darkRandom inverted coloursDeclare color-scheme and set explicit colours

How FunnelGuard handles this

FunnelGuard does not check this yet. Its robot visitor does not run a dark-mode variant of your pages, so unreadable form text would not be reported. A dark-mode check is a possible future addition.

What FunnelGuard does check nearby is whether your journeys still work on a schedule: it runs your real lead forms, confirms each step completes, checks tracking hits sent to ad and analytics platforms, and verifies that test leads reach your inbox and CRM. If a form breaks outright, a failure is re-checked from a second region before one alert goes out with a screenshot and a likely cause. That won't tell you the text is invisible to a dark-mode visitor.

To watch for dark mode issues yourself, test your key forms in dark mode after every theme, plugin or design change, and keep a saved DevTools emulation setting handy. A visual testing tool that captures screenshots in dark mode can also help. A free plan with one site and two journeys is available if you want automated checks on the rest of your funnel.

Questions people ask

Why is my form text invisible in dark mode?

Usually the text colour and the input background both end up light (or both dark). This happens when a theme or the browser changes some colours for dark mode but your CSS leaves others fixed. Setting explicit color and background-color on inputs fixes it.

How do I fix white text on a white input field?

Set a dark text colour and a light background on input, textarea and select. Add a prefers-color-scheme: dark media query with matching dark colours for dark mode. Also declare color-scheme: light dark on :root.

What does the color-scheme CSS property do?

It tells the browser which colour schemes your page supports. The browser then draws built-in form controls, scrollbars and default backgrounds to match. It doesn't replace your own colours, so still set explicit input colours.

How do I test my website in dark mode?

Switch your phone or computer to dark appearance in its display settings. In Chrome DevTools, open the command menu and run 'Emulate CSS prefers-color-scheme: dark'. Test on a real phone as well, since browsers differ.

Why is my placeholder text invisible in dark mode?

Placeholder colour is often inherited or set by the browser and may match the field background. Style it directly with input::placeholder and pick a colour with enough contrast against the field in both modes.

Can I just turn off dark mode for my website?

You can set color-scheme: light on :root and use fixed light colours, which stops most browsers darkening your form controls. Some browser extensions and forced-dark features can still override it, so explicit colours remain the safest approach.

Does FunnelGuard detect dark mode problems on forms?

No. FunnelGuard does not check dark-mode appearance yet, though it could be a future check. It does run your real form journeys on a schedule and checks that they complete, that tracking fires and that test leads arrive.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.