Is it possible to refer to a variable with another variable in Sass? I want to do something like this:
$gray = #ccc;
$white = #fff;
@each $color in gray, white {
div_#{$color} { // works fine
color: #{$#{$color}}; // fails
}
}
I tried all the variations I could think of to get the interpolation to work and no dice. Anyone know if it's possible? Thank you!