-
Notifications
You must be signed in to change notification settings - Fork 8
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
Lighten on dark colors #26
Comments
Thanks for the report, seems like it will be tougher than I thought, I was assuming that all three preprocessors were behaving the same regarding color transformation, but I was wrong. The current implementation is based on the stylus version, that add the percentage of the original lightness to the color, sass and less add an absolute value: Stylus: lighten(#808080, 50%) // #c0c0c0 Sass/Less lighten(#808080, 50%) // #ffffff I'll have to think of how to detect the language used to switch versions when computing the final value. |
I've noticed lighten produces unexpected colors the closer it is to #000. This applies to both
scss
andless
files.Here is a sample for reproduction
produces
I found the issue when I noticed bootstrap colors weren't matching up.
I'm currently using Atom Color Highlight v0.19.2
Love the tool btw!
The text was updated successfully, but these errors were encountered: