Skip to main content
gautams4173
Known Participant
February 13, 2023
Question

Card Tile Color

Hi,

Can we change the color of the card template tile from accent to some color of our choice ? 

6 replies

stefanhelzle0001
Brainy
February 13, 2023

As you can read in the documentation, it supports an hex-coded color code like #123456.

gautams4173
Known Participant
February 13, 2023

Hi, I cant see any attribute of cardChoiceField / CardTemplateTile component that takes in hex code as a value. Please tell me if Im wrong

stefanhelzle0001
Brainy
February 13, 2023

Got it. I assumed you talk about cardLayouts. Sorry, it seems like chard choices do not support a background color as of now. The icon color can be any color your like.

abhayd3663
Brainy
February 13, 2023

You may try to use a!richTextItem() for primaryText / secondaryText within a!cardTemplateTile(), if that works you can have styled text.