As someone with an important astigmatism, I cannot stare more than a few minutes at a dark background color scheme, even if I love their aesthetic.
So I’m stuck writing code all day long with light schemes.
In this context, Solarized is a gift and I’m grateful for it. I just cannot name another light color scheme you could stare at all day long without burning your eyes.
I’m a weird freakish anomaly that actually prefers lighter color schemes. I’ve found that, with some tweaks, the default light scheme in Sublime Text to be pretty awesome. It’s calle Breakers. The greys are a little too light, but I find there is a bit more contrast than Solarized.
Dark mode isn't necessary better for your eyes than light mode [1]. I prefer a consistent lightning more, and that is often easier done with light mode. Although, this is getting better since more and more sites and apps implement it. However, not all, this results in sometimes being surprised by a white flash after browsing through some darker sites.
A while back, Eliot Miranda posted a detailed message for dark theme users on the squeak-dev mailing list. This is what he wrote:
Hi Dark Themers, in an earlier life I worked in optics, designing holographic cameras for bubble chamber physics, so I know a little about focussing systems and depth of field. The iris in the eye expands or contracts to allow or restrict the amount of light entering the eye, attempting to maintain a constant luminosity on the retina so that either not too little, or not too much light falls on the cones and rods in the retina. When the iris is dilated (open) the eye allows as much light as possible into it. You can visualize the light from a point (say a pixel) that reaches the iris as a cone. The lens in the eye focuses this expanding cone back into a contracting one that comes to a point on the retina corresponding to the position of the pixel "out there on the screen".
Focusing is achieved by a muscle around the eye's flexible lens, the cillary muscle, which squeezes the lens into a more spherical shape to cause rays entering the eye to bend more, brings no objects closer to the eye into focus, or by the cillary muscle relaxing, allowing the lens to stretch back to a flatter shape, to bend rays less, bringing objects further away into focus. In old age shortsightedness is caused by the lens loosing its elasticity and remaining squeezed, and longsightedness by it losing flexibility and the cillary muscle losing strength so that the lens cannot be squeezed as much. By the time we hit our 40's many of us will suffer one of these two extremes and have to wear glasses either for reading or for driving or, in my case, for both.
Getting back to the cone of rays from a pixel that the iris and lens conspire to bring to a point on the retina, if there is a lot of light incident on the eye and the iris is undilated then this cone is much slimmer. The result of these differing cones on focus is called depth of field. When the cone is "fat" depth of field is reduced; only pixels in the same plane (actually a spherical surface, not a plane, because the retina is spherical; film cameras have planar light receptors; the eye and camera obscures etc have spherical light receptors) will be in focus; others out of the plane will produce a diffuse circle on the retina. When the cone is "slim" (because more light is incident on the eye) depth of field is increased because the size of the out of focus diffuse circle is smaller. Consequently, when there is less light falling on the eye, depth of field is reduced; the cones are fatter and as the eye roams the cillary muscle must work to alter the curvature of the lens to keep things in focus.
The implication for the dark theme is that, while it appears to have better contrast (it does not; but more on that below), the real effect is that it causes the eye to do more work than a light theme because the amount of light entering the eye is less. So both in the short term and especially over the long term the dark theme, relative to the light theme, will tire your collate muscle and cause your lens to stiffen or squish sooner. Why then, if what I'm saying is true, did all those World War Two military aircraft use white letters on a black background? My lotus europa is the same. The disc of the instrument is illuminated by a lamp so one can see it at night, and were the panel painted white then, for the same contrast, much more light would hit the eye that for white letters on a black background and the pilot's (or driver's) night vision would be impaired as the iris would contract.
I don't want to fear monger, but I do want to suggest that it is healthier and less wearing on the eyes to use light themes.
I'm 49 and can literally watch (pun intended) how my capability to focus in the near field gets worse and worse. I've been using dark themes in the terminal for 25 years and for a couple of years tried to use dark mode also in other software as much as possible.
After reading this I really wonder if I did myself a disservice and if I shouldn't change to light mode again.
Does anyone know of more sources on this topic? And also if the effect can be reversed or at least slowed with going back to light again?
EDIT: This[1] answer on Stackexchange has some funded details.
Thanks for digging a bit. Interestingly, your source actually points towards dark mode being safer long term. My gripe with the parent is that it implies dark mode use risks damage (the lens becoming less scrunchable). I am unable to find any literature that alludes to this.
Interesting comment. I have to note that light themes give me migraines, so I’m stuck with dark.
Can’t help but feel that it is fear mongering, though. This can’t be that difficult to research. Where is the hard evidence to back this up? Your comment sent me down a rabbit hole looking for anything scientific that suggests what you’re saying, and I find nothing that implies long term damage. The quoted post is drawing a lot of assumptions.
> I have to note that light themes give me migraines, so I’m stuck with dark.
I've had that, too, especially when Windows 10 came out, and I was forced to use it. The full-on white, on a high-contrast monitor, was a literally painful experience.
However, as others, I much prefer having the same lightness everywhere. I hate switching from a dark background terminal / editor to a light background webpage, so I set out to mitigate this somehow.
So, I've started using off-white backgrounds when I use light mode. Solarized is a bit too orange for my taste, but many other schemes are available. I, personally, use Base16 Equilibrium (both light and dark).
I'm not saying you did, but I think some people set the brightness control of their monitor very high (or never adjust it), and then use things like dark mode to reduce the brightness -- rather than turn down the brightness directly.
I think "dark mode" can make this worse, as it often 'pops' best with a very high brightness, which is even more blinding when running a non-dark mode app.
Yes, I've seen that, too. However, I usually set my monitors quite low and tend to have some minimal ambient light. I only use the computer in complete darkness when watching a movie or similar. But Windows' pure black on a sea of pure white was still painful.
But I think the reason for setting the monitors to a high brightness, which I've sometimes done at work, is the awful quality of the panels. Setting them brighter makes colors pop, as you say, even in light mode.
My work laptop is one such offender, with darker hues basically indistinguishable at low brightness. However, the screen is shitty all the way, and max brightness isn't all that bright...
Dark Reader is an extension available on most browsers. It has a nice community that supports conversion to dark mode for most web pages. It has worked fine for me. I use Tampermonkey to pick up the slack where Dark Reader is inadequate. Like you, switching is worse even than light mode. I migrated to completely dark.
There is still a brief flash occasionally. It doesn’t bother me in the same way that looking at a white background does (meaning I don’t get headaches), but it definitely happens.
> I have to note that light themes give me migraines, so I’m stuck with dark.
Isn't the fact you get migraines the issue to solve, rather than the color scheme?
Most monitors these days are way too bright, especially for the amount of ambient light coming into the room. I try to get a bunch of light into my office and it is still barely close enough for this monitor. Combine that with displays getting bigger and bigger and it becomes more understandable how it can aggravate these conditions.
Dark mode fixes my problem, and I prefer dark mode aesthetically. I have no reason to do anything differently (unless there is meat to the parent reply, which is why I’m asking for a legitimate source).
> So both in the short term and especially over the long term the dark theme, relative to the light theme, will tire your collate muscle and cause your lens to stiffen or squish sooner
Does that last part necessarily follow? Maybe doing more work is a good thing?
I also prefer light colour schemes. Didn't use to, I used dark themes (like gruvbox) for a while, until I learned the value of not having my monitors blast my eyes with 100% brightness. Solarised actually helped me go from dark to light themes as the yellowish background and lower contrast were easier on my eyes than white and high contrast.
Even since I learned to turn down my monitor brightness so that white on my monitor is about the same brightness as a white piece of paper in the room, I have been very fond of Prot's Modus Operandi (https://protesilaos.com/emacs/modus-themes).
You're not the only one. There are dozens of us, probably, who prefer lighter colour schemes. I can't stand dark mode in all but a few cases. A terminal is sort of fine, but an IDE or a content-rich webpage absolute has to be light, otherwise my eyes start to get funky.
What I find is that with dark mode I can spot details better - a missing bracket for example. But with light mode I can see the bigger picture better - I can scroll through a page and find what I want more quickly. This, I'm sure, is a very subjective experience.
So I use light mode now all the time. That said, dark mode will always look cooler.
> So I’m stuck writing code all day long with light schemes.
Don't feel stuck! I think the world has gone a bit mad chasing "dark mode" for text everywhere. This must be highly personal, but light themes really reduce the fatigue on my eyes, and I've always found them preferable too. Maybe it's really the dark mode people who are stuck?
If you like solarized light, you might want to try gruvbox light [0], which I find even easier on the eyes.
Up until I read your comment, I never really made any association between my astigmatism and my discomfort with dark themes. Now it all makes sense. Also, since too much white was never a problem for me, my theme of choice in Emacs is Nano Light¹ and Solarized anywhere else.
> I cannot stare more than a few minutes at a dark background color scheme
I've struggled to find a perfect set of color themes my entire life, at least, that's what now it feels like. And at some point I realized, the smaller the palette, the fewer color variations there are, lesser the strain on the eye. Also, staring for a long time at the same - light or dark (it doesn't matter) color theme makes me feel tired.
In the end, I settled on two different [customized] themes, based on base-16 color themes. My main tool, my editor of choice is Emacs. I spent most of my time in it. I'm typing this comment in Emacs, while I have HN opened in the adjacent window (still in Emacs). I use circadian.el, which allows me to set my themes based on the time of day. They switch automatically and I love that.
Maybe try different color themes based on the light source, your mood, time of the day, place, etc.?
I used to love Solarized when using a light theme then I found papercolor. That is my preferred light although I am using a dark Tokyo Night now. I switch frequently.
White backgrounds create static like artifacts in my vision. Doesn't happen as much with dark. I've tried Light Themes because in theory it's better for asthegmatism, but it's definitely worse for me.
I even thought that maybe I had to make everything light themed so there is no contrast between pages /apps but it doesn't help.
This is purely a personal observation of how my eyes work.
Yep. I tried for a while to use dark themes but eventually realised they were making it worse, not better. Even if Solarized isn't the best light theme in existence, it's also available either built in or an extension for practically every tool I use.
So I’m stuck writing code all day long with light schemes.
In this context, Solarized is a gift and I’m grateful for it. I just cannot name another light color scheme you could stare at all day long without burning your eyes.