Skip to content

Instantly share code, notes, and snippets.

@jacobedawson
Last active November 16, 2017 11:00
Show Gist options
  • Save jacobedawson/3c9d77b2b9a2f2e207dd433a95215c5d to your computer and use it in GitHub Desktop.
Save jacobedawson/3c9d77b2b9a2f2e207dd433a95215c5d to your computer and use it in GitHub Desktop.
Angular Material Example - Custom Theme
@import '~@angular/material/theming';
// always include only once per project
@include mat-core();
$mytheme-primary: mat-palette($mat-green);
$mytheme-accent : mat-palette($mat-green, A100, A400, A700);
$mytheme-warn : mat-palette($mat-red);
$mytheme-theme: mat-light-theme($mytheme-primary, $mytheme-accent, $mytheme-warn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment