@@ -11,26 +11,26 @@ export function createCustomTheme(name: string = 'app') {
11
11
return `
12
12
// Custom Theming for Angular Material
13
13
// For more information: https://material.angular.io/guide/theming
14
- @import '~@angular/material/theming' ;
14
+ @use '~@angular/material' as mat ;
15
15
// Plus imports for other components in your app.
16
16
17
17
// Include the common styles for Angular Material. We include this here so that you only
18
18
// have to load a single css file for Angular Material in your app.
19
19
// Be sure that you only ever include this mixin once!
20
- @include mat- core();
20
+ @include mat. core();
21
21
22
22
// Define the palettes for your theme using the Material Design palettes available in palette.scss
23
23
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
24
24
// hue. Available color palettes: https://material.io/design/color/
25
- $${ name } -primary: mat-palette($ mat- indigo);
26
- $${ name } -accent: mat-palette($ mat- pink, A200, A100, A400);
25
+ $${ name } -primary: mat.define -palette(mat.$ indigo-palette );
26
+ $${ name } -accent: mat.define -palette(mat.$ pink-palette , A200, A100, A400);
27
27
28
28
// The warn palette is optional (defaults to red).
29
- $${ name } -warn: mat-palette($ mat- red);
29
+ $${ name } -warn: mat.define -palette(mat.$ red-palette );
30
30
31
31
// Create the theme object. A theme consists of configurations for individual
32
32
// theming systems such as "color" or "typography".
33
- $${ name } -theme: mat-light-theme((
33
+ $${ name } -theme: mat.define -light-theme((
34
34
color: (
35
35
primary: $${ name } -primary,
36
36
accent: $${ name } -accent,
@@ -41,7 +41,7 @@ $${name}-theme: mat-light-theme((
41
41
// Include theme styles for core and each component used in your app.
42
42
// Alternatively, you can import and @include the theme mixins for each component
43
43
// that you are using.
44
- @include angular-material-theme ($${ name } -theme);
44
+ @include mat.all-component-themes ($${ name } -theme);
45
45
46
46
` ;
47
47
}
0 commit comments