What Lucide Does
- 1500+ icons — consistent minimalist style
- Customizable — size, color, strokeWidth via props
- Tree-shakeable — only imported icons ship
- Framework packages — React, Vue, Svelte, Solid, Angular, Web Components, React Native, Preact, Ember, Astro
- Icon font — optional CSS/font version
- Figma plugin — drop icons directly into designs
- SVG source — use raw SVG files if you prefer
Architecture
Single source: SVG files on a 24x24 grid. Build pipeline generates framework-specific packages. Each icon is a component that accepts size, color, strokeWidth, and any SVG prop.
Self-Hosting
Client library — ships in your bundle.
Key Features
- 1500+ icons
- Consistent 24x24 design grid
- Framework packages for 10+ frameworks
- Tree-shakeable imports
- Customizable stroke, size, color
- Web-optimized SVGs
- Free forever (ISC)
- Active community PRs
Comparison
| Set | Icons | Style | License | Formats |
|---|---|---|---|---|
| Lucide | 1500+ | Minimalist stroke | ISC | All |
| Heroicons | 300+ | Outline/solid | MIT | React/Vue |
| Phosphor | 1200+ | 6 weights | MIT | All |
| Tabler | 5000+ | Minimalist stroke | MIT | All |
| Feather | 280 | Original | MIT | Svg |
| Radix Icons | 300 | 15x15 | MIT | React |
常见问题 FAQ
Q: Lucide 和 Feather 区别? A: Lucide 是 Feather 的社区 fork(原项目维护停滞)。兼容 Feather 的全部图标,并新增 1200+ 个。
Q: 如何只打包用到的图标?
A: 用 named imports:import { Home } from "lucide-react"。Bundler 自动 tree-shake。
Q: 能自定义颜色?
A: 能。传 color prop 或用 CSS currentColor(默认 stroke="currentColor")。
来源与致谢 Sources
- Docs: https://lucide.dev
- GitHub: https://github.com/lucide-icons/lucide
- License: ISC