Created
August 27, 2014 19:25
-
-
Save andresmijares/c9b88b3280110352cf45 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.4.1) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin theme($color, $bg) { | |
color: $color; | |
background: $bg; | |
} | |
$colors: #111 #222 #333 #444 #555; | |
$backgrounds: #555 #444 #333 #222 #111; | |
@for $i from 1 through 5 { | |
#theme-#{$i} { | |
@include theme(nth($colors, $i), nth($backgrounds, $i)); | |
} | |
} |
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-1 { | |
color: #111; | |
background: #555; | |
} | |
#theme-2 { | |
color: #222; | |
background: #444; | |
} | |
#theme-3 { | |
color: #333; | |
background: #333; | |
} | |
#theme-4 { | |
color: #444; | |
background: #222; | |
} | |
#theme-5 { | |
color: #555; | |
background: #111; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment