@haiilo/catalyst-icons

中文文档
2.36.0发布于 2026/11/09MITTypeScriptCommonJS零依赖构建来源已验证近 30 天下载 7040

Icon set for Catalyst Design System

原始使用文档
文档目录8 节
  1. Getting started
  2. Add new icons via web
  3. Contributing
  4. Package management
  5. Build
  6. Publishing
  7. Code Contributors
  8. License

Haiilo SVG Icons

Build Release Deploy

This project contains all icons for the Catalyst design system custom SVG icon set.

Getting started

Install @haiilo/catalyst-icons in your Node.js powered apps with the npm package:

npm install @haiilo/catalyst-icons

Add new icons via web

  1. Go to Code > src and upload your new icon to the src directory. This can be done via the menu on the top right or simply by dragging your icon into the web browser.
  2. Stick to conventional commits for your commit message, e.g. feat: add new RTE icons.
  3. Navigate to Actions > Release and trigger a manual CI release by clicking the Run workflow button (Branch: main / Release level: patch).

Contributing

If you want to add a new icon to this repository, please make sure that your SVG icon conforms with the overall structure of the other SVG icons:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
  <path d="{{ICON_PATH}}"/>
</svg>

Package management

This project is using npm as a package manager. This is especially important if you want to add new dependencies to a project and fail to provide an updated package-lock.json. This will cause the CI build to fail. If dependencies in the package lock do not match those in package.json, npm will exit with an error in the CI build, instead of updating the package lock.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist directory. SVG sprites and style definitions for different preprocessors will automatically be generated in dist/style and dist/svg respectively. Also, standalone HTML previews will become available in the dist directory.

Publishing

The preferred way to publish a new release is via the corresponding GitHub Actions CI workflow. Navigate to Actions > Release and trigger a manual CI release by clicking the Run workflow button (Branch: main / Release level: patch).

The library can also be published locally by running npm publish. To simplyfy the manual release process, you can use the following npm commands:

  • npm run release:major releases a new major version
  • npm run release:minor releases a new minor version
  • npm run release:patch releases a new patch version

Code Contributors

This project exists thanks to all the people who contribute.

License

The license is available within the main repository in the LICENSE file.

版本与发布记录

@haiilo/catalyst-icons 共发布 179 个版本,首次发布于 2022/03/07;过去 12 个月发布了 41 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.36.0latest2026/11/097 天前
2.35.02026/11/0610 天前
2.34.82026/10/2225 天前
2.34.72026/10/051 个月前
2.34.62026/08/192 个月前
2.34.52026/08/192 个月前

关于 @haiilo/catalyst-icons 的常见问题

@haiilo/catalyst-icons 是什么?

Icon set for Catalyst Design System

如何安装 @haiilo/catalyst-icons?

在项目目录运行 npm install @haiilo/catalyst-icons,或使用 pnpm add / yarn add / bun add。

@haiilo/catalyst-icons 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@haiilo/catalyst-icons 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@haiilo/catalyst-icons 可以商用吗?

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

@haiilo/catalyst-icons 的下载量有多少?

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

@haiilo/catalyst-icons 还在维护吗?

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