I would like to have a component called “Icon Wrapper” which is able to change the size and color (bright or dark), so I don’t have to create multiple variants for each icon.
The component itself works great until i use the wrapper as a child in other components, in my case the “Screen” Component. At some point it seems to be acting randomly:
@Nate_G Nice, thank you very much for the precise answer .
I also think that variables and modes are the best way to handle it. But if we have gradients instead of simple colors, variables can’t be applied here (currently).
I want to understand how components and the swapping mechanism work here which leads to such a behavior. Or is this a bug in Figma?