Answer the question
In order to leave comments, you need to log in
How to use scss variables to declare css variables?
I'm using webpack to build.
I'm trying to collect:
$bg-color: green;
body {
--background-color: $bg-color;
background-color: $bg-color;
}
body {
--background-color: $bg-color;
background-color: green;
}
$bg-color;
Answer the question
In order to leave comments, you need to log in
body {
--background-color: #{$bg-color};
background-color: $bg-color;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question