mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-25 04:52:10 +00:00
only transition a few colors to improve performance
This commit is contained in:
parent
77f39351d0
commit
9b19b3c9af
1 changed files with 2 additions and 1 deletions
|
|
@ -40,10 +40,11 @@ $colors: (
|
|||
}
|
||||
}
|
||||
|
||||
$props-to-transition: ("sidebar", "main", "text", "button");
|
||||
:root {
|
||||
$props: ();
|
||||
|
||||
@each $key, $color in $colors {
|
||||
@each $key in $props-to-transition {
|
||||
$props: append($props, --spice-#{$key}, comma);
|
||||
$props: append($props, --spice-#{$key}-rgb, comma);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue