/GitHub-Dark

:crystal_ball: Dark GitHub

Primary LanguageCSSOtherNOASSERTION

githubdark-logo
Tag Star Fork devDependencies Gitter

Your eyes will :heart: you.

Preview

Installing

Updating

If a recent change by GitHub broke the style, chances are that we already fixed it. Make sure to reinstall from userstyles.org or GitHub before opening an issue. Note that only Stylish for Firefox performs automatic style updates.

Additional GitHub Customization

Supported GitHub Addons

Available Syntax Highlighting Themes (Demo)

  • NEW: In v1.17.0+, themes for GitHub, CodeMirror and Jupyter may be set separately.
Theme GitHub CodeMirror Jupyter
Ambiance * *
Base16 Ocean Dark * *
Chaos *
Clouds Midnight *
Cobalt * *
Dracula * *
GitHub Dark * *
Idle Fingers * *
Kr Theme *
Material *
Merbivore *
Merbivore Soft *
Mono Industrial *
Mono Industrial Clear *
Monokai * * *
Monokai Spacegray Eighties * * *
Obsidian * *
One Dark * *
Pastel on Dark * * *
Solarized Dark * * *
Terminal *
Tomorrow Night * *
Tomorrow Night Blue * *
Tomorrow Night Bright * * *
Tomorrow Night Eigthies * * *
Twilight * * *
Vibrant Ink * *

Notes

  • If you're using a custom domain for GitHub Enterprise, be sure to include it though a @-moz-document rule (Firefox) or add it to the Applies to section in (Chrome).
  • If you want GitHub commit messages to use a monospaced font, and have a background color indicating the width limits, check out GitHub Commit Limit.

Contributions

If you would like to contribute to this repository, please...

  1. Fork
  2. Make changes (please read the contribution guidelines and abide by them)
  3. Create a pull request!

Development

To develop, first install Node.js, install dependencies via npm install and install grunt via npm install -g grunt. After that, you can use the various grunt tasks available:

  • grunt: The default task will build a custom theme using a provided build.json file. See the wiki for details.
  • grunt min: Same as grunt, but outputs a minified style.
  • grunt user: Build a userstyle ready to be pasted on userstyles.org.
  • grunt usermin: Same as grunt user, but outputs a minified style.
  • grunt usercss: Build a Usercss style, to be used with modern userstyle engines like stylus.
  • grunt themes: Parse all theme files and combine them into minfied styles in the themes directory.
  • grunt clean: Reformat github-dark.css to conform the style guide.
  • grunt lint: Run Stylelint on github-dark.css.
  • grunt authors: Regenerate the AUTHORS file based on git history.
  • grunt imagemin: Minify all images present in the image directory.
  • grunt generate: Regenerate auto-generated CSS rules based on GitHub's stylesheet. This should be ran regularly.
  • grunt patch: Increment the version on the patch version number. Also updates headers and creates a commit.
  • grunt minor: Increment the version on the minor version number. Also updates headers and creates a commit.
  • grunt major: Increment the version on the major version number. Also updates headers and creates a commit.
  • grunt update: Update and install dependencies.

Thanks to all that have contributed so far!

And thanks for the shoutout on the JS Party podcast!