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
Currently we've got links either pointing to google.com/design or material.io. These changes make everything consistent by pointing everything to material.io. Also fixes a couple of links that were pointing to a 404.
Copy file name to clipboardExpand all lines: guides/theming-your-components.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,14 +47,18 @@ For more details about the theming functions, see the comments in the
47
47
#### Best practices using `@mixin`
48
48
When using `@mixin`, the theme file should only contain the definitions that are affected by the passed-in theme.
49
49
50
-
All styles that are not affected by the theme should be placed in a `candy-carousel.scss` file. This file should contain everything that is not affected by the theme like sizes, transitions...
50
+
All styles that are not affected by the theme should be placed in a `candy-carousel.scss` file.
51
+
This file should contain everything that is not affected by the theme like sizes, transitions...
51
52
52
-
Styles that are affected by the theme should be placed in a separated theming file as `_candy-carousel-theme.scss` and the file should have a `_` before the name. This file should contain the `@mixin` function responsible for applying the theme to the component.
53
+
Styles that are affected by the theme should be placed in a separated theming file as
54
+
`_candy-carousel-theme.scss` and the file should have a `_` before the name. This file should
55
+
contain the `@mixin` function responsible for applying the theme to the component.
53
56
54
57
55
58
### Using colors from a palette
56
-
You can consume the theming functions and Material palette variables from `@angular/material/theming`.
57
-
You can use the `mat-color` function to extract a specific color from a palette. For example:
59
+
You can consume the theming functions and Material palette variables from
60
+
`@angular/material/theming`. You can use the `mat-color` function to extract a specific color
61
+
from a palette. For example:
58
62
59
63
```scss
60
64
// Import theming functions
@@ -67,7 +71,7 @@ You can use the `mat-color` function to extract a specific color from a palette.
67
71
// hues (default, lighter, darker), or any of the aforementioned prefixed with "-contrast".
68
72
// For example a hue of "darker-contrast" gives a light color to contrast with a "darker" hue.
69
73
// Note that quotes are needed when using a numeric hue with the "-contrast" modifier.
70
-
// Available color palettes: https://www.google.com/design/spec/style/color.html
74
+
// Available color palettes: https://material.io/design/color/
0 commit comments