Skip to content

Instantly share code, notes, and snippets.

@pouretrebelle
Created January 16, 2015 15:55
Show Gist options
  • Save pouretrebelle/45c20abaa56c962385b5 to your computer and use it in GitHub Desktop.
Save pouretrebelle/45c20abaa56c962385b5 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
$themes: ("a": #ffcc00, "b": #00ddee)
=theme-color($prop: color)
@each $theme, $color in $themes
.theme--#{$theme} &
#{$prop}: $color
a
+theme-color
hr
+theme-color(border-color)
.theme--a a {
color: #ffcc00;
}
.theme--b a {
color: #00ddee;
}
.theme--a hr {
border-color: #ffcc00;
}
.theme--b hr {
border-color: #00ddee;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment