Skip to content

Instantly share code, notes, and snippets.

@pablolobos
Created January 9, 2015 20:17
Show Gist options
  • Save pablolobos/dc1179451848e52739f4 to your computer and use it in GitHub Desktop.
Save pablolobos/dc1179451848e52739f4 to your computer and use it in GitHub Desktop.
scss_sass-create-classes.scss
$colours:
"red" #FF0000,
"blue" #001EFF,
"green" #00FF00,
"yellow" #F6FF00;
@each $i in $colours{
.#{nth($i, 1)}-background {
background: nth($i, 2);
}
.#{nth($i, 1)}-color {
color:nth($i, 2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment