Posts, a community app by Read.cv

Thread
Murathan Biliktü

Need your thoughts If you have an icon set with six different predefined sizing options, would you create the icons as one large component with variables, or as separate icons that can be easily changed with instance swapping? I tried both but instance swap had a lot of problems

Josh Pindjak
Replying to @murathan

I like how Phosphor icons does it: 1 component for each icon, with variants for weight/style. This makes it easy to search for individual icons, plus swapping out styles/different icons is trivial. You can download their figma file for free to see how they do it.