|
| 1 | +@use '~@angular/material' as mat; |
1 | 2 | @import '../node_modules/@angular/material/theming';
|
2 | 3 | // Plus imports for other components in your app.
|
3 | 4 |
|
4 | 5 | // Include the common styles for Angular Material. We include this here so that you only
|
5 | 6 | // have to load a single css file for Angular Material in your app.
|
6 | 7 | // Be sure that you only ever include this mixin once!
|
7 |
| -@include mat-core(); |
| 8 | +@include mat.core(); |
8 | 9 |
|
9 | 10 | // Define the palettes for your theme using the Material Design palettes available in palette.scss
|
10 | 11 | // (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
11 | 12 | // hue.
|
12 |
| -$candy-app-primary: mat-palette($mat-blue); |
13 |
| -$candy-app-accent: mat-palette($mat-deep-purple, A200, A100, A400); |
| 13 | +$candy-app-primary: mat.define-palette(mat.$blue-palette); |
| 14 | +$candy-app-accent: mat.define-palette(mat.$deep-purple-palette, A200, A100, A400); |
14 | 15 |
|
15 | 16 | // The warn palette is optional (defaults to red).
|
16 |
| -$candy-app-warn: mat-palette($mat-red); |
| 17 | +$candy-app-warn: mat.define-palette(mat.$red-palette); |
17 | 18 |
|
18 | 19 | // Create the theme object (a Sass map containing all of the palettes).
|
19 |
| -$candy-app-theme: mat-light-theme($candy-app-primary, $candy-app-accent, $candy-app-warn); |
| 20 | +$candy-app-theme: mat.define-light-theme($candy-app-primary, $candy-app-accent, $candy-app-warn); |
20 | 21 |
|
21 | 22 | // Include theme styles for core and each component used in your app.
|
22 | 23 | // Alternatively, you can import and @include the theme mixins for each component
|
23 | 24 | // that you are using.
|
24 |
| -@include angular-material-theme($candy-app-theme); |
| 25 | +@include mat.all-component-themes($candy-app-theme); |
0 commit comments