DEV Community

Cover image for Why Most Developers Prefer The Dark Theme IDE?

Why Most Developers Prefer The Dark Theme IDE?

Suraj Vishwakarma on October 01, 2020

Introduction According to a survey, 70% of software engineers prefer a Dark theme IDE over the light theme. You will always a lot of dar...
Collapse
 
santtuhelea profile image
santtuhelea

Light attracts bugs. We don't like bugs, right?

Collapse
 
manishfoodtechs profile image
manish srivastava

One line answer.

Collapse
 
futureistaken profile image
R Z

It's not bugs, it's features!

Collapse
 
surajondev profile image
Suraj Vishwakarma

Nice one bro 🤣🤣

Collapse
 
braydentw profile image
Brayden W ⚡️

Amen 😂😂

Collapse
 
mzaini30 profile image
Zen

😂😂😂😂

Collapse
 
sebring profile image
J. G. Sebring

I've never fallen for dark mode but this make me consider a switch =)

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yep, you should give a try ♥️

Thread Thread
 
sebring profile image
J. G. Sebring

Oh, I've tried it several times. If coding at night I think it's ok but for daily programming I find it makes the other screens appears so bright. I rather have a light mode with low brightness on the screen.

Thread Thread
 
surajondev profile image
Suraj Vishwakarma

Yep, adjusting according to light is good practice.

Collapse
 
hnrq profile image
Henrique Ramos

Case closed! lol

Collapse
 
rootleet profile image
Uyin Solomon

Correct!!

Collapse
 
jlonetree profile image
jlonetree

This is great 😂

Collapse
 
surajondev profile image
Suraj Vishwakarma • Edited

We can't afford to have bug in our house😂😂😂

Collapse
 
samarthsaxena profile image
Samarth Saxena

hilarious 😂

Collapse
 
madza profile image
Madza • Edited

better contrast, easier for the eyes 😉

Collapse
 
dbarwikowski profile image
Daniel Barwikowski

I saw an article that says the opposite.
Let me find it

Collapse
 
dbarwikowski profile image
Daniel Barwikowski

ux.stackexchange.com/questions/532...

However, most studies have shown that dark characters on a light background are superior to light characters on a dark background (when the refresh rate is fairly high). For example, Bauer and Cavonius (1980) found that participants were 26% more accurate in reading text when they read it with dark characters on a light background.

People with astigmatism (approximately 50% of the population) find it harder to read white text on black than black text on white. Part of this has to do with light levels: with a bright display (white background) the iris closes a bit more, decreasing the effect of the "deformed" lens; with a dark display (black background) the iris opens to receive more light and the deformation of the lens creates a much fuzzier focus at the eye.

Thread Thread
 
surajondev profile image
Suraj Vishwakarma

Might be it's hard for white colour but other colours on black are easily readable. On white, we have a lot of trouble to read bright colour while on black we can easily read the bright colour without any trouble. IDE is made of multiple colours with each element is different, so dark is very suitable is such a situation.

Thread Thread
 
skyjur profile image
Ski • Edited

Depends on color palette. I can't agree that colored code is any less readable on white if the right shades that is dark enough is chosen.

You can also chose shades that are hard to read on black.

Not that this is in any way scientific but:
#ffe0ff on #fff - I can still read
#002000 on #000 - can't read at all, can't tell which color it is

Thread Thread
 
surajondev profile image
Suraj Vishwakarma

Yep Bro, Everything at last comes to personal preferences and yes there are colours which you can't read clearly on dark but same goes for white theme IDE too.

Thread Thread
 
ytjchan profile image
ytjchan

My astigmatic eyes approves this.

Collapse
 
dbarwikowski profile image
Daniel Barwikowski

Turns out that it depends.
You should try it and see if you can keep the same reading speed and how fast your eyes get tired.

While dark theme looks kinda Pro then it doesn't change code quality.
Think about what is good for you :)

Thread Thread
 
madza profile image
Madza

Yeah, it comes down to individual preference anyways 😉

Thread Thread
 
surajondev profile image
Suraj Vishwakarma

Yesss, it's always a personal preference.

Collapse
 
nooballday profile image
Achmad Naufal Syafiq

I used to use dark mode on everything cause my eyes hurt when using light mode, but lately I got fatigue really easily and changed my dark mode behavior to light mode, now I can code longer without hurting my eyes, weird huh.

Thread Thread
 
surajondev profile image
Suraj Vishwakarma

Same here bro, I am using dark mode on almost all my devices.

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yes that's why I love dark theme

Collapse
 
faridsa profile image
farid

I'm using dark theme everywhere not only in code IDE, because after over 30 years of computer use, I found dark screen so much pleasant for my eyes. I don't agree that light is smooth because I feel so much light from screen to my eyes in that way.

Collapse
 
surajondev profile image
Suraj Vishwakarma

I also started to maximize the use of dark theme whenever I am looking at the screen.

Collapse
 
surajondev profile image
Suraj Vishwakarma

Thats good for your eyes

Collapse
 
mosecoza profile image
Bonginkosi Lukhele

I have the problems with light to my eyes but, I have not noticed it reduced with dark mode

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yess, Dark Theme helps eye.

Collapse
 
supportic profile image
Supportic

I use Light-Theme on daytime because it's easier for the eyes in a bright environment and keeps the focus.
And on nighttime it switches to dark-mode by using a VSCode extension.
You can set when exactly it should switch and it can calculate when the sun goes down in your region. You can also add or subtract e.g. 30min from that time.
marketplace.visualstudio.com/items...

Collapse
 
luscala profile image
Luca Scala

I used light themes for years. Then I suddenly switched to dark ones, because all my colleagues where using them. I found out a better experience, but when the sun shines in the room I think the light themes will perform better.

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yes, light play important role in choosing theme in low light dark themes are best and bright light light themes are best.

Collapse
 
kurisutofu profile image
kurisutofu • Edited

I didn't really like dark themes ... I always used the light "normal" theme or modified it to be more grayish.
Then, most of the development tools went the dark mode route by default and I felt it was too much trouble to change all of them so I stuck with it.
Now, I finally understand it was better all along and it was just that I was not used to it. I should have forced myself to use it years ago.

Collapse
 
surajondev profile image
Suraj Vishwakarma

I hope now you Can adapt to dark theme era.

Collapse
 
kurisutofu profile image
kurisutofu

I like it now and I think I was wrong to be so reluctant before :D

Collapse
 
zilti_500 profile image
Daniel Ziltener

Soothing to the eye... that depends. A light background can be just as good. Spacemacs e.g. has a very nice light theme. I tend to use the light one during the day, and switch to the dark one in the evening.

No idea where you got that "more concentration" thing for, source please?

The energy saving point is a myth, unless you have an OLED screen, and even then the only way it saves energy is if you have the background set to completely black. And hardly any dark theme does that.

So, yea...

Collapse
 
surajondev profile image
Suraj Vishwakarma

You have a point bro.

Collapse
 
wskinner74 profile image
Cody Skinner

Definitely easier on the eyes. I typically use blue-light blocking glasses when I'm working, but I love how relaxing dark themes are as opposed to being blasted with bright colors.

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yep, dark theme are blessings for our eyes.

Collapse
 
bimlas profile image
bimlas

I would like the dark theme, but I have to switch between the dark IDE and the light background websites and that ruins my eyes. The solution would be to switch the desktop to completely dark mode (via xfce4-night-mode, customized .vimrc to toggle background at night, etc.) and also view the websites in night mode, but I think that would be more work than advantage.

I’ve tried to switch to dark mode several times because I want to try it, but I’ve never been really successful. What technical solutions are there?

Collapse
 
surajondev profile image
Suraj Vishwakarma • Edited

I use an extension called Dark Mode in my chrome website to toggle between dark and light mode. You can give a try.

Collapse
 
crtl profile image
crtl

I first thought dark theme is this gamer kiddy thing to look more like RGB style but in the end when you sit in front of your screen for 8+ hours multiple days dark theme was way easier on my eyes and I stayed with it.

Collapse
 
surajondev profile image
Suraj Vishwakarma

I also started using dark theme across all my devices to save my eyes.

Collapse
 
thefluxapex profile image
Ian Pride • Edited

I've read a lot about this subject over the years and all the so-called "experts" say the exact opposite, but they also say to lessen the contrast to be softer on the eyes, for example a background of 0xEFEFEF and 0x0F0F0F text color...

I personally get massive headaches from light screens, but not other brighter lights except for the sun so I can't do without a dark theme.

Collapse
 
surajondev profile image
Suraj Vishwakarma

Personal preference is the most important. If anyone is comfortable with dark go with dark or comfortable with white goes with white.

Collapse
 
cesee profile image
Cesar Maroun • Edited

It is actually scientific that the light theme (dark on bright) is more readable, has much better contrast and makes you more productive. Dark theme on the other hand makes you work much harder in order to comperehend what you are seeing.

Most of the developers use it because most of developers just like fads or what they think makes them cool.
Just like so many of them insist on coding on an Apple machine for no reason (even though Apple is cleary anti-developer and they basically use Chrome anyway), or think that developing with a half keyboard or 3/4 laptop keyboard (like in the ads you attached to your article) is not a really bad idea, or prefereing the obviously forced and very error-prone javascript language, or hating Microsoft even though it's one of the only companies that care about giving really good tools to them, etc, etc...

I have seen with my own eyes how my developers struggle with the dark theme (not seeing things, having a hard time reading) while insisting at the same time that it's better (because everyone else says it's better...)

The only valid argument is that it's easier on the eyes when you are in a dark room (but it's still less readable so it's a compromise), but how often does that happen anyway ?

Collapse
 
gahntpo profile image
gahntpo

I need to say that dark themes don‘t save energy per se! The LCD Displays have a back illumination and the liquid Crystal blocks the light for the dark pixels. They use the same amount of backlight if you have white or black background image. OLED Displays produce light per pixel and can save energy when you use a dark background. That is why they can save battery for the newer smart phones. Sorry, physics geek here.

Collapse
 
altjero profile image
Jeremy Rumble

In regards to point #3...

If you ask me, the premise that a dark-themed IDE will use less energy is problematic at best.

Popularised by Blackle, an energy-saving, dark-themed alternative to Google, the energy saving nature of dark themed apps mostly only applies to mobile phones with an (AM)OLED screen and computers running an old-fashioned box monitor.

The boxy CRT monitors of the 90's and early 00's, similarly to modern (AM)OLED screens, creates light pixel by pixel. That means that the more light that's created, the more energy used. Thus, the brighter overall look of a theme, the more energy used.

The vast majority of laptop screens and current desktop displays work differently. LCD screens start with a certain amount of light coming from a backlight. That light passes through a screen which dims certain pixels depending on how dark a theme is. Aside from screens with intelligent, multi-zone backlight dimming, the darker the screen doesn't mean less energy is used because the backlight is still on.

In addition to the backlight, the switching of the LCD pixels from light to dark uses energy. This can differ because some screens use energy to switch from light to dark, and then spring back to light when the power is removed, while others use energy to switch from dark to light. The former screens will even use more energy for a dark theme because it takes power to keep the pixels of the LCD screen dark.

Finally, I personally tend to turn up the overall brightness of my screen when using a dark theme so that the text pops out even more. In the case of an LCD screen that works exactly the wrong way for trying to save energy.

I can say that I'm looking forward to MacBooks with AMOLED Retina (or whatever the follow up to that will be) screens, so that black is truly black and dark themes will actually use less energy.

For now, though, you'll need to get a laptop that does have, or an IDE that will work on your AMOLED mobile phone :)

Collapse
 
mzaini30 profile image
Zen

I used light Theme 😂

Collapse
 
surajondev profile image
Suraj Vishwakarma

That's something surprising bit yesss it personal choice

Collapse
 
mzaini30 profile image
Zen

😂😂😂

Collapse
 
sanidz profile image
sanidz

Because eclipse leaves lifelong traumas...

Collapse
 
surajondev profile image
Suraj Vishwakarma

We hate light theme

Collapse
 
shrihankp profile image
Shrihan

Many people (only me?!) like to show off that cool setup with that pitch black dark theme 😂 😅

Collapse
 
surajondev profile image
Suraj Vishwakarma

Everybody do 🤣🤣

Collapse
 
cedrichopf profile image
Cedric Hopf

Did you ever opened your IDE at night with a light theme enabled? It burns in your eyes 😂

Collapse
 
surajondev profile image
Suraj Vishwakarma

I didn't take that risk till date 🤣🤣🤣🤣

Collapse
 
wkrueger profile image
wkrueger

If you have a bad display, light theme might be better. Because bad displays cant do both good dark and light contrast at the same time.

 
braydentw profile image
Brayden W ⚡️

Very cool :)

