|
1 | 1 | @use '@angular/material' as mat; |
2 | 2 | @use '../../../variables' as *; |
| 3 | +@include mat.core(); |
3 | 4 |
|
4 | | -$custom-typography: mat.define-typography-config( |
| 5 | +$custom-typography: mat.m2-define-typography-config( |
5 | 6 | $font-family: $material-typeface, |
6 | | - $button: mat.define-typography-level(14px, $font-weight: 600) |
| 7 | + $button: mat.m2-define-typography-level(14px, $font-weight: 600) |
7 | 8 | ); |
8 | 9 |
|
9 | 10 | $saturations: (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A700); |
@@ -45,21 +46,21 @@ $custom-dark-palette: palette( |
45 | 46 | $error: #ff134a, |
46 | 47 | ); |
47 | 48 |
|
48 | | -$light-palette-primary: mat.define-palette(material-like-palette('primary', $saturations, $igx-light-palette)); |
49 | | -$light-palette-accent: mat.define-palette(material-like-palette('secondary', $saturations, $igx-light-palette)); |
50 | | -$custom-mat-light-theme: mat.define-light-theme(( |
| 49 | +$light-palette-primary: mat.m2-define-palette(material-like-palette('primary', $saturations, $igx-light-palette)); |
| 50 | +$light-palette-accent: mat.m2-define-palette(material-like-palette('secondary', $saturations, $igx-light-palette)); |
| 51 | +$custom-mat-light-theme: mat.m2-define-light-theme(( |
51 | 52 | color: ( |
52 | 53 | primary: $light-palette-primary, |
53 | 54 | accent: $light-palette-accent |
54 | 55 | ), |
55 | 56 | typography: $custom-typography |
56 | 57 | )); |
57 | 58 |
|
58 | | -$dark-palette-primary: mat.define-palette(material-like-palette('primary', $saturations, $custom-dark-palette)); |
59 | | -$dark-palette-accent: mat.define-palette(material-like-palette('secondary', $saturations, $custom-dark-palette)); |
60 | | -$custom-mat-dark-theme: mat.define-dark-theme(( |
| 59 | +$dark-palette-primary: mat.m2-define-palette(material-like-palette('primary', $saturations, $custom-dark-palette)); |
| 60 | +$dark-palette-accent: mat.m2-define-palette(material-like-palette('secondary', $saturations, $custom-dark-palette)); |
| 61 | +$custom-mat-dark-theme: mat.m2-define-dark-theme(( |
61 | 62 | color: ( |
62 | | - primary: $dark-palette-primary, |
| 63 | + primary: $dark-palette-primary, |
63 | 64 | accent: $dark-palette-accent |
64 | 65 | ) |
65 | 66 | )); |
|
0 commit comments