【发布时间】:2017-07-07 18:24:52
【问题描述】:
我想为我的材质主题使用 3 种以上的颜色。
例如,我想在我的 Material 组件中添加 $theme-success: mat-pallete($mat-green) 以具有绿色的成功颜色,例如md-checkbox color="success"。
@import '~@angular/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);
}
这可能吗?
【问题讨论】:
标签: angular sass angular-material