Hairline Icons. Sharp on your users’ screens, not just yours.
1000 free icons in Outline and Solid, drawn for the 16 and 20 px of buttons, menus and sidebars. Every icon fills in when it’s selected. Search by the Lucide name you already use and swap one icon at a time. Open source under MIT, one command to install.
$ npx shadcn@latest add @hairline/icons1000 icons. Search by name, or by the Lucide name you already use.
1000 icons
“Really neat.” “Looks great.” “Saving this!” What people said when the icons went live.
Every icon has a selected state. It fills in when chosen.
Give any icon active and it fills from outline to solid when it’s chosen, then empties again when it isn’t: the open page in a sidebar, the current tab, a button that stays pressed. Want it filled without the motion? variant="solid" draws it solid.
A desktop sidebar
A phone's tab bar
Buttons that stay pressed
Live icons. For the moments an app shows what changed.
Where most icon sets make you swap one icon for another, these change in place: the menu turns into close, a switch flips, a message is delivered, a battery drains. Some play while something is happening, like typing, uploading or generating. One prop each: active for a change, value from 0 to 1 for a level. Tap or drag any of them.
Controls and views
Saving and reacting
Messages
Files and sync
Calls and media
Devices and security
Working
Levels
Progress and time
Readings
Install one, or the whole set:
$ npx shadcn@latest add @hairline/icon-live-switch$ npx shadcn@latest add @hairline/live-iconsimport { LiveSwitchIcon } from "@/components/icons/live-switch";
import { LiveTypingIcon } from "@/components/icons/live-typing";
import { LiveBatteryIcon } from "@/components/icons/live-battery";
<LiveSwitchIcon active={enabled} /> // Off → On
<LiveTypingIcon active={typing} /> // plays while typing
<LiveBatteryIcon value={0.42} /> // a level, 0 to 1Next to Lucide. Same app. Only the icons change.
One inbox, drawn twice: with Lucide, the icons shadcn ships with, and with Hairline. The enlarged pixels show how a regular office monitor draws each one.
The same app with Same app, flipping by itself
- MCMaya ChenQ4 roadmap review, notes from Tuesday9:41
- BBillingYour payout of $2,480.00 is on the way8:15
- LPLeo ParkDesign QA for the onboarding flowTue
- ARAna RuizContract signed, kickoff on MondayMon
Lucide, up closeHairline, up close
Three icons from the app, enlarged so you can see every pixel.
Crisp, up close. What your users actually see.
Most of your users aren't on a retina screen. On theirs, a line that sits on whole pixels stays solid, and one that falls between pixels turns soft and grey. Here is each icon at real size, blown up.
Side by side at real size, 993 of our 1000 icons look sharper than their Lucide twins.
Big, never heavy. Still light at 48 px.
Use them large on landing pages and empty states. The line doesn't thicken as fast as the icon grows, so big icons keep the same calm look.
One home icon, 16 to 48 px
Hairline
Scaled up the usual way
How they're drawn. Eight rules behind every icon.
Drawn for small sizes
Each icon is drawn for 20 px and tuned again for 16, the way fonts are tuned for small text.
A calm weight
Strong enough to read beside text, light enough not to shout over it. In dark mode the line thins a touch, because light on dark looks heavier.
Fills its space
Objects use the whole box, so a small icon reads as the object, not as empty margin around it.
One shape, one detail
One soft outline and at most one small detail inside it. The calm comes from what is left out.
Round inside and out
Corners are rounded generously, so the inside of every bend is round too, never pinched.
One kind of gap
Where one part sits in front of another, the part behind breaks with the same small gap, every time.
Filled only with a reason
A solid part appears only where the real object has one, like today on a calendar.
States move parts
When an icon changes state, only the part that matters moves: a lid tips, a shackle lifts.
The red outline is the space every icon fills. The grey grid is the pixels its lines snap to.
Install. One icon or all of them, as files you own.
One icon
It is added to components/icons in your project, with one small shared helper.
$ npx shadcn@latest add @hairline/icon-homeAll of them
All 1000 icons. Your app only ships the ones it imports.
$ npx shadcn@latest add @hairline/iconsOpen source on GitHub
Every icon as an SVG file, Outline and Solid at 20 and 16 px, for design tools and other frameworks. Beside them the React components and a list of each icon’s Lucide twin and search words. MIT.
Use
import { BellIcon } from "@/components/icons/bell";
<BellIcon /> // 20 px outline
<BellIcon size={16} /> // the 16 px drawing
<BellIcon active={selected} /> // fills in when selected
<BellIcon variant="solid" /> // always solid
<BellIcon label="Alerts" /> // an accessible nameOr ask your coding agent
Connect it to our MCP server once. It finds each icon by what it’s for or by its Lucide name, installs it with the shadcn CLI and changes the imports. Free, no key.
Connect your agentIs it really free?
Yes. Every icon in every style is MIT licensed and open source on GitHub (Hairline-UI/hairline-icons): use them in commercial products, change them, no credit line needed.
I use Lucide. How do I switch?
Search by the Lucide name you know (house finds home). Each icon also copies a one-line swap, and the weights match, so you can switch one icon at a time.
Can my coding agent add them?
Yes. Connect Claude Code, Cursor, Codex or any MCP client to our MCP server once, then ask in plain words, like “swap the Lucide icons in the sidebar for Hairline icons”. It finds each icon by what it’s for or by its Lucide name (old ones like MoreHorizontal too), installs them with the shadcn CLI and changes the imports. Free, no key.
Which sizes can I use?
Any size. They are sharpest at 16 and 20 px, the sizes they are drawn for. Below 18 px you get the 16 px drawing automatically, and above 20 the line stays light as the icon grows.
Does it work in dark mode?
Icons draw in currentColor, so they take your text colour in light and dark themes.
Which frameworks?
React 19, in any app the shadcn CLI supports (Next.js, Vite, React Router, Astro with React). Icons without motion also run on React 18. For anything else, Copy SVG gives a plain SVG file, and the GitHub repo has all of them.
How do selected and live icons work?
Every icon takes active: true fills it from outline to solid, for the current page, tab or a pressed button. Live icons go further and change what they show: some take active (menu to close, a switch flipping, sent to delivered), some play while active is true (typing, uploading, generating), others take value from 0 to 1 (volume, battery, time left). The motion is plain CSS that comes with them, and it stops for people who turn on reduced motion.
What about screen readers?
Icons are decorative by default and hidden from screen readers. Pass label="Notifications" and the icon becomes an image with that name.
An icon I need is missing.
Ask for it in the search above, or open an issue on GitHub. New icons arrive in regular batches, and requests decide what comes next.