Skip to content

How to change a ui5-card background color ? #6266

Answered by ilhan007
BrunoSena97 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @BrunoSena97

You can read more on Styling UI5 Web Components article.

The background of a ui5-card is defined via the --sapTile_Background global variable. You can try changing the --sapTile_Background variable in the scope of the ui5-card.

ui5-card {
--sapTile_Background: red;
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ilhan007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants