fix: remove deprecation warnings from sass
This commit is contained in:
parent
e75f0bb5ca
commit
b452baa6b9
3 changed files with 15 additions and 9 deletions
|
|
@ -1,12 +1,13 @@
|
|||
@use "sass:color";
|
||||
@use "sass:map";
|
||||
@use "colors";
|
||||
|
||||
/* Using catppuccin for now, make a theme switcher later */
|
||||
@use "../themes/catppuccin/catppuccin";
|
||||
|
||||
@function getColor($color) {
|
||||
$ctp-theme: map-get(catppuccin.$palette, "macchiato");
|
||||
@return map-get($ctp-theme, $color);
|
||||
$ctp-theme: map.get(catppuccin.$palette, "macchiato");
|
||||
@return map.get($ctp-theme, $color);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -50,7 +51,10 @@ $msp-colors: (
|
|||
"--msp-color-bg": #{getColor("mantle")},
|
||||
"--msp-color-bg-transparent": #{color.scale(getColor("mantle"), $alpha: -10%)},
|
||||
"--msp-color-bg-surface-1": #{getColor("base")},
|
||||
"--msp-color-bg-surface-2": #{darken(getColor("surface0"), 2%)},
|
||||
"--msp-color-bg-surface-2": #{color.adjust(
|
||||
getColor("surface0"),
|
||||
$lightness: -2%
|
||||
)},
|
||||
"--msp-color-bg-surface-3": #{getColor("surface1")},
|
||||
|
||||
"--msp-color-bg-accent": #{getColor("teal")},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue