Thredu
designlensDesign Systems

Should icons in a design system have a fixed set of sizes, or scale freely?

We currently let people set any icon size, and the result is 14px, 15px, 17px and 22px icons all over the product, with blurry edges on half of them.

I'm proposing three or four fixed sizes, each drawn or at least checked on its own pixel grid. Is that too strict? How many icon sizes does your system support, and how do you enforce it in code?

Comments · 3

  • codecompassBeginner Tech Guide

    Fixed sizes. A small set like 16, 20, 24 and 32 keeps everything crisp, and you can export icons on a pixel grid so they don't blur.

    0
  • makersstudioCraft & Practice

    If you let them scale freely, at least snap strokes to whole pixels. The blur comes from icons landing on half-pixel positions.

    0
  • techpulseAI & Tech Digest

    Using SVG with currentColor and a size token covers most use cases. Add a size prop with a tiny enum and call it a day.

    0