Skip to content
项目

关于

640 free React icons in Outline and Solid, drawn for 16 and 20 px so they stay sharp on everyday screens. Every icon fills in when selected. MIT.

网站与应用开发

这些数字如何统计

56 星标3 复刻 +1 24小时

实测星标增长

24小时
+1
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Hairline Icons

Hairline Icons: sharp on your users' screens, not just yours

1200 free React icons in Outline and Solid, drawn for the 16 and 20 px of buttons, menus and sidebars, so they stay sharp on everyday screens, not only on retina ones. Every icon fills in when it's selected. MIT licensed.

Browse and search them, by the Lucide name you already use, at https://hairlineui.com/icons.

Install

Copy them into your project as files you own, with the shadcn CLI:

npx shadcn@latest add @hairline/icons       # all of them
npx shadcn@latest add @hairline/icon-bell   # one

Use

import { HomeIcon } from '@/components/icons/home';
import { BellIcon } from '@/components/icons/bell';

<HomeIcon />                        // 20 px outline
<HomeIcon size={16} />              // the drawing fitted to 16 px
<BellIcon active={selected} />      // fills in when selected, outline to solid
<BellIcon variant="solid" />        // always solid
<BellIcon label="Notifications" />  // an accessible name; without one the icon is hidden from screen readers

Icons draw in currentColor, so they take your text colour in light and dark themes. Every other prop goes to the <svg>. Your bundler only ships the icons you import.

Coming from Lucide

Every Lucide-matched icon carries its Lucide name (in meta.json and in the search on the site), and the line weight sits beside Lucide's, so you can swap one icon at a time. AI coding tools can do the swap for you through the Hairline MCP server: https://hairlineui.com/ui/mcp

Files

  • svg/<name>.svg and svg/<name>-solid.svg: the 20 px drawings
  • svg/16/: the same icons fitted to 16 px
  • meta.json: each icon's name, component, group, the Lucide icon it replaces and its search words

Live icons, which change in place (menu to close, sent to delivered) or show a level (volume, battery), install with the shadcn CLI: https://hairlineui.com/icons#states

Missing an icon?

Open an issue at https://github.com/Hairline-UI/hairline-icons/issues, or search for it on the site: searches that find nothing decide what gets drawn next. New icons arrive in batches.

Licence

MIT: free in commercial products, no credit line needed.

探索相关项目

加载中…