You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.8 KiB
SCSS

@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/
5 years ago
$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).
5 years ago
$warn: mat-palette($mat-red);
// Create the theme object (a Sass map containing all of the palettes).
5 years ago
$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));
5 years ago
$dark-primary: mat-palette($mat-green);
$dark-accent: mat-palette($mat-pink, A200, A100, A400);
5 years ago
// 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);
5 years ago
.dark-theme {
@include angular-material-theme($dark-theme);
}
5 years ago
.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.
5 years ago
@include angular-material-theme($light-theme);