you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 5 months ago (3 children)

Good to see this kind of articles. Nowadays there are no real reasons anymore for CSS preprocessors.

  • source
  • hideshow 3 child comments
  • [–] 3 points 5 months ago (2 children)
    $colors: (
      primary: blue,
      danger: red
    );
    
    @each $name, $color in $colors {
      .text-#{$name} {
        color: $color;
      }
    }
    

    Although, rarely used in such a simple example.

  • source
  • parent
  • hideshow 2 child comments