@hanzo/logo

中文文档
1.0.26发布于 2026/08/26MITTypeScriptESM + CJS零依赖近 30 天下载 1.2万

Official Hanzo logo package with React components and utilities

原始使用文档
文档目录6 节
  1. Formats
  2. Variants
  3. Usage
  4. Download
  5. License
  6. Animated & interactive

@hanzo/logo

Hanzo — Brand & Logo Assets

Official Hanzo brand marks in every format and size — SVG, PNG, multi-resolution ICO, favicons, app/dock/tray icons, and social cards. Installable via @hanzo/logo, browsable in dist/.

Formats

  • svg/ - Vector formats (preferred)
  • png/ - Raster formats (various sizes)
  • ico/ - Favicon formats

Variants

  • Primary logo
  • Wordmark
  • Icon/Symbol
  • Monochrome (light/dark)

Usage

See brand guidelines for proper usage.

Download

All assets available in this repository.

License

All rights reserved. Usage requires permission.

Animated & interactive

The mark ships a self-contained, pure-CSS animated SVG — a load animation, a hover flourish, and a press squash, with zero JavaScript. Inline it into the DOM (not via <img>) for the hover/press interactions to fire. Honors prefers-reduced-motion.

// React — one-line interactive embed
import { HanzoLogo } from '@hanzo/logo';
<HanzoLogo variant="animated" size={64} />
// Vanilla / any framework
import { getAnimatedSVG, getAnimatedDataUrl } from '@hanzo/logo';
el.innerHTML = getAnimatedSVG();   // interactive (inline in the DOM)
img.src = getAnimatedDataUrl();    // load animation only (fine in <img>)
<!-- Raw SVG over CDN — load animation in <img>; inline the file for hover/press -->
<img src="https://unpkg.com/@hanzo/logo/svg/hanzo-mark-animated.svg" width="64" alt="" />

版本与发布记录

@hanzo/logo 共发布 24 个版本,首次发布于 2025/09/22;过去 12 个月发布了 20 个版本。

版本发布日期距今
1.0.26latest2026/08/262 个月前
1.0.252026/08/262 个月前
1.0.242026/08/252 个月前
1.0.232026/08/252 个月前
1.0.222026/08/252 个月前
1.0.212026/08/252 个月前

关于 @hanzo/logo 的常见问题

@hanzo/logo 是什么?

Official Hanzo logo package with React components and utilities

如何安装 @hanzo/logo?

在项目目录运行 npm install @hanzo/logo,或使用 pnpm add / yarn add / bun add。

@hanzo/logo 支持 TypeScript 吗?

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

@hanzo/logo 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@hanzo/logo 可以商用吗?

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

@hanzo/logo 的下载量有多少?

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

@hanzo/logo 还在维护吗?

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