To enable dark mode on Windows 11, open Settings, go to Personalization > Colors and set Choose your mode to Dark. On a Mac, open System Settings > Appearance and choose Dark; browsers can then follow that setting.
The steps below cover the operating systems first, then Chrome and Firefox, then what to do when a website or app stays light.
How to enable dark mode on Windows 11
- Open the Settings app.
- Go to Personalization > Colors.
- Under Choose your mode, select Dark.
Microsoft describes the three choices like this:
| Option | What it does |
|---|---|
| Light | A bright look. It does not apply the color personalization to the Start menu, taskbar and action center. |
| Dark | Colors meant for low-light settings, applied to the Start menu, taskbar and action center. |
| Custom | Lets you choose between light and dark settings. |
Microsoft's page also says that not all applications support dark mode, and that some applications let you set dark or light individually. So after you switch, an app that still looks bright is not necessarily broken. Look for a theme or appearance option inside that app.
How to enable dark mode on a Mac
- Open System Settings.
- Click Appearance in the sidebar. You may need to scroll down to find it.
- Choose Light, Dark or Auto.
Dark keeps the dark appearance fixed. Auto switches between light and dark based on your Night Shift schedule, and Apple says it waits until the Mac has been idle for at least a minute before it switches. If Auto seems to do nothing, check that a Night Shift schedule is actually set.
For a quicker toggle, open Control Center in the menu bar, click the disclosure button next to Display, then click Dark Mode.
Wallpaper is a separate setting. Apple notes that some dynamic wallpapers use still images that match the light or dark appearance, and that a Mac set to the dark appearance during setup got a dark still image. You can change the wallpaper in Wallpaper settings if the desktop looks wrong after you switch.
How to enable dark mode in Chrome
Chrome can follow your device's theme. Google's instructions for a computer:
- Open a new tab.
- Click the Customize Chrome icon in the lower-right corner.
- In the Appearance options, pick Light, Dark or Device.
With Device, Chrome follows the operating system theme, so turn on dark mode in Windows or macOS first and then open Chrome. Google's page also notes that Chrome may look dark in Incognito mode regardless. The same article calls the setting "Dark mode" on desktop and iOS and "Dark theme" on Android.
How to enable dark mode in Firefox
Mozilla's support page points to Settings > General and the Website appearance section for choosing a dark theme or changing how websites look. The exact wording of the options can change between Firefox versions, so read the labels in that section rather than relying on a screenshot from an older guide.
Why websites follow your system setting
When you pick dark in the operating system or the browser, the browser exposes that choice to web pages through the prefers-color-scheme CSS media feature. MDN explains that the user expresses this preference "through an operating system setting (e.g., light or dark mode) or a user agent setting". The feature has two values:
light: the user prefers a light theme, or has not expressed an active preference.dark: the user prefers a dark theme.
This is why one switch in Settings can darken many sites at once. It is also why a site can stay light: the page has to contain styles for the dark case. Without them, there is nothing for the browser to apply.
How to add dark mode to your own site
If you run a site, the pattern MDN shows is to write the default styles first and override them inside a media query. This example is adapted from MDN's:
.box {
background: #ddccaa;
color: #773311;
}
@media (prefers-color-scheme: dark) {
.box {
background: #775533;
color: #ddccbb;
}
}
MDN also points to the color-scheme CSS property and the <meta name="color-scheme"> element as related features. It adds that prefers-color-scheme can style embedded SVGs loaded through <img src="..."> and iframes based on the color-scheme of the parent element, while inlined SVG is not covered by that behavior.
To test it, change the system setting and reload the page. Because the browser reads the operating system value, your CSS needs no extra script to react to it.
If dark mode still looks wrong
- Some apps stay light. Per Microsoft, not every application supports dark mode. Check that app's own settings.
- Chrome is not following the system. Confirm Appearance is set to Device, not Light.
- Mac switches at odd times. You are probably on Auto, which follows the Night Shift schedule. Choose Dark to pin it.
- One website is bright. The site likely has no dark styles. Nothing in your system or browser settings changes that on its own.
Frequently asked questions
- Why did Windows dark mode not change my apps?
- Windows applies dark colors to the Start menu, taskbar and action center, but Microsoft notes that not all applications support dark mode and that some let you set light or dark individually. Check the app's own settings for a theme option.
- How do I make Chrome dark when Windows or macOS is already dark?
- Open a new tab, click the Customize Chrome icon in the lower-right corner, and under Appearance choose Device. Chrome then follows the operating system theme.
- What does Auto mean in macOS Appearance settings?
- Auto switches between light and dark based on your Night Shift schedule. Apple says it waits until the Mac has been idle for at least a minute before switching.
- Why does a website stay light when my system is dark?
- A site only goes dark if its developer wrote styles for it, usually with the prefers-color-scheme media query. If the site does not include dark styles, your system setting has nothing to apply to.