Lucide — Beautiful & Consistent Icon Toolkit
Lucide is a beautiful and consistent icon toolkit made by the community — a fork of Feather Icons with 1500+ crisp, minimalist SVG icons. First-class React, Vue, Svelte, Solid, Angular, and Web Component libraries.
Installation agent prête
Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.
npx -y tokrepo@latest install 4fa5cff1-3580-11f1-9bc6-00163e2b0d79 --target codexÀ exécuter après confirmation du plan en dry-run.
What it is
Lucide is an open-source icon toolkit with over 1500 crisp, minimalist SVG icons. It is a community-driven fork of Feather Icons with significantly more icons and active maintenance. Lucide provides first-class components for React, Vue, Svelte, Solid, Angular, and Web Components, plus a static SVG sprite option.
Lucide is for frontend developers and designers who need a consistent, tree-shakeable icon set that works across all major web frameworks.
The project is actively maintained with regular releases and a growing user community. Documentation covers common use cases, and the open-source nature means you can inspect the source code, contribute fixes, and adapt the tool to your specific requirements.
How it saves time or tokens
Searching for individual icons from multiple sources leads to inconsistent sizes, stroke widths, and design language. Lucide provides a single, cohesive set where every icon shares the same 24x24 grid, 2px stroke width, and design principles. Tree-shaking ensures only the icons you import are included in your bundle.
How to use
- Install the Lucide package for your framework.
- Import individual icons by name.
- Use them as components with optional size, color, and stroke-width props.
Example
// React
import { Home, User, Settings, Search } from 'lucide-react';
export function NavBar() {
return (
<nav>
<Home size={20} />
<Search size={20} />
<User size={20} />
<Settings size={20} strokeWidth={1.5} />
</nav>
);
}
# Install for your framework
npm install lucide-react # React
npm install lucide-vue-next # Vue 3
npm install @lucide/svelte # Svelte
Related on TokRepo
- AI Tools for Design -- Design tools and UI component libraries
- AI Tools for Coding -- Frontend development tools
Common pitfalls
- Importing the entire lucide-react package instead of individual icons defeats tree-shaking and inflates your bundle size. Always use named imports.
- Lucide icons default to 24x24. Scaling them to very small sizes (below 16px) can make the 2px stroke appear too thick. Reduce strokeWidth proportionally.
- The Lucide Vue package has different import paths for Vue 2 (lucide-vue) and Vue 3 (lucide-vue-next). Using the wrong package causes runtime errors.
Before adopting this tool, evaluate whether it fits your team's existing workflow. Read the official documentation thoroughly, and start with a small proof-of-concept rather than a full migration. Community forums, GitHub issues, and Stack Overflow are valuable resources when you encounter edge cases not covered in the documentation.
Questions fréquentes
Lucide is a fork of Feather Icons with more active development and a larger icon set. Feather Icons has around 280 icons and has not been actively maintained since 2020. Lucide has over 1500 icons with regular additions from the community.
Yes. Each icon is exported as a named export. When you import only the icons you use, bundlers like Webpack, Vite, and Rollup tree-shake the unused icons out of your production bundle.
Yes. Lucide components accept size, color, strokeWidth, and className props. Colors default to currentColor, so they inherit from the parent CSS color property. Size and strokeWidth can be set per-icon.
Lucide provides official packages for React, Vue 2, Vue 3, Svelte, Solid, Angular, Preact, and Web Components. A static SVG sprite is also available for non-framework usage.
Yes. Lucide is licensed under the ISC license, which permits commercial use, modification, and redistribution with minimal restrictions.
Sources citées (3)
- Lucide GitHub— Lucide is a community-driven fork of Feather Icons
- Lucide Website— 1500+ icons with React, Vue, Svelte components
- Lucide License— ISC license for commercial use
En lien sur TokRepo
Fil de discussion
Actifs similaires
Flutter — Google Cross-Platform UI Toolkit for Beautiful Apps
Flutter is Google cross-platform UI toolkit for crafting beautiful, natively compiled applications for mobile, web, desktop, and embedded devices from a single codebase. Powered by the Dart language and the Skia rendering engine (now Impeller).
React Native Elements — Cross-Platform UI Toolkit for React Native
A collection of customizable, production-ready UI components for React Native that provide consistent styling across iOS, Android, and Web.
NvChad — Blazing Fast Neovim Framework with Beautiful UI
Feature-rich Neovim configuration framework that provides solid defaults, a custom UI plugin, and a beautiful theme system while remaining fast and extensible.
NativeBase — Universal Component Library for React Native and Web
An accessible, utility-first component library for building consistent UIs across React Native, Android, iOS, and Web from a single codebase.