Skip to content

Instantly share code, notes, and snippets.

@tomastrajan
Last active September 16, 2019 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tomastrajan/85a6259ef29ad175344dd12e45438df0 to your computer and use it in GitHub Desktop.
Save tomastrajan/85a6259ef29ad175344dd12e45438df0 to your computer and use it in GitHub Desktop.
Angular Material Theming - theme
// 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