I remember having a discussion about this with a buddy who noticed I used a dark themed editor. He cited some study, I don't know exactly what study it was, that said our brains work better looking at a white background. (Perhaps more neurons fire or something like that)
What do you think about this? Do you feel you work better with a black background, or do you just use one because it's more cool/retro looking than a white background?
I remember reading something similar 20 years ago or so: not that the specific background color mattered, but that a light background works better than dark, and that the contrast between the foreground/background matters (the higher the better).
Consistent average brightness across your field of view (both within the monitor and beyond) is far more important to your visual strain than whether monitor is dim or bright.
Next time you feel strained looking at your screen, look around it at the other lights in the room/outside and notice how even the brightness is.
I honestly cannot tell a difference other than I prefer working in a darker environment in general. When I'm at home I have a 40watt desk lamp behind my monitor pointing at the wall full screen vim with modified IR_Black as my theme.
In fact, there have been numerous studies that show we're much better at reading white-on-black text, but because of historical reasons (paper) many of us are conditioned to prefer black-on-white. That 63% would be higher with a different cultural background.
Note that not all such studies look at the same thing. I should've been more precise: on paper and with training, people were much faster at quickly reading a page if it was light-on-dark than dark-on-light or dark-on-white.
For a long time now the first thing i do in a new text editor is to look for a nice dark theme.. i don't know.. it's somewhat more relaxing :)
Oblivion was probably one of the first i used in all those gtk based editors.
edit: Also, default colorschemes on terminals are dark, why is that?
Given how opinionated the dark background folk I've met have been (possibly just because they feel ignored by common windows editors) I'd worry about selection bias in a result like this.
This is a really great point. In fact, _any_ survey with self-selecting participants is highly susceptible to selection bias. What surveys like this are good for is measuring the opinions of a group of people, weighted by degree of explicit interest in the subject. Most people just use the default light-backgrounded-schemes, and don't even think about it. The silent majority.
However, this survey is useful in that it reveals that there is indeed a passionate core of users who prefer dark backgrounds. The survey author seems to understand all this, as his conclusion is that it is definitely worth adding a dark background option, but that it may or may not be the default.
I prefer a dark background in my text editor, but I think that would look out of place when integrated with the browser chrome. Going with a light theme is probably a good default.
Statistic is flawed. Most people who use the default white themes probably dont read HackerNews, dont care to optimize their setup or routine. Those that read hackernews with a woren out F5 key are likely to be heavily influenced by the dark theme propaganda (screencasts etc..) that swamp HN. Just saying.. I can draw any reasonable conclusions from your stats, or even my own devil's advocate view.. Does it matter?
This reminds me of the discussion on the where are people located survey and how self reported data like this is essentially worthless. Since the only conclusions one can draw from this sort of survey is that of those who responded 63% prefer the dark background, and that there are people who like light and those who like dark. Further generalization is meaningless.
Shhh... Don't tell everyone! The editor screenshots and code samples in the Rails Tutorial book are light because dark was too jarring against the surrounding text. The screencasts, on the other hand... Mwa hah hah!
I love a dark color scheme, but the chrome also has to be dark. For example, I can't use dark browser themes because most websites have a white background and the contrast is difficult to deal with.
Are you referring to the sidebar? You can apply colours to that as well, it's just that the built in themes dont have them defined yet for some reason. At least the default one doesn't anyway.
I would really love color correction for the browser content area to be (ab)used to fix this. Everything else is themeable, but websites in their glorious variety can't really handle less radical forms of restyling.
I prefer light backgrounds, for one simple reason. Less eye strain.
If the majority of the screen is light, my pupils contract, which results in less eye strain to keep everything in focus. I can use smaller fonts & maintain readability. I used to love the Zenburn color scheme, but that just doesn't work as well for me anymore.
Note - I'm not talking black on white. I'm talking dark grey (ebebeb) on light grey (0f0f0f).
Really? I found exactly the opposite. I moved from white backgrounds to a dark theme (emacs color-theme's "gnome2", basically #f5deb3 on #2f4f4f, not unlike zenburn) a year ago and found my eyes were much more relaxed after a bunch of coding.
I actually find looking at white-backgrounded web sites (like HN) to be fatiguing these days.
FWIW, I also find black backgrounds straining. I usually have to hit dark sites with readability to read them comfortably. Perhaps it's a matter of what your eyes are used to?
To be clear, a true black background is awful, I agree. Some sites think things like white/yellow on #000000 is a good idea, and it's just a terrible readability disaster. But the "DarkSlateGray" background of gnome2 is entirely different, IMHO. Give it a shot for a few days and see what you think.
It's probably at least partly a matter of how the rest of your room is lit. Your sight is sharpest when your pupils are small, so a bright monitor in a bright room will work best for many people.
However, if you're looking at a dark monitor in a bright room, or at a bright monitor in a dark room, your pupils may be too large for the amount of light that reaches them to be entirely comfortable, which causes squinting and eyestrain.
A dark monitor in a dark room won't have that problem, but you may still be dealing with some increased blurriness because of your enlarged pupils, which may bother you depending on how good your eyesight is.
Totally the opposite for me. In the dark days of coding on Windows, I used to invert the entire screen's gamma ramp just to have white text on dark background. I found that switching back to black on white caused my eyes to squint due to the excessive brightness.
I've often wondered why computers in general still persist with black text on a white background. I'm convinced in 50 years time there will be legions of people with eye problems that could have been avoided by just inverting colours on active displays.
For this reason I only like ePubs too as you can invert the colours easily when reading on a tablet.
Pardon? I thought that Windows was one of the first systems to deviate from the "green/amber-on-black" standard terminals that ruled those bygone days.
Your pupils contract because you are being overwhelmed be the amount of light coming out of your monitor. This doesn't sound so relaxing to me ;)
On the other hand, you could be myopic and under-corrected - and so suffer more when the pupils are relaxed (similar to the Night Myopia effect).
I do find it almost impossible to use dark background IDEs (such as XCode and Eclipse), because of the other GUI elements cluttering the screen (which are usually light). And this causes a lot of eye strain, because the amount of incoming light is still huge, while most of the screen is dark, relaxing the pupils and burning the retina.
Since most of my time I'm on Emacs or the terminal, I'm cool. Switching to a browser still hurts - one more incentive not to look at Hacker News while working ;)
I am not a doctor, so I am mostly speaking from experience.
My eyesight without glasses is bad enough (nowadays) that I can't do a fair comparison of uncorrected vision between dark and light (can't read anything either way), but letters on dark background get significantly more blurred than with a light background. The overall room lighting level also seem to play a large role. Hence, pupil size.
My guess is that not only myopic individuals, but people with any visual problems due to their corneal shape. Also LASIK patients with large pupils (but that's to be expected).
Again, not a doctor. I am hoping some doctor will step in and comment :)
Not myopic, but I do have some eye problems that limit the correction I can get. This may make me in the minority, but it also means that dark background defaults are not a positive experience for me. Text on light backgrounds is is crisp, while dark backgrounds looks like it's been badly anti-aliased.
With regards to brightness of the monitors, I keep it reasonable - about 25% of what the monitors could do.
When I have no choice, I also tone down the brighness to ridiculous low levels. On some monitors, even 0% is too bright (hint: change the contrast then, some monitors will dim the backlight some more).
> On the other hand, you could be myopic and under-corrected - and so suffer more when the pupils are relaxed (similar to the Night Myopia effect).
This is really interesting. I am severely myopic and have always preferred a black background.
However, last week I had cataract surgery and now with a +27.5D (!!) IOL implant in my right eye - the only eye I have, I'm not so nearsighted as I used to be (20/80 now instead of 20/200), but I am still experiencing eye strain when looking at the computer for any length of time. After switching my editor to a white background, things got a lot easier to see.
Mind you, I am only a few days post-surgery and I haven't yet gotten new glasses. I was also having a lot of issues with colorblindness and contrast sensitivity, as well as a lot of "double" vision (which was more accurately "I see 8 of those things" vision). These are now resolved, as well. All of those will factor into the equation a great deal, I'm sure, but I do find that after the cataract surgery, the light background makes for less eye strain.
I switched color schemes from "Blackboard" to "Dawn" but my Blackboard theme may have been modified a bit. I've been using it for so long, I can't remember. It almost seemed as though there were too much contrast with the dark background.
I'm still not at a point where I can use the computer for more than about an hour at a stretch. It's amazing how mentally and physically taxing adjusting to better vision can be.
I disagree. A black background on a backlit screen is less eyestrain for the same reason that a white background on printed paper is. In both cases, the significant information is on while the background is off.
Reading black on white from a backlit screen is akin to reading the wattage information from a glowing lightbulb. It hurts.
You need some external source of light somewhere behind your monitor to prevent your pupils from dilating (bias lighting). Adjust screen luminosity so that the screen isn't your reference light source.
I've done that in the past, and it has made no difference. Even in a fully lit room (without reflections on the screens, etc), dark backgrounds are not as comfortable as light backgrounds.
[EDIT] TO clarify a bit more - I use 2x 24" monitors at the recommended distance (arms length). This means that for better or worse, most of my field of view will be taken up by the monitors, and so most of the light that hits my eyes will always be from my monitors.
I also prefer light backgrounds - for example the KDE konsole color scheme (light colors with black letters, a different background color automatically assigned for each tab).
Websites with white-on-black cause afterimages which persist for several seconds and are really distracting / tiring.
The combination I use -- light green (#88FF88) on dark blue (#000060) -- is very easy to focus on. In particular, having roughly the same amount of blue in the foreground and background makes blue, which is the color most subject to chromatic aberration, irrelevant for focusing.
It has a dark version, which I use for coding, and which I think works better with syntax highlighting. It also has a light version, which I like for regular text editing.
Both have nice contrast, and you can toggle between the two with a single keypress.
I didn't understand the love for solarized until I got a decent quality monitor. Now I use it for MacVim, iTerm2, and Adium (I just tweaked the colours in minimal_mod, and can share if anyone cares). It's perfect.
You may be pleased to note that this comment finally pushed me over toward finally trying Solarized in Emacs. I'm very used to high-contrast themes (blackboard for almost a year) so it's taking some getting used to. Especially in the emacs rcirc client where chat text is low contrast on the background.
edit: Lasted about a half hour for me; too low contrast and the cursor seems to be invisible, so impossible to tell where I'm about to type.
Nice theme! All of the vim themes I tend to see are very simple in terms of color. Understandable that some might find more than a couple colors to be distracting, but I find it very helpful.
Syntax highlighting was the one last thing I regretted leaving TextMate for, but yesterday I spent a day tweaking my own theme (based off of Tomorrow-Night https://github.com/ChrisKempson/Tomorrow-Theme , which does have a vim theme but I found it lacking and not at all like the TextMate version) and I like it so far. But it's nice to finally know of another theme with nice colors. Thanks :)
In fact I think I like the string highlighting on this one, I might try it on mine :)
Thanks for the recommendation. I've been using solarized, but I like the slightly higher contrast that Jellybeans provides. Just updated my configs and looked through a several different file types (.sh, .rb, etc) and I'll be using Jellybeans from now on. Thanks again!
I think the real beauty of Solarized is how it works equally well in light and dark mode. Also, how it is explicitly not trying to be as high contrast as possible. I don't think I have ever used any color scheme as consistently as Solarized.
I like both Twilight and Zenburn. I've ended up sticking with Twilight for several years now, Solarized looks similar to it. Zenburn is lower contrast which I sometimes had trouble with.
> in practical use it doesn't have enough contrast for me
This is actually what makes the deal for me. On my bright, (nonprofessionally) calibrated IPS screens most color schemes are just too much of an eyestrain for long coding sessions. Solarized (either Dark or Light) is deliciously smooth and pleasing.
I use both, I think it came out of not being able to edit eclipse's themes easily. So static languages I code in light themes and dynamic I go to the dark side. I've converting to one or the other but I think it helps with the mental mode switching, light theme ok I'm in static land.
does anyone know of a simple (preferably one click) way to get eclipse or intellij idea to work with a dark theme (on linux/kde)? i use a dark kde theme and it causes chaos in eclipse (or at least used to when i last tried - black text on dark backgrounds etc), while intellij idea at least works, but uses a light theme. i'd love an ide for java/python that was easy to configure dark (yes, i have emacs working fine white on black, but that's not what i am looking for).
[edit: i just installed eclipse 3.7.1 and it picks up the general theme correctly, but the editors have dark text on dark backgrounds and i don't see any simple way to change that without changing each font setting in turn.]
I suspect it has something to do with when you started using computers. In the VT-100 and MS-DOS days, you pretty much got light text on a dark background. So when GUI environments came along, dark text on a light background became the new cool thing. That's my story, so I grew to like a light background.
I'm guessing that the majority of coders today started out on Windows. Notepad is dark on light, so that became associated with the "common" user. The first peek under the hood would have been Windows command line or Linux. I could see that a dark background would feel more 'tech'.
Alternately, the current batch of programmers grew up on the Matrix movies and associate green-on-black with leet hackerdom. At least, that's the only reason I can come up with--use a VT220 for a while and everything will look purple when you look away.
Been using the Dark scheme on Komodo Edit. Its easier on the eyes and is a big factor especially if you sit in front of your monitor most of the day (or night).
I find it depends on the environment. If it's a bright room (or the sun is shining in the window) I might go to the light background, otherwise it'll probably stay dark.
Related, I always figured the dark desktop UI themes (eg, for GNOME, KDE, Windows, etc) were highly preferred by people working in dark rooms, like a studio or college dorm at 3am. Once upon a time I liked these, but since I'm less nocturnal these days I prefer lighter themes.
I prefer white backgrounds when reading. Everything is consistent with a white background and black text, and I can scan the text quickly.
With coding, my preference is exactly the opposite (I prefer a black background). The difference is that the structure of a program is much more complicated than the structure of prose and that structure is more apparent with white/colors on a black background. Further, the colors of syntax highlighting seem to be much more apparent when displayed on a black screen rather than on white.
While I prefer a dark background, I'm in an office with sunlight coming from behind my screen. I've noticed about six months ago that I was getting headaches when using a dark editor. Since I've changed from dark to light background the headaches have gone away.
I would let the survey go over at least a full 24 hours. If you ask at night, you might only get responses from the nocturnal people, and same problem for asking during the day.
I prefer white backgrounds out of habit. So my terminal is white, text editor is white, browser is white, Linux desktop theme is brighter...
I must say that other users may well like it the other way, because when I used to browse for GTK themes on the http://gnome-look.org/ site, many of the new themes were cooler when they were darker...
BTW, I just found out the http://gnome-look.org/ itself is whiter and brighter. Oh the joy! Cheers.
108 comments
[ 4.5 ms ] story [ 144 ms ] threadWhat do you think about this? Do you feel you work better with a black background, or do you just use one because it's more cool/retro looking than a white background?
Next time you feel strained looking at your screen, look around it at the other lights in the room/outside and notice how even the brightness is.
Looking superficially, I could only find articles claiming the exact opposite – like http://blog.tatham.oddie.com.au/2008/10/13/why-light-text-on... – but they all seem to quote the same and old (1980) research.
Note that not all such studies look at the same thing. I should've been more precise: on paper and with training, people were much faster at quickly reading a page if it was light-on-dark than dark-on-light or dark-on-white.
edit: Also, default colorschemes on terminals are dark, why is that?
However, this survey is useful in that it reveals that there is indeed a passionate core of users who prefer dark backgrounds. The survey author seems to understand all this, as his conclusion is that it is definitely worth adding a dark background option, but that it may or may not be the default.
The thought of people consciously using screencasts to promote their dark theme agenda made me chuckle.
https://github.com/buymeasoda/soda-theme
C:\Users\swah\AppData\Roaming\Sublime Text 2\Packages\Theme - Soda
If the majority of the screen is light, my pupils contract, which results in less eye strain to keep everything in focus. I can use smaller fonts & maintain readability. I used to love the Zenburn color scheme, but that just doesn't work as well for me anymore.
Note - I'm not talking black on white. I'm talking dark grey (ebebeb) on light grey (0f0f0f).
I actually find looking at white-backgrounded web sites (like HN) to be fatiguing these days.
However, if you're looking at a dark monitor in a bright room, or at a bright monitor in a dark room, your pupils may be too large for the amount of light that reaches them to be entirely comfortable, which causes squinting and eyestrain.
A dark monitor in a dark room won't have that problem, but you may still be dealing with some increased blurriness because of your enlarged pupils, which may bother you depending on how good your eyesight is.
I've often wondered why computers in general still persist with black text on a white background. I'm convinced in 50 years time there will be legions of people with eye problems that could have been avoided by just inverting colours on active displays.
For this reason I only like ePubs too as you can invert the colours easily when reading on a tablet.
On the other hand, you could be myopic and under-corrected - and so suffer more when the pupils are relaxed (similar to the Night Myopia effect).
I do find it almost impossible to use dark background IDEs (such as XCode and Eclipse), because of the other GUI elements cluttering the screen (which are usually light). And this causes a lot of eye strain, because the amount of incoming light is still huge, while most of the screen is dark, relaxing the pupils and burning the retina.
Since most of my time I'm on Emacs or the terminal, I'm cool. Switching to a browser still hurts - one more incentive not to look at Hacker News while working ;)
Can you expand on this? Would myopic individuals be more likely to prefer dark text on light background?
My eyesight without glasses is bad enough (nowadays) that I can't do a fair comparison of uncorrected vision between dark and light (can't read anything either way), but letters on dark background get significantly more blurred than with a light background. The overall room lighting level also seem to play a large role. Hence, pupil size.
My guess is that not only myopic individuals, but people with any visual problems due to their corneal shape. Also LASIK patients with large pupils (but that's to be expected).
Again, not a doctor. I am hoping some doctor will step in and comment :)
With regards to brightness of the monitors, I keep it reasonable - about 25% of what the monitors could do.
This is really interesting. I am severely myopic and have always preferred a black background.
However, last week I had cataract surgery and now with a +27.5D (!!) IOL implant in my right eye - the only eye I have, I'm not so nearsighted as I used to be (20/80 now instead of 20/200), but I am still experiencing eye strain when looking at the computer for any length of time. After switching my editor to a white background, things got a lot easier to see.
Mind you, I am only a few days post-surgery and I haven't yet gotten new glasses. I was also having a lot of issues with colorblindness and contrast sensitivity, as well as a lot of "double" vision (which was more accurately "I see 8 of those things" vision). These are now resolved, as well. All of those will factor into the equation a great deal, I'm sure, but I do find that after the cataract surgery, the light background makes for less eye strain.
I switched color schemes from "Blackboard" to "Dawn" but my Blackboard theme may have been modified a bit. I've been using it for so long, I can't remember. It almost seemed as though there were too much contrast with the dark background.
I'm still not at a point where I can use the computer for more than about an hour at a stretch. It's amazing how mentally and physically taxing adjusting to better vision can be.
Reading black on white from a backlit screen is akin to reading the wattage information from a glowing lightbulb. It hurts.
[EDIT] TO clarify a bit more - I use 2x 24" monitors at the recommended distance (arms length). This means that for better or worse, most of my field of view will be taken up by the monitors, and so most of the light that hits my eyes will always be from my monitors.
Websites with white-on-black cause afterimages which persist for several seconds and are really distracting / tiring.
http://www.monokai.nl/blog/2006/07/15/textmate-color-theme/
It has a dark version, which I use for coding, and which I think works better with syntax highlighting. It also has a light version, which I like for regular text editing.
Both have nice contrast, and you can toggle between the two with a single keypress.
edit: Lasted about a half hour for me; too low contrast and the cursor seems to be invisible, so impossible to tell where I'm about to type.
Syntax highlighting was the one last thing I regretted leaving TextMate for, but yesterday I spent a day tweaking my own theme (based off of Tomorrow-Night https://github.com/ChrisKempson/Tomorrow-Theme , which does have a vim theme but I found it lacking and not at all like the TextMate version) and I like it so far. But it's nice to finally know of another theme with nice colors. Thanks :)
In fact I think I like the string highlighting on this one, I might try it on mine :)
I like the look of solarized, but in practical use it doesn't have enough contrast for me.
This is actually what makes the deal for me. On my bright, (nonprofessionally) calibrated IPS screens most color schemes are just too much of an eyestrain for long coding sessions. Solarized (either Dark or Light) is deliciously smooth and pleasing.
[edit: i just installed eclipse 3.7.1 and it picks up the general theme correctly, but the editors have dark text on dark backgrounds and i don't see any simple way to change that without changing each font setting in turn.]
you can also build your own scheme on the site, building off someone else's. that's easy too, and then can be loaded by the plugin. my own is at http://www.eclipsecolorthemes.org/?view=theme&id=5095
I'm guessing that the majority of coders today started out on Windows. Notepad is dark on light, so that became associated with the "common" user. The first peek under the hood would have been Windows command line or Linux. I could see that a dark background would feel more 'tech'.
See here - http://stackoverflow.com/questions/498698/white-light-vs-bla...
Related, I always figured the dark desktop UI themes (eg, for GNOME, KDE, Windows, etc) were highly preferred by people working in dark rooms, like a studio or college dorm at 3am. Once upon a time I liked these, but since I'm less nocturnal these days I prefer lighter themes.
With coding, my preference is exactly the opposite (I prefer a black background). The difference is that the structure of a program is much more complicated than the structure of prose and that structure is more apparent with white/colors on a black background. Further, the colors of syntax highlighting seem to be much more apparent when displayed on a black screen rather than on white.
Pepsi won a majority of the time on first taste because it is instantly sweeter.
But long term people prefer the flavor and full experience of Coke.
In my experience this translates: the dark-theme instantly feels more clear and crisp.
But over time I find that the dark creates too much contrast and slows me down.
http://studiostyl.es/schemes/son-of-obsidian
I do not like the contrast of Solarized (low contrast) nor monokai (super high contrast with bright pink). Son of obsidian is a good in between.
http://news.ycombinator.com/item?id=3374755
I must say that other users may well like it the other way, because when I used to browse for GTK themes on the http://gnome-look.org/ site, many of the new themes were cooler when they were darker...
BTW, I just found out the http://gnome-look.org/ itself is whiter and brighter. Oh the joy! Cheers.