loop scss

CSS
@for $i from 1 through 6 {
    .grid-#{$i} {
        width: 100px*$i;
    }
}
Source

Also in CSS: