Angular 如何更改角度材质中的调色板?

Angular 如何更改角度材质中的调色板?,angular,themes,angular-material,angular-cli,Angular,Themes,Angular Material,Angular Cli,在使用angular4 cli构建的angular4项目中,我有以下scss自定义主题,可以很好地工作: @import '~@angular/material/theming'; // Plus imports for other components in your app. // Include the common styles for Angular Material. We include this here so that you only // have to load a s

在使用angular4 cli构建的angular4项目中,我有以下scss自定义主题,可以很好地工作:

@import '~@angular/material/theming';
// Plus imports for other components in your app.

// Include the common styles for Angular Material. We include this here so that you only
// have to load a single css file for Angular Material in your app.
// Be sure that you only ever include this mixin once!
@include mat-core();

// Define the palettes for your theme using the Material Design palettes available in palette.scss
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
// hue.
$mf-app_primary: mat-palette($mat-indigo);
$mf-app-accent:  mat-palette($mat-pink, A200, A100, A400);

// The warn palette is optional (defaults to red).
$mf-app-warn:    mat-palette($mat-red);

// Create the theme object (a Sass map containing all of the palettes).
$mf-app-theme: mat-light-theme($mf-app_primary, $mf-app-accent, $mf-app-warn);

// Include theme styles for core and each component used in your app.
// Alternatively, you can import and @include the theme mixins for each component
// that you are using.
@include angular-material-theme($mf-app-theme);
它直接从教程中复制


我不明白如何更改此文件中的颜色。我想导入我自己的调色板。我必须在材质中更改调色板文件吗?我需要什么格式/语法?cli构建中的palete.scss在哪里?

例如,将$mat indigo更改为$mat blue;)例如,请参阅调色板表单材质颜色更改$mat蓝色的$mat靛蓝;)请参阅调色板窗体材质颜色