> For the complete documentation index, see [llms.txt](https://spectrecss.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spectrecss.angular-package.dev/mixin/color/background.md).

# background()

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

{% code title="" lineNumbers="true" %}

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

{% endcode %}
