@getflip/swirl-icons

中文文档
0.97.0发布于 2026/09/23SEE LICENSE IN LICENSE.md零依赖构建来源已验证近 30 天下载 1.9万

Swirl Design System Icons package contains the Flip icon SVGs and web fonts.

原始使用文档
文档目录6 节
  1. Installation
  2. Usage
  3. Use as Web Fonts
  4. Use SVG symbols
  5. Use the separate SVG files
  6. Add or update icons

Swirl Icons

This package contains the Swirl icon set in different formats. To use the icons as Web Components or Angular/React components, please use @getflip/swirl-components.

Installation

yarn add @getflip/swirl-icons
# or
npm install @getflip/swirl-icons

Usage

Use as Web Fonts

You can find different (web) font formats in the dist directory. Corresponding .css, .less, .scss and .styl files include the necessary styles to use the icon fonts.

Use SVG symbols

The dist directory includes a swirl-icons.symbol.svg file which defines all icons as SVG symbols. The symbols can be used as follows:

<svg viewBox="0 0 16 16">
  <use xlink:href="#swirl-icons-Add16" />
</svg>

<svg viewBox="0 0 24 24">
  <use xlink:href="#swirl-icons-Add24" />
</svg>

<svg viewBox="0 0 28 28">
  <use xlink:href="#swirl-icons-Add28" />
</svg>

Use the separate SVG files

The icons directory includes all icons as separate files, which can be used via the img tag.

<img src="icons/Add16.svg" alt="" />

Add or update icons

All icon deliverables are generated from the svg files inside packages/swirl-icons/icons. To change, add or delete icons, modify the corresponding svg file.

⚠️ Every icon svg file needs to come in three sizes (16, 24, 28). The files have to be named in PascalCase followed by the size, e.g. AddPhoto16.svg!

  1. Modify the icon files in a new branch
  2. Run yarn generate, select "icons" when prompted
  3. Run yarn build
  4. Run yarn changeset to create a corresponding changelog item
  5. Check, commit and push all changes and create a PR

版本与发布记录

@getflip/swirl-icons 共发布 109 个版本,首次发布于 2022/08/17;过去 12 个月发布了 26 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.97.0latest2026/09/231 个月前
0.96.02026/09/152 个月前
0.95.02026/09/032 个月前
0.94.02026/08/272 个月前
0.93.02026/08/073 个月前
0.92.02026/07/134 个月前

其他发布通道:new-shell → 0.0.0-new-shell-20231130132058,beta → 0.86.0-beta-20260525162942。

关于 @getflip/swirl-icons 的常见问题

@getflip/swirl-icons 是什么?

Swirl Design System Icons package contains the Flip icon SVGs and web fonts.

如何安装 @getflip/swirl-icons?

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

@getflip/swirl-icons 支持 TypeScript 吗?

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

@getflip/swirl-icons 可以商用吗?

@getflip/swirl-icons 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@getflip/swirl-icons 的下载量有多少?

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

@getflip/swirl-icons 还在维护吗?

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