logoalt Hacker News

busterarmyesterday at 3:36 PM4 repliesview on HN

> red for bad, green for good

8% of men of Northern European descent (and 0.4% of women) are red-green colorblind. That'd be a terrible choice. Use blue-orange, blue-red, or purple-green.


Replies

Etheryteyesterday at 4:05 PM

This approach is worse. Use red and green like everyone else and the user can choose their terminal color palette to differentiate in a way that works for them. Then it works the same across all commands. If you're the odd one out, you're adding more mental overhead for the user, not less.

account42yesterday at 4:32 PM

You are ignoring that most people already have a cultural understanding of the colors red and green. Changes done for accessibility should never making things worse for the average user.

skydhashyesterday at 3:48 PM

Red/green is semantic in these cases. They’re user configurable in almost all terminals, so there’s no real accessibility issue. I tend to associate blue with decorative accent, yellow with info/warning text, and cyan and magenta for really fancy stuff.

show 1 reply
makapufyesterday at 3:41 PM

More importantly, dont use color as sole source of information. Strikethrough, emoji or ok / bad can also be used.

show 1 reply