hamvocke / root-loops

A color scheme generator for cereal lovers
https://rootloops.sh
MIT License
55 stars 3 forks source link

Show color blindness pallettes #4

Open cdhunt opened 2 months ago

cdhunt commented 2 months ago

I have at least two coworkers with forms of color blindness and when screen sharing, my color selection can be difficult for them. I put my RootLoops theme into this simulator and it is not great. If the effort is reasonable, adding a way to preview these simulations in RootLoops would be a helpful feature.

image

hamvocke commented 2 months ago

Love the idea! I've been thinking about adding more accessibility features right into the generator, including testing for color blindness and low contrast.

I'd love to make it easy for people who generate a color palette to do the right thing and offer some guidance. When there's low contrast, the best action is probably to ask the user to adjust the sugar ingredient and maybe articifial colors until the contrast improves.

When it comes to several forms of color blindness, the best action is probably going to be a bit more involved. We could offer the user to pick a different set of hues according to certain kinds of color blindness. Right now, we simply pick 6 hues by splitting the color wheel into 6 equidistant angles and call it a day. Tweaking that for different kinds of color perception issues could be what it takes to generate schemes with better accessibility.

Sorry, wall of text - I'm mostly jotting down thoughts for my future self. Again, love the idea, and it's absolutely something I'm going to research :)