Angular Material’s Sass define-palette function creates a named palette by selecting hues from a base color palette and assigning roles such as default and text. section 28.3.2
Use it to prepare consistent palette roles for themed component styles:
- Pass a base palette such as material.$indigo-palette. section 28.3.2
- Retrieve selected colors later with get-color-from-palette using names such as default and default-contrast. section 28.3.2
Define primary, accent, and warning palettes
Set $primary from the indigo base palette, choose explicit accent hues from the pink palette, and create $warn from the red palette.
