r/programming • • Nov 26 '20

Dark Mode Coming to GitHub After 7 Years

https://github.com/isaacs/github/issues/66#issuecomment-733446758
6.1k Upvotes

357 comments sorted by

886

u/Planebagels1 Nov 26 '20

I use a GitHub dark theme extension the whole time

187

u/rxsel Nov 26 '20

Same lol

45

u/LandGoldSilver Nov 26 '20

Same LOL

Stylus Github dark.

8

u/ElliotDotpy Nov 26 '20

Thank you for this gift.

→ More replies (10)
→ More replies (65)

34

u/be-swell Nov 26 '20

This reminds me of when macOS got night mode when I had already been using f.lux

36

u/diamondjim Nov 26 '20

And now I realised why my computer was blinding me ever since I formatted it last month. BRB. Getting f.lux.

→ More replies (8)

22

u/cryo Nov 26 '20

F.lux is about color temperature, not dark mode.

13

u/Serei Nov 26 '20

macOS's Night Shift also adjusts color temperature. You're probably confusing it with Dark appearance which is a different macOS feature.

→ More replies (3)

17

u/caltheon Nov 26 '20

Flux was a terribly coded program that ended up being the root of a lot of my odd OS bugs. Good riddance

→ More replies (1)
→ More replies (4)

3

u/Forgemaster00 Nov 26 '20

Right? I feel like most Github users would already be doing this if they so desired a dark mode. Nice to have it natively supported, but it's hilariously redundant atm.

48

u/TheSpanishKarmada Nov 26 '20

tbh I never cared enough to install anything for it but now that it's just there I'll probably use it. I am the 1% it benefits I guess lmao

→ More replies (1)

8

u/cryo Nov 26 '20

But now even the people who only want it a little can get it :)

6

u/flying-sheep Nov 26 '20

I disagree. Official support means that you don’t have to rely on some usually hobbyist-supported CSS hack that can break any time.

→ More replies (1)

11

u/[deleted] Nov 26 '20

well you could say the same about Stack Overflow

╮ (. ❛ ᴗ ❛.) ╭

5

u/fouoifjefoijvnioviow Nov 26 '20

At work i can't install my own extensions

→ More replies (1)
→ More replies (8)

227

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

u/r00x Nov 26 '20

The surprise "your retinas are now dust" attack.

→ More replies (2)

3

u/z500 Nov 26 '20

And what's up with those gigantic arrows before a page is finished loading?

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)

-3

u/Isvara Nov 26 '20

Maybe this should be specified for the Prefer header.

15

u/caagr98 Nov 26 '20

prefers-color-scheme

→ More replies (3)

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

u/ar243 Nov 26 '20

"A blessing! A blessing from the Lord!"

8

u/[deleted] Nov 26 '20

God be praised!

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

u/[deleted] 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

u/[deleted] 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

u/AreTheseMyFeet Nov 26 '20

*Degauss*
giggles
*Degauss*
giggles
*Degauss*
...

→ More replies (2)

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.

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 (1)

4

u/Antrikshy Nov 26 '20

I think the other person was just talking about general screen brightness.

→ More replies (31)

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

u/goranlepuz Nov 26 '20

Light mode during the daylight, dark mode without it FTW!

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

u/KickMeElmo Nov 26 '20

Or I just prefer dark.

0

u/[deleted] Nov 26 '20

[deleted]

13

u/[deleted] 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.

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 (10)

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)
→ More replies (5)

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)

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 (2)

0

u/[deleted] 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".

→ More replies (14)

78

u/OctagonClock Nov 26 '20

hundreds of thousands of developers soyfacing at this announcement

9

u/[deleted] Nov 26 '20

And there was much rejoicing across the land!

7

u/nickelcore Nov 26 '20

Soyfacing?

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

u/Rodentman87 Nov 26 '20

Solarized Light gang where you at

3

u/[deleted] Nov 26 '20

There's dozens of us!

→ More replies (1)

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

u/brain_tourist Nov 26 '20

Hello darkness my old friend

3

u/Gwaptiva Nov 26 '20

Now you really can start to take it seriously...

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

u/darkm0de Nov 26 '20

What do you mean? I’ve been on GitHub for at least four years

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

u/sakistz Nov 27 '20

Oh, I didn't knew that! That sounds nifty!

2

u/[deleted] Nov 26 '20

Sweet I got tired of hacking it.

2

u/[deleted] Nov 26 '20

I use dark reader

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

u/[deleted] 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

u/CantBeChangedLater Nov 26 '20

Which just makes it weirder right

2

u/_rchr Nov 27 '20

I don’t know, VS Code changed my opinion of Microsoft a whole lot.

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"

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

u/corsicanguppy Dec 04 '20

And Hillary climbed mount Everest.

Great feats, minimal impact.

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 master branch 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.

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?

→ More replies (2)

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?

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.

→ More replies (2)

2

u/schneems Nov 26 '20

Do they still have the contract with ICE?

12

u/juri Nov 26 '20

GitHub cooperating with ICE: the original dark mode.

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

u/TankorSmash Nov 26 '20

So no, not really then

→ More replies (2)
→ More replies (1)

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.


InfoCustomYour RemindersFeedback

1

u/SweetIsland Nov 26 '20

Finally I can die in peace.

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

u/HuntersMaker Nov 26 '20

github has only been around for 7 years? i thought way longer

1

u/thooton Nov 26 '20

IPv6 next hopefully

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

u/delrindude Nov 26 '20

Dark mode is overrated

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

u/WeAreMoreThanUs Nov 27 '20

Fucking finally.

1

u/[deleted] Nov 27 '20

Does anyone here with astigmatism have trouble reading dark backgrounds with light text?

I can't focus on the letters.

1

u/ShotgunJed Nov 29 '20

So when will it actually be released?

1

u/brazzaguy Dec 08 '20

Today it is active

1

u/Hambeggar Nov 26 '20

Don't wait. Just use the Stylus extension.

Be the change.

1

u/FGC_Orion Nov 26 '20

GitHub now usable

1

u/[deleted] Nov 26 '20

It's about time

1

u/[deleted] Nov 26 '20

I use discord and reddit in a white mood so it prefer it that way lol

1

u/rv1989 Nov 26 '20

Next they will add stories.

-3

u/Tarlovskyy Nov 26 '20

You must top calling it that. It's african-american mode.

0

u/mindbleach Nov 26 '20

Reddit, meanwhile...

-55

u/tonefart Nov 26 '20

Dark is racist. It should be called Black Mode.

16

u/SlipUpWilly Nov 26 '20

jesus christ

-36

u/tonefart Nov 26 '20

Can't you guys read sarcasm ?

18

u/mandolini_ Nov 26 '20

Not if you don’t put /s

Also, it was just unfunny

1

u/kangarang Nov 26 '20

haha i chuckled

-3

u/mustang__1 Nov 26 '20

Now if only I could get dark mode for non office 365 programs

-27

u/[deleted] 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.

0

u/[deleted] 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.

→ More replies (3)

0

u/d_unique Nov 26 '20

Who gives a shit, it's not like your looking at github all day.

-6

u/[deleted] Nov 26 '20

Dark mode? Instantly like.

0

u/[deleted] Nov 26 '20

[deleted]

1

u/rxsel Nov 26 '20

Lmao nah... it's been pretty bad 😂

0

u/[deleted] 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.