Let’s talk about dark mode and accessibility! There’s a myth that dark mode is good for accessibility, because it improves text readability. It's not always true.

The full article and resources on my blog: https://stephaniewalter.design/blog/dark-mode-accessibility-myth-debunked/

#Accessibility #DarkMode #Astigmatism

1. Dark mode doesn’t improve readability for everyone. While dark mode can improve readability for some users, it’s not true for everyone. Dark mode can also make things hard to read for a couple of people, including people with astigmatism, but also, people navigating with a mouse when the focus indicator is poorly handled, people with dyslexia, etc. (for longer debunk, check the resources section).

2. Give users choice: if you can offer both, let people decide what works for them.

3. Make your dark theme accessible: check for contrast ratio, font weights, make focus indicator visible, etc.

A couple of links to dig further:
- Dark UI themes are new and cool — but are they accessible?https://uxdesign.cc/accessibility-and-dark-ui-themes-f01001339b65 by Sheri Byrne-Haber
- Accessibility for People with Astigmatism https://www.levelaccess.com/blog/accessibility-for-people-with-astigmatism/ (on level access, not a fan of them because of their buying an overlay tool, but, the article explains nicely)
- Dark mode UI design – 7 best practices https://atmos.style/blog/dark-mode-ui-best-practices

Dark UI themes are new and cool — but are they accessible?

Accessibility and Dark UI Themes. They are new and cool, and it is claimed they will help save the environment but are they accessible? The answer is “sometimes”.

UX Collective
@stephaniewalter thank you. Dark mode sears text into my eyeballs. I can practically still read it after closing my eyes 😅

@stephaniewalter Fwiw, I don't think the Level Access blog actually provides an explanation why astigmatism causes this effect.

I looked into the blog citations trail on this a while back and came to the conclusion that most traced back to this page that's now only available via archive: https://web.archive.org/web/20090109135027/http://www.cs.ubc.ca/spider/harrison/document-colors.html

1/2

WWW Colors and Readability

@stephaniewalter

Quoting from that archive link, the reason is related to how the lens is deformed in those of us with astigmatism:

"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."

2/2

@agvbergin oh thank you. I don't have the spoon tonight (just gave a 1h talk on accessibly) but I'll check this tomorrow 🙏
@stephaniewalter I would also cite the APCA Accessible Reading Criterion (ARC) which discusses where to reduce contrast. I’m not sold on 100% of it (I still believe in default font sizes!) but its contrast algorithm does take into account the ability to overdo contrast, and how existing contrast algorithms aren’t at all optimized for dark mode (at worst, they’re downright harmful).
APCA Readability Criterion • Contrast

The APCA Readability Criterion (ARC) provides a range of recommendations for making visual content on illuminated displays more accessible to all users, especially with visual impairments

Inclusive Reading Technologies
@stephaniewalter I don’t have any pronounced vision problems, aside from aging eyes, but I’ve always found white text on a dark background significantly harder to read than the reverse.
@MichaelPorter I think it really depends on the people. Strangely I heard it depends on site and context too. I know devs with astigmatism who can't read a blog post in dark mode but have their coding tools in dark mode. So yeah, choice, customization sounds like the right approach

@stephaniewalter Big yes to being able to customize things–Do some A/B testing and find what works for you!

My theory was that having a brighter background made your pupils constrict, giving a deeper field of view and ease of focus. Darker backgrounds and the lower light levels make your pupils dilate, making focussing more challenging. That *should* be true for everyone, so I was always perplexed by people who claimed they found white text on a black background easier to read. I’m missing something, clearly.

@stephaniewalter Thank you for your very interesting article. I'm on the dark theme team because of my premature cataract. I can't stand light themes any more because they hurt my eyes so much. I've become photophobic.
In the end, the dark theme is used for my comfort because of my temporary disability (until I have my operation, which won't be for a long time!) and therefore for accessibility, provided, of course, that the contrasts are respected, as you say.
@eaboaf ha, yeah, I'm not saying it's not sometimes good for accessibility, but I'm growing tired of blanket statements that lead to people thinking in absolute, when the answer is "it depends" and maybe "let the users chose / adapt".
If you feel comfortable sharing, how do you deal with websites that don't have dark mode?
@stephaniewalter I agree with you. That's why it's important to have both modes so you have a choice.
I have no problem talking about it. When a site doesn't have a dark theme, on my computer I use a Dark Reader chrome extension which does the job, even if sometimes it doesn't have enough contrast.
On my iPhone, I recently discovered that on Safari I could use the reader that displays the page in a dark theme and hides the ads. That's really helpful!
@eaboaf oh interesting. I'm doing the opposite haha, using Firefox reader mode on dark sites, to get a light version I can read. It works 99% of the time, for some reasons some sites won't but I think it's when there's heavy JS involved
@stephaniewalter Thank you for sharing your experience. It's really enriching to have two completely different points of view. You need the light theme and I need the dark theme. We're perfect for each other! 🥳
@stephaniewalter Thank you. I can't for the life of me read light text on dark background for longer than a few minutes because it *hurts*... I'm always so glad when both options are available. And I don't even have astigmatism or sth, I'm just short-sighted and prone to tension headaches. 🤷‍♀️

@stephaniewalter What a beautiful web site.

(Is it just me on Firefox mobile but does the Other articles... section require a little more padding? Text runs up against the left side of the browser window in a way that it doesn't in the other sections.)

@greg han you are rights, strange. I'll check when I get time to unleash the horrible annoying technical stack to change 2 lines of CSS haha. Adding it to my to-do. Thanks 🙏
@stephaniewalter I have incredibly mild astigmatism (it was dropped from my prescription for years by mistake because the difference in the quality of my sight with and without during the eye exam is so small), and even I suffer miserably with dark mode, so I love to see this being talked about.
@stephaniewalter dark mode is essential for me when I have a migraine which almost always includes light sensitivity (have to set monitor to 0% ◑/🔆 and turn on dark mode), but also I cannot use your site during the day if you offer only dark mode. What infuriates me when sites have either modes but for some reason won't respect my preference... Thanks for blasting me with light mode and quite literally causing me pain? Although mostly my Dark Reader warden is able to protect me 🫂 /nbh
@brawaru when you say wont respect your preference you mean media query on OS preference? Or more like you chose on theme, and when you come back you have to switch again because they didn't keep the preference you chose before?

@stephaniewalter yeah, the media query. I usually never change theme manually because I like it to be in sync with my system so it can be changed everywhere all at once, as I use auto dark mode¹ to have it changed automatically or with a single click.

Some sites, however, will provide both themes and a toggle, but won't have an option to sync it to the media query, always requiring manual intervention. Here's one example at the top of my head: https://nuxt.com/.

¹https://github.com/AutoDarkMode/Windows-Auto-Night-Mode

Nuxt: The Progressive Web Framework

Create high-quality web applications with Nuxt, the open source framework that makes full-stack development with Vue.js intuitive.

Nuxt