Я использую пользовательскую цветовую палитру.
определили основную и акцентную палитры с их оттенком по умолчанию, более темным, более светлым, как показано ниже:
$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
, которые мы использовали как часть начальной настройки темы.
2. Как использовать любые другие оттенки из палитры для оттенков primary
или accent
.