How to get primary or accent color of currently applied theme in angular material 2

前端 未结 5 1418
逝去的感伤
逝去的感伤 2020-12-23 09:55

I\'m building an app with multiple theme with angular material design 2. I created multiple theme and it\'s working really great. Using this guideline : Angular Material des

5条回答
  •  粉色の甜心
    2020-12-23 10:10

    You can use class="mat-primary" and class="mat-accent" on HTML elements to get the primary and accent colours of your theme.

提交回复
热议问题