Skip to content

Instantly share code, notes, and snippets.

@Splaktar
Created October 4, 2017 20:52
Show Gist options
  • Select an option

  • Save Splaktar/b58132c00ee8c7ee599469eae9ffcca3 to your computer and use it in GitHub Desktop.

Select an option

Save Splaktar/b58132c00ee8c7ee599469eae9ffcca3 to your computer and use it in GitHub Desktop.
@import '~@angular/material/theming';
// Plus imports for other components in your app.
// Include the base styles for Angular Material core. We include this here so that you only
// have to load a single css file for Angular Material in your app.
@include mat-core();
// 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.
$ng-io-primary: mat-palette($mat-blue, 700, 600, 800);
$ng-io-accent: mat-palette($mat-red, 700, 600, 800);
// The warn palette is optional (defaults to red).
$ng-io-warn: mat-palette($mat-red);
// Create the theme object (a Sass map containing all of the palettes).
$ng-io-theme: mat-light-theme($ng-io-primary, $ng-io-accent, $ng-io-warn);
// Include theme styles for core and each component used in your app.
// Alternatively, you can import and @include the theme mixins for each component
// that you are using.
@include angular-material-theme($ng-io-theme);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment