I am working on a sass framework that has a list of variables to turn on and off features.
For example:
// atoms:
$use-pa: true;
$use-pt: true;
$use-pb: true;
I want to be able to do something like the following in case a variable was turned off.
@mixin requires($collection: ()) {
@each $var in $collection {
#{$var}: true;
}
}
and
@include requires((
$use-pa,
$use-pt,
$use-pb
));
I am looking for a way to change a variable's value by its name... if possible. #{} does not work.