@hanzo/品牌
韩佐品牌身份的单一真相来源——设计标志,标志,, 主题、文件主题和 README/og:图像 英雄生成器 ——共享 每一个汉佐,鲁克思,和动物园都一样 所以他们看起来和感觉都一样.
npm install @hanzo/brand
键
import { colors, typography, brand } from '@hanzo/brand';
brand.name; // from brand.json — the single source of truth
brand.docsDomain; // 'docs.hanzo.ai'
汉佐调色板是 纯一色 (黑色+白色,Vercel/Linear风格)-
没有颜色口音. brand.json 有名有名 域 社会主题.
CSS 变量来自 @hanzo/tokens。 。 。 .
styles/variables.css 不是手写的,而是软件包产生的
捆绑,由 scripts/gen-variables.mjs (加上薄相容块)
go 仪表板仍为参考). 要更改一个值,请编辑
@hanzo/tokens src/theme.ts运行 pnpm --filter @hanzo/tokens gen-css,则
pnpm gen 在这里。 跳出表面( O)ci编号 :cd编号 :git 仪表板)卖出这张纸,所以
整个庄园都有一个调色板.
社会卡工具包
一个布局引擎, 任何品牌. 零依赖 SVG——没有浏览器/扫描器. 一样
代码生成一个 repo README 英雄, 一个 og: image, 以及博客/ 公告/ 引用
纸牌。 标记来源于 @hanzo/logo (单一来源).
| 函数 | 纸牌 |
|---|---|
renderHero | 读取英雄/ og 横幅 |
renderPost | 博客文章( 标签、 标题、 作者 ) |
renderAnnouncement | 发射/大声明 |
renderQuote | 拉动引号 |
默认单色; 每个品牌多彩
每个函数默认为 单色 — 白色标记+文本,白色口音
(韩佐与吕克. 一个品牌通过通过自己的,变得色彩鲜艳 Palette数字 :
| 品牌 | 调色板 |
|---|---|
| 汉三 | 单色- 白色块- H, 白色口音 |
| 吕克思 | 单色- 白色三角形, 白色口音 |
| 动物园 | 有色-棱镜标记+ accentColors 棱镜梯度 |
interface Palette {
accent?: string // highlight; default WHITE (monochrome)
accentColors?: string[] // multi-color accent → gradient rule (Zoo prism)
fg?: string; bg?: string // text / canvas (default white / near-black)
markInner?: string // a brand's own mark SVG (from @<org>/logo)
markViewBox?: string
}
把它拉入读取器( 每回转)
npx @hanzo/brand hero \
--title "@hanzo/ai" \
--tagline "The AI app as one declarative component" \
--out .github/hero.svg
<p align="center"><img src=".github/hero.svg" alt="@hanzo/ai" width="100%" /></p>
CLI 从最近处填补默认值 brand.json,所以每个repo得到一个独特的,
{\fn黑体\fs22\bord1\shad0\3ahbe\4ah00\fscx67\fscy66\2chffffff\3ch808080}有一个命令的品牌英雄.
程序( og: image 路由, 任何品牌)
import { renderHero, renderPost } from '@hanzo/brand';
// Hanzo / Lux — monochrome (no palette needed):
renderHero({ title: 'Lux Node', tagline: 'GPU-native multichain consensus',
github: 'github.com/luxfi', docs: 'docs.lux.network' });
// Zoo — colorful: pass the prism mark (from @zooai/logo) + accent colors:
renderPost({ title: 'Proof-of-AI', tag: 'DeSci', author: 'Zoo Labs',
accent: '#00A652',
accentColors: ['#ED1C24','#FCF006','#00A652','#01ACF1','#2E3192'],
markInner: zooPrismSvg, markViewBox: '222 221 580 580' });
// Rasterize to PNG for og:image with resvg-js / satori / sharp / rsvg-convert.
文档主题
@hanzo/brand 与Fumadocs兼容的主题,所以每个产品的docs网站
自动继承品牌 :
import { docsTheme } from '@hanzo/brand'; // CSS variables for fumadocs
出口
. (电话、主题、, brand, (中文(简体) ), renderHero, (中文(简体) ), renderPost, (中文(简体) ), renderAnnouncement, (中文(简体) ),
renderQuote· ./hero • 妇女 ./loader (单位:千美元)loadBrand, (中文(简体) ), getDocsUrl,(......)
./brand.json • 妇女 ./assets/* • 妇女 ./styles/*。标记几何来自
@hanzo/logo (单位:千美元)MARK_PATHS) (中文(简体) ).
许可证
麻省理工学院.