Get a Hugeicon as SVG
get_iconRender a single Hugeicons icon as SVG markup in a chosen style, with control over size, color, stroke width, and an optional absolute save path for exporting an .svg file.
Instructions
Returns one icon as SVG markup in the chosen style. Optionally writes it to an .svg file (use an absolute path), for example to upload into Figma.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Icon name from search_icons, e.g. delivery-truck-01. | |
| size | No | Width and height in px. Default 24. | |
| color | No | Main colour. Default currentColor, which inherits the surrounding text colour. | |
| style | No | stroke-rounded | |
| save_to | No | Absolute path (or ~/…) of an .svg file to write. | |
| overwrite | No | Replace save_to if it already exists. | |
| stroke_width | No | Stroke width for stroke-based parts. Icons ship at 1.5. | |
| secondary_color | No | Colour of the lighter layer in duotone, twotone and bulk styles. Defaults to color. |