use a variable based on js in scss code example
Example 1: SCSS variables
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
Example 2: scss variables
$base-color: #c6538c;
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
$base-color: #c6538c;