[RFC]: Support common theme colors for CTB icons in the Icon component #810
Labels
issue: discussion
A general discussion issue
issue: enhancement
Issue suggesting an enhancement to an existing feature
source: icons
relates to icons package
Milestone
Context
CTB icons behave differently than other icons. They maintain a consistent color between themes. We provide some icons intended for custom field developers to use as CTB icons, but if they use them directly with
<Icon>
the color does not remain consistent between themes and therefore seem out of place within the design system.before.mov
This means custom field developers have to do something like this to hard code the values to get the desired behavior.
after.mov
Proposal
The design system could provide a way to access a color dictionary that does not change between themes.
The
Icon
component could then accept aboolean
prop likeisConsistent
orisCtbIcon
and handle whether or not to use the common colors or the theme colors.Reasons
CTB icons use the same colors between themes according to the Figma UI kit. To my knowledge this is not possible with Icon component.
CTB icon color rules:
The text was updated successfully, but these errors were encountered: