Stack Overflow · Dark mode guide
Stack Overflow dark mode: with or without an account
Answers and code blocks, dark.
Own dark setting covers part of itThe short answer
Stack Overflow has a dark mode for logged-in users, set in your user preferences. Dark Mode Alpha darkens the whole site without an account, so the answer you land on from a search opens dark.
Step one
Stack Overflow's own setting
-
Log in to your Stack Overflow account.
-
Open your user preferences from your profile.
-
Under the theme setting, choose dark, or follow your system setting.
Where it stops
-
Logged-in users only. Arrive from a search without logging in and you get the white site.
-
One dark palette. No choice of editor-style colours.
Step two
Get a real dark mode with Dark Mode Alpha
The whole of Stack Overflow, dark, in the theme you pick. Free, no account.
-
Add Dark Mode Alpha to Chrome and open any Stack Overflow question. No account needed.
-
Questions, answers, comments and code blocks take your theme.
-
Logged in with Stack Overflow's own dark mode on? Dark Mode Alpha leaves it alone.
-
Open the side-panel gallery and pick a theme for this site. The developer classics family holds palettes made for reading code.
-
Press Alt+Shift+L to switch Dark Mode Alpha off and on for Stack Overflow.
Engine for Stack Overflow Smart
Smart reads the colours a page uses and maps each one to your theme. It is the default engine. Switch engines for one site from the popup.
Before and after
See the difference
Themes
A theme to start with
Good to know
-
Syntax highlighting keeps its hue. Colours too dark to read on your theme are lifted to readable contrast.
-
Code you copy is plain text. Nothing from the theme comes along.
-
Super User, Server Fault and the other Stack Exchange sites turn dark too, each with its own switch.
Dark from the first click
Most visits start from a search, logged out, at 2 a.m., with a dark editor in the other window. Dark Mode Alpha does not care about accounts. The page is dark before it appears, in your theme’s colour.
Code that reads right
- Blocks. Code sits on your theme’s surface colour, raised from the page.
- Syntax colours. Keywords, strings and comments keep their hue. Dark blues and greens tuned for white are lifted until they read clearly.
- Screenshots. Images in questions keep their real colours. The image dim slider softens bright ones, for this site only.
Your answers stay yours
The editor and preview are restyled around your text. Nothing is added to what you post.
Questions
Stack Overflow dark mode, answered
Does Stack Overflow have dark mode?
Yes, for logged-in users. Turn it on in your user preferences. Dark Mode Alpha darkens the site for everyone, logged in or not.
Can I use Stack Overflow dark mode without logging in?
Yes, with Dark Mode Alpha. Add it to Chrome and every question opens dark, no account needed.
How do I turn Stack Overflow dark mode off?
Logged in, set the theme back to light in your user preferences. With Dark Mode Alpha, press Alt+Shift+L on the site.
Does copying code from a dark page bring colours with it?
No. What reaches your clipboard is plain text.
Sources
- Introducing Dark Mode for Stack Overflow (Stack Overflow Blog, 30 March 2020) stackoverflow.blog
- The Loop, May 2020: Dark Mode (Stack Overflow Blog, 26 May 2020) stackoverflow.blog