So I have some colors defined like this:
$blue_1 : #ecf5f9;
$blue_2 : #cfe5ef;
$blue_3 : #b1d5e6;
Now I want to automatically create .blue_{number} classes for every color. So far I got:
@for $i from 1 through 12{
.blue_#{$i}{
color: $blue_#{$i};
}
}
But the ´color:$blue_#{$i}´ doesnt work. How can I reference to the variable in another way?! Im stuck.