@@ -108,19 +108,6 @@ custom theme with Sass, or by importing a pre-built theme CSS file.
108
108
A ** theme file** is a Sass file that calls Angular Material Sass mixins to output color,
109
109
typography, and density CSS styles.
110
110
111
- #### The ` core ` mixin
112
-
113
- Angular Material defines a mixin named ` core ` that includes prerequisite styles for common
114
- features used by multiple components, such as ripples. The ` core ` mixin must be included exactly
115
- once for your application, even if you define multiple themes. Including the ` core ` mixin multiple
116
- times will result in duplicate CSS in your application.
117
-
118
- ``` scss
119
- @use ' @angular/material' as mat ;
120
-
121
- @include mat .core ();
122
- ```
123
-
124
111
#### Defining a theme
125
112
126
113
Angular Material represents a theme as a Sass map that contains your color, typography, and density
@@ -190,8 +177,6 @@ theme Sass mixins.
190
177
``` scss
191
178
@use ' @angular/material' as mat ;
192
179
193
- @include mat .core ();
194
-
195
180
$my-primary : mat .m2-define-palette (mat .$m2-indigo-palette , 500 );
196
181
$my-accent : mat .m2-define-palette (mat .$m2-pink-palette , A200 , A100 , A400 );
197
182
@@ -225,8 +210,6 @@ uses every single component, this will produce unnecessary CSS.
225
210
``` scss
226
211
@use ' @angular/material' as mat ;
227
212
228
- @include mat .core ();
229
-
230
213
$my-primary : mat .m2-define-palette (mat .$m2-indigo-palette , 500 );
231
214
$my-accent : mat .m2-define-palette (mat .$m2-pink-palette , A200 , A100 , A400 );
232
215
@@ -337,8 +320,6 @@ CSS rule declaration. See the [documentation for Sass mixins][sass-mixins] for f
337
320
``` scss
338
321
@use ' @angular/material' as mat ;
339
322
340
- @include mat .core ();
341
-
342
323
// Define a dark theme
343
324
$dark-theme : mat .m2-define-dark-theme ((
344
325
color : (
@@ -470,7 +451,6 @@ the custom theme API.
470
451
``` scss
471
452
@use ' @angular/material' as mat ;
472
453
473
- @include mat .core ();
474
454
@include mat .strong-focus-indicators ();
475
455
476
456
$my-primary : mat .m2-define-palette (mat .$m2-indigo-palette , 500 );
@@ -502,7 +482,6 @@ of the custom theme API.
502
482
``` scss
503
483
@use ' @angular/material' as mat ;
504
484
505
- @include mat .core ();
506
485
@include mat .strong-focus-indicators ((
507
486
border-style : dotted ,
508
487
border-width : 4px ,
@@ -812,8 +791,6 @@ defining multiple themes](#defining-multiple-themes).
812
791
``` scss
813
792
@use ' @angular/material' as mat ;
814
793
815
- @include mat .core ();
816
-
817
794
$my-primary : mat .m2-define-palette (mat .$indigo-palette , 500 );
818
795
$my-accent : mat .m2-define-palette (mat .$pink-palette , A200 , A100 , A400 );
819
796
$my-typography : mat .m2-define-typography-config ();
@@ -1064,8 +1041,6 @@ the other theme mixins in your application.
1064
1041
@use ' @angular/material' as mat ;
1065
1042
@use ' ./path/to/carousel-theme' as carousel ;
1066
1043
1067
- @include mat .core ();
1068
-
1069
1044
$my-primary : mat .m2-define-palette (mat .$m2-indigo-palette , 500 );
1070
1045
$my-accent : mat .m2-define-palette (mat .$m2-pink-palette , A200 , A100 , A400 );
1071
1046
0 commit comments