lucide
Beautiful & consistent icon toolkit made by the community. Open-source project and a fork of Feather Icons.
Top Related Projects
Simply beautiful open-source icons
A set of over 5800 free MIT-licensed high-quality SVG icons for you to use in your web projects.
A scalable set of icons handcrafted with <3 by GitHub
Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere 🌎
The iconic SVG, font, and CSS toolkit
Material Design icons by Google (Material Symbols)
Quick Overview
Lucide is an open-source icon library, a community-run fork of Feather Icons. It provides a collection of beautifully crafted, customizable SVG icons that can be easily integrated into web and mobile applications. Lucide aims to expand and improve upon the original Feather Icons set while maintaining simplicity and consistency.
Pros
- Large and growing collection of high-quality, consistent SVG icons
- Easy to use and customize, with support for various frameworks and platforms
- Active community-driven development and maintenance
- MIT licensed, allowing for free use in both personal and commercial projects
Cons
- May lack some specific icons needed for niche applications
- Customization options might be limited compared to more complex icon libraries
- Potential for inconsistency as the library grows and more contributors add icons
- Dependency on community contributions for expansion and maintenance
Code Examples
- Using Lucide with React:
import { Camera } from 'lucide-react';
function App() {
return (
<div>
<Camera size={48} color="red" strokeWidth={2} />
</div>
);
}
- Using Lucide with Vue:
<template>
<Camera :size="48" color="blue" :stroke-width="2" />
</template>
<script>
import { Camera } from 'lucide-vue-next';
export default {
components: { Camera }
}
</script>
- Using Lucide with vanilla JavaScript:
import { createIcons, Camera } from 'lucide';
// Create specific icons
createIcons({
icons: {
Camera
}
});
Getting Started
To use Lucide in your project, follow these steps:
- Install the package:
npm install lucide-react # For React
# or
npm install lucide-vue-next # For Vue 3
# or
npm install lucide # For vanilla JS
- Import and use the icons in your code:
import { Camera, Heart, Sun } from 'lucide-react';
function App() {
return (
<div>
<Camera />
<Heart color="red" />
<Sun size={32} />
</div>
);
}
For more detailed instructions and options, refer to the official Lucide documentation.
Competitor Comparisons
Simply beautiful open-source icons
Pros of Feather
- Original and well-established icon set with a clean, minimalist design
- Smaller file size and fewer icons, which can be beneficial for projects requiring a lightweight solution
- Longer history and potentially more widespread adoption in existing projects
Cons of Feather
- Less frequent updates and slower development pace
- Fewer icons available compared to Lucide, limiting options for specific use cases
- No built-in support for custom icon creation or modification
Code Comparison
Feather:
import { feather } from 'feather-icons'
feather.icons.x.toSvg()
Lucide:
import { X } from 'lucide-react'
<X />
Summary
Feather is the original project that inspired Lucide. While Feather offers a clean, established icon set with a smaller footprint, Lucide provides more frequent updates, a larger icon collection, and better customization options. Lucide also offers more framework-specific implementations, making it easier to integrate into various projects. The choice between the two depends on specific project requirements, desired icon variety, and update frequency needs.
A set of over 5800 free MIT-licensed high-quality SVG icons for you to use in your web projects.
Pros of Tabler Icons
- Larger icon set with over 3,100 icons compared to Lucide's ~1,000
- Includes both stroke and solid icon variants
- Offers a wider range of icon categories and styles
Cons of Tabler Icons
- Less frequent updates and contributions compared to Lucide
- Larger file size due to the extensive icon set
- May have more inconsistencies in design due to the larger collection
Code Comparison
Tabler Icons usage:
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="7" r="4" />
<path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
</svg>
Lucide usage:
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
<circle cx="12" cy="7" r="4"></circle>
</svg>
Both libraries offer similar usage patterns, with Tabler Icons including an additional class for icon identification.
A scalable set of icons handcrafted with <3 by GitHub
Pros of Octicons
- Officially maintained by GitHub, ensuring consistency with GitHub's design language
- Includes specific icons for GitHub-related actions and concepts
- Offers multiple file formats (SVG, PNG, AI) for versatility
Cons of Octicons
- Smaller icon set compared to Lucide (fewer options)
- Less frequent updates and additions to the icon library
- More GitHub-centric, which may limit usefulness in non-GitHub projects
Code Comparison
Octicons usage:
<svg class="octicon octicon-mark-github" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true">
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
</svg>
Lucide usage:
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
</svg>
Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere 🌎
Pros of Ionicons
- Larger icon set with over 1,300 icons compared to Lucide's ~1,000
- Designed specifically for use with Ionic Framework, offering seamless integration
- Includes both iOS and Material Design style icons for consistent cross-platform appearance
Cons of Ionicons
- Larger file size due to the extensive icon set, potentially impacting load times
- Less frequent updates compared to Lucide's active development cycle
- More complex implementation for non-Ionic projects
Code Comparison
Ionicons usage:
<ion-icon name="heart"></ion-icon>
Lucide usage:
<i data-lucide="heart"></i>
<script src="https://unpkg.com/lucide@latest"></script>
<script>lucide.createIcons();</script>
Both libraries offer simple implementation, but Ionicons is more straightforward for Ionic Framework users, while Lucide requires a small script to initialize icons.
Overall, Ionicons is better suited for Ionic Framework projects and those requiring a larger icon set, while Lucide offers a lighter-weight solution with more frequent updates and easier customization for general web development.
The iconic SVG, font, and CSS toolkit
Pros of Font-Awesome
- Larger icon set with over 7,000 icons
- Includes both free and premium options
- Well-established with extensive documentation and community support
Cons of Font-Awesome
- Larger file size due to the extensive icon set
- Some features and icons are locked behind a paid subscription
- More complex implementation compared to simpler icon libraries
Code Comparison
Font-Awesome (using SVG with JavaScript):
<script src="https://kit.fontawesome.com/your-kit-code.js" crossorigin="anonymous"></script>
<i class="fas fa-user"></i>
Lucide:
<script src="https://unpkg.com/lucide@latest"></script>
<i data-lucide="user"></i>
<script>lucide.createIcons();</script>
Both libraries offer easy integration, but Font-Awesome requires a kit code, while Lucide uses a simpler approach with data attributes.
Font-Awesome provides a more extensive ecosystem with various implementation options, including CSS and JavaScript methods. Lucide, on the other hand, focuses on simplicity and lightweight implementation, making it easier to get started quickly.
The choice between the two depends on project requirements, such as the need for a vast icon library versus a lighter, more straightforward solution.
Material Design icons by Google (Material Symbols)
Pros of Material Design Icons
- Extensive icon set with over 3,000 icons
- Official Google design system, ensuring consistency with Android and other Google products
- Multiple formats available (SVG, PNG, font)
Cons of Material Design Icons
- Larger file size due to the extensive collection
- Less frequent updates compared to Lucide
- More complex implementation for custom styling
Code Comparison
Material Design Icons:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<i class="material-icons">face</i>
Lucide:
<script src="https://unpkg.com/lucide@latest"></script>
<i data-lucide="face"></i>
<script>lucide.createIcons();</script>
Key Differences
- Icon Style: Material Design Icons follow Google's design language, while Lucide offers a more minimalist and customizable approach.
- File Size: Lucide is lighter, making it more suitable for projects prioritizing performance.
- Customization: Lucide provides easier customization options, allowing developers to modify icons more freely.
- Integration: Material Design Icons integrate seamlessly with Google products, while Lucide offers more flexibility for various project types.
- Community: Material Design Icons have a larger user base, while Lucide has a growing community focused on simplicity and adaptability.
Both icon sets have their strengths, and the choice between them depends on project requirements, design preferences, and performance considerations.
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
Icons · Guide · Packages · License · Showcase
Lucide
Lucide is an open-source icon library that provides 1000+ vector (svg) files for displaying icons and symbols in digital and non-digital projects. The library aims to make it easier for designers and developers to incorporate icons into their projects by providing several official packages to make it easier to use these icons in your project.
Packages
Logo | Package | Version | Downloads | Links |
---|---|---|---|---|
lucide | Docs · Source | |||
lucide-react | Docs · Source | |||
lucide-vue-next | Docs · Source | |||
lucide-svelte | Docs · Source | |||
lucide-solid | Docs · Source | |||
lucide-preact | Docs · Source | |||
lucide-react-native | Docs · Source | |||
lucide-angular | Docs · Source | |||
@lucide/astro | Docs · Source | |||
lucide-static | Docs · Source |
Figma
The lucide figma plugin.
Visit Figma community page to install the plugin.
Contributing
For more info on how to contribute please see the contribution guidelines.
Caught a mistake or want to contribute to the documentation? Edit this page on Github
Community
Join the community on our Discord server!
License
Lucide is totally free for commercial use and personal use, this software is licensed under the ISC License.
Credits
Thank you to all the people who contributed to Lucide!
Sponsors
Awesome backers ðº
Top Related Projects
Simply beautiful open-source icons
A set of over 5800 free MIT-licensed high-quality SVG icons for you to use in your web projects.
A scalable set of icons handcrafted with <3 by GitHub
Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere 🌎
The iconic SVG, font, and CSS toolkit
Material Design icons by Google (Material Symbols)
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot