@@ -29,7 +29,7 @@ component by following these steps:
2929 },
3030 ...
3131 ```
32-
32+
33333 . Import the ` NgModule ` for the component you want to use. For example, the checkbox:
3434``` ts
3535 import {MatCheckboxModule } from ' @angular/material-experimental/mdc-checkbox' ;
@@ -42,7 +42,7 @@ component by following these steps:
4242```
4343
44444 . Add use the components just as you would the normal Angular Material components. For example,
45- the checkbox:
45+ the checkbox:
4646``` html
4747 <mat-checkbox [checked] =" isChecked" >Check me</mat-checkbox >
4848```
@@ -52,23 +52,23 @@ mixins except that they are suffixed with `-mdc`. Some experimental components m
5252be included in the pre-built CSS mixin and will need to be explicitly included.
5353
5454``` scss
55- @import ' ~@angular/material/theming ' ;
56- @import ' ~@angular/material-experimental/mdc-theming/all-theme ' ;
57-
58- $my-primary : mat-palette ($ mat- indigo );
59- $my-accent : mat-palette ($ mat- pink , A200 , A100 , A400 );
60- $my-theme : mat-light-theme ((
55+ @use ' ~@angular/material' as mat ;
56+ @use ' ~@angular/material-experimental' as mat-experimental ;
57+
58+ $my-primary : mat . define -palette (mat . $ indigo-palette );
59+ $my-accent : mat . define -palette (mat . $ pink-palette , A200 , A100 , A400 );
60+ $my-theme : mat . define -light-theme ((
6161 color : (
62- primary: $my-primary ,
62+ primary: $my-primary ,
6363 accent: $my-accent
6464 ),
65- // Using `mat -mdc-typography-config` rather than `mat -typography-config` generates a typography
66- // config directly from the official Material Design styles. This includes using `rem`-based
67- // measurements rather than `px`-based ones as the spec recommends.
68- typography: mat-mdc-typography-config (),
65+ // Using `define -mdc-typography-config` rather than `define -typography-config` generates a
66+ // typography config directly from the official Material Design styles. This includes using
67+ // `rem`-based measurements rather than `px`-based ones as the spec recommends.
68+ typography: mat-experimental . define- mdc-typography-config (),
6969 // The density level to use in this theme, defaults to 0 if not specified.
7070 density: 0
7171 ));
7272
73- @include angular-material -mdc-theme ($my-theme );
73+ @include mat-experimental . all -mdc-component-themes ($my-theme );
7474```
0 commit comments