Created
May 31, 2017 13:18
-
-
Save tomastrajan/b0392ac21ed308ae91e02649dbf1b1a3 to your computer and use it in GitHub Desktop.
Angular Material Theming - include theme
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
@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