Last active
September 16, 2019 04:58
-
-
Save tomastrajan/85a6259ef29ad175344dd12e45438df0 to your computer and use it in GitHub Desktop.
Angular Material Theming - 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
// define 3 theme color | |
// mat-palette accepts $palette-name, main, lighter and darker variants | |
$my-theme-primary: mat-palette($mat-indigo, 700, 300, 900); | |
$my-theme-accent: mat-palette($mat-light-blue); | |
$my-theme-warn: mat-palette($mat-deep-orange, A200); | |
// create theme (use mat-dark-theme for themes with dark backgrounds) | |
$my-theme: mat-light-theme( | |
$my-theme-primary, | |
$my-theme-accent, | |
$my-theme-warn | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment