gpt4 book ai didi

angular - Material 2 paletta 对比色

转载 作者:太空狗 更新时间:2023-10-29 19:36:21 25 4
gpt4 key购买 nike

在 paletta 中,我可以看到对比。如何选择对比色?

作品:

scss
mat-color($button-primary);

不工作

scss 
mat-color($button-primary, contrast(900));

看到底部写着对比。

scss
$mat-red: (
50: #ffebee,
100: #ffcdd2,
200: #ef9a9a,
300: #e57373,
400: #ef5350,
500: #f44336,
600: #e53935,
700: #d32f2f,
800: #c62828,
900: #b71c1c,
A100: #ff8a80,
A200: #ff5252,
A400: #ff1744,
A700: #d50000,
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-87-opacity,
900: $white-87-opacity,
A100: $black-87-opacity,
A200: white,
A400: white,
A700: white,
)
);

如何使用对比度?

最佳答案

关于angular - Material 2 paletta 对比色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43581477/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com