Dark Mode Test
Your Dark Mode
Detecting…
- Reduced Motion
- Detecting…
- Operating System
- Detecting…
Test whether your device and browser are set to dark mode or light mode. Check the prefers-color-scheme media query live and learn how to switch.
Last updated
Check next
All device toolsHow to use this test
- Open this page. The Live Result shows "Dark" or "Light", based on your system or browser preference.
- Switch your system between light and dark mode. The result updates instantly, without a reload.
- Note that DeviceScope's own theme toggle in the header does not change this result. The test reads your device preference.
What is it?
prefers-color-scheme is a CSS media query reflecting your OS or browser theme preference. Websites use it to automatically switch between light and dark themes.
How it works
The tool uses window.matchMedia('(prefers-color-scheme: dark)'), the same CSS media query websites use to switch to a dark theme automatically. The value comes from your operating system appearance setting, unless your browser overrides it (Chrome and Firefox both have their own theme setting). The tool listens for changes, so it updates the moment you switch modes.
Why this matters
Dark mode reduces eye strain and saves battery on OLED screens. Developers test both themes against user preference.
Practical Use Cases
- Developers testing that a site switches to its dark theme correctly.
- Finding out why a website stays light even though your system is in dark mode.
- Checking that a browser theme override is not hiding your system preference.
How to check manually
Windows 11
Open Settings → Personalization → Colors and set "Choose your mode" to Dark or Light.
macOS
Open System Settings → Appearance and choose Light, Dark or Auto.
iPhone and iPad
Open Settings → Display & Brightness and choose Light or Dark, or turn on Automatic.
Android
Open Settings → Display and turn on "Dark theme" (or "Dark mode").
Chrome DevTools (emulation)
Press F12 → three-dot menu → More tools → Rendering, then set "Emulate CSS media feature prefers-color-scheme" to dark or light.
Common values
| Label | Value |
|---|---|
| Light | light |
| Dark | dark |
Troubleshooting
- My system is in dark mode but this shows Light
- Your browser may override the system setting. In Chrome, check Settings → Appearance → Mode. In Firefox, check Settings → General → Website appearance.
Frequently asked questions
What is prefers-color-scheme?
It is a CSS media feature that tells websites whether you prefer a light or dark color theme, so they can match your system appearance automatically.
How do I force dark mode on all websites?
Chrome has an experimental "Auto Dark Mode for Web Contents" flag at chrome://flags. Extensions such as Dark Reader also apply dark themes to sites that do not have one.
Is dark mode better for your eyes?
It can reduce glare in dim rooms and saves battery on OLED screens. In bright environments, many people find light mode easier to read. Use whichever is more comfortable.
Why does a website ignore my dark mode setting?
The site may not have a dark theme, or it may use its own toggle instead of following prefers-color-scheme.
Does dark mode save battery?
On OLED screens (most recent phones and some laptops), yes, because dark pixels use less power. On LCD screens the backlight stays on, so the saving is minimal.
Explore more diagnostics
Visit the DeviceScope homepage for a complete live dashboard, or browse all device & system information.