You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using this library to define color variations of the design system, and I was looking at some color palette tool such as Coolors which provide some accessibility tools.
For exemple:
It would be great to get an API to generate this color, such as:
It would be great to get an API to generate this color, such as:
This is a wonderful case for releasing your own package based on color :)
constColor=require('color');// this packageconst{ protanopia }=require('color-a11y');// your own package, perhapsconstfilteredColor=protanopia(Color('#FFAA00')).hex();// #DAD929
And It would be cool to get a global configuration, such as:
Global filters would be an anti-pattern here as it would affect all users of the package, so it's something I won't expressly support.
color-a11y is free as of writing on NPM, so feel free to create a package for it :) I would personally use it!
However, I don't see it being useful for the 80% of users that use this package, whereas a dedicated package would make a lot of sense here.
Hi,
I'm currently using this library to define color variations of the design system, and I was looking at some color palette tool such as Coolors which provide some accessibility tools.
For exemple:
It would be great to get an API to generate this color, such as:
And It would be cool to get a global configuration, such as:
This would help to switch the interface into blindness colors and test close to their perceptions.
Regards,
The text was updated successfully, but these errors were encountered: