For the Atoms, I have these icons that are just colored black so I have no other versions in a different color. There’s one component and the different icons are the variants (search icon, menu icon, etc.)
And then I made a button and used the icon component (see the dashed circle on the screenshot below). And since the button has a dark background I colored the icon into white (on the button itself not affecting the master icon component).
Why does this happen? I’m considering of creating another component with the light icons but it kinda defeats the purpose of having one component and just multiple variants.
Hello Yury, thank you for replying. That sucks I would have to restructure everything again. That would take me weeks. I just followed other designers they also combined their icons into one variant. However for mine the small, regular, and large icons are separate components. So:
Small Icon (1 Component) > Different Icons (Variants)
Regular Icon (1 Component) > Different Icons (Variants)
Large Icon (1 Component) > Different Icons (Variants)
I did rogie’s trick and kind of solved my issue above but I now have another issue to my other post in which you replied.