Looking for a Lucide React alternative? Sharp at 16 & 20 px, solid when selected.
Lucide is a great default icon library, especially when you want one npm package with 1,500+ icons. Where it softens is at the exact sizes real app chrome lives in—16 px buttons and 20 px sidebars—and when an active tab needs to fill solid. Here is an honest side-by-side comparison and how to swap cleanly.
- MIT React & SVG icons
- 1100
- dedicated optical grids
- 16 & 20 px
- live stateful icons
- 89
- runtime npm deps added
- 0
Updated December 1, 2026. Icon counts are read directly from the Hairline Icons registry.
01Live test
Optical size and Outline → Solid in one prop
Click across the rows below and flip between the 16 px and 20 px grids. Every Hairline icon fills in when selected without swapping files.
Click any item to test Outline → Solid selection
Selected: Home · Lucide twin: house
<HomeIcon size={20} active={selected} />Browse all 1100 icons02Side by side
Lucide React vs. Hairline Icons, honestly
Both are MIT-licensed and work cleanly in React and shadcn/ui. Pick the trade-off that matches your app.
03Migration
Swap one icon at a time (or let your agent do it)
Weights match Lucide closely enough that you can migrate your sidebar and primary controls first without redoing the rest of the app.
Install a single icon or the full set
Using Claude Code, Cursor or Codex? Connect our free MCP server and prompt “Swap the Lucide icons in my sidebar for Hairline icons” to automate the migration.
04Craft
Four icon details that separate sharp UI from generic defaults
Why everyday 1× laptop screens and dark themes expose shortcuts immediately.
Avoid
Shrinking a 24 px stroke icon down to 16 px inside compact buttons
Do instead
A 2 px stroke on a 24 px artboard becomes 1.33 px at 16 px, landing on half-pixels on 1× desktop monitors. Use a dedicated 16 px optical drawing whose geometry aligns to the pixel grid.
Avoid
Marking active sidebar items with a faint coloured ring instead of a solid glyph
Do instead
Native OS toolbars and top product apps fill the active icon solid on a neutral grey pill. Passing active={isCurrent} gives immediate visual hierarchy without colour noise.
Avoid
Swapping two unrelated icon components for a toggle or loading state
Do instead
Keep one element in the DOM and move only the meaningful part — a lid tipping, a shackle lifting, or a switch sliding — while respecting prefers-reduced-motion.
Avoid
Migrating an entire repository in a single risky PR
Do instead
Because Hairline Icons matches Lucide’s visual rhythm and aliases Lucide names (including older aliases like MoreHorizontal), you can swap a sidebar or toolbar incrementally—or ask your coding agent over MCP.
05Questions
Before you switch
When should I stay on Lucide React instead of switching?
Stay on Lucide if you need hundreds of specialized niche icons (scientific instruments, medical symbols, obscure hardware) in one npm install and do not need filled active states or dedicated 16 px optical grids. You can also mix both safely while swapping your main navigation and toolbar icons first.
Can I search Hairline Icons using the Lucide names I already memorize?
Yes. The icon browser on /icons and the Hairline MCP server index every icon by its Lucide name and legacy aliases (for example searching house finds home, and MoreHorizontal finds more-horizontal), and each icon drawer offers a one-click Lucide swap import line.
Can Claude Code or Cursor migrate my Lucide imports automatically?
Yes. Connect your coding agent to Hairline’s free no-key MCP server (/ui/mcp) and ask: "Swap the Lucide icons in my sidebar for Hairline icons." It resolves every Lucide name via search_icons, installs the matching files with the shadcn CLI, and updates your imports.
Are Hairline Icons free for commercial SaaS products?
Yes. All icons (Outline, Solid, 16 px, 20 px, Live icons and raw SVGs on GitHub) are MIT-licensed with no attribution requirement and no subscription.
06Keep going
Where to go next
Search all 1100 icons by Lucide name on Hairline Icons, pair them with free animated React components, add tactile living WebGL2 mascots, or explore complete Next.js landing page templates.