10 lines
178 B
SCSS
10 lines
178 B
SCSS
|
// set color based on lightness of the color given.
|
||
|
@function set-color($c){
|
||
|
@if (lightness($c) > 50){
|
||
|
@return black;
|
||
|
}
|
||
|
@else{
|
||
|
@return white;
|
||
|
}
|
||
|
}
|