Answers for "how to do loops in scss"

CSS
11

loop scss

@for $i from 1 through 6 {
    .grid-#{$i} {
        width: 100px*$i;
    }
}
Posted by: Guest on March-23-2020
0

scss loop

@each $theme-name, $theme-color in $colors-theme-bo {
  .theme-#{$theme-name} {
    color: $theme-color;
  }
}
Posted by: Guest on July-17-2020

Browse Popular Code Answers by Language