set-var-alpha()

@mixin set-var-alpha(
  $name,
  $color,
  $alpha: 0,
  $prefix: $var-prefix,
  $suffix: $var-alpha
) {
  @if type-of($color) != 'string' {
    @include set-var($name, alpha($color), $prefix, $suffix);
  } @else {
    @include set-var($name, var-adjust(css-var(color-name($color), $suffix: $suffix), $alpha), $prefix, $suffix);
  }
}

Last updated