Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] consistent perceptual luminance #69

Open
parkersweb opened this issue Feb 2, 2024 · 0 comments
Open

[Feature Request] consistent perceptual luminance #69

parkersweb opened this issue Feb 2, 2024 · 0 comments

Comments

@parkersweb
Copy link

First - amazing work - looks great!

One enhancement I'd love to see - as colours are added to the collection is there any way the the tints could all be matched to the same perceptual luminance - possibly using HSLuv (https://www.hsluv.org/)?

There's a good reason for doing this - design systems like Shopify Polaris (https://polaris.shopify.com/design/colors/palettes-and-roles) use HSLuv to ensure that the relationship between tints of different colours create the same contrast ratio for accessibility. The upshot of this is that you can put magenta-14 against pink/gray/yellow/ -7 and know it'll meet minimum contrast requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant