kuanhsuh
4/29/2017 - 12:03 AM

Mixins - Set text Color light or dark depends on background color

Mixins - Set text Color light or dark depends on background color

@function set-text-color($color){
  @if (lightness($color) > 50){
    @return #000;
  } @else {
    @return #fff;
  }
}