GitHub · Dark mode guide
GitHub dark mode: set a dark theme in Appearance
Repos and code in your theme.
Has its own dark settingThe short answer
Click your profile picture, then Settings, then Appearance, and under Theme mode pick a single dark theme or follow your system. Dark Mode Alpha keeps GitHub dark when you are signed out, and darkens the project docs sites GitHub's theme does not reach.
Step one
GitHub's own setting
-
In the upper-right corner of any page on GitHub, click your profile picture, then click Settings.
-
In the left sidebar, click Appearance.
-
Under Theme mode, open the dropdown menu and choose a single theme, or follow your system settings.
-
Click the theme you want. If you follow your system, click a day theme and a night theme.
Where it stops
-
The theme is an account setting, so it applies only while you are signed in.
-
Documentation sites that projects publish on their own addresses keep their own colours.
-
Images and badges in a README stay as their authors made them.
Step two
Get a real dark mode with Dark Mode Alpha
The whole of GitHub, dark, in the theme you pick. Free, no account.
-
Add Dark Mode Alpha to Chrome and open github.com.
-
On one of GitHub's dark themes? Dark Mode Alpha sees a dark page and leaves GitHub alone, code colours included.
-
GitHub light? Repositories, issues, pull requests and diffs go dark, with no reload.
-
Open the side panel and set a theme for this site. The Developer classics family holds palettes made for code.
-
Press Alt+Shift+L to turn Dark Mode Alpha off and on for GitHub.
Engine for GitHub 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
-
Signed in every day? GitHub's own dark themes are tuned for its syntax colours. Use Dark Mode Alpha everywhere else.
-
Diffs keep green for added lines and red for removed ones, at readable contrast.
-
Turn on Keep dark logos visible in the side panel, and dark README logos get a light backing.
Dark GitHub, signed in or out
GitHub’s themes cover you while you are signed in. A lot of reading happens without an account: a README from a search result, an issue on a work machine. Dark Mode Alpha keeps those visits dark.
Code and diffs under a gallery theme
- Syntax colours keep their hue. Anything that would be hard to read is lifted.
- Diffs keep green and red bands with light text.
- Monospace fonts stay as they are.
- Copying code copies plain text, with no styling.
Project docs sites
Documentation on a project’s own address is its own site. It gets your main theme, or a theme of its own.
Your commits stay yours
The web editor, issue boxes and review comments are restyled around your text. Commits and comments contain exactly what you typed.
Questions
GitHub dark mode, answered
How do I turn on dark mode on GitHub?
Click your profile picture, click Settings, then Appearance in the left sidebar. Under Theme mode choose a single theme and click a dark one.
Can GitHub follow my system's light and dark setting?
Yes. Under Theme mode choose to follow your system settings, then click a day theme and a night theme.
Does GitHub have a high contrast dark theme?
Yes. GitHub offers a high contrast theme, plus light and dark colourblind themes.
Can I change GitHub's theme from the command palette?
Yes. GitHub's command palette can change your theme settings.
Do code blocks keep syntax colours with Dark Mode Alpha?
Yes. Syntax colours keep their hue. The background and plain text take your theme, and low-contrast colours are lifted.
Sources
- Managing your theme settings (GitHub Docs) docs.github.com