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