DEV Community

Discussion on: Should You Really be Coding in Dark Mode?

Collapse
 
mattcobley profile image
Matt Cobley

I think there was also some research that said that if your are in a light environment then having your background match this is less straining on your eyes, and vice versa. So during the day in a well lit room light mode is likely to be more comfortable, but at night or in a dark room then dark mode would likely feel better. There seems to be a misconception that dark mode is generally better to prevent eye stain, and that's clearly not true.

Collapse
 
ashiqsultan profile image
Mohamed Ashiq Sultan

I see, I always use dark mode, thought just adjusting brightness should be enough.

Collapse
 
dima2306 profile image
Dimitri Simonishvili

True, while I code in daytime, I've bright colors palette in my IDE. If I've to code at evening when there is no much light, I prefer dark theme.

Collapse
 
simoncodephere profile image
Simon Pfeiffer

Ah okay, thats a valid point! I definitely find myself adjusting my color scheme according to the time of day. Thanks for pointing that out!

Collapse
 
mattcobley profile image
Matt Cobley

No problem. Apologies I've not got any specific references - the info is out there though.

Another interesting point is that if you have astigmatism then it can be more difficult to comprehend the white text on dark background due to the colours bleeding together (or something similar to that). It's certainly not one size fits all.

Collapse
 
rafh profile image
Rafael Heard

I like this comment because I code in various locations. If I'm outside and it's sunny I frequently switch to a light theme. If I'm in my office where it's a bit more dim I'll apply a dark theme.

Collapse
 
th0rgall profile image
Thor Galle

I've been doing this switching based on the light in my environment too, it's indeed what gives me the most comfort.

I got a system-wide shortcut set up using a macOS Automation and this LifeHacker guide, so with one key press the whole system and all apps change from light to dark, or vice versa. Then DarkReader does the same for the web browser :)

A good thing that dark mode support became mainstream!