> 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/var-adjust.md).

# var-adjust()

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

```scss
@function var-adjust($var, $adjust: null, $operator: '+') {
  @if $adjust != null {
    @if strip-unit($adjust) != 0 {
      @return calc(#{$var} #{$operator} #{$adjust});
    }
  }
  @return $var;
}
```

{% endcode %}
