Skip to main content
gautams4173
Known Participant
Feb 13, 2023 11:48 AM UTC
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
Feb 13, 2023 12:12 PM UTC

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

gautams4173
Known Participant
Feb 13, 2023 12:15 PM UTC

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
Feb 13, 2023 12:22 PM UTC

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
Feb 13, 2023 4:08 PM UTC

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