Change to ‘dark mode’ on GitHub
For instance, GitHub pages may be in dark mode when logged out and not when logged in.
Change to dark mode
When logged in, click on the profile picture in the upper right → Settings → Appearance (in the left panel). Set Theme mode to “Single theme”. Select “Dark high contrast”.
When logged out, click on the “Appearance settings” icon in the upper right. Enable “Dark mode” (the last item).
Though it may not actually change to dark mode… It may also be “Open application menu” (in the upper right) → Settings… (about 70% down) → “Language and Appearance” (about 25% down (scrolling may be required)) → “Dark” (the last of the three options)).
In fact, that is Firefox’ setting, not GitHub’s. Enabling JavaScript is not even required.
Bonus: Change to dark mode in LibreOffice
Menu Tools → Options (shortcut Alt + F12) → Application Colors (left panel, in “LibreOffice”) → Document background. Also change “Font color”, for example, to orange.
Note: This location may depend on the version. For example, in the Danish version 25.2 (February 2025), it is in menu Funktioner → Indstillinger (shortcut Alt + F12) → Udseennde (left panel, 8th item in “LibreOffice”) → Tilpasninger (in the right panel) → Elementer → Dokumentbaggrund. Also change “Skiftfarve”, for example, to orange.
Though it will only change the spreadsheet itself, not the menus, toolbars, status area at the bottom, etc.
To refine it, use the colours from well-known colour schemes, e.g., Solarized. For Solarized, the default is base0, base03 (foreground colour, background colour), where base0 is RGB 0x839496 (HSV 0x842096, 132 (angle 186°), 32, 150) and base03 is RGB 0x002B36 (HSV 0x88FF36, 136 (angle 192°), 255, 54).
These can be entered in “Custom Color”, under “RGB”, in the “Hex #” field:
- Document background: 002B36
- Font color: 839496
- In section “Spreadsheet” (4th section), Grid lines: ‘Light Blue 2’ (729FCF)
Also zoom: Menu View → Zoom → 200%
See also:
- Dracula theme for LibreOffice (referenced here)
Bonus: Change to dark mode on Wikipedia
When logged in, open Preferences → section “Appearance” (about 20% down) → Color. Set it to “Dark”.
Note: This doesn’t work for the “Vector legacy (2010)” theme. In the same section, change to the “Vector (2022)” theme.
When logged out: JavaScript must be allowed from wikipedia.org (e.g., in NoScript). In the “Appearance” panel on the right, choose “Dark” in section “Color (beta)” (the third section). In subsequent sessions, that JavaScript must be allowed for it to work.
See also:
Bonus: Change to dark mode in gitk (a Git repository browser)
Menu “Edit” → “Preferences” → “Edit” → tab “Colors”. Then use buttons “Background” and “Foreground”.
For example, Solarized (the decimal numbers are for red, green, and blue, respectively):
- “Background”: 002B36 = decimal 00, 43, 54.
- “Foreground”: 839496 = decimal 131, 148, 150.
It isn’t possible to enter the numbers directly. The fields appear to editable, but they are not. The only way is using the sliders (or click in the colour bars). Thus, it may only be possible to enter the numbers this way (but it shouldn’t make any difference).
Extra: Increase the font size (of the main list): Menu Edit → Preferences → tab Fonts → Main font: Set “Size” to, for example, 12. The same for Diff display font for the diff view.
This was tested with gitk version 1:2.39.5-0+deb12u3 (according to ‘apt-cache policy gitk’).
Bonus: Change to dark mode in Meld (a diff tool)
Menu “Meld” → “Preferences” → “Edit” → tab “Editor” (the default) → “Syntax highlighting color scheme”. Set it to, for example, “Solarized Dark”.
Though “Cobalt” is easier to read (high contrast).
Extra: Increase the font size: Menu “Meld” → “Preferences” → “Edit” → tab “Editor” (the default). And:
- Uncheck “Use the system fixed width font”.
- “Editor font”: Change the size to, for example, 18.
NB: In Meld 3.22.3, the menus are missing… At least using LMDE 7 (Gigi) with Cinnamon 6.6.9. Instead, there are some icons at the top (but they can’t be activated with the keyboard). “Preferences” is in the hamburger menu on the right.
Bonus: Change to dark mode on the ZMK web site
The ZMK web site has a dark mode if JavaScript is enabled from “…zmk.dev”. The page anchors also work better for unknown reasons, even though it is a pure HTML feature (it ought to work without any JavaScript code).
Enabling JavaScript may not be sufficient: There are three modes that can be changed by clicking one of the icons on the upper right, to the right of the GitHub icon, with hover text:
- “System mode”
- “Light mode”
- “Dark mode”
Click until the hover text is “Dark mode”.
Bonus: Change to dark mode on Discourse sites
For example, on the Discourse site KeebTalk (mechanical keyboards).
To change to dark mode, it is required to be logged into the Discourse site (and thus be registered). Click on upper right icon (profile), with hover text “Notifications and account”, → click on the profile icon (on the right, the last one, with hover text “Profile”) → “Preferences” (second to last) → “Interface” (eight tab). For “Theme”, choose “Dark” and click “Save Changes”.
It isn’t clear how far-ranging the option “Make this the default theme on all my devices” is. Is it only for the current Discourse site?
Leave a Reply