I’ve been frustratingly trying to change a few bits and pieces in a card layout in my app.
The best I’ve managed sofar is to get the background to overwrite everything… ![]()
I’ve seen a few
in here restyling cards, and been trawling the forum to see if I can find some CSS snippets can help me targets what I want.
Possible anyone can point me in the right direction?
Without CSS it looks like this:
I just want to change the text color and background color, sofar I can change the background color, but it also takes out my text, and it does not seem like I’m targeting the text color in the right way (when I eliminate the CSS for the background color there is no color change to the text).
What I have sofar is this:
<pre><span><style>
[data-test="card-item-header"] >div {
color: red !important;
}
[data-test="card-item-title"] >div {
color: red !important;
}
[data-test="card-item-subtitle"] >div {
color: red !important;
}
[data-test="card-item"] >div {
background: #efede0 !important;
}
And it gives me this
Does anyone know where I’m going wrong.


