Skip to content

Instantly share code, notes, and snippets.

@esseb
Last active August 29, 2015 14:19
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 esseb/e75cd2c7bb156f7cc91f to your computer and use it in GitHub Desktop.
Save esseb/e75cd2c7bb156f7cc91f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$themes: "default", "privatmegleren";
$theme-default: blue;
$theme-privatmegleren: lime;
$color: red;
@mixin theme() {
@each $theme in $themes {
$color: yellow; // TODO: Read theme color
.theme-#{$theme} & {
@content;
}
}
$color: blue;
}
.button {
display: block;
@include theme() {
color: $color;
};
}
.button {
display: block;
}
.theme-default .button {
color: red;
}
.theme-privatmegleren .button {
color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment