|
|
|
@import '~@angular/material/theming';
|
|
|
|
// Plus imports for other components in your app.
|
|
|
|
|
|
|
|
// Include the common styles for Angular Material. We include this here so that you only
|
|
|
|
// have to load a single css file for Angular Material in your app.
|
|
|
|
// Be sure that you only ever include this mixin once!
|
|
|
|
@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. Available color palettes: https://material.io/design/color/
|
|
|
|
$primary: mat-palette($mat-green);
|
|
|
|
$accent: mat-palette($mat-pink, A200, A100, A400);
|
|
|
|
$background-color: map_get($mat-grey, 50);
|
|
|
|
// The warn palette is optional (defaults to red).
|
|
|
|
$warn: mat-palette($mat-red);
|
|
|
|
|
|
|
|
// Create the theme object (a Sass map containing all of the palettes).
|
|
|
|
$light-theme: mat-light-theme($primary, $accent, $warn);
|
|
|
|
|
|
|
|
// Set custom background color
|
|
|
|
$background-color: map_get($mat-blue-grey, 50);
|
|
|
|
|
|
|
|
$background: map-get($light-theme, background);
|
|
|
|
$background: map_merge($background, (background: $background-color));
|
|
|
|
$light-theme: map_merge($light-theme, (background: $background));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$dark-primary: mat-palette($mat-green);
|
|
|
|
$dark-accent: mat-palette($mat-pink, A200, A100, A400);
|
|
|
|
|
|
|
|
// The warn palette is optional (defaults to red).
|
|
|
|
$dark-warn: mat-palette($mat-red);
|
|
|
|
|
|
|
|
// Create the theme object (a Sass map containing all of the palettes).
|
|
|
|
$dark-theme: mat-dark-theme($dark-primary, $dark-accent, $dark-warn);
|
|
|
|
|
|
|
|
|
|
|
|
.dark-theme {
|
|
|
|
@include angular-material-theme($dark-theme);
|
|
|
|
}
|
|
|
|
|
|
|
|
.light-theme {
|
|
|
|
@include angular-material-theme($light-theme)
|
|
|
|
}
|
|
|
|
// 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($light-theme);
|