You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/theming-your-components.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,8 @@ All you need is to create a `@mixin` function in the custom-component-theme.scss
24
24
25
25
// Use md-color to extract individual colors from a palette as necessary.
26
26
.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);
29
29
}
30
30
}
31
31
```
@@ -53,17 +53,17 @@ Styles that are affected by the theme should be placed in a separated theming fi
53
53
54
54
55
55
## 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:
57
57
58
58
```scss
59
59
// Import theming functions
60
60
@import'~@angular/material/core/theming/theming';
61
61
// Import your custom theme
62
62
@import'src/unicorn-app-theme.scss';
63
63
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.
0 commit comments