Skip to content

Instantly share code, notes, and snippets.

@tomastrajan
Created May 31, 2017 13:18
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 tomastrajan/b0392ac21ed308ae91e02649dbf1b1a3 to your computer and use it in GitHub Desktop.
Save tomastrajan/b0392ac21ed308ae91e02649dbf1b1a3 to your computer and use it in GitHub Desktop.
Angular Material Theming - include theme
@import '~@angular/material/theming';
// always include only once per project
@include mat-core();
// import our custom theme
@import 'my-theme.scss';
// specify theme class eg: <body class="my-theme"> ... </body>
.my-theme {
// use our theme with angular-material-theme mixin
@include angular-material-theme($my-theme);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment