Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programming with white text on black background?

Tags:

editor

People also ask

What is white text on a black background called?

Optimal legibility requires black text on white background (so-called positive text). White text on a black background (negative text) is almost as good. Although the contrast ratio is the same as for positive text, the inverted color scheme throws people off a little and slows their reading slightly.

Is white text on black background good?

While white text on a black background provides very high value contrast, it is less readable and causes greater eye fatigue than black text on a white background. All light-colored text on dark backgrounds causes eye fatigue.

How do you get white text on black background?

Select the paragraphs where you want to make the change. (Highlight all the text.) Choose Borders and Shading on the Format menu, click the Shading tab at the top of the dialog box, and set the paragraph shading to black. Choose Font on the Format menu and set the Font to white.

Is white text on black background better for your eyes?

The kind of text that users read is paragraph text. You should avoid using white text on a dark background when displaying paragraph text to make it easier for them to read. Forcing users to fixate on the white text for a long time can strain the user's eyes.


It's actually white on black, or rather green or amber on black, that is the traditional way. I've used them all. :)

I believe that the use of black on white started in word processors, because it's a lot easier on your eyes when you alternate between looking at the screen and looking at source material printed on paper.

Also, the contrast between the screen background and the surrounding lighting should be small, so a white background works best with the well lit room most people use computers in most of the time. If you are programming in the darkness a black background would give less contrast, but then it's more a question of why you don't have proper lighting in your room...

There are of course personal preferences than can affect your choise of color setting, and your eyesight (or lack thereof) might also make one setting better than the other.


There is an endless debate on slashdot one can go through for all the unintelligible technical details (the more technical analyses seems to favour dark on light side though).

This article, though about web designing, warns about the hazards of mindless black theming. The important aspect I understand is that the font is more important than coloring schemes. There is also disadvantage for black (not dark in general, but just pure black) background with white font if font is thin, since black creeps on to white and font would look a lil' blurry.

Despite all that, personally I find reading on darker background much easier for eyes. I don't think there is a definite answer for "light font on darker background" or vice versa. It will have to depend on personal tastes and habits more importantly. For sure, the right scheme lets the font (the writing) to project to fore and subdues the background. Now ask yourself is it dark on light that does this or light on dark? Here is the key, in that advocates who vouch for similarity with print suggesting that black outshines the white on paper, is blind to the fact that it is not the situation when it comes to electronic screen. Here the intensity of white beams on your eyes is much higher when compared to black.

And there is nothing like a best background color or fore color, but its the combination that matters. Right combination gives the right contrast, and contrast matters. And contrast should be sufficiently high, but not enough to be straining. Pure white on deep black can be hurting (the contrast being significantly high) but at the same time white on dark green is soothing. The same goes with amber on black.

Also when having a dark background it should be pale and not intense, so something like dark grey or teal will be better than black which in turn will be better than blue, red etc. Black on grey is excellent.

The solarized theme actually is after some good round of testing, going after their website. The good thing I love about Notepad++ is that some of the better known themes like solarized, zenburn, vibrant ink are available built in with the style configurator. Obsidian is the best without a doubt btw! :) Catch it for Visual Studio here.


It seems to be a preference thing and possible environmental thing, honestly. You'll find people who believe each method is superior.

I know that personally, I have coded since the green-on-black and amber-on-black terminals were around, and now I use light gray text on black backgrounds wherever possible. I find black backgrounds to be extremely comfortable on my eyes even for very long sessions, but white backgrounds are very fatiguing. I have heard it described as "staring into a 100 watt lightbulb" and that's how it feels to me.

Room lighting can potentially have a significant effect also. Brighter rooms may lend themselves to brighter backgrounds, and darker rooms to dark backgrounds. It reduces the need for your eyes to struggle to switch between wide and narrow pupils required for bright then dark then bright as you occasionally look away from the monitor to relax your eyes (you should always do this, right?).

The best advice is to just try both, give it a week or so, and decide which you like better. If you find both the extremes are glaring, try using a more subdued theme than pure whites and pure blacks, try some softer grays.


The quick answer is "dark text on white background suits more people".

My answer refers to this one: https://graphicdesign.stackexchange.com/questions/15142/which-is-easier-on-the-eyes-dark-on-light-or-light-on-dark

As a person with astigmatism, I find white background with dark text is easier to read as the reference suggested. (I specifically experienced this after using the dark theme in visual studio 2013. It is so fuzzy to me that I had to change back to its 2012 default theme.)

Below are the quotes:

The science of readability is by no means new, and some of the best research comes from advertising works in the early 80s. This information is still relevant today.

First up is this quote from a paper titled “Improving the legibility of visual display units through contrast reversal”. In present time we think of contrast reversal meaning black-on-white, but remember this paper is from 1980 when VDUs (monitors) where green-on-black. This paper formed part of the research that drove the push for this to change to the screen formats we use today.

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.

Reference: Bauer, D., & Cavonius, C., R. (1980). Improving the legibility of visual display units through contrast reversal. In E. Grandjean, E. Vigliani (Eds.), Ergonomic Aspects of Visual Display Terminals (pp. 137-142). London: Taylor & Francis Ok, 26% improvement – but why?

People with astigmatism (aproximately 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.

Jason Harrison – Post Doctoral Fellow, Imager Lab Manager – Sensory Perception and Interaction Research Group, University of British Columbia The "fuzzing” effect that Jason refers to is known as halation.

It might feel strange pushing your primary design goals based on the vision impaired, but when 50% of the population of have this “impairment” it’s actually closer to being the norm than an impairment.

The web is rife with research on the topic, but I think these two quotes provide a succinct justification for why light text on a dark background is a bad idea.


I'm sure that plus of programming and using white on black layouts causes less energy using. Example of site saving energy by black layout is http://blackle.com/


well if you are programming when it is already dark outside then yes that rumor might be true becuase it is better for your eyes if the contrast between your monitor and room is smaller.