I am creating angular material theme. I was following this article to generate 3 colors theme which contains primary, accent and warn color, however my business scenario is expecting total 5 colors.
One way of which I have tried is to add color palettes in themes.scss and apply those colors to individual components but is there any better way or provision in angular material to configure such color palettes?
Below is a sample of my implementation.
@import 'src/theme.scss';
$color1: map-get($my-theme, color1);
button.level1 {
background-color: mat-color($color1);
}
$color2: map-get($my-theme, color2);
button.level2 {
background-color: mat-color($color2);
}
but with this approach I need to create a button like <button mat-button class="level1"></button>
What I want is <button mat-button color="level4"></button>
Can someone please help?