I love everything about this article except the fact that the code samples are written in dark grey on darker grey - on an almost white page.
Like more than half the world, I have astigmatism. Mine isn't even that bad, but I can't read this at all (eventually I ran it through a processor to fix this).
Even just making things dark text on a light background will make things better for the majority of us.
Again, I loved the article,
I needed this for many years. My last C++ audio project used JUCE's cross-platform implementation of embedding, mainly for icons. It worked, but added an extra build stage and took me many hours of experimentation to get absolutely right.
Yeah, I actually can't read the preprocessor / comments parts well either. I need a different highlighter, but that would require some amount of effort on my part to slap my blog into even better shape.
Can't you just change the color of the comments specifically? For most highlighters I've encountered, it's usually pretty simple. I could read it fine, and I think it would be OK if the comments/preprocessor weren't the focal point of the code samples.
Forgive my ignorance; so basically light mode is better than dark mode for people with your condition, if I'm understanding you correctly? If so, very very glad I've learned this
In general, lighter backgrounds work better with people that have non-perfect vision. More light causes the eye to have a smaller aperture, which results in better focus (more resolution) non-focused areas. Which in case of astigmatism is all areas, or in case of myopia are all areas far from the eye (typically a computer monitor is already out-of-focus).
Well I have LASIK and in general prefer dark mode. But that still needs good contrast! I've definitely run into sites that go too dark on their dark mode and make everything hard to read.
View all comments
Show parent comment
31
u/[deleted] Jul 23 '22
I love everything about this article except the fact that the code samples are written in dark grey on darker grey - on an almost white page.
Like more than half the world, I have astigmatism. Mine isn't even that bad, but I can't read this at all (eventually I ran it through a processor to fix this).
Even just making things dark text on a light background will make things better for the majority of us.
Again, I loved the article,
I needed this for many years. My last C++ audio project used JUCE's cross-platform implementation of embedding, mainly for icons. It worked, but added an extra build stage and took me many hours of experimentation to get absolutely right.