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 icons

02Side 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.

Lucide React and Hairline Icons compared across optical grids, active states, motion and install
DetailLucide ReactHairline Icons
Optical gridSingle 24 × 24 grid scaled down to 16 or 20 px (2 px strokes shrink to 1.33 px and anti-alias across pixels).Separate 20 × 20 and 16 × 16 drawings tuned for small UI sizes, switching automatically below 18 px.
Selected / active stateStroke-only by default; filled active states require manual CSS overrides or mixing a second icon set.Every icon ships in Outline and Solid and transitions cleanly in place via active={selected}.
Stateful / live motionStatic SVGs only; state transitions require swapping icons or writing custom CSS/Framer code.89 Live icons (menu→close, switch, typing, upload, battery, volume, delivery) driven by one active or value prop.
Dark mode weightSame stroke thickness on light and dark backgrounds, which makes light-on-dark strokes read heavier.Optical dark-mode line thinning keeps strokes balanced on both light and dark surfaces.
Install & bundleSingle npm package (lucide-react); tree-shakes in modern bundlers.Install individual TypeScript files via shadcn CLI (@hairline/icon-home) or copy raw SVG. Zero runtime package, MIT.
Catalog breadth1,500+ icons including rare industry, medical and hardware symbols — Lucide wins if you need broad niche coverage today.1100 high-frequency product & SaaS icons shipped in curated batches, searchable by Lucide names.

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.

nav-row.tsx
// Before (Lucide React — 24px grid scaled to 16/20px, stroke only)import { House, Inbox, Bell, Settings } from "lucide-react";// After (Hairline Icons — dedicated 16 & 20px grids + Outline/Solid active state)import { HomeIcon } from "@/components/icons/home";import { InboxIcon } from "@/components/icons/inbox";import { BellIcon } from "@/components/icons/bell";import { SettingsIcon } from "@/components/icons/settings";export function NavRow({ active }: { active: boolean }) {  return (    <button className="flex items-center gap-2.5">      <HomeIcon size={20} active={active} />      <span>Home</span>    </button>  );}
Common Lucide React icons mapped to Hairline Icons components and install commands
Lucide nameHairline componentshadcn CLI
house<HomeIcon />@hairline/icon-home
inbox<InboxIcon />@hairline/icon-inbox
bell<BellIcon />@hairline/icon-bell
search<SearchIcon />@hairline/icon-search
settings<SettingsIcon />@hairline/icon-settings
folder<FolderIcon />@hairline/icon-folder
credit-card<CreditCardIcon />@hairline/icon-credit-card
trash-2<TrashIcon />@hairline/icon-trash
send<SendIcon />@hairline/icon-send
lock<LockIcon />@hairline/icon-lock

Install a single icon or the full set

$ npx shadcn@latest add @hairline/icon-home

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.