| name | unicon |
| description | Help users add icons to their projects using the Unicon icon library. Unicon provides 19,000+ icons from Lucide, Phosphor, Hugeicons, Heroicons, Tabler, Feather, Remix, Simple Icons (brand logos), and Iconoir. Use when adding icons to React, Vue, Svelte, or web projects; using the unicon CLI to search, get, or bundle icons; setting up .uniconrc.json config; generating tree-shakeable icon components; using the Unicon API; or converting between icon formats. |
| license | MIT |
| metadata | {"author":"webrenew","version":"0.2.0","website":"https://unicon.sh","repository":"https://github.com/WebRenew/unicon","openclaw":{"emoji":"🦄","requires":{"bins":["node"]},"install":[{"type":"node","package":"@webrenew/unicon","global":true}]}} |
Unicon
Unicon is a unified icon library providing 19,000+ icons from 9 popular libraries. Unlike traditional npm packages that bundle thousands of icons, Unicon generates only the icons you need.
Quick Start
npm install -g @webrenew/unicon
npx @webrenew/unicon search "dashboard"
Core Commands
| Command | Description |
|---|
unicon search <query> | AI-powered semantic search (supports --pick for interactive selection) |
unicon get <name> | Get single icon to stdout, file, or clipboard (--copy) |
unicon info <name> | Show detailed icon information |
unicon preview <name> | ASCII art preview in terminal |
unicon bundle | Bundle multiple icons (supports --stars for favorites) |
unicon init | Create .uniconrc.json config (--interactive for wizard) |
unicon sync | Regenerate bundles (--watch for auto-sync) |
unicon add <name> | Add bundle to config |
unicon star <name> | Add icon to favorites |
unicon audit | Find unused/missing icons in project |
unicon sources | List available icon libraries |
unicon categories | List icon categories |
unicon cache | Manage local cache |
unicon skill | Install AI assistant skills |
Output Formats
| Format | Extension | Use Case |
|---|
react | .tsx | React/Next.js (auto-detected) |
vue | .vue | Vue 3 SFC (auto-detected) |
svelte | .svelte | Svelte components (auto-detected) |
svg | .svg | Raw SVG markup |
json | .json | Data/programmatic use |
Note: CLI auto-detects your framework from package.json and uses the appropriate format.
Icon Sources
| Source | Icons | Description |
|---|
lucide | 1,900+ | Beautiful & consistent |
phosphor | 1,500+ | 6 weights available |
hugeicons | 1,800+ | Modern outlined icons |
heroicons | 292 | Tailwind Labs |
tabler | 4,600+ | Pixel-perfect stroke |
feather | 287 | Simple and clean |
remix | 2,800+ | Multiple categories |
simple-icons | 3,300+ | Brand logos |
iconoir | 1,600+ | Modern outlined icons |
Common Workflows
Add Icons to a React Project
unicon init --interactive
unicon search "navigation arrows" --pick
unicon add nav --query "arrow chevron menu"
unicon sync
Get a Single Icon Quickly
unicon get home
unicon get home --copy
unicon get settings --format react -o ./Settings.tsx
unicon get home --format vue -o ./Home.vue
Interactive Search with Selection
unicon search "dashboard" --pick
Bundle by Category
unicon bundle --category Dashboards -o ./src/icons
unicon bundle --query "social media" --format svg -o ./public/icons
unicon bundle --stars -o ./src/icons/favorites
unicon bundle --query "ui" --single-file -o ./icons.tsx
Favorites System
unicon star home
unicon star settings
unicon star user
unicon bundle --stars -o ./src/icons/favorites
unicon favorites
Watch Mode for Development
unicon sync --watch
Audit Project Usage
unicon audit
Preview Icons in Terminal
unicon preview home
unicon preview star --width 24
Tree-Shaking Benefits
Unlike npm install lucide-react which downloads thousands of icons:
- Generates only the icons you need as individual files
- No external dependencies to ship
- True tree-shaking with one component per file
- Import only what you use:
import { Home } from "./icons"
Web Interface
Browse and copy icons at: https://unicon.sh
- Visual search with AI
- One-click copy (SVG, React, Vue, Svelte)
- Filter by library and category
- Bundle builder for multiple icons
References
AI Assistant Integration
Install Unicon skills for AI coding assistants:
unicon skill --list
unicon skill --ide claude
unicon skill --ide cursor
unicon skill --ide windsurf
unicon skill --all
Supported AI Assistants
| IDE | Directory |
|---|
| Claude Code | .claude/skills/unicon/SKILL.md |
| Cursor | .cursor/rules/unicon.mdc |
| Windsurf | .windsurf/rules/unicon.md |
| Agent | .agent/rules/unicon.md |
| Antigravity | .antigravity/rules/unicon.md |
| OpenCode | .opencode/rules/unicon.md |
| Codex | .codex/unicon.md |
| Aider | .aider/rules/unicon.md |
Once installed, ask your AI assistant: "Add a home icon to my project"
Cache
Icons are cached locally at ~/.unicon/cache for 24 hours:
unicon cache --stats
unicon cache --clear