Currently I'm learning more about REST APIs, Firebase Auth, and creating some small projects to put on my Github.

 
braydentw profile image
Brayden W ⚡️

Yep :D

Btw, how is WickedTemplates going?

 
braydentw profile image
Brayden W ⚡️

Haha I try my best 😂😂

Collapse
 
nrutledge profile image
nrutledge

Fun fact: it actually takes more energy to display a dark image than a white image on LCD monitors.

Collapse
 
surajondev profile image
Suraj Vishwakarma

OLED in screen can save energy

Collapse
 
albertmarashi profile image
AlbertMarashi

Probably won't save much energy unless you're running an OLED display

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yes, good point bro

Collapse
 
davidlazarofernandez profile image
David Lázaro Fernández

Don't forget the bugs!

Collapse
 
jvarness profile image
Jake Varness

Easier on my eyeballs.

Collapse
 
tryonlinux profile image
Jordan Tryon • Edited

Number 1 reason, looks cool and makes all us devs look like hardcore hackers to the outside world. Let’s be honest here haha

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yep most of Dev do this and I am one of them 🤣🤣🤣🤣

Collapse
 
gsarig profile image
Giorgos Sarigiannidis • Edited

Because it looks like a poster of The Matrix and makes me look like a hacker to the eyes of non-coders when I type var_dump() and console.log()

Collapse
 
surajondev profile image
Suraj Vishwakarma

We also do this trick 🤣🤣🤣🤣

Collapse
 
braydentw profile image
Brayden W ⚡️

I agree with all of these points. Good article!

Collapse
 
surajondev profile image
Suraj Vishwakarma

Thank you brother ♥️

Collapse
 
futureistaken profile image
R Z

I am programming in the sunglasses.

Collapse
 
mosecoza profile image
Bonginkosi Lukhele

I changed because everyone else was in dark mode, I have no preference

Collapse
 
surajondev profile image
Suraj Vishwakarma

But dark theme is goooooood.

Collapse
 
samarthsaxena profile image
Samarth Saxena

-Helps to concentrate on the texts.
-Helps to reduce strain on eyes
-Can work continuously for more number of hours.
-hence productivity increases.
-But there's always a toll on health in any case.

Collapse
 
surajondev profile image
Suraj Vishwakarma

Good point bro ♥️

Collapse
 
louislow profile image
Louis Low

My eyeballs feel comfortable with a dark theme, especially mix with an orange-yellowish desk lamp behind the screen... Romantic coding.

Collapse
 
surajondev profile image
Suraj Vishwakarma

You get into feel while coding 😂😂. nice bro

Collapse
 
harshita248 profile image
Harshita Raj • Edited

Dark theme : Good for the eyes though ,
And the developers possibly do not want to get their vision or as you say 'eyesight' affected.

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yes, a person already having weak eyesight is highly recommended to use dark theme during the low light scenario.

Collapse
 
bias profile image
Tobias Nickel

I once hear the theory, that it is because of our ancestors. hunting in the dark, scanning the surroundings.

maybe searching for bugs

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yes, bro I also heard something on quora regarding this theory.

Collapse
 
camillerhodon profile image
Camille RHODON • Edited

As someone with a visual disability, Dark Theme is the only confortable way for me to read on a screen. On light mode i always have to squint and doing it 7 hours a day is very painfull

Collapse
 
surajondev profile image
Suraj Vishwakarma

Same goes for me. I cant stare at light theme IDE for longer time.

Collapse
 
kaeptnkrunch profile image
Stephan B. R. Langenau

Especially for me dark themes are better because I have an Eye Disease. And I guess when you code in the evening it's also better for every eye 🤣

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yep in low lighting situations dark theme are best

Collapse
 
cnrshn01 profile image
Caner Şahin

The Dark theme overwhelms me...

Collapse
 
surajondev profile image
Suraj Vishwakarma

We love dark theme

Collapse
 
pazyp profile image
Andrew Pazikas

You feel like a badass hacker!

But really I always do it to prevent eye strain, sitting sometimes 8/9 hours+ infront of a white screen cant be good for you

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yes, we want to look like to hacker or something like in movies. #hackerman
😂.

Collapse
 
stevetaylor profile image
Steve Taylor

Dark theme for the same reason I don’t stare at light bulbs.

Collapse
 
surajondev profile image
Suraj Vishwakarma

😂😂😂