0
1)I创建该文件的src/theming.scssangular2材料主题化不起作用
@import '[email protected]/material/theming';
@include mat-core();
$primary: mat-palette($mat-light-blue);
$accent: mat-palette($mat-amber , 700, A100, A400);
$theme: mat-light-theme($primary, $accent)
2)I将此添加到.angular-cli.json
"prefix": "app",
"styles": [
"theming.scss",
"styles.css"
],
3)哦天......我themimg不showing..its AA令人讨厌的灰色......
<button mat-button color="primary" (click)="add()">Add Point!</button>
逻辑将决定了色彩要淡蓝色...