# var-name()

{% code title="" lineNumbers="true" %}
```scss
@function var-name($prefix: $var-prefix, $name, $suffix: null, $var: null) {
  @if $suffix == null {
    @return --#{$prefix}-#{$name};
  }
  @return --#{$prefix}-#{$name}-#{$suffix};
}
```
{% endcode %}
