Last updated
Last updated
We have created a separate file, sprite-custom.svg
, located in the public/assets/svg
path. Only the usable SVG icons are included in this file.
Avoid using hex codes (e.g., #EADDFF
) directly for stroke and fill colors. Follow these steps to customize your new icon properly.
Download the new two-tone SVG icon which you need to use, open it & copy SVG code
Include the above code in the sprite-custom.svg
file. between the SVG tag
Customize as per other icons already added
Replace SVG with symbol tag
Remove width & height attributes & add id name
If symbol has fill="none"
then remove it & add stroke="currentcolor" stroke-linecap="round"
Remove stroke="#1D1B20" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"
all attributes from where the path contains these attributes & with this add fill='none'
also
For secondary fill color change, fill="#EADDFF"
remove it & add data-two-tone="true" style="stroke-width:0" opacity="0.4"
Remove defs whole code then the final output like the below code example:
Now you can compare copy svg with customize svg
After adding a new svg then use this svg id in your files
The icon has been successfully added! 👍