Lucide Icons vs Heroicons vs Material Symbols: Bundle Size, DX & SVG Comparison for Developers
Choosing an icon library is one of those decisions that quietly shapes your front-end stack for years. Whether you are starting a new project or migrating away from Font Awesome, the three most popular open-source options in 2026 are Lucide Icons, Heroicons (by Tailwind Labs), and Material Symbols (Google).
This guide breaks down the tradeoffs that actually matter to developers: bundle size and tree-shaking, framework-specific developer experience, SVG customization depth, total icon count, and licensing. Every number below is pulled from the icon data powering our own explorer tools — Lucide Icons Explorer (1,555 icons), Heroicons Explorer (324 icons), and Material Symbols Explorer (3,944+ Material Symbols icons, plus 330 legacy-only Material Icons).
Quick Comparison Table
| Feature | Lucide Icons | Heroicons | Material Symbols |
|---|---|---|---|
| Total icons | 1,555 | 324 | 3,944 (Symbols) + 330 legacy-only |
| Maintained by | Community (fork of Feather Icons) | Tailwind Labs | |
| Style variants | 1 (outline/stroke, fill via CSS) | 4 (Outline 24, Solid 24, Mini 20, Micro 16) | 3 (Outlined, Rounded, Sharp) × variable-font axes |
| Default rendering | SVG (inline components) | SVG (inline components) | Icon font (ligature) or SVG download |
| Stroke/fill control | strokeWidth prop (default 2) |
Fixed per variant (1.5px outline, solid fill) | Variable font: 'FILL' 0–1, 'wght' 100–700, 'GRAD' -50–200, 'opsz' 20–48 |
| React package | lucide-react |
@heroicons/react |
None official (font or SVG) |
| Angular package | lucide-angular |
None official | @angular/material (<mat-icon>) |
| Vue package | lucide-vue-next |
@heroicons/vue |
None official (font or SVG) |
| Tree-shakeable | ✅ Per-icon ESM imports | ✅ Per-icon ESM imports | N/A (font) or manual SVG |
| License | ISC | MIT | Apache 2.0 |
1. Bundle Size & Tree-Shaking
Bundle size is the number-one technical criterion for most teams. Here is how each library performs:
Lucide Icons
Each icon in lucide-react is a standalone ESM export. Import only what you use:
import { Search, Menu, ChevronDown } from 'lucide-react';
A single icon adds roughly ~250 bytes (gzipped) to your bundle. Import 30 icons and you are at around 7–8 KB gzipped — far smaller than loading a full icon font. The same tree-shaking applies to lucide-vue-next, lucide-angular, and lucide-svelte.
Heroicons
@heroicons/react uses the same per-icon ESM pattern, organized by variant sub-path:
import { MagnifyingGlassIcon } from '@heroicons/react/24/outline';
import { MagnifyingGlassIcon } from '@heroicons/react/24/solid';
Individual icon size is comparable to Lucide (~200–300 bytes gzipped). Because the total library is only 324 icons, even the unminified source is smaller, but with tree-shaking that rarely matters.
Material Symbols
Material Symbols are designed as a variable icon font. Load a single stylesheet and render any icon by ligature name:
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<span class="material-symbols-outlined">search</span>
The full Outlined variable font weighs approximately 1.5–2.2 MB (uncompressed WOFF2 is around 400–600 KB). You can subset it to specific icon names via the &icon_names= parameter, which brings it down significantly. However, font-based icons are not tree-shakeable in the traditional JavaScript-bundler sense. If you only need 10 icons, an SVG approach (manual downloads from our explorer or Google Fonts) paired with something like our SVG Optimizer will be much lighter.
Bottom line: If bundle size is your primary concern and you need fewer than 100 icons, Lucide or Heroicons with tree-shaking will keep your JS bundle lean. If you use 200+ icons site-wide, the font approach (Material Symbols) amortizes well.
2. Framework-Specific Developer Experience
React
All three libraries work in React, but the DX differs:
Lucide provides first-class React components with inline props:
import { ArrowRight } from 'lucide-react';
<ArrowRight size={20} strokeWidth={1.5} color="#6366f1" />
Heroicons has a similarly clean React API, plus built-in Tailwind utility class support:
import { ArrowRightIcon } from '@heroicons/react/24/outline';
<ArrowRightIcon className="size-5 text-indigo-500" />
Material Symbols has no official React package. You either use the icon font with a <span> or manually register SVGs. Community wrappers exist, but none are maintained by Google.
Angular
This is where Material Symbols shines. Angular Material's <mat-icon> component is built for it:
<mat-icon fontSet="material-symbols-outlined">arrow_forward</mat-icon>
The MatIconRegistry supports SVG registration, font-set switching, and variable-font axis control — all documented in the Angular Material Icons vs Material Symbols guide we published earlier.
Lucide offers lucide-angular with a dedicated <lucide-icon> component:
<lucide-icon name="arrow-right" [size]="20" [strokeWidth]="1.5"></lucide-icon>
Heroicons has no official Angular package. You would need to inline SVGs manually or use a community wrapper.
Vue
Both Lucide (lucide-vue-next) and Heroicons (@heroicons/vue) provide first-class Vue 3 components with identical import patterns to their React counterparts. Material Symbols, again, relies on the font approach — <span class="material-symbols-outlined">icon_name</span> — which works in any framework but offers no component-level props.
3. SVG Customization & Visual Flexibility
Lucide: Stroke Width Control
Every Lucide icon is a stroked SVG with a default strokeWidth of 2 and a 24×24 viewBox. You can adjust stroke width from ultra-thin (0.5) to bold (3+), and color is controlled by currentColor or the color prop. This makes Lucide excellent for designs that need multiple weight variants without loading separate font files.
Preview the stroke-width slider on any icon in our Lucide Icons Explorer.
Heroicons: Variant-Based Design
Heroicons take a different approach — four pre-drawn variants at distinct optical sizes:
- 24×24 Outline — 1.5px stroke, ideal for primary navigation
- 24×24 Solid — filled, for active states and high-contrast buttons
- 20×20 Mini — compact solid, optimized for form inputs and dropdowns
- 16×16 Micro — high-density solid, perfect for inline badges and chips
You choose the variant at import time rather than adjusting a prop. This means every variant is pixel-perfect at its intended size, but you give up continuous customization.
Browse all four variants in our Heroicons Explorer.
Material Symbols: Variable Font Axes
Material Symbols offers the deepest customization through four variable-font axes:
| Axis | Range | Default | What it controls |
|---|---|---|---|
FILL |
0–1 | 0 | Outlined → Filled transition |
wght |
100–700 | 400 | Stroke weight |
GRAD |
-50 to 200 | 0 | Emphasis without changing layout |
opsz |
20–48 | 24 | Optical size (detail at small sizes) |
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
This means a single font file can render an icon in dozens of weight/fill/grade combinations — something that would require multiple SVG variants in Lucide or Heroicons. Try the axis sliders on any icon in the Material Symbols Explorer.
For projects that need raw SVG rather than font rendering, you can download optimized SVGs from the explorer and pass them through our SVG Optimizer or convert them to JSX components with SVG to JSX.
4. Icon Count & Coverage
| Library | Icons | Growth rate | Coverage gaps |
|---|---|---|---|
| Lucide | 1,555 | ~15–25 new icons per release (community PRs) | Fewer brand/logo icons (ISC license restriction); no filled variants |
| Heroicons | 324 | Slow, curated (Tailwind Labs team) | Smallest set; missing many domain-specific icons (medical, finance, food) |
| Material Symbols | 3,944+ | Google adds icons with Android/Workspace releases | Most comprehensive; legacy names can confuse (330 retired names still indexed) |
If you need a niche icon (say, a specific chart type or a medical symbol), Material Symbols almost certainly has it. If you want a small, curated, design-consistent set for a typical SaaS UI, Heroicons' 324 icons cover the common patterns. Lucide sits in the middle — large enough for most apps, small enough to stay consistent.
For Material Symbols projects migrating from legacy Material Icons, see our Material Icon SVG Migration tool and the companion Angular Material Icons vs Material Symbols guide.
5. License Comparison
| Library | License | Commercial use | Attribution required | Redistribution |
|---|---|---|---|---|
| Lucide | ISC | ✅ Yes | No | Yes, with license |
| Heroicons | MIT | ✅ Yes | No | Yes, with license |
| Material Symbols | Apache 2.0 | ✅ Yes | No (but appreciated) | Yes, with license + NOTICE |
All three are permissive open-source licenses. The practical difference: Apache 2.0 (Material Symbols) includes an explicit patent grant and requires preserving the NOTICE file on redistribution. ISC and MIT are functionally identical — short, permissive, no patent clause.
None of these licenses restrict usage in commercial products, SaaS, mobile apps, or design systems.
6. When to Use Each Library
Choose Lucide Icons when:
- You are building with React (Next.js, Remix), Vue (Nuxt), Svelte (SvelteKit), or Angular and want the same icon library across all frameworks
- You need adjustable stroke width for design flexibility
- Your project uses shadcn/ui, Radix, or other modern component libraries (Lucide is the default)
- You want tree-shakeable, per-icon imports with minimal bundle impact
Choose Heroicons when:
- You are deep in the Tailwind CSS ecosystem and want icons designed for Tailwind utility classes
- You prefer pixel-perfect, pre-drawn variants at 16, 20, and 24px rather than scaling a single SVG
- Your app only needs ~300 icons (most UIs do)
- You value curated quality over breadth
Choose Material Symbols when:
- You are building with Angular Material and want native
<mat-icon>integration - You need the largest icon set (3,900+ icons covering every domain)
- Your design requires variable-font axes (fill, weight, grade, optical size) for brand customization
- You are already using Google Fonts infrastructure and want CDN-hosted icon fonts
SVG Workflow Tips
Regardless of which library you choose, you will eventually need to optimize, convert, or inline SVG icons. Here are tools that complement all three libraries:
- SVG Optimizer — Strip metadata, minify paths, and reduce SVG file size for production
- SVG to JSX Converter — Convert raw SVG markup into React/JSX components with proper attribute transforms (
class→className,stroke-width→strokeWidth) - Material Icon SVG Migration — Migrate Angular apps from font-based
<mat-icon>to inline SVG icons
Final Verdict
There is no universally "best" icon library — only the best fit for your stack and design requirements:
| Priority | Best choice |
|---|---|
| Smallest bundle, modern DX | Lucide Icons |
| Tailwind-native, curated set | Heroicons |
| Largest coverage, Angular Material | Material Symbols |
| Variable-font design flexibility | Material Symbols |
| Multi-framework consistency | Lucide Icons |
Explore all three sets in our interactive icon finders: Lucide Icons · Heroicons · Material Symbols.
