Answer the question
In order to leave comments, you need to log in
How to check the "lightness" or "darkness" of a color in SCSS?
Suppose we have a button with a dark background and white text.
The background color may change to a lighter one, depending on the page settings.
How can you figure out that the background of the button has become too light (due to which the text color will merge) and you need to change the text color to a darker one?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question