> 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/var/css-var.md). Agents can also search and read this documentation through its [MCP server](https://spectrecss.angular-package.dev/~gitbook/mcp).

# css-var()

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

```scss
@function css-var($name, $prefix: $var-prefix, $suffix: null, $var: null) {
  @return var(var-name($prefix, $name, $suffix, $var));
}
```

{% endcode %}
