Skip to content

Instantly share code, notes, and snippets.

@jrf0110
Created April 8, 2015 02:46
Show Gist options
  • Save jrf0110/acb1c8946c34de01efb1 to your computer and use it in GitHub Desktop.
Save jrf0110/acb1c8946c34de01efb1 to your computer and use it in GitHub Desktop.
.container {
background: #fff;
color: #333;
}
.container.dark {
background: #333;
color: #fff;
}
#theme( @theme ) when ( @theme = 'dark' ){
.color(){
color: #fff;
}
.background(){
background: #333;
}
}
#theme( @theme ) when ( @theme = 'light' ){
.color(){
color: #333;
}
.background(){
background: #fff;
}
}
.container {
#theme('light');
.background();
.color();
&.dark {
#theme('dark');
.background();
.color();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment