NPM + Iconfont
npm i @hackernoon/pixel-icon-library
<link rel="stylesheet"
href="…/fonts/iconfont.css" />
<i class="hn hn-github"></i>
HackerNoon · Open Source
24px 网格上的像素图标,578 个矢量 + iconfont。在本地搜一搜、点一下就能复制用法。
同一套像素形,按项目选最省事的一种。
npm i @hackernoon/pixel-icon-library
<link rel="stylesheet"
href="…/fonts/iconfont.css" />
<i class="hn hn-github"></i>
<img src="icons/SVG/regular/heart.svg"
width="24" height="24" alt="" />
.hn { font-size: 24px; color: #00b45a; }
像素图标最适合工具栏、标签、状态点这种小尺寸控件。