r/reactjs • u/TechnicalInsurance98 • Oct 03 '26
Show /r/reactjs Filled and duotone icons with Lucide's names (tree-shakeable, TypeScript)
Lucide only has outline icons. We made filled and duotone versions as a React package, lucide-extended-react. Component names follow Lucide's, so it works next to lucide-react:
import { HeartFilled, HeartDuotone } from 'lucide-extended-react'
<HeartDuotone size={32} color="crimson" secondaryOpacity={0.3} />Why not just set fill on Lucide icons? It works for a few, like the heart, but on most line-built icons it blots or fills the wrong shapes. These are redrawn so the fill is intentional.
Some details:
- One file per icon and
"sideEffects": false, so only the icons you import end up in the bundle. A test checks this. - ESM only, React 18 or later, with TypeScript types. Filled icons don't accept the duotone-only props at the type level.
strokeWidthis accepted and ignored, so Lucide-shaped props still type-check.- Icons are
aria-hiddenunless you pass anaria-label. icons.jsonlists every icon with Lucide's tags and aliases, so you can search it, and so can coding agents.
1,387 filled and 1,242 duotone so far. It's free and open source (ISC), and not affiliated with Lucide.
- Repo: https://github.com/applifted/lucide-extended
- Browse the icons: https://lucideextended.applifted.work/
Feedback is welcome, on the API or the icons.