|
6 | 6 | @include mat.core(); |
7 | 7 |
|
8 | 8 | // Define a light theme |
9 | | -$light-theme: mat.define-light-theme( |
| 9 | +$light-theme: mat.m2-define-light-theme( |
10 | 10 | ( |
11 | 11 | color: ( |
12 | | - primary: mat.define-palette(mat.$deep-purple-palette), |
13 | | - accent: mat.define-palette(mat.$amber-palette), |
| 12 | + primary: mat.m2-define-palette(mat.$m2-deep-purple-palette), |
| 13 | + accent: mat.m2-define-palette(mat.$m2-amber-palette), |
14 | 14 | ), |
15 | 15 | // Only include `typography` and `density` in the default dark theme. |
16 | | - typography: mat.define-typography-config(), |
| 16 | + typography: mat.m2-define-typography-config(), |
17 | 17 | density: 0, |
18 | 18 | ) |
19 | 19 | ); |
20 | 20 |
|
21 | 21 | // Define a dark theme |
22 | | -$dark-theme: mat.define-dark-theme( |
| 22 | +$dark-theme: mat.m2-define-dark-theme( |
23 | 23 | ( |
24 | 24 | color: ( |
25 | | - primary: mat.define-palette(mat.$deep-purple-palette, 300, 100, 500), |
26 | | - accent: mat.define-palette(mat.$amber-palette), |
| 25 | + primary: mat.m2-define-palette(mat.$m2-deep-purple-palette, 300, 100, 500), |
| 26 | + accent: mat.m2-define-palette(mat.$m2-amber-palette), |
27 | 27 | ), |
28 | 28 | ) |
29 | 29 | ); |
30 | 30 |
|
31 | 31 | @mixin page-header-color($theme) { |
32 | 32 | // Get the color config from the theme. |
33 | | - $color-config: mat.get-color-config($theme); |
| 33 | + $color-config: mat.m2-get-color-config($theme); |
34 | 34 |
|
35 | 35 | // Get the primary color palette from the color-config. |
36 | 36 | $primary-palette: map.get($color-config, 'primary'); |
37 | 37 |
|
38 | 38 | .bd-pageheader { |
39 | | - color: mat.get-color-from-palette($primary-palette, '500-contrast'); |
| 39 | + color: mat.m2-get-color-from-palette($primary-palette, '500-contrast'); |
40 | 40 | background-image: linear-gradient( |
41 | 41 | to bottom, |
42 | | - mat.get-color-from-palette($primary-palette, 700) 0, |
43 | | - mat.get-color-from-palette($primary-palette, 500) 100% |
| 42 | + mat.m2-get-color-from-palette($primary-palette, 700) 0, |
| 43 | + mat.m2-get-color-from-palette($primary-palette, 500) 100% |
44 | 44 | ); |
45 | 45 | } |
46 | 46 | } |
|
0 commit comments