Lighten And Darken With SCSS
Last updated
Last updated
With SCSS, a color can be lightened or darkened by a certain percentage using the lighten
and darken
functions, respectively.
For instance, given the following HTML
I can style div.two
with the original color and then style div.one
with a lightened version and div.three
with a darkened version.
The result looks something like this: