【发布时间】:2019-11-19 01:54:16
【问题描述】:
在定义调色板时,色调实际上会影响什么?
hpsapf-primary: mat-palette($mat-light-blue, 400, 50, 900);
- 第一个值 (400) 是默认色调。
- 第二个值 (50) 是较浅的色调。
- 第三个值 (900) 是较暗的色调。
在组件上设置 color="primary" 时使用默认色调
// The button gets the color #29B6F6 as can be looked up here: https://material.io/design/color/#tools-for-picking-colors
<button mat-button color="primary">Primary</button>
那么 Angular 材质如何使用较浅 (50) 和较深 (900) 的色调,或者我该如何使用它们?它们有什么用?
【问题讨论】:
-
欢迎来到 SO!你能澄清你的问题吗?
标签: angular-material