📅  最后修改于: 2022-03-11 14:47:45.248000             🧑  作者: Mango
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