Skip to content

Commit

Permalink
Use variables for theme-color-level function
Browse files Browse the repository at this point in the history
Closes #25313
  • Loading branch information
mdo committed Jan 21, 2018
1 parent a098de1 commit 0b74045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scss/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0b74045

Please sign in to comment.