-
-
Save caseydev/b4a6e84d68491d8e43a19d2769aebfad to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin theme($name, $color) { | |
$primary: $color; | |
$secondary: lighten(adjust-hue($color, 20), 10%); | |
.#{$name} { | |
.element { | |
color: $primary; | |
} | |
.other-element { | |
background: $secondary; | |
} | |
} | |
} | |
@include theme(theme-banana, yellow); | |
@include theme(theme-blueberry, purple); | |
@include theme(theme-cherry, red); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.theme-banana .element { | |
color: yellow; | |
} | |
.theme-banana .other-element { | |
background: #bbff33; | |
} | |
.theme-blueberry .element { | |
color: purple; | |
} | |
.theme-blueberry .other-element { | |
background: #b30077; | |
} | |
.theme-cherry .element { | |
color: red; | |
} | |
.theme-cherry .other-element { | |
background: #ff7733; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment