Skip to content

Instantly share code, notes, and snippets.

@Splaktar
Created October 4, 2017 21:26
Show Gist options
  • Save Splaktar/766d0a3b78b2d5ea89322a6338baeea6 to your computer and use it in GitHub Desktop.
Save Splaktar/766d0a3b78b2d5ea89322a6338baeea6 to your computer and use it in GitHub Desktop.
Theme configuration example
@import '~@angular/material/theming';
// Define the palettes for your theme using the Material Design palettes available in palette.scss
// (imported above). For each palette, you can optionally specify a default, lighter, and darker hue.
$app-primary: mat-palette($mat-teal, 700, 100, 900);
$app-accent: mat-palette($mat-orange);
// The warn palette is optional (defaults to red).
$app-warn: mat-palette($mat-red);
// Create the theme object (a Sass map containing all of the palettes).
$app-theme: mat-light-theme($app-primary, $app-accent, $app-warn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment