Skip to main content
Question

Color Variable Reset When Switching Icon Variants in Component Instances

  • May 23, 2025
  • 1 reply
  • 32 views

Kindstrand_Linus

Hey everyone!

Our team has built a multi-brand design system that supports three different brand themes, each with both light and dark modes.

All our icons are created as unions. This helps preserve the color override when an icon is swapped inside a component. For example: all icons use the “icon” color variable by default, but within a success inline message component, the icon is overridden with the “icon-success” color variable (green), as the icon should always be green in that context. Swapping, say, a checkmark icon with “icon-success” applied for a shield icon retains the correct “icon-success” variable. So far, so good.

However, when we re-theme the inline message component from Brand 1 to Brand 2, the icon switches to a different brand-specific variant from the icon component set. Here’s where things break: in component instances, the color override (“icon-success”) is lost during this brand switch, and the icon falls back to the default “icon” color variable — which in our case is black. This results in applications where everything re-themes correctly except the icons, which suddenly appear in the wrong color.

We understand this is technically an override, and that swapping icon variants may reset such overrides. But the odd part is: this issue only occurs in component instances. In base components or standalone frames, re-theming works as expected and color overrides persist across variants. It's only in instances that the override is stripped out.

I’ve attached a video showing the issue in action. We’d love any guidance, workarounds, or insights into this — but ideally, we’re hoping for a native Figma fix, as this seems to be an inconsistency in how theming is applied to instances vs. base components.

Thanks in advance!

1 reply

y_toku
Figmate
  • Community Support
  • 2490 replies
  • June 5, 2025

Hi there, 

 

Thank you for bringing this issue to our attention, and I apologize for the inconvenience you're experiencing!

After checking our internal system, I found a potentially similar issue that's already been reported to our engineering team (regarding color overrides not being preserved after instance swap).

I've flagged your case internally with a reference to this existing issue. However, if your specific problem turns out to be different, our engineering team would need more details about your particular situation to properly investigate.

Could you please submit a formal bug report with detailed reproduction steps? This would ensure our engineers have all the information they need to address your specific issue: https://help.figma.com/hc/en-us/articles/360041468234-Submit-a-bug-report

 

Thanks for your patience,

Toku

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings