only transition a few colors to improve performance

This commit is contained in:
Send_Nukez 2021-11-03 23:03:21 +01:00
parent 77f39351d0
commit 9b19b3c9af

View file

@ -40,10 +40,11 @@ $colors: (
} }
} }
$props-to-transition: ("sidebar", "main", "text", "button");
:root { :root {
$props: (); $props: ();
@each $key, $color in $colors { @each $key in $props-to-transition {
$props: append($props, --spice-#{$key}, comma); $props: append($props, --spice-#{$key}, comma);
$props: append($props, --spice-#{$key}-rgb, comma); $props: append($props, --spice-#{$key}-rgb, comma);
} }