Skip to content

Instantly share code, notes, and snippets.

@ZacharyCouchman
Created February 16, 2019 21:14
Show Gist options
  • Save ZacharyCouchman/15618735ac5b3f3e1328b1709c3f9040 to your computer and use it in GitHub Desktop.
Save ZacharyCouchman/15618735ac5b3f3e1328b1709c3f9040 to your computer and use it in GitHub Desktop.
How to include a custom material design theme to your angular project
@import "~@angular/material/theming";
@include mat-core();
// Standard material custom theme setup
$primary: mat-palette($mat-blue, 800, 500, 900);
$accent: mat-palette($mat-pink, 500, 300, 700);
$warn: mat-palette($mat-red, 700);
$my-theme: mat-light-theme($primary, $accent, $warn);
@include angular-material-theme($my-theme);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment