r/programming • u/rxsel • Nov 26 '20
Dark Mode Coming to GitHub After 7 Years
https://github.com/isaacs/github/issues/66#issuecomment-733446758227
u/Paradox Nov 26 '20
Can tell they're getting ready. Dark Reader has started highlighting readmes differently, with a slight background color now.
This is usually when they add a slightly darker background for the white/light/default theme
40
u/-Zenith- Nov 26 '20
Yeah my Stylus extension has gone funky. Hopefully the update is not too far away.
9
u/masklinn Nov 26 '20
The stylus extension generally has gotten patched pretty quickly when styles broke. Though obviously such breakage has become a much more frequent occurrence than it used to be if they’re prepping for their own dark mode.
→ More replies (2)22
u/tHeSiD Nov 26 '20
Darkreader has issues with github, there is always that once in a 5 load white flash
47
3
87
u/bondolo Nov 26 '20
Hopefully they offer automatic switching based upon browser preference.
I like my screen to match ambient light and usually this means light during the day time and dark at night. Having to manually switch every app or site is annoying. I am glad when the OS and browser can handle this for me.
14
u/kenman Nov 26 '20
I've been a dark moder for a very long time, but the idea of matching the sun is appealing (I already use apps to warm my colors at night). How successful have you been in your efforts?
9
u/bondolo Nov 26 '20
I am currently switching my IDE manually every day. Some days I remember to switch Twitter, Reddit. I use dark mode plugins for Google Docs.
I am old enough that I started my career on old-school green and amber screens. The eye strain was terrible, particularly in bright crappy fluorescent lighting. Ever since the Macintosh in 1984 I have preferred the light mode during day time as it results in much less eye strain.
I started using Flux on the Mac about a decade ago and quickly got used to the colour changes and dimming it provided. I was totally hooked on screen colors matching ambient light. Dark themes made that night time adaption even better.
I hope that five years from now theme switching is automatic and flux/night shift style dimming and color adaptation are available everywhere. I would even include places like train platform schedule screens, etc.
→ More replies (1)→ More replies (3)-3
u/Isvara Nov 26 '20
Maybe this should be specified for the
Preferheader.15
15
u/simcop2387 Nov 26 '20
there's a css media query just for this, https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
23
u/GYN-k4H-Q3z-75B Nov 26 '20
I love dark mode, but every app and OS should have a setting to automatically switch it based on time. I don't use dark mode during the day, I have a large window (a glass wall, really) behind my setup and love how bright it is. Only at night, dark mode is better for me.
8
u/snowe2010 Nov 26 '20
As a developer, every app I use can already do that, except Spotify.
13
u/iguessididstuff Nov 26 '20
Light mode Spotify would feel extremely wrong if I'm being honest
→ More replies (1)7
u/hkibad Nov 26 '20
Never trust an app that doesn't have dark mode.
It means that nobody at the company has ever used the app once at home in the middle of the night. If they did, they would immediately make a dark mode so they wouldn't blind themselves.
It's a red flag that they don't use the app on their personal time at home, which means they really don't care about it.
94
17
u/soygul Nov 26 '20
GitHub dark mode extension has nearly 10K stars on GitHub! https://github.com/StylishThemes/GitHub-Dark
There are ton more great GitHub extensions, like linters etc. Highly recommended if you ever use the GitHub UI for any amount of coding or reviews.
365
Nov 26 '20 edited Nov 26 '20
Light mode gang checking in, if it hurts your eyes, your monitor is too bright.
9
u/ScrimpyCat Nov 26 '20
I just use whichever I think looks best. Some designers know how to make a great looking light mode app, while others are much better at designing for dark mode.
Never noticed any difference when it comes to using it at night (can use both comfortably), though I’ve never had eye strain issues from looking at a screen before (even when it’s pitch black). Maybe I’m immune! ... or just blind.
→ More replies (1)25
Nov 26 '20
That many monitors make it really hard with their clunky OSDs to adjust the brightness isn't helping. Screens really should have dedicated keys to adjust it like the olden days – I really miss the CRT screens with POD switches to adjust everything. Or better yet: a lightsensor to adjust it automatically. I believe some Apple laptops do this (and perhaps also screens?) but I don't recall seeing it anywhere else.
I adjust my brightness all the time depending on ambient light conditions. The weather turns cloudy and it gets a bit darker: lower brightness. The sun pops out again: up the brightness goes.
15
u/Ph0X Nov 26 '20
Yeah, it's really stupid that in 2020, I still need to press 4-5 hard button on the monitor to change the brightness. On laptops this is a solved problem, but yeah it's definitely not something you can do on desktops.
29
u/andrco Nov 26 '20
Not true, if it supports DDC/CI (most should) then you can control it with for example Monitorian or ClickMonitorDDC (Windows). On Linux you can use ddcutil.
24
u/Ph0X Nov 26 '20 edited Nov 26 '20
Hmm, interesting, I'll give that a try, thanks.
EDIT: Wow, all 3 of my monitors support it, this is a life changer.
Now the real question is, why isn't this just built into Windows...
12
8
u/Sol33t303 Nov 26 '20
Some monitors support DDC/CI, using that it's possible to control your monitor through software.
I know on Linux ddcutil is available, from there you can use it to control the brightness (or anything else on your monitor for that matter) based on time by wrapping it in a bash script and giving it to cron. I'd assume Windows and Mac probably has similar software.
→ More replies (3)60
u/ASIC_SP Nov 26 '20
and there are programs like redshift to reduce blue light
I use 3000K all times, which has significantly reduce eye strain for me.. reddish tone felt weird initially, but now I'm used to it
5
u/ilmoeuro Nov 26 '20
On Windows (and probably Mac too) you don't even need extra software, just search for "Night light" in the settings.
→ More replies (1)5
u/ASIC_SP Nov 26 '20
Nice. Just checked for Ubuntu, and seems like newer versions have it - https://help.ubuntu.com/stable/ubuntu-help/display-night-light.html.en
→ More replies (31)4
11
u/kankyo Nov 26 '20
I have floaters in my eyes. To not see them I would have to turn down the brightness so far I can't read the text.
2
u/SwordsAndElectrons Nov 26 '20
This.
I used to not really care about light/dark themes, but then these annoying things developed in my left eye. Now looking at a screen with the brightness set too high, or an app/site that uses too much light background even on a screen with it set relatively low, drives me nuts.
13
u/Sol33t303 Nov 26 '20 edited Nov 26 '20
if it's too bright your monitor is too bright.
When I'm doing stuff late at night I have my monitor turned down to it's min brightness, even then when I switch from a dark window to a light one it hurts my eyes lol
It's fine during the day, but I just find dark mode to be easier on my eyes and I find the contrast with white characters on a black screen to be better and easier to read.
2
2
u/SkoomaDentist Nov 26 '20
But man do I wish there was a way to easily adjust the gamma so that very bright colors would be made darker...
4
0
Nov 26 '20
[deleted]
13
Nov 26 '20
One of the main reasons I'm happy to be remote with all this COVID stuff.
I wasn't even on their "team", but I sat with a group of guys in a shared space at the office. They kept the lights completely off and the blinds down most of the time. My eyes would always hurt, and there was even one day where I got so sleepy from it being dark, I nodded off, slumped over, and my face hit the keyboard. Fortunately, nobody was around to see that.
At least in my home office I can set the lights and surroundings to be whatever I want.
59
u/Astarothsito Nov 26 '20
Never look at a screen for extended amounts of time in an otherwise dark room.
Why not? Aside from the popular belief that thinks is bad, is there any proof that it does any damage at all?
82
u/Antrikshy Nov 26 '20
I don’t think it does lasting damage, but it’s just not pleasant and can be tiring to your eyes.
→ More replies (10)17
u/Zv0n Nov 26 '20
Started doing this like a year or two back, used to think it was wasteful to have the lights on when all I'm doing is starting at a lit screen, but oh my god does it make a massive difference! My eyes no longer hurt while doing stuff on my PC, 10/10 would never go back to the dark times
→ More replies (5)5
u/kenman Nov 26 '20
I don't think there's any supporting evidence that its damaging, but it can definitely cause (or exacerbate) visual fatigue/eye strain as well as dry eyes.
Anecdotally, I've noticed a decrease in eye strain after applying the concept of bias lighting.
→ More replies (1)9
u/feraferoxdei Nov 26 '20
Instead of raising the ambient light, why not lower your sceen's brightness? That's the way I like to roll personally. No ambient light and low screen brightness.
→ More replies (2)→ More replies (2)3
u/MeggaMortY Nov 26 '20
My personal take - use a light theme during the day and switch to dark theme during the night. Preferably automatic
→ More replies (14)0
Nov 26 '20
[deleted]
15
u/IceSentry Nov 26 '20
Or maybe, now hear me out, this might sound crazy, but maybe some of us do have our brightness at 25% and still find white themes uncomfortable because not everyone is the same and some people have different sensibility to constant light change between dark editors and bright white websites.
8
u/Superpickle18 Nov 26 '20
decreasing brightness changes the color... (unless it's an OLED display) Guess it's fine if all you're doing is working with text, but anything else... nah.
→ More replies (3)9
u/kankyo Nov 26 '20
I have quite a bit of floaters in my eyes. They are invisible in dark mode.
You sound a bit like saying to people in wheel chairs to "just get up and walk".
78
18
u/shgysk8zer0 Nov 26 '20
I've been hearing this for years. Same with a Google Drive client for Linux.
32
u/J-is-Juicy Nov 26 '20
Great, how about we fix the new design first please? The amount of negative space is absolutely terrible
13
20
u/Isvara Nov 26 '20
ITT: people who prefer dark mode
Also ITT: people telling them why their preference is wrong
11
u/tom_strideweather Nov 26 '20
All those brave developers working around the clock for 7 years to bring us this... beautiful
4
3
3
u/a-sober-irishman Nov 26 '20
If only they would make it so that the PR file diff view defaults to no whitespace, or that preference could be saved.
3
2
u/sakistz Nov 26 '20
It would be cool if GitHub supported custom CSS themes like Wikipedia. Personally I like the dark theme on the code viewer and a white theme everywhere else, so it would be cool if I could customize it using CSS.
2
u/snowe2010 Nov 26 '20
You can. Use a user css extension like stylus and create your own theme or use/modify an existing one like GitHub Dark 2.0.
2
2
2
2
u/Takeoded Nov 26 '20
going to be hard to do a better job than https://github.com/StylishThemes/GitHub-Dark
2
u/ppezaris Nov 26 '20
Shameless plug: use codestream and your PRs can be in whatever theme you want.
2
u/CMDRGeneralPotato Nov 26 '20
Say what you will about microsoft, they do know how to design a damn good dark theme
2
u/Python4fun Nov 26 '20
I had an extension for github dark, but then got a dark mode everywhere extension instead. It would be nice to have native dark mode.
2
Nov 26 '20
I am rather surprised that a rather small handful of websites and apps provide built-in dark theme support. It's a vital benefit for one's eyesight.
8
u/Busti Nov 26 '20 edited Jan 09 '26
20
u/Isvara Nov 26 '20
The Microsoft timeline.
10
32
u/haikusbot Nov 26 '20
Github giving a shit
About their community?
What timeline is this?!?
- Busti
I detect haikus. And sometimes, successfully. Learn more about me.
Opt out of replies: "haikusbot opt out" | Delete my comment: "haikusbot delete"
7
8
u/oryiesis Nov 26 '20
Not the current timeline. They're only doing it because gitlab did it and wrote a nice blog post about how they did it lmao: https://about.gitlab.com/blog/2020/05/20/creating-a-dark-ui-for-gitlabs-web-ide/
4
u/tech6hutch Nov 26 '20
GitLab doesn’t have a dark theme for the whole UI yet tho (unless they do know and I didn’t know)
2
u/aquaticpolarbear Nov 26 '20
They do, it's under Settings > Preferences, but it's in alpha and a little bit buggy.
→ More replies (1)
3
u/corsicanguppy Nov 26 '20
So recent hits from github are
banning master branch
dark mode
and that's it? I'm wading through a bucket of little improvements in gitlab readme docs every month, but the only thing I remember from the Competition is social justice and a CSS fix. That seems like it needs to be wrong.
10
u/brainplot Nov 26 '20
Dark Mode is not exactly a "CSS fix". It's harder than it may seem at first to make a website accessible in dark mode. Stackoverflow also took a while to implement dark mode because there are challenges involved. If it's a first-party feature it needs to adhere to specific requirements, it's not like an independent dev who makes an extension (don't get me wrong, mad respect for those who take the time to do it!).
3
u/IceSentry Nov 26 '20
Sure it's not easy, but people have been doing it for free, for years. I understand they have higher standards than an extension but it shouldn't take 7 years especially considering how much dev tooling has a dark mode.
4
u/brainplot Nov 26 '20
it shouldn't take 7 years especially considering how much dev tooling has a dark mode
Yes, that I agree with. I was just pointing out how it's not just a "CSS fix".
Besides, the GitHub app for Android (and I assume iOS too) does have a dark mode so it only makes sense for the website to have it as well, especially since I expect most developers to use GitHub mainly from their computer.1
15
u/klyonrad Nov 26 '20
I don't think you are paying attention to Github changes.
Notifications Revamp, UI changes, Github Actions.
Just shut off with your "anti social justice" shit. Besides
masterbranch has net not banned. And their contract with ICE is still ongoing.1
u/corsicanguppy Dec 04 '20
your "anti social justice" shit
Hmm. I know of no issue with mere social justice. But that was a few stops back on the route, and the bus driver seems to keep driving.
→ More replies (2)10
u/Tsuki_no_Mai Nov 26 '20
I'm wading through a bucket of little improvements in gitlab readme docs every month
And how many of those are big hits? Seriously, the heck is this comparison? You do realize that little improvements of Github don't quite make it here, right?
3
u/stonerbobo Nov 26 '20 edited Nov 26 '20
why is half the internet obsessed with dark mode like what the fuck??? it's cool and all but damn it's a tiny feature
16
u/Zak Nov 26 '20
Perhaps you should skim the thread you're commenting in and find out.
→ More replies (3)3
u/mushfiq_814 Nov 26 '20
Well if it's half the internet, is it really that tiny? Unless you mean tiny as in doesn't take that much resources to implement. In that case, I agree with you I guess?
→ More replies (2)3
u/vlmutolo Nov 26 '20
Because everything else is dark mode on my computer, and then when I switch to github, it’s blinding. And because GitHub is often a large part of my workflow, I am in large part blinded.
2
u/schneems Nov 26 '20
Do they still have the contract with ICE?
12
→ More replies (1)9
u/sysop073 Nov 26 '20
Does that have anything to do with dark mode?
0
u/schneems Nov 26 '20
Does working with human rights violators have anything to do with a UI change?
Well, if GitHub no longer works with them then the two would be totally unrelated. Unfortunately it seems, they’re connected by a common thread: GitHub.
4
1
u/Techadelic Nov 26 '20
My professor always told me dark mode was bad for your eyes. Makes you strain more. Always wondered if that was true.
2
u/IceSentry Nov 26 '20
Some people have significant eye strain from it, some people have no eye strain from dark mode but have it from light mode. It's not constant for every humans unfortunately.
1
u/NaturallyAdorkable Nov 26 '20
RemindMe! 1 month
1
u/RemindMeBot Nov 26 '20 edited Nov 26 '20
I will be messaging you in 1 month on 2020-12-26 14:44:34 UTC to remind you of this link
1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
1
1
u/TheDevilsAdvokaat Nov 26 '20
Only recently came to unity and I was VERY happy about it.
Already had dark mode for VS, having it for unity too (for free) was very nice.
1
1
1
1
u/Richandler Nov 26 '20
The more an more dark mode ends up on everything the more and more I'm beginning to hate it. It's like when your parents started getting on Facebook. It was time to nope out.
1
1
1
u/NytronX Nov 27 '20
Lol, I wonder if it looks better than just using the Dark Reader browser extension.
Haven't seen white github in years.
1
u/Revelation_Now Nov 27 '20
What is it with all of these edgelords demanding 'dark mode' on everything. The colour palette sucks and makes text so difficult to read.
1
1
Nov 27 '20
Does anyone here with astigmatism have trouble reading dark backgrounds with light text?
I can't focus on the letters.
1
1
1
1
1
1
-3
0
-55
u/tonefart Nov 26 '20
Dark is racist. It should be called Black Mode.
16
1
-3
-27
Nov 26 '20
Dumb waste of time
0
u/KryptosFR Nov 26 '20
Say that to people who have color blindness, need to work at night at home with their baby/kids sleeping in the same room, etc.
→ More replies (3)0
Nov 27 '20
what does it have to do with accessibility ? completely separate implementation considerations.. not just "dark mode". waste of time
1
u/KryptosFR Nov 28 '20
Not really. Having a dark theme means you have all the infrastructure to have themes in general, which then can be extended to other accessibility issues such as color blindness.
Making a dark them is often the first step, so it is not a waste of time. Just because you don't personally need it, doesn't mean it can't benefit to other people.
0
-6
0
0
0
Nov 26 '20
[deleted]
3
u/IceSentry Nov 26 '20
It's not a fad it's people legitimately finding light mode uncomfortable to their eyes while nkt having those issues with dark mode.
2
u/istarian Nov 26 '20
It is getting a little annoying, but mostly because they websites/software should just implement it or not and skip the fanfare.
886
u/Planebagels1 Nov 26 '20
I use a GitHub dark theme extension the whole time