Customizing your store's icons
Although these can satisfy your store’s needs, you may want to override and customize default icons according to your store's identity. If so, simply follow the steps below.
Step by step
- In your store-theme code, create a new folder named iconpacks/ within styles/.
- Inside iconpacks/, create the file iconpack.svg.
- Copy the content from VTEX'S default iconpack.svg and paste it in the iconpack.svg file.
This is how your styles/ folder structure should look like after you've accomplished that:
The iconpack.svg file will implement SVG frament identifiers, allowing you to simply change the part of the code that declares the icon's g tag instead of customize itself.
For instance, let's customize the cart icon (hpa-cart) changing only its g content:
Linkyour code and you should see your change through your browse:
Check out each icon's ID by accessing the Icon Pack list.
Styles builderis not up-to-date with this functionality. Make sure your store has it installed at version