-
Notifications
You must be signed in to change notification settings - Fork 21
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
Is it possible to customize the contrast threshold? #16
Comments
Thanks. The default threshold of this library is gathered from the formula given for contrast in the W3C Recommendations. There is an inner constant for luminance threshold but currently there is no option to customize this with exposed API. The threshold value is in a scale of I'll mark this to be implemented. |
Notes for implementation:
|
Thank you for your fast reply! Just to complement, this feature IMHO will make your package perfect and complete! Congratulations for this project!! Keep on moving! 😉 👍 |
released. |
In bootstrap 4 we have a variable called
$yiq-contrasted-threshold:
were has a value of 150 by default and this variable ajusts the threshold to decide if the color should be black or white in components. Is there something similar to this?I thought something like this:
And congrats for this awesome project! Thank you very much!
The text was updated successfully, but these errors were encountered: