Use variables for theme-color-level function

Closes #25313
This commit is contained in:
Mark Otto 2018-01-20 17:00:44 -08:00 committed by Mark Otto
parent 5a6be71791
commit 3be511264c
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@
// Request a theme color level
@function theme-color-level($color-name: "primary", $level: 0) {
$color: theme-color($color-name);
$color-base: if($level > 0, #000, #fff);
$color-base: if($level > 0, $black, $white);
$level: abs($level);
@return mix($color-base, $color, $level * $theme-color-interval);