Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Return a gray color with a level of lightness.
@function gray-with-lightness($level: 0.5) {
@if $level > 1 {
$level: 1.0;
} @else if $level < 0 {
$level: 0.0;
}
@return lighten(#000, percentage($level));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.