background()

The mixin contains the background style of the given $color CSS variable name without the prefix.

@mixin background(
  $color,
  $lightness: 0%,
  $alpha: 0,
  $important: '',
  $prefix: $var-prefix
) {
  background: color(
      $color,
      $lightness: $lightness,
      $alpha: $alpha,
      $prefix: $prefix
    )
    important($important);
}

Last updated