Skip to content

Instantly share code, notes, and snippets.

@impressivewebs
Created March 4, 2014 07:59
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 impressivewebs/9342088 to your computer and use it in GitHub Desktop.
Save impressivewebs/9342088 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
@mixin theme($name, $color) {
.#{$name} {
.element {
color: $color;
}
}
}
@include theme(theme-banana, yellow);
@include theme(theme-blueberry, purple);
@include theme(theme-cherry, red);
.theme-banana .element {
color: yellow;
}
.theme-blueberry .element {
color: purple;
}
.theme-cherry .element {
color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment