角材质卡阴影颜色

Tot*_*Tot 2 angular-material angular

有什么方法可以改变卡下较暗的阴影的颜色?

如果有任何解决方案,请告诉我或任何其他解决方法,不胜感激!

在此处输入图片说明

Mar*_*hal 5

Adding the following to your CSS will change the box-shadow for the mat-card

.mat-card:not([class*=mat-elevation-z]) {
    box-shadow: 0 2px 1px -1px rgba(0,0,0,1), 
                0 1px 1px 0 rgba(0,0,0,1), 
                0 1px 3px 0 rgba(0,0,0,1);
}
Run Code Online (Sandbox Code Playgroud)

If you are using an elevation, of course this CSS will need to be modified a bit.

Stackblitz

https://stackblitz.com/edit/angular-yxb2ow?embed=1&file=app/card-overview-example.css