Skip to content

Instantly share code, notes, and snippets.

@entozoon
Created June 4, 2015 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save entozoon/84de1c2adeca67d362be to your computer and use it in GitHub Desktop.
Save entozoon/84de1c2adeca67d362be to your computer and use it in GitHub Desktop.
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