3 ms·
I hadn't realized that dark mode came out for Github, so I went and enabled it, and wow, even as a fan of "darker" dark modes (rather than the medium gray that
by saghm 6y ago
I hadn't realized that dark mode came out for Github, so I went and enabled it, and wow, even as a fan of "darker" dark modes (rather than the medium gray that so many apps and sites seem to prefer), I can see what OP meant! The main issue for me is that the text colors are all fairly dark as well; I'm sure that my tastes are too gaudy for most people, but I find higher contrast much easier to read, and on the off-chance that anyone else is like me and prefers much brighter text, I threw this CSS together:
```
.link-gray-dark, .news li blockquote, .link-gray, .text-gray, .text-gray-light, .UnderlineNav-item, .blob-code-inner {
color: white !important;
}
/* code comments are a dark gray by default, so I made them something brighter */
.pl-c {
color: orange !important;
}
```
As a bonus, if you also can't stand the sidebar on the right of the main page, you can hide it and reclaim the space for more useful content with this:
```
[aria-label="Explore"] {
display: none !important;
}
```
- oars 6y agoHi, newbie to programming/web in general here - how do I use this CSS to change the colours in GitHub? Is there a section within GitHub I can paste this in?
- stev0lution 6y agoI don't know if github has an option for custom css but you can surely use a browser extension such as Stylus ([1], [2]) to change any website you want. [1] for Firefox: https://addons.mozilla.org/en-US/firefox/addon/styl-us/ https://addons.mozilla.org/en-US/firefox/addon/styl-us/ [2] for Chromium based browsers: https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?hl=en-GB https://chrome.google.com/webstore/detail/stylus/clngdbkpkpe...