How to Set Up GitHub Dark Theme

Aug 30, 2023 | Programming

Transform your GitHub experience into a visually soothing dark theme with GitHub Dark! This guide walks you through the process of installation while also giving you a taste of additional user styles and extensions to customize your interface further.

Preview

Preview of GitHub Dark

Installation

Getting started with GitHub Dark is a breeze. Just follow these simple steps:

  1. Install Stylus for Firefox, Chrome, Opera or Cascadea for Safari.
  2. Install the github-dark.user.css.
  3. Set GitHub to dark mode.

Additional Userstyles

Check out these userstyles to enhance your GitHub Dark theme:

Supported GitHub Extensions

Enhance your GitHub experience even further with these supported extensions:

Available Syntax Highlighting Themes

With a variety of themes, choose the one that suits your coding aesthetic:

Theme GitHub CodeMirror Jupyter
Ayu Mirage Ambiance
Base16 Ocean Dark Chaos
Clouds Midnight Cobalt Dracula
GitHub Dark Idle Fingers Kr Theme
Material Merbivore Monokai
Obsidian One Dark Pastel on Dark
Railscasts Solarized Dark Terminal Tomorrow Night
Tomorrow Night Blue Tomorrow Night Bright Tomorrow Night Eighties Twilight (default)
Vibrant Ink

For more information on available themes, make sure to check out this demo.

Contributions and Development

If you want to contribute, here’s how:

  1. Fork the repository.
  2. Ensure you have [Node](https://nodejs.org) installed (version 14 or greater) along with npm and make.
  3. Run make build install to rebuild and install the style in your default browser.

Auto-generated CSS

To contribute custom changes, edit files in the src/gen directory, and run make build install to see your updates.

Manual Override Entries

For manual changes to inline HTML styles, edit files in src, then rebuild with make build install.

Make Targets

  • make deps: Install development dependencies.
  • make build: Build github-dark.user.css.
  • make install: Install github-dark.user.css.
  • make lint: Run linters.
  • make clean: Format source files.

Notes

For those using custom domains on GitHub Enterprise, ensure to include it via a @-moz-document rule (Firefox) or add it to the Applies to section (Chrome).

Troubleshooting

In case you’re facing issues while installing the GitHub Dark theme, try the following troubleshooting tips:

  • Ensure that you have the latest version of the Stylus extension installed.
  • Double-check if you’ve pasted the correct link to the GitHub dark CSS file.
  • Refresh your GitHub page after enabling dark mode in settings.
  • If all else fails, clear your browser cache and try reinstalling.

For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox