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
.whiteness turns white to red #73
Comments
To be honest I cannot confirm this bug. We should find a reference somewhere. |
This is correct functionality.
In short, hue defaults to 0°, or red. The This brings it very close to Great question :) Perhaps this could be re-worked into an API suggestion. Admittedly, I had to double check this was the case as well because the Hope this helps! |
Thanks for this great explanation 👌🏼 |
Indeed, great explanation! I guess I'm using the wrong tool for the job. |
@mwinche what are you trying to achieve? |
Basically, trying to take a color and make it 5% "whiter". Specifically, using it within cssnext:
When the accent happened to be white or off-white it was doing a red box-shadow, which was not what I intended. Traced it all the way down to this color module. |
Playing around some more, looks like what I needed was this:
Regardless, .whiteness turning white to red still felt weird, hence the issue. |
Yep I believe you're looking for |
Thanks for the tip! |
@mwinche |
Yeah, maybe I should take some time and learn all these color models, seems interesting. I'm sure HWB wouldn't exist if there wasn't some use case for which it was ideally suited. |
HWB was invented by the guy who invented HSL and HSV iirc. HWB is supposed to be more user-friendly. I'd have to agree. It's just not used very much. |
In my node REPL (color@0.10.1, node@4.2.1):
That doesn't seem right to me.
The text was updated successfully, but these errors were encountered: