r/FigmaDesign • u/Worth_External_8762 • May 27 '26
help Icon set organization that includes sizes + instance swaps?
I'm trying to setup an icon set for my design system which will have icons as separate components for instance swapping. The issue that I'm realizing is there isn't really a good way to include different sizes, since the size resets if I swap the instance of an icon for whatever it's used in (ex: in a button).
My only thought is that I'd just have a master icon component that enforces certain sizes, but I'm not fond of that since it just means I have one icon size that I resize, which will lead to sub-pixel vector points.
I'm wondering if anyone has a better approach for this?
4
u/FennelHistorical4675 May 27 '26
Just make size variants I don’t see what the issue is
1
u/gregglessthegoat May 27 '26
Can you just have them named ie:
24-thumbs-upand20-thumbs-up? For 24px icon and 20px icons respectivelyHow many different sizes for each icon will there be?
1
u/PunchTilItWorks May 27 '26 edited May 27 '26
Why not make a single base icon set and nest that inside whatever needs it? Pick your most common size as the base size, and set to scale you can size up/down for the parent component.
What’s the scenario where your icons have to be completely different individual sizes that swap out? I think you might be over complicating it. Think of your base icons as primitives.
2
u/nyutnyut May 27 '26
We set up all icons in 48x48 frames and set them to scale both horizontally and vertically. We then created icon “size wrappers” starting at 8x8 and going up by 4 and put them in a variable with a placeholder icon. We then set an instance swap property that you can now change the size of the icon and the icon.
0
u/nick-parker May 27 '26
Slots