Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
$colourNames: "primary" "secondary" "tertiary";
$colourValues: #f00, #0f0, #00f;
@for $i from 0 to length($colourNames) {
.color--#{nth($colourNames, $i+1)} {
color: nth($colourValues, $i+1);
}
}
.color--primary {
color: #f00;
}
.color--secondary {
color: #0f0;
}
.color--tertiary {
color: #00f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment