Foreground and background colors are applied in the palette. The background color is 50, 100, 200, etc. And the foreground colors are in contrast. Check this:
$md-my-fancy-pink: ( 50 :
For example, when you create the material button <button md-raised-button>Click Me</button> , the background will be #e11e60 and the foreground will be #ffffff .
Common backgrounds and predefined colors can be set via css (styles.css). This is just one line in css, it does not require it to handle angular material. Just do the following:
html, body { background: #f2f2f2; color: #333333; }
source share