lightness-var()

@function lightness-var($name, $lightness: 0%, $prefix: $var-prefix) {
  @return var-adjust(calc(css-var(color-name($name), $prefix, $var-lightness) + css-var(color-name($name), $prefix, '#{$var-lightness}-l')), $lightness);
}

Last updated