@hackernoon/pixel-icon-library

中文文档
1.1.0发布于 2026/04/14MIT零依赖近 30 天下载 1.1万

Pixel Icon Library is meticulously designed on a 24px grid to give your project the perfectly pixelated vibe. Inspired by (and in use on) HackerNoon.com’s retro design vibe, these icons capture the essence of the internet's good old days. Open source and

原始使用文档
文档目录7 节
  1. What’s in the Pixel Icon Library?
  2. Usage
  3. HTML Image
  4. Inline HTML
  5. CSS
  6. SVG as an object
  7. Using

Github Cover

HackerNoon's Pixel Icon Library

Introducing HackerNoon’s Pixel Icon Library (now available as a standalone site @ PixelIconLibrary.com), an open-source collection of 2300+ Pixelated Icons. Meticulously designed on a 24px grid, ensuring perfect alignment and consistency to enrich your web/app/product/page/life experience. Inspired by HackerNoon’s retro design vibe, these icons capture the essence of the internet's good old days.

What’s in the Pixel Icon Library?

  • 560+ Unique Pixelated Vector Icons.
  • 4 variations per icon to better match your project aesthetic.
  • Light SVG Files.
  • PNG files in 12px, 16 px, 24px, and 48px for both Light/Dark Mode.
  • Multiple Ways to Use - Install via NPM Package, Directly via HTML & CSS, and via a Figma component library.

Usage

HTML Image

Using the <img /> element directly in your HTML file.

<img src="path/to/icon.svg" alt="icon title" />

Inline HTML

You can paste the content of the icon file directly into your HTML code to display it on the page using the <svg> </svg> tag.

<body>
 // Add your SVG code here
</body>

CSS

Instead of using an HTML <img /> element, you can use CSS instead and apply it as a background to any other element.

body {
  background-image: url(path/to/icon.svg);
}

SVG as an object

You can also use the <object> tag to add the SVG to your page

<object data="path/to/icon.svg" width="24" height="24"> </object>

Using

版本与发布记录

@hackernoon/pixel-icon-library 共发布 8 个版本,首次发布于 2023/11/07;过去 12 个月发布了 1 个版本。

版本发布日期距今
1.1.0latest2026/04/147 个月前
1.0.62025/06/041.5 年前
1.0.52025/03/131.7 年前
1.0.42025/01/141.8 年前
1.0.32025/01/141.8 年前
1.0.22024/08/292 年前

关于 @hackernoon/pixel-icon-library 的常见问题

@hackernoon/pixel-icon-library 是什么?

Pixel Icon Library is meticulously designed on a 24px grid to give your project the perfectly pixelated vibe. Inspired by (and in use on) HackerNoon.com’s retro design vibe, these icons capture the essence of the internet's good old days. Open source and

如何安装 @hackernoon/pixel-icon-library?

在项目目录运行 npm install @hackernoon/pixel-icon-library,或使用 pnpm add / yarn add / bun add。

@hackernoon/pixel-icon-library 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/hackernoon__pixel-icon-library 是否存在。

@hackernoon/pixel-icon-library 可以商用吗?

@hackernoon/pixel-icon-library 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@hackernoon/pixel-icon-library 的下载量有多少?

根据 npm 官方下载统计,@hackernoon/pixel-icon-library 在 2026/10/17 – 2026/11/15 这 30 天内被下载 11,218 次,日均约 374 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@hackernoon/pixel-icon-library 还在维护吗?

最新版本 1.1.0 发布于 2026/04/14(7 个月前);至今共发布 8 个版本,其中过去 12 个月发布了 1 个;首次发布于 2023/11/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。