How to change ion-card background color

I want to change ion-card background color but i dont know how to change.please help me anyone.
Thanks

Override your theme in : my_project/src/theme/variables.scss
Android

$card-md-background-color: #000;

ios

$card-ios-background-color: #000;

You can find all variables here: https://ionicframework.com/docs/theming/overriding-ionic-variables/

i think this should be global

How Can i setup for a specific page…?

In your .scss file of your page, use .card class like this

.card {
  background-color: #000; // black
}
2 Likes

It works…

Thanks for your help

can i remove the shadow of ion card

Yes you can

.card {
  background-color: #000; // black
  box-shadow: none;
}
1 Like

Thanks bro …it works out…

Thanks for your concern