ng update
This commit is contained in:
+6
-6
@@ -1,12 +1,12 @@
|
||||
// Custom Theming for Angular Material
|
||||
@use '~@angular/material' as mat;
|
||||
// For more information: https://material.angular.io/guide/theming
|
||||
@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();
|
||||
@include mat.core();
|
||||
|
||||
|
||||
@import './variables.scss';
|
||||
@@ -14,13 +14,13 @@
|
||||
// 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/
|
||||
$light-theme: mat-light-theme((color: (primary: $light-primary,
|
||||
$light-theme: mat.define-light-theme((color: (primary: $light-primary,
|
||||
accent: $light-accent,
|
||||
warn: $light-warn,
|
||||
)));
|
||||
|
||||
// Define an alternate dark theme.
|
||||
$dark-theme: mat-dark-theme((color: (primary: $dark-primary,
|
||||
$dark-theme: mat.define-dark-theme((color: (primary: $dark-primary,
|
||||
accent: $light-accent,
|
||||
warn: $light-warn,
|
||||
)));
|
||||
@@ -30,10 +30,10 @@ $dark-theme: mat-dark-theme((color: (primary: $dark-primary,
|
||||
// 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);
|
||||
@include mat.all-component-themes($light-theme);
|
||||
|
||||
.dark-theme {
|
||||
@include angular-material-color($dark-theme);
|
||||
@include mat.all-component-colors($dark-theme);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+13
-13
@@ -1,19 +1,19 @@
|
||||
@import '~@angular/material/theming';
|
||||
@use '~@angular/material' as mat;
|
||||
|
||||
$light-primary: mat-palette($mat-deep-orange, 800);
|
||||
$light-accent: mat-palette($mat-grey, A200, A100, A400);
|
||||
$light-warn: mat-palette($mat-red);
|
||||
$light-primary: mat.define-palette(mat.$deep-orange-palette, 800);
|
||||
$light-accent: mat.define-palette(mat.$grey-palette, A200, A100, A400);
|
||||
$light-warn: mat.define-palette(mat.$red-palette);
|
||||
|
||||
$primary: mat-color($light-primary);
|
||||
$accent: mat-color($light-accent);
|
||||
$warn: mat-color($light-warn);
|
||||
$primary: mat.get-color-from-palette($light-primary);
|
||||
$accent: mat.get-color-from-palette($light-accent);
|
||||
$warn: mat.get-color-from-palette($light-warn);
|
||||
|
||||
$dark-primary: mat-palette($mat-deep-orange, 900, 500, 700);
|
||||
$dark-accent: mat-palette($mat-grey, A200, A100, A400);
|
||||
$dark-warn: mat-palette($mat-red);
|
||||
$dark-primary: mat.define-palette(mat.$deep-orange-palette, 900, 500, 700);
|
||||
$dark-accent: mat.define-palette(mat.$grey-palette, A200, A100, A400);
|
||||
$dark-warn: mat.define-palette(mat.$red-palette);
|
||||
|
||||
.dark-theme {
|
||||
$primary: mat-color($light-primary);
|
||||
$accent: mat-color($light-accent);
|
||||
$warn: mat-color($light-warn);
|
||||
$primary: mat.get-color-from-palette($light-primary);
|
||||
$accent: mat.get-color-from-palette($light-accent);
|
||||
$warn: mat.get-color-from-palette($light-warn);
|
||||
}
|
||||
Reference in New Issue
Block a user