Skip to content

Instantly share code, notes, and snippets.

@jonpitch
Created April 2, 2016 13:49
Show Gist options
  • Save jonpitch/6176dda13c48bc739261cb481c826791 to your computer and use it in GitHub Desktop.
Save jonpitch/6176dda13c48bc739261cb481c826791 to your computer and use it in GitHub Desktop.
Ember Theming - Component SASS
// usage:
div.my-awesome-class {
@include theme('color', 'primary');
}
// results in the output:
div.my-awesome-class[data-theme="default-first"] {
color: #58b15f;
}
div.my-awesome-class[data-theme="default-second"] {
color: #287f6e;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment