parent
7aec3068e2
commit
112645af2f
@ -1,16 +1,17 @@
|
||||
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
||||
@use '~@angular/material' as mat;
|
||||
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
||||
// hue. Available color palettes: https://material.io/design/color/
|
||||
$theme-contrast-primary: mat-palette($mat-indigo);
|
||||
$theme-contrast-accent: mat-palette($mat-pink, A200, A100, A400);
|
||||
$theme-contrast-primary: mat.define-palette(mat.$indigo-palette);
|
||||
$theme-contrast-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
|
||||
|
||||
// The warn palette is optional (defaults to red).
|
||||
$theme-contrast-warn: mat-palette($mat-red);
|
||||
$theme-contrast-warn: mat.define-palette(mat.$red-palette);
|
||||
|
||||
// Create the theme object (a Sass map containing all of the palettes).
|
||||
$theme-contrast: mat-light-theme($theme-contrast-primary, $theme-contrast-accent, $theme-contrast-warn);
|
||||
$theme-contrast: mat.define-light-theme($theme-contrast-primary, $theme-contrast-accent, $theme-contrast-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($theme-contrast);
|
||||
@include mat.all-component-themes($theme-contrast);
|
||||
|
@ -1,16 +1,17 @@
|
||||
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
||||
@use '~@angular/material' as mat;
|
||||
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
||||
// hue. Available color palettes: https://material.io/design/color/
|
||||
$theme-dark-primary: mat-palette($mat-indigo);
|
||||
$theme-dark-accent: mat-palette($mat-pink, A200, A100, A400);
|
||||
$theme-dark-primary: mat.define-palette(mat.$indigo-palette);
|
||||
$theme-dark-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
|
||||
|
||||
// The warn palette is optional (defaults to red).
|
||||
$theme-dark-warn: mat-palette($mat-red);
|
||||
$theme-dark-warn: mat.define-palette(mat.$red-palette);
|
||||
|
||||
// Create the theme object (a Sass map containing all of the palettes).
|
||||
$theme-dark: mat-dark-theme($theme-dark-primary, $theme-dark-accent, $theme-dark-warn);
|
||||
$theme-dark: mat.define-dark-theme($theme-dark-primary, $theme-dark-accent, $theme-dark-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($theme-dark);
|
||||
@include mat.all-component-themes($theme-dark);
|
||||
|
@ -1,16 +1,17 @@
|
||||
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
||||
@use '~@angular/material' as mat;
|
||||
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
||||
// hue. Available color palettes: https://material.io/design/color/
|
||||
$theme-light-primary: mat-palette($mat-indigo);
|
||||
$theme-light-accent: mat-palette($mat-pink, A200, A100, A400);
|
||||
$theme-light-primary: mat.define-palette(mat.$indigo-palette);
|
||||
$theme-light-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
|
||||
|
||||
// The warn palette is optional (defaults to red).
|
||||
$theme-light-warn: mat-palette($mat-red);
|
||||
$theme-light-warn: mat.define-palette(mat.$red-palette);
|
||||
|
||||
// Create the theme object (a Sass map containing all of the palettes).
|
||||
$theme-light: mat-light-theme($theme-light-primary, $theme-light-accent, $theme-light-warn);
|
||||
$theme-light: mat.define-light-theme($theme-light-primary, $theme-light-accent, $theme-light-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($theme-light);
|
||||
@include mat.all-component-themes($theme-light);
|
||||
|
Loading…
Reference in new issue