Icon files in any format
The add_icons tool writes icon files into your project in the format it needs, so the assistant does not have to copy code by hand. It uses the same exporters as the command line tool.
Tutorial
Section titled “Tutorial”1. Connect your assistant to the local server (setup). The hosted server cannot write files; it returns code to paste instead.
2. Ask, naming the icons and where they go:
Add the heart, bell and cart icons to
src/iconsas React components.
Add the heart icon to the iOS app as SwiftUI.
Make a GIF of the rocket icon in our brand colour #2747f5 for the newsletter.
3. Done. The assistant reports what it wrote, for example Wrote 3 files to src/icons: HeartGlyph.tsx, BellGlyph.tsx, CartGlyph.tsx. React and Vue come out in TypeScript when your project has a tsconfig.json.
Formats
Section titled “Formats”| For | Formats |
|---|---|
| Web | react, vue, html, svg, json |
| Native apps | swiftui, compose, compose-multiplatform, flutter, react-native, winui, maui, avalonia, qml, rust |
| Games | godot, unity, spritesheet |
| Animation | lottie |
| Images and video | gif, apng, webm, mp4 (video needs ffmpeg) |
| Sound | wav |
Options: style (outline, solid, duotone, glass), colour, background colour and size. Details for each platform are in the docs.