phe*_*lhe 5 material-design angular-material
Here is an example of an angular-material color palette
$bv-brand: (
50: #ffffff,
100: #dde6f3,
200: #b4c9e4,
300: #7fa3d1,
400: #6992c9,
500: #5282c1,
600: #4072b4,
700: #38649d,
800: #305687,
900: #284770,
A100: #ffffff,
A200: #dde6f3,
A400: #6992c9,
A700: #38649d,
contrast: (
50: $black-87-opacity,
100: $black-87-opacity,
200: $black-87-opacity,
300: $black-87-opacity,
400: $black-87-opacity,
500: white,
600: white,
700: white,
800: white,
900: white,
A100: $black-87-opacity,
A200: $black-87-opacity,
A400: $black-87-opacity,
A700: white,
)
);
Run Code Online (Sandbox Code Playgroud)
I know that the values 50-900 are used for different shades of angular-material components, are the A100-700 values used similarly? What are the values with the leading 'A' used for?
'A' 表示“强调色”——A100、A200 和 A300 色调由 Angular Material 中包含的“预建”主题用于强调色板。但这只是他们选择做的事情。对此没有“标准” - 创建自己的主题时,您可以自由使用调色板中的任何色调。唯一真正重要的是您在mat-palette()
调用“默认”、“更亮”和“更暗”选项时指定的色调索引。默认情况下(即未指定时),分别使用键“500”、“100”和“700”。
归档时间: |
|
查看次数: |
2603 次 |
最近记录: |