Using editable sprites through vtex.store-icons

Looking at the VTEX documentation, I found vtex.store-icons, which lets us add an iconpacks.svg file to use as sprites throughout the site.

So far so good — the problem is that, thinking about large sites, it’s not at all viable to have to go through code + deployment just to add a single new SVG icon, especially since icons can be changed at any time, including through the site-editor.

I’d like to know if there’s any alternative for this, some way to add the sprite differently — via the site-editor, via the files manager, something along those lines.

If anyone has any implementation idea that would allow broader usage without needing to go through code, even if it’s more complex, it could be useful and viable in some cases. Keep in mind this is a VTEX IO store, and I’d like to use sprites for performance reasons.

2 Likes