@for $i from 1 through 100 { $heightValue: 1% * $i; .h-#{$i} { height: $heightValue !important; } } @for $i from 1 through 100 { $widthValue: 1% * $i; .w-#{$i} { width: $widthValue !important; } }