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
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
docs(theming): update Defining Custom Palettes guide w/ new contrast settings
- change docs app's warn theme 500 value to 700 value to make flat warn buttons
pass contrast checks
- revert docs-red palette defaulting to `A700` since that breaks hover and focus styles
- remove the override of the `.demo-toolbar` color since it is no longer needed
after the toolbar contrast fixes
As mentioned before, AngularJS Material ships with the Material Design
76
-
Spec's color palettes built in. In the event that you need to define a custom color palette, you can use `$mdThemingProvider` to define it, thereby making
77
-
it available to your theme for use in its intention groups. Note that you must
78
-
specify all hues in the definition map.
75
+
As mentioned before, AngularJS Material ships with the Material Design Spec's color palettes built
76
+
in. In the event that you need to define a custom color palette, you can use `$mdThemingProvider`
77
+
to define it. This makes the palette available to your theme for use in its intention groups.
78
+
Note that you must specify all hues in the definition map. If you only want to override a few hues,
79
+
please extend a palette (above).
80
+
81
+
For a dark colored, custom palette, you should specify the default contrast color as `light`.
82
+
For lighter hues in the palette, you may need to add them to the list of `contrastDarkColors` to
83
+
meet contrast guidelines. Similarly, you may need to add darker hues to `contrastStrongLightColors`,
84
+
which has been updated to the latest Material Design guidelines for
0 commit comments