|
7 | 7 | // needs to come after '~@angular/material/theming'
|
8 | 8 | @use 'mat-lib-overwrites' as overwrites;
|
9 | 9 |
|
10 |
| -@mixin init-css-vars($default-theme, $text) { |
| 10 | +@mixin init-css-vars($default-theme, $text, $default-foreground, $default-background) { |
11 | 11 | // init css variables
|
12 | 12 | @include helper.root($text);
|
13 | 13 | @include helper.root($default-theme);
|
| 14 | + @include helper.root($default-foreground); |
| 15 | + @include helper.root($default-background); |
14 | 16 | }
|
15 | 17 |
|
16 | 18 | @mixin init-mat-theme($dark-theme-selector, $typography-config: mat.define-typography-config(), $load-mdc-components, $load-legacy-components) {
|
|
86 | 88 | $dark-theme-selector: variables.$dark-theme-selector,
|
87 | 89 | $default-theme-text: variables.$text,
|
88 | 90 | $typography-config: mat.define-typography-config(),
|
| 91 | + $default-foreground: variables.$default-foreground, |
| 92 | + $default-background: variables.$default-background, |
89 | 93 | $load-mdc-components: true,
|
90 | 94 | $load-legacy-components: false,
|
91 | 95 | ) {
|
92 |
| - @include init-css-vars($default-theme, $default-theme-text); |
| 96 | + @include init-css-vars($default-theme, $default-theme-text, $default-foreground, $default-background); |
93 | 97 | @include init-mat-theme($dark-theme-selector, $typography-config, $load-mdc-components, $load-legacy-components) using ($mat-css-theme) {
|
94 | 98 | @content($mat-css-theme);
|
95 | 99 | }
|
|
0 commit comments