@@ -108,19 +108,6 @@ custom theme with Sass, or by importing a pre-built theme CSS file.
108108A ** theme file** is a Sass file that calls Angular Material Sass mixins to output color,
109109typography, and density CSS styles.
110110
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-
124111#### Defining a theme
125112
126113Angular Material represents a theme as a Sass map that contains your color, typography, and density
@@ -190,8 +177,6 @@ theme Sass mixins.
190177``` scss
191178@use ' @angular/material' as mat ;
192179
193- @include mat .core ();
194-
195180$my-primary : mat .m2-define-palette (mat .$m2-indigo-palette , 500 );
196181$my-accent : mat .m2-define-palette (mat .$m2-pink-palette , A200 , A100 , A400 );
197182
@@ -225,8 +210,6 @@ uses every single component, this will produce unnecessary CSS.
225210``` scss
226211@use ' @angular/material' as mat ;
227212
228- @include mat .core ();
229-
230213$my-primary : mat .m2-define-palette (mat .$m2-indigo-palette , 500 );
231214$my-accent : mat .m2-define-palette (mat .$m2-pink-palette , A200 , A100 , A400 );
232215
@@ -337,8 +320,6 @@ CSS rule declaration. See the [documentation for Sass mixins][sass-mixins] for f
337320``` scss
338321@use ' @angular/material' as mat ;
339322
340- @include mat .core ();
341-
342323// Define a dark theme
343324$dark-theme : mat .m2-define-dark-theme ((
344325 color : (
@@ -470,7 +451,6 @@ the custom theme API.
470451``` scss
471452@use ' @angular/material' as mat ;
472453
473- @include mat .core ();
474454@include mat .strong-focus-indicators ();
475455
476456$my-primary : mat .m2-define-palette (mat .$m2-indigo-palette , 500 );
@@ -502,7 +482,6 @@ of the custom theme API.
502482``` scss
503483@use ' @angular/material' as mat ;
504484
505- @include mat .core ();
506485@include mat .strong-focus-indicators ((
507486 border-style : dotted ,
508487 border-width : 4px ,
@@ -812,8 +791,6 @@ defining multiple themes](#defining-multiple-themes).
812791``` scss
813792@use ' @angular/material' as mat ;
814793
815- @include mat .core ();
816-
817794$my-primary : mat .m2-define-palette (mat .$indigo-palette , 500 );
818795$my-accent : mat .m2-define-palette (mat .$pink-palette , A200 , A100 , A400 );
819796$my-typography : mat .m2-define-typography-config ();
@@ -1064,8 +1041,6 @@ the other theme mixins in your application.
10641041@use ' @angular/material' as mat ;
10651042@use ' ./path/to/carousel-theme' as carousel ;
10661043
1067- @include mat .core ();
1068-
10691044$my-primary : mat .m2-define-palette (mat .$m2-indigo-palette , 500 );
10701045$my-accent : mat .m2-define-palette (mat .$m2-pink-palette , A200 , A100 , A400 );
10711046
0 commit comments