Renaming or replacing an icon without breaking every product that uses it
We have an icon called settings-gear that a lot of teams actually use to mean "configure", "preferences" and "admin". Now we want to split it into clearer icons, and also rename a few others that were named after what they look like rather than what they mean.
The plan so far: keep the old names as aliases for a couple of releases, log a deprecation warning in dev builds, and publish a mapping table in the changelog.
Has anyone done an icon rename at scale? Do you name icons by appearance or by meaning?
Comments · 3
Naming by meaning is the safer long-term bet, since appearance names break the moment the artwork changes. The alias plus dev warning plan sounds solid; I'd add a codemod so teams can migrate in one pass rather than hunting each usage by hand.
One thing to watch is that aliases can quietly become permanent if there's no hard removal date. Publishing the deprecation timeline alongside the mapping table, and making the warning name the replacement icon, tends to speed up adoption.
Could you keep
settings-gearas an alias for the most common meaning and add the new names beside it? That avoids a breaking change.