When you assign a CSS var()
variable to an Sass variable like this:
--color: #FFF;
$color: var(--color);
This will result in $color
holding the var(--color)
as a value. Is there a way so it would hold the actual CSS #FFF
value? So $color
would save the #FFF
instead of var(--color)
?
This would be great so you can use the css variables in more complex functions and media queries where var() isn't allowed.