-
Notifications
You must be signed in to change notification settings - Fork 13
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] parse hwb values #1
Comments
hey! that sounds awesome. i think the best way might be to get support for |
Funny you should mention that. I have a branch in my fork of color that does just that. I'll make a PR and see if she can find it in her heart to merge it. If not can we talk more about adding it to the parser? Thanks! 💌 |
Will be handled by my incoming PR (ref) |
\0/ |
I started to add the contrast adjuster as specified in the CSS Color Module 4 spec and realized that the parser doesn't accept hwb colors.
My reasoning for using hwb for this is it allows you to manipulate contrast while leaving the hue at the correct angle for later adjustments without requiring further conversions.
Can you give any guidance as to how you would want that added?
There is a conversion function specified in the spec here hwbToRgb that could be added to the parser if you want. Was thinking I could publish a module with just the hwb converters in it for anyone to use.
Thoughts?
The text was updated successfully, but these errors were encountered: