Chrome DevTools Dark Theme: How to Enable
In this article
To enable the dark theme in Chrome DevTools, open DevTools (F12 or Ctrl+Shift+I on Windows/Linux, Cmd+Option+I on Mac), then go to Settings (gear icon or F1) and under the "Preferences" tab, set the "Theme" dropdown to "Dark". This instantly changes the entire DevTools interface to a dark color scheme.
Why Use the Dark Theme?
The dark theme reduces eye strain in low-light environments, makes syntax highlighting more comfortable for many developers, and can help distinguish the DevTools panel from a light-colored webpage. It’s also a matter of personal preference—many developers find dark themes easier on the eyes during long debugging sessions, especially at night.
How the Theme Setting Works
Chrome DevTools themes are controlled by a single setting in the DevTools preferences. The theme applies to all panels: Elements, Console, Sources, Network, Performance, Application, and others. It affects the background colors, text colors, and syntax highlighting. The setting is stored locally in your Chrome profile, so it persists across browser restarts and applies to all tabs.
Notably, the dark theme does not change the color of the webpage itself—only the DevTools UI. If you want a dark webpage, you need to use the browser's "Force dark mode" feature (available in Chrome's settings under Appearance) or a web extension.
Step-by-Step: Enabling Dark Theme
- Open Chrome and press F12 (Windows/Linux) or Cmd+Option+I (Mac) to open DevTools.
- Click the gear icon in the top-right corner of DevTools, or press F1 while DevTools is focused. This opens the Settings panel.
- In the left sidebar, ensure "Preferences" is selected.
- Scroll down to the "Appearance" section.
- Find the "Theme" dropdown. It defaults to "System preference" (which follows your OS theme). Select "Dark".
- Close the Settings panel. The change applies immediately.
Using System Preference vs. Forced Dark
The "Theme" dropdown offers three options: "System preference", "Light", and "Dark". Choosing "System preference" makes DevTools follow your operating system's light/dark mode setting. This is useful if you switch your OS theme frequently. However, if you want DevTools to always be dark regardless of your OS, choose "Dark" explicitly.
A common misconception is that setting the OS to dark mode automatically makes DevTools dark. That only happens if the DevTools theme is set to "System preference". If you previously set it to "Light", it will stay light even when your OS is dark.
Common Problems and Fixes
Theme option missing? Older Chrome versions might not have the "Theme" dropdown. Update Chrome to the latest version. As of Chrome 85 and later, the option is present.
Theme doesn't apply to all panels? Some experimental panels might not fully support dark mode. Restart DevTools (close and reopen) to ensure all panels render correctly.
Can't find the gear icon? If the DevTools window is narrow, the gear icon may be hidden. Press F1 or click the three-dot menu (⋮) in the top-right corner of DevTools and select "Settings".
Alternatives: Custom Themes and Extensions
If you want more control than the built-in dark theme, you can create a custom theme using the DevTools API. Chrome allows you to define a custom theme via a JSON file and load it through the "Experiments" tab in settings (enable "Allow custom UI themes"). This is advanced and mostly used by developers who want specific color palettes.
There are also third-party extensions that modify DevTools appearance, but they often require additional setup and may break with Chrome updates. The built-in dark theme is the most stable and recommended option.
Dark Theme vs. Light Theme: Performance and Accessibility
There is no performance difference between themes—the rendering is identical. The choice is purely aesthetic and ergonomic. For accessibility, the dark theme provides high contrast for many users, but some users with visual impairments may find light themes easier to read. Chrome's dark theme meets WCAG contrast guidelines for most text, but you can adjust the font size and zoom in DevTools settings if needed.
Frequently Asked Questions
Does the DevTools dark theme affect the website I'm viewing?
No. The dark theme only changes the DevTools interface. The webpage remains in its original colors. To view a website in dark mode, use Chrome's "Force dark mode" flag or an extension.
Why is my DevTools still light after switching to dark?
Make sure you selected "Dark" in the Theme dropdown, not "System preference". If your OS is in light mode and the theme is set to "System preference", DevTools will be light. Also, check that you're not in an incognito window with a separate profile that has different settings.
Can I set dark theme for DevTools only, not the whole browser?
Yes. The DevTools theme is independent of the browser theme. You can have a light browser and dark DevTools, or vice versa.
Will the dark theme slow down DevTools?
No. The theme is a simple color change and has no impact on performance.
How do I reset to the default theme?
Go to Settings > Preferences > Theme and select "System preference" or "Light". The change takes effect immediately.