Skip to content

Commit 0884afa

Browse files
Heoandrewseguin
authored andcommitted
docs(guide): change prefix md to mat in theming-your-components.md
1 parent c992e5f commit 0884afa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

guides/theming-your-components.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ All you need is to create a `@mixin` function in the custom-component-theme.scss
2424

2525
// Use md-color to extract individual colors from a palette as necessary.
2626
.candy-carousel {
27-
background-color: md-color($primary);
28-
border-color: md-color($accent, A400);
27+
background-color: mat-color($primary);
28+
border-color: mat-color($accent, A400);
2929
}
3030
}
3131
```
@@ -53,17 +53,17 @@ Styles that are affected by the theme should be placed in a separated theming fi
5353

5454

5555
## Using colors from a palette
56-
You can consume the theming functions from the `@angular/material/core/theming/theming` and Material palette vars from `@angular/material/core/theming/palette`. You can use the `md-color` function to extract a specific color from a palette. For example:
56+
You can consume the theming functions from the `@angular/material/core/theming/theming` and Material palette vars from `@angular/material/core/theming/palette`. You can use the `mat-color` function to extract a specific color from a palette. For example:
5757

5858
```scss
5959
// Import theming functions
6060
@import '~@angular/material/core/theming/theming';
6161
// Import your custom theme
6262
@import 'src/unicorn-app-theme.scss';
6363

64-
// Use md-color to extract individual colors from a palette as necessary.
64+
// Use mat-color to extract individual colors from a palette as necessary.
6565
.candy-carousel {
66-
background-color: md-color($candy-app-primary);
67-
border-color: md-color($candy-app-accent, A400);
66+
background-color: mat-color($candy-app-primary);
67+
border-color: mat-color($candy-app-accent, A400);
6868
}
6969
```

0 commit comments

Comments
 (0)