|
|
@ -11,13 +11,22 @@
|
|
|
|
// hue. Available color palettes: https://material.io/design/color/
|
|
|
|
// hue. Available color palettes: https://material.io/design/color/
|
|
|
|
$primary: mat-palette($mat-green);
|
|
|
|
$primary: mat-palette($mat-green);
|
|
|
|
$accent: mat-palette($mat-pink, A200, A100, A400);
|
|
|
|
$accent: mat-palette($mat-pink, A200, A100, A400);
|
|
|
|
|
|
|
|
$background-color: map_get($mat-grey, 50);
|
|
|
|
// The warn palette is optional (defaults to red).
|
|
|
|
// The warn palette is optional (defaults to red).
|
|
|
|
$warn: mat-palette($mat-red);
|
|
|
|
$warn: mat-palette($mat-red);
|
|
|
|
|
|
|
|
|
|
|
|
// Create the theme object (a Sass map containing all of the palettes).
|
|
|
|
// Create the theme object (a Sass map containing all of the palettes).
|
|
|
|
$light-theme: mat-light-theme($primary, $accent, $warn);
|
|
|
|
$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-primary: mat-palette($mat-green);
|
|
|
|
$dark-accent: mat-palette($mat-pink, A200, A100, A400);
|
|
|
|
$dark-accent: mat-palette($mat-pink, A200, A100, A400);
|
|
|
|
|
|
|
|
|
|
|
@ -27,6 +36,7 @@ $dark-warn: mat-palette($mat-red);
|
|
|
|
// Create the theme object (a Sass map containing all of the palettes).
|
|
|
|
// 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: mat-dark-theme($dark-primary, $dark-accent, $dark-warn);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.dark-theme {
|
|
|
|
.dark-theme {
|
|
|
|
@include angular-material-theme($dark-theme);
|
|
|
|
@include angular-material-theme($dark-theme);
|
|
|
|
}
|
|
|
|
}
|
|
|
|