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