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.
- Visitor opens pageDevice is set to dark mode
- Sees the formLabels and fields load
- Types in a fieldLight text on a light background
- Submits the formNever reached
- 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.
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
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.
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.
Fill in every field
Type in text fields, open dropdowns, tick checkboxes, and look at placeholders, labels, error messages and the submit button.
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.
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.
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.
: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;
}
}Open the customiser
Go to Appearance > Customize > Additional CSS (or Appearance > Editor > Styles > Additional CSS in block themes).
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.
Edit theme CSS
Go to Online Store > Themes > Customize > Theme settings > Custom CSS, or edit the theme's base CSS file under Edit code.
Check the theme's dark mode
Some themes include colour schemes. Set the form section to a scheme where input text and background contrast.
Style the form fields
Select a form field in the Designer and set text colour and background in the Style panel. Use the same class on all fields.
Add color-scheme
Add the
color-schemerule in Project settings > Custom code > Head inside a style tag.
Design the form
Select the form, open Design, and set explicit text and field background colours in the field styles. Wix doesn't offer a full custom stylesheet in the standard editor, so fixed colours are the reliable route.
Add custom CSS
Go to Website > Website Tools > Custom CSS and paste the snippet. Check it on both light and dark system settings.
Set form colours in the builder
In the form or funnel builder, open the form's style settings and set field text and background colours explicitly. For custom CSS, use the page's custom CSS area under settings.
Add the CSS to your stylesheet
Put the snippet in your main CSS file, after any framework styles, so it wins. Add
<meta name="color-scheme" content="light dark">in the head if you support both modes.
How to confirm it's fixed
- 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.
| Cause | What you see | Fix |
|---|---|---|
| Input background not set | White text on a white field | Set background-color and color on inputs |
| Text forced dark, page dark | Black text on a dark field | Use a dark mode media query |
| Placeholder colour inherited | Hint text vanishes | Style ::placeholder |
| Embedded form styles | Different colours from the page | Set colours inside the form tool |
| Browser extension forced dark | Random inverted colours | Declare 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.