@fungi.computer/sigils

中文文档
0.3.2发布于 2026/11/14MITTypeScriptES Module零依赖近 30 天下载 8662

Fungi's approved illustrated symbols and visual studies

原始使用文档
文档目录9 节
  1. Install or set up
  2. Quick start
  3. Core concepts
  4. API reference
  5. Examples and checks
  6. Limits and errors
  7. Contribute and license
  8. Theme colours
  9. Packed consumer readiness

Sigils (@fungi.computer/sigils)

Sigils provides decorative SVG marks for Fungi interfaces. Its gallery shows the marks alongside reference artwork and visual studies, so consumers can check which drawings are approved, live, or still concepts.

Install or set up

npm install @fungi.computer/sigils react

Sigils needs React 18.3 or 19.2 as a peer dependency.

Quick start

This illustrative example renders one decorative mark. Give its enclosing control its own accessible name:

import { Sigil } from "@fungi.computer/sigils";

<button aria-label="List files">
  <Sigil name="list" size={24} />
</button>;

Sigil renders an aria-hidden SVG in a 64 by 64 view box. The caller controls its size and provides the accessible text on the surrounding control.

Core concepts

The public component accepts a SigilName and an optional pixel size. isSigilName checks whether a string is one of the package's available names; it does not check whether using that mark is approved for a particular action or permission.

The workbench separates the library, families, use cases, source references, and curve review. Its Permission Use page is a visual study, not the shipped permission screen. An SVG's presence in the package does not grant a capability or imply that an interface uses it.

API reference

See the public component and type exports. Sigil and isSigilName are the runtime exports; SigilName is the type export.

@fungi.computer/sigils/favicon exports fungiFaviconSvg, the Fungi sigil as a standalone SVG document, and fungiFaviconHref, the same SVG as a data URI for <link rel="icon" type="image/svg+xml">. The build renders <Sigil name="fungi" /> once to produce both, so Fungi web surfaces take their tab icon from this one owner instead of keeping their own SVG.

Examples and checks

Start the local workbench from the repository root:

pnpm --filter @fungi.computer/sigils workbench

Open the local address printed by the workbench command to compare the grouped marks, approved examples, concepts, and reference images. Check source-image credits and status labels in the workbench before reusing artwork.

The package declares build, lint, and typecheck commands:

pnpm --filter @fungi.computer/sigils build
pnpm --filter @fungi.computer/sigils lint
pnpm --filter @fungi.computer/sigils typecheck

Limits and errors

Sigils supplies artwork only. The parent control owns its accessible name, interaction, and permission meaning. The workbench includes candidate and reference art that is not approved for production use. Check each mark's status in the gallery instead of treating every available SVG as approved.

Contribute and license

The Reference pages pair source sheets with each mark and identify whether its vector is live, approved, or still a concept. Keep those source images and labels with the workbench. Build it from the repository root with pnpm --filter @fungi.computer/sigils build. Sigils is MIT licensed; see LICENSE.

Theme colours

Sigils use Stipe's illustration roles through inline SVG styles, with literal fallbacks when Stipe is absent. Themes may retint --stipe-art-* roles. Page figures, emphasis rays, generation art and completion swooshes use --stipe-sketch-ink on light themes and retain art cream on dark themes. Figure eyes use --color-base-100, so they read as cut-outs. List and Prints paper and cream details on coloured shapes retain --stipe-art-cream in both appearances. There are no separate --sigil-figure* hooks.

The workbench loads Stipe through Tailwind. Its theme toggle switches latte and mocha; the gallery follows it by default, with optional explicit canvas themes. The Themes story compares latte, field-guide, consulting, mocha and field-guide-night at 64, 28, 20 and 16 pixels, including the Tourtois disabled filter. Palette defaults and theme ownership live in Stipe, not in this package.

Packed consumer readiness

Run pnpm run build, pnpm run pack and pnpm run stranger in this package. The maintained stranger proof installs only package tarballs into a fresh npm consumer, checks the exact shipped files, runs the public runtime fixture and compiles every JavaScript entrypoint with strict NodeNext and no library-check skip. This qualification does not publish npm releases or push a repository split.

版本与发布记录

@fungi.computer/sigils 共发布 9 个版本,首次发布于 2026/10/15;过去 12 个月发布了 9 个版本。

版本发布日期距今
0.3.2latest2026/11/141 天前
0.3.12026/11/105 天前
0.3.02026/11/0213 天前
0.2.22026/11/0114 天前
0.2.12026/11/0115 天前
0.2.02026/10/2323 天前

关于 @fungi.computer/sigils 的常见问题

@fungi.computer/sigils 是什么?

Fungi's approved illustrated symbols and visual studies

如何安装 @fungi.computer/sigils?

在项目目录运行 npm install @fungi.computer/sigils,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^18.3.1 || ^19.2.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@fungi.computer/sigils 支持 TypeScript 吗?

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

@fungi.computer/sigils 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@fungi.computer/sigils 可以商用吗?

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

@fungi.computer/sigils 的下载量有多少?

根据 npm 官方下载统计,@fungi.computer/sigils 在 2026/10/16 – 2026/11/14 这 30 天内被下载 8,662 次,日均约 289 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fungi.computer/sigils 还在维护吗?

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