0
我想为我的材质主题使用超过3种颜色。 例如,我想在$ theme-success:mat-pallete($ mat-green)中添加我的材质组件(例如md-checkbox color="success"
)中的绿色成功颜色。Angular Material自定义颜色
@import '[email protected]/material/theming';
@include mat-core();
$theme-primary: mat-palette($mat-blue);
$theme-accent: mat-palette($mat-yellow, A400, A200, A600);
$theme-warn: mat-palette($mat-red);
$theme: mat-light-theme($theme-primary, $theme-accent, $theme-warn);
.body-light {
@include angular-material-theme($theme);
}
这可能吗?
我觉得这非常有帮助。谢谢! – Moshe