1
1
@use ' @angular/material' as mat ;
2
+ @use ' @angular/material-experimental' as matx ;
2
3
3
- // Plus imports for other components in your app.
4
-
5
- // Disable legacy API compatibility, since universal-app is fully migrated to theme inspection API.
6
- mat .$theme-legacy-inspection-api-compatibility : false;
7
-
8
- // Include the common styles for Angular Material. We include this here so that you only
9
- // have to load a single css file for Angular Material in your app.
10
- // **Be sure that you only ever include this mixin once!**
11
4
@include mat .core ();
12
5
13
- // Define the default theme (same as the example above).
14
- $candy-app-primary : mat .define-palette (mat .$indigo-palette );
15
- $candy-app-accent : mat .define-palette (mat .$pink-palette , A200 , A100 , A400 );
16
- $candy-app-theme : mat .define-light-theme ((
17
- color : (primary: $candy-app-primary , accent: $candy-app-accent ),
18
- typography: mat .define-typography-config (),
19
- density: 0
6
+ $theme : matx .define-theme ((
7
+ color : (
8
+ theme- type: light ,
9
+ primary: matx .$m3-azure-palette ,
10
+ tertiary: matx .$m3-blue-palette ,
11
+ ),
12
+ density: (
13
+ scale : 0 ,
14
+ )
20
15
));
21
16
22
- // Include the default theme styles.
23
- @include mat .all-component-themes ($candy-app-theme );
24
- @include mat .typography-hierarchy ($candy-app-theme );
17
+ html {
18
+ @include mat .all-component-themes ($theme );
19
+ }
20
+
21
+ @include mat .typography-hierarchy ($theme );
25
22
26
23
body .test-automated {
27
24
// Make sure bottom sheet doesn't obscure components.
@@ -38,4 +35,3 @@ body.test-automated {
38
35
background : lime ;
39
36
}
40
37
}
41
-
0 commit comments