📌  相关文章
📜  未知函数'mat-palette' - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:45.248000             🧑  作者: Mango

代码示例1
There is another way to define it for Angular 8+

Needed imports: 
@import '~@angular/material/theming';
@use '~@angular/material' as mat;
@include mat.core();

To define a palette:
old way: $candy-app-warn:    mat-palette($mat-red);
new way: $candy-app-warn:    mat.define-palette(mat.$red-palette);

More detailed here: https://material.angular.io/guide/theming