> 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/function/color/alpha-var.md).

# alpha-var()

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

```scss
@function alpha-var($name, $alpha: 0, $prefix: $var-prefix) {
  @return var-adjust(css-var(color-name($name), $prefix, $var-alpha), $alpha, '*');
}
```

{% endcode %}
