Hacker News new | ask | show | jobs
by quietbritishjim 1096 days ago
Seems like a fundamentally unsolvable problem. These techinques use a spectrum of colours for deeply nested brackets. (If you only have one or two levels of brackets then you don't need the colourisation in the first place.) But colourblind users fundamentally don't have that many choices of colours to pick from in the first place.
4 comments

It's not unsolvable. Colorblind people are missing one axis of color (such as the red-green axis). It is perfectly mathematically possible to pick colors that do not only differentiate along this axis, hence this option in many AAA games.

Here's an online simulator to see what colorblind people of various types see. Note that if you yourself try this and the colors for one of the examples don't seem to change from the "normal" version, see your eye doc...

https://daltonlens.org/colorblindness-simulator

This might be my own personal experience, but one effect of my colorblindness is that I place far less emphasis on color-coding in the real world--I'll subconciously ignore things like status indicators. When I think of alternative solutions here, I tend to reach for variables like font weight instead.
just the ability to change the bracket colors with reasonable default selections for colorblindness seems like a more than reasonable request
I’m not colorblind but I would wholeheartedly agree because I know colorblind guys
The extension already had a setting to tune the color palette even before it was merged into VSCode core.
Modus Operandi provides accessibility options for colored bracket pairs in Emacs out of the box.
I use a space indent colorizer plugin that I use a grey scale color scheme with.

It isn't a complete replacement for bracket colorization, but it helps in a lot of cases.

(Not colorblind, I just prefer a grey scale theme for my indent reminders!)

Maybe they could use a superscript or subscript number instead?