Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
// m.ichael.co.uk 2014
$colourNames: primary secondary tertiary;
$colourValues: #BADA55 #501337 #8008EE;
@for $i from 0 to length($colourNames) {
.color--#{nth($colourNames, $i+1)} {
color: nth($colourValues, $i+1);
}
}
.color--primary {
color: #bada55;
}
.color--secondary {
color: #501337;
}
.color--tertiary {
color: #8008ee;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment