Generate beautiful icons and illustrations with AI directly in Figma
English | 中文文档
- 🎨 Sketch to Icon - Draw a rough sketch, let AI turn it into a polished icon
- 🖼️ Style Reference Library - Save your design style references, ensure consistent output
- 🤖 Powered by Claude - Leveraging Claude's vision capabilities for high-quality SVG generation
- 📝 Prompt Templates - Built-in and custom prompt templates for quick generation
- 📚 History Records - Browse and reuse your generation history
- 🔧 Flexible Settings - Custom API endpoint, default output size, and more
- Prepare a Sketch - Select a rough sketch or wireframe in Figma
- Choose Style References - Pick style references from your library to guide the AI
- Describe Your Icon - Enter the theme/description of what you want to generate
- Generate & Insert - AI generates the SVG, preview it and insert directly into your canvas
# Clone the repository
git clone https://github.com/AcringStudio/figma-ai-icon-generator-plugin.git
# Navigate to the project directory
cd figma-ai-icon-generator-plugin
# Install dependencies
pnpm install# Start development mode with hot reload
pnpm dev# Build for production
pnpm build- Open Figma desktop app
- Go to
Plugins→Development→Import plugin from manifest... - Select the
manifest.jsonfile in the project root - The plugin will appear in your development plugins
- Open the plugin in Figma
- Click the settings icon (⚙️) in the top right
- Enter your Claude API Key
- (Optional) Set a custom API Base URL if using a proxy
Edit manifest.json to customize plugin information:
{
"name": "AI Icon Generator",
"id": "your-plugin-id",
"api": "1.0.0",
"main": "dist/code.js",
"ui": "dist/ui.html"
}
⚠️ Important: Replace theidfield with your unique plugin ID before publishing. Get one from the Figma Plugin Console.
src/
├── app/ # UI Layer (React)
│ ├── components/
│ │ ├── App.tsx # Main application
│ │ ├── tabs/ # Tab components
│ │ │ ├── GenerateTab.tsx # Icon generation
│ │ │ ├── LibraryTab.tsx # Style reference library
│ │ │ ├── TemplatesTab.tsx # Prompt templates
│ │ │ └── HistoryTab.tsx # Generation history
│ │ ├── features/ # Feature components
│ │ └── ui/ # shadcn/ui components
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Utilities and API client
│ └── styles/ # Tailwind CSS styles
├── plugin/
│ └── controller.ts # Figma plugin controller
└── typings/
└── types.d.ts # TypeScript definitions
- ⚛️ React 19 - UI framework
- 🎨 Tailwind CSS 4 - Styling
- 🧩 shadcn/ui - UI components
- 📦 TypeScript 5.7 - Type safety
- 🔧 Webpack - Bundling
- 🤖 Claude API - AI generation
- Go to the Library tab
- Select an icon/illustration in Figma that represents your desired style
- Click Add from Selection
- Name and describe your reference
- Go to the Generate tab
- Select a sketch in Figma and click Capture Sketch
- Choose one or more style references
- Enter the icon theme (e.g., "database", "cloud storage")
- Click Generate
- Review the result and click Insert to Canvas
- Go to the Templates tab
- Browse preset templates or create your own
- When generating, select a template to auto-fill the prompt
- How to Use AI to Improve Icon Production Efficiency - The workflow that inspired this plugin
- Figma Plugin API Docs
- Claude API Docs
Contributions are welcome! Please feel free to submit a Pull Request.