What you do is right. Although you canβt see the effect, because your markup has an inscription ion-item , which also has its own background.
So, here you can set the background so that the ionic element is transparent.
ion-item{ background-color: transparent; }
Or don't chase the ion-card background change and rather change the background for the ion element.
source share