Skip to content

Instantly share code, notes, and snippets.

@eyeboah
Created September 30, 2014 02:10
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 eyeboah/907bab869c971e05b6f2 to your computer and use it in GitHub Desktop.
Save eyeboah/907bab869c971e05b6f2 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
// variables.scss
$darkgrey: #242628;
$grey: #35393b;
$midgrey: #7d878a;
$lightgrey: #e2edf2;
// variables.scss
$list-colours:
('darkgrey' $darkgrey)
('grey' $grey)
('midgrey' $midgrey)
('lightgrey' $lightgrey);
// base.scss
@each $colour in $list-colours {
.#{nth($colour, 1)}-bg {
background: nth($colour, 2);
}
.#{nth($colour, 1)} {
color: nth($colour, 2);
}
}
.darkgrey-bg {
background: #242628;
}
.darkgrey {
color: #242628;
}
.grey-bg {
background: #35393b;
}
.grey {
color: #35393b;
}
.midgrey-bg {
background: #7d878a;
}
.midgrey {
color: #7d878a;
}
.lightgrey-bg {
background: #e2edf2;
}
.lightgrey {
color: #e2edf2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment