Search code examples
angularangular-materialangular-material-theming

Angular Material - All acceptable arguments for `mat-palette()`


In the Angular Material custom theming documentation, we are setting the primary color as indigo like this:

$candy-app-primary: mat-palette($mat-indigo);

Where can i refer all acceptable arguments for the mat-palette() function? I wanted to know all possible color names like we have $mat-indigoin the above example. Couldn't find it in the documentation.

Thanks.


Solution

  • You can find in the source file of angular material, all the predefined colors.

    And

    If you want a custom theme, you can use color generator such as mcg.mbitson.com