Code examples for Iconify Utils
Documentation for each function in Iconify Utils includes code samples.
However, how to figure out which function to look at? Below are code samples for common use cases.
Export icon set
Examples to export an entire icon set:
Export single SVG
Examples of generating a single SVG file:
Export CSS
Examples to export icons as CSS:
Advanced import / export
Iconify Utils is a basic package that parses IconifyJSON and IconifyIcon data. It is not meant for more complex stuff.
For more complex stuff, such as importing icons, validating icon code, changing palette, cleaning up, exporting to various formats, see Iconify Tools package.