Snippets

Rik Kendell Loop through list of colours (SASS)

Created by Rik Kendell
// List colours
$colors-list: #111 #222 #333 #444 #555;

// Loop through colours
@each $current-color in $colors-list {
    $i: index($colors-list, $current-color);
    .link-#{$i} { 
        color: $current-color;
    }
}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.