scss foreach loop code example
Example 1: loop scss
@for $i from 1 through 6 {
.grid-#{$i} {
width: 100px*$i;
}
}
Example 2: scss loop
@each $theme-name, $theme-color in $colors-theme-bo {
.theme-#{$theme-name} {
color: $theme-color;
}
}