【发布时间】:2019-04-04 23:20:01
【问题描述】:
我正在使用自定义材质调色板。 使用其默认阴影、深色阴影、浅色阴影定义了主要和重音调色板,如下所示:
$my-app-primary: mat-palette($md-lightprimary ,500,900,A700 );
$my-app-accent: mat-palette($md-lightaccent, 500,900,A100);
$my-app-warn: mat-palette($md-warn);
/*finalize by creating a $my-app-theme variable that combines our color definitions with the mat-light-theme function,*/
$my-app-theme: mat-light-theme($my-app-primary, $my-app-accent, $my-app-warn);
/* and finally include the result of calling the angular-material-theme function with our $my-app-theme.*/
@include angular-material-theme($my-app-theme);
问题:
1. 如果我在代码中使用color="primary" 或color="accent" 而不是设置default 色度,问题是,如何使用lighter 和darker-shades我们已将其用作主题初始设置的一部分。
2. 如何将调色板中的任何其他色调用于primary 或accent 色调。
【问题讨论】:
标签: angular angular-material2 color-palette