set-var()

The mixin set-var() defines the CSS variable with a specified name, value, prefix, and optional suffix. By default argument prefix is set to $var-prefix.

@mixin set-var($name, $value, $prefix: $var-prefix, $suffix: null) {
  #{var-name($prefix, $name, $suffix)}: #{$value};
}

Last updated