var-unit()

@function var-unit($name, $unit: false, $prefix: $var-prefix, $suffix: null) {
  $var: css-var($name, $prefix, $suffix);
  @if $unit == true {
    @return calc($var * css-var($name, $prefix, 'unit'));
  }
  @return $var;
}

Last updated