I have this project with a bunch of words repeting themselfs.
&-blue-square {
@include msc.blue-square;
}
&-orange-square {
@include msc.orange-square;
}
&-pink-square {
@include msc.pink-square;
}
So i created a loop with @each to improve my code, but the loop doesn't work. Someone knows what can be done in this case?
$colors: (orange, pink, blue);
@each $color in $colors {
&-#{$color}-square{
@include msc.#{$color}-square;
}
}