@@ -11,8 +11,8 @@ mat.$theme-ignore-duplication-warnings: true;
11
11
12
12
$theme : mat .define-light-theme ((
13
13
color : (
14
- primary: mat .$red-palette ,
15
- accent: mat .$blue-palette ,
14
+ primary: mat .define-palette ( mat . $red-palette ) ,
15
+ accent: mat .define-palette ( mat . $blue-palette ) ,
16
16
),
17
17
density: -2 ,
18
18
));
@@ -22,10 +22,23 @@ $theme: mat.define-light-theme((
22
22
@include mat .all-component-themes ($theme );
23
23
@include mat .all-component-typographies ();
24
24
@include mat .all-component-colors ($theme );
25
- @include mat .all-legacy-component-themes ($theme );
26
- @include mat .all-legacy-component-typographies ();
27
- @include mat .all-legacy-component-colors ($theme );
25
+
26
+ @include mat .private-all-component-densities ($theme );
27
+ @include mat .private-all-component-densities ((density: 0 ));
28
+ @include mat .private-all-component-densities ((density: -1 ));
29
+ @include mat .private-all-component-densities ((density: minimum));
30
+
28
31
@include mat .core-theme ($theme );
29
32
@include mat .button-theme ($theme );
33
+
30
34
@include mat .strong-focus-indicators ();
31
35
@include mat .strong-focus-indicators-theme ($theme );
36
+
37
+ // Legacy.
38
+ @include mat .all-legacy-component-themes ($theme );
39
+ @include mat .all-legacy-component-typographies ();
40
+ @include mat .all-legacy-component-colors ($theme );
41
+ @include mat .private-all-legacy-component-densities ($theme );
42
+ @include mat .private-all-legacy-component-densities ((density: 0 ));
43
+ @include mat .private-all-legacy-component-densities ((density: -1 ));
44
+ @include mat .private-all-legacy-component-densities ((density: minimum));
0 commit comments