Files
personal/content/workArticles.ts
T
virtheart d5a1228aac feat: 暗色主题 + /2026 详情页 + 逐页标题 — 对齐原站剩余缺口
- 暗色主题 1:1:ThemeModeProvider 原逻辑(localStorage 'theme'
  light/dark/system、system 跟随 prefers-color-scheme、<html> class 切换),
  CSS tokens 按原站 .dark 块翻值(--label/--background-deep/--code-*);
  shellMedia 重构为 useSyncExternalStore 单例 store(Header 与 Canvas 共享)
- WebGL 主题分支:BackgroundFX 暗色渐变(#2c4bd5/#00000d/#00344C +
  outputMix .95/edgeIntensity -.82,原 sj 配置)、DotOverlay #0F1111、
  LoadingCurtain #191b1b、玻璃模型暗色参数组(shininess 100/fresnel .72/
  brightness .6/uDark=1 Hard-Light)与暗色 tint(hello #64c3ff、
  footer #8e9dc4/#64c3ff)
- /2026 路由:rewrite 补 2026(此前 404),workArticles 增加 /2026 占位文章
  (原站内容被服务端口令保密无法读取,已注释说明);解锁屏→刷新→服务端
  放行全链路 CDP 验证通过
- 逐页 <title>:app/work/[slug]/layout.tsx generateMetadata 映射作品名
  (reunimos→Reunimos™),受保护 /2026 未解锁时 SSR 'Protected'(原站行为),
  根标题改回原站 'HAOQI©2026'
2026-09-02 14:31:28 +08:00

291 lines
101 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* Work detail article content — extracted 1:1 from the original site's
* rendered detail pages (haoqi.design/{reunimos,inspire_mono,wasm_design_utils,
* adrive,shore_icon,teambition}). Code blocks carry the original's prism
* token HTML (span.token with inline color styles — the original renders
* prism via refractor with a light/dark CSS-var theme) and are rendered
* through the original CodeBlock chrome: language label + COPY button +
* per-line number gutter. `iframe` is the live-site preview embed when the
* original has one (reunimos).
*/
export type InlineSeg =
| { t: "text"; v: string }
| { t: "link"; v: string; href: string }
| { t: "code"; v: string }
| { t: "strong"; v: string }
| { t: "em"; v: string };
export type ArticleBlock =
| { type: "p"; segs: InlineSeg[] }
| { type: "h2" | "h3" | "h4"; text: string; id?: string }
| { type: "code"; language: string; label: string; html: string; text: string }
| { type: "list"; ordered: boolean; items: InlineSeg[][] }
| { type: "quote"; segs: InlineSeg[] }
| { type: "img"; src: string }
| { type: "hr" };
export type WorkArticle = {
title: string;
date: string;
year: string;
iframe: { src: string; title: string } | null;
blocks: ArticleBlock[];
};
export const WORK_ARTICLES: Record<string, WorkArticle> = {
"/reunimos": {
title: "Reunimos™",
date: "May 31, 2026",
year: "2024-2026",
iframe: { src: "https://www.reunimos.cc", title: "Reunimos preview" },
blocks: [
{ type: "p", segs: [{ t: "text", v: "Reunimos™ 是我从 2024 年起构建的个人 AI 灵感收藏夹。一个地方,接住你在浏览、阅读、随手截图时掉落的参考:图片、链接、文档、片段想法,先收进来,不必先想好该放进哪个文件夹。" }] },
{ type: "p", segs: [{ t: "text", v: "它面向个人:不做协作,也不催促你「整理得更漂亮」。我更希望它像一块私人的视觉记忆板,少花时间管理,多留空间给真正会回访的灵感。" }] },
{ type: "p", segs: [{ t: "text", v: "保存之后,AI 会理解内容、补全上下文;界面以视觉优先的方式呈现,让你按颜色、意象,或某一刻模糊的印象去找回来,而不只是靠标题或路径回忆。" }] },
{ type: "p", segs: [{ t: "text", v: "动效与界面质感由 Rive、Motion 与 Shader 共同驱动,整体视觉偏向圆润平滑,贴合年轻用户,长时间使用也依然耐看。2025 年还在 Chrome 下接入了 Liquid Glass 特效,让玻璃质感与这套界面语言更统一。" }] },
{ type: "p", segs: [{ t: "text", v: "我对 UI 要求很高,现成工具链往往达不到我想要的效果,于是我为自己搭了一整套 UI 工具库,后来打包开源为 " }, { t: "link", v: "@wenhaoqi/wasm_design_utils", href: "https://www.npmjs.com/package/@wenhaoqi/wasm_design_utils" }, { t: "text", v: "。图片主色与调色板提取用 " }, { t: "code", v: "extractColors" }, { t: "text", v: "(" }, { t: "code", v: "@wenhaoqi/wasm_design_utils/extract-colors" }, { t: "text", v: ");sRGB ↔ OKLCH 转换用 " }, { t: "code", v: "rgb2oklch" }, { t: "text", v: "、" }, { t: "code", v: "oklch2rgb_abs" }, { t: "text", v: "、" }, { t: "code", v: "oklch2rgb_rel" }, { t: "text", v: "(" }, { t: "code", v: "@wenhaoqi/wasm_design_utils/color" }, { t: "text", v: ");squircle / capsule 平滑圆角路径用 " }, { t: "code", v: "getSquircle" }, { t: "text", v: "、" }, { t: "code", v: "getCapsule" }, { t: "text", v: "、" }, { t: "code", v: "getPath" }, { t: "text", v: "(" }, { t: "code", v: "@wenhaoqi/wasm_design_utils/squircle" }, { t: "text", v: ")。Reunimos 里三者都会用到:取色支撑视觉检索与卡片氛围,OKLCH 负责色彩换算,squircle 路径撑起圆润的界面形态,都是我在做设计、打磨产品时沉淀下来的,后来发布开源,也希望帮到有需要的人。" }] },
{ type: "p", segs: [{ t: "text", v: "欢迎去 " }, { t: "link", v: "reunimos.cc", href: "https://www.reunimos.cc" }, { t: "text", v: " 注册体验,保存一张图、一条链接,感受一下这套视觉优先的收藏方式。" }] },
],
},
"/inspire_mono": {
title: "Inspire Mono",
date: "May 07, 2026",
year: "2025",
iframe: null,
blocks: [
{ type: "p", segs: [{ t: "text", v: "InspireMono 是我在 2025 年一次基于 vibe coding 的实验项目,灵感来自 " }, { t: "link", v: "RSMS 的字体工作流", href: "https://www.figma.com/community/file/1115382696459820988" }, { t: "text", v: ":通过 Figma 绘制 glyph,并结合脚本将字形导出为字体。我让 agent 分析了其中关键的字体构建流程,最终定位到基于 " }, { t: "link", v: "opentype.js", href: "https://opentype.js.org" }, { t: "text", v: " 的字体生成能力——这也是目前 JavaScript 生态里最成熟的字体读写与构建库之一。\n最初,我只是想做一个能在 Figma 中绘制并管理图标字体的小工具,类似过去做的 " }, { t: "link", v: "VectorSymbols", href: "https://www.figma.com/community/plugin/1255914175202017737/vectorsymbols" }, { t: "text", v: ";但随着开发推进,对字体构建本身的兴趣逐渐超过了图标管理,于是项目开始演变成一个完整的字体构建插件。它支持字体元信息、OpenType Ligatures、数字与符号变体(Stylistic Sets)、替换字形等特性,并逐步扩展出图标字体、字体管理工具以及最终的 InspireMono 字体本身。字体外观则参考并融合了部分 " }, { t: "link", v: "TikTok Sans", href: "https://www.tiktok.com/font" }, { t: "text", v: " 的设计特征。近期准备开源字体的 Figma 源文件。" }] },
{ type: "p", segs: [{ t: "text", v: "下载 InspireMono.zip" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/Cover.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/1.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/2.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/3.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/4.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/5.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/6.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/7.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/8.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/9.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/10.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/11.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/12.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/13.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/mono/14.png" },
],
},
"/wasm_design_utils": {
title: "Wasm design utils",
date: "May 31, 2026",
year: "2025",
iframe: null,
blocks: [
{ type: "p", segs: [{ t: "code", v: "@wenhaoqi/wasm_design_utils" }, { t: "text", v: " 是一组浏览器端设计小工具:sRGB ↔ OKLCH 色彩转换、图片取色、以及 squircle / capsule 的 SVG 路径生成。npm:" }, { t: "link", v: "@wenhaoqi/wasm_design_utils", href: "https://www.npmjs.com/package/@wenhaoqi/wasm_design_utils" }, { t: "text", v: "。" }] },
{ type: "p", segs: [{ t: "text", v: "它最初是在做 " }, { t: "link", v: "Reunimos™", href: "/reunimos" }, { t: "text", v: " 时沉淀下来的,后来打包开源。" }] },
{ type: "h2", text: "安装", id: "安装" },
{
type: "code",
language: "bash",
label: "Bash",
html: "<div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">1</span><span><span class=\"token plain\" style=\"color:var(--label-1)\">npm install @wenhaoqi/wasm_design_utils</span></span></div>",
text: "1npm install @wenhaoqi/wasm_design_utils",
},
{ type: "p", segs: [{ t: "text", v: "包是 ESM,WASM 默认内联在包里,一般" }, { t: "strong", v: "不用" }, { t: "text", v: "自己托管 " }, { t: "code", v: ".wasm" }, { t: "text", v: " 文件。" }] },
{ type: "p", segs: [{ t: "text", v: "所有 API 都是 " }, { t: "strong", v: "async" }, { t: "text", v: ",调用时要 " }, { t: "code", v: "await" }, { t: "text", v: "。" }] },
{ type: "h2", text: "三个模块,按需引入", id: "三个模块按需引入" },
{ type: "list", ordered: false, items: [[{ t: "code", v: "@wenhaoqi/wasm_design_utils/color" }, { t: "text", v: " — RGB ↔ OKLCH" }], [{ t: "code", v: "@wenhaoqi/wasm_design_utils/extract-colors" }, { t: "text", v: " — 从图片提取主色" }], [{ t: "code", v: "@wenhaoqi/wasm_design_utils/squircle" }, { t: "text", v: " — 生成平滑圆角 SVG path" }]] },
{ type: "p", segs: [{ t: "text", v: "也可以从根路径 " }, { t: "code", v: "@wenhaoqi/wasm_design_utils" }, { t: "text", v: " 一次性导入全部 API。" }] },
{ type: "h2", text: "颜色", id: "颜色" },
{
type: "code",
language: "js",
label: "JavaScript",
html: "<div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">1</span><span><span class=\"token keyword module\" style=\"color:var(--code-keyword)\">import</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token imports punctuation\" style=\"color:var(--code-operator)\">{</span><span class=\"token imports\" style=\"color:var(--label-1)\"> rgb2oklch</span><span class=\"token imports punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token imports\" style=\"color:var(--label-1)\"> oklch2rgb_abs</span><span class=\"token imports punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token imports\" style=\"color:var(--label-1)\"> oklch2rgb_rel </span><span class=\"token imports punctuation\" style=\"color:var(--code-operator)\">}</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token keyword module\" style=\"color:var(--code-keyword)\">from</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token string\" style=\"color:var(--code-string)\">\"@wenhaoqi/wasm_design_utils/color\"</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">2</span><span><span class=\"token plain\" style=\"display:inline-block;color:var(--label-1)\">\n</span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">3</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token comment\" style=\"color:var(--code-comment)\">// sRGB 0–255 → OKLCH</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">4</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token keyword\" style=\"color:var(--code-keyword)\">const</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">{</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token constant\" style=\"color:var(--code-number)\">L</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token constant\" style=\"color:var(--code-number)\">C</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> h </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">}</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token operator\" style=\"color:var(--code-operator)\">=</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token keyword control-flow\" style=\"color:var(--code-keyword)\">await</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token function\" style=\"color:var(--code-function)\">rgb2oklch</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">(</span><span class=\"token number\" style=\"color:var(--code-number)\">128</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">100</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">231</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">)</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">5</span><span><span class=\"token plain\" style=\"display:inline-block;color:var(--label-1)\">\n</span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">6</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token comment\" style=\"color:var(--code-comment)\">// OKLCH → sRGB,直接指定色度</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">7</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token keyword\" style=\"color:var(--code-keyword)\">const</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">{</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token constant\" style=\"color:var(--code-number)\">R</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token constant\" style=\"color:var(--code-number)\">G</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token constant\" style=\"color:var(--code-number)\">B</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">}</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token operator\" style=\"color:var(--code-operator)\">=</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token keyword control-flow\" style=\"color:var(--code-keyword)\">await</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token function\" style=\"color:var(--code-function)\">oklch2rgb_abs</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">(</span><span class=\"token constant\" style=\"color:var(--code-number)\">L</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token constant\" style=\"color:var(--code-number)\">C</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> h</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">)</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">8</span><span><span class=\"token plain\" style=\"display:inline-block;color:var(--label-1)\">\n</span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">9</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token comment\" style=\"color:var(--code-comment)\">// 只定明暗和色相,彩度用 0–1 滑杆(更直觉)</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">10</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token keyword\" style=\"color:var(--code-keyword)\">const</span><span class=\"token plain\" style=\"color:var(--label-1)\"> tint </span><span class=\"token operator\" style=\"color:var(--code-operator)\">=</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token keyword control-flow\" style=\"color:var(--code-keyword)\">await</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token function\" style=\"color:var(--code-function)\">oklch2rgb_rel</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">(</span><span class=\"token constant\" style=\"color:var(--code-number)\">L</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> h</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">0.5</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">)</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">;</span></span></div>",
text: "1import { rgb2oklch, oklch2rgb_abs, oklch2rgb_rel } from \"@wenhaoqi/wasm_design_utils/color\";2\n3// sRGB 0–255 → OKLCH4const { L, C, h } = await rgb2oklch(128, 100, 231);5\n6// OKLCH → sRGB,直接指定色度7const { R, G, B } = await oklch2rgb_abs(L, C, h);8\n9// 只定明暗和色相,彩度用 0–1 滑杆(更直觉)10const tint = await oklch2rgb_rel(L, h, 0.5);",
},
{ type: "p", segs: [{ t: "code", v: "init()" }, { t: "text", v: " 可选。不传的话,第一次调用转换函数时会自动加载 WASM;想在页面启动时预热,可以提前 " }, { t: "code", v: "await init()" }, { t: "text", v: "。" }] },
{ type: "h2", text: "取色", id: "取色" },
{
type: "code",
language: "js",
label: "JavaScript",
html: "<div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">1</span><span><span class=\"token keyword module\" style=\"color:var(--code-keyword)\">import</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token imports\" style=\"color:var(--label-1)\">extractColors</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token keyword module\" style=\"color:var(--code-keyword)\">from</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token string\" style=\"color:var(--code-string)\">\"@wenhaoqi/wasm_design_utils/extract-colors\"</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">2</span><span><span class=\"token plain\" style=\"display:inline-block;color:var(--label-1)\">\n</span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">3</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token comment\" style=\"color:var(--code-comment)\">// 从 &lt;img&gt; 提取调色板,第一个色块通常是主色</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">4</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token keyword\" style=\"color:var(--code-keyword)\">const</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">[</span><span class=\"token plain\" style=\"color:var(--label-1)\">dominant</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token spread operator\" style=\"color:var(--code-operator)\">...</span><span class=\"token plain\" style=\"color:var(--label-1)\">rest</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">]</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token operator\" style=\"color:var(--code-operator)\">=</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token keyword control-flow\" style=\"color:var(--code-keyword)\">await</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token function\" style=\"color:var(--code-function)\">extractColors</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">(</span><span class=\"token plain\" style=\"color:var(--label-1)\">img</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">)</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">5</span><span><span class=\"token plain\" style=\"display:inline-block;color:var(--label-1)\">\n</span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">6</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token comment\" style=\"color:var(--code-comment)\">// 常用参数</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">7</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token keyword\" style=\"color:var(--code-keyword)\">const</span><span class=\"token plain\" style=\"color:var(--label-1)\"> palette </span><span class=\"token operator\" style=\"color:var(--code-operator)\">=</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token keyword control-flow\" style=\"color:var(--code-keyword)\">await</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token function\" style=\"color:var(--code-function)\">extractColors</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">(</span><span class=\"token plain\" style=\"color:var(--label-1)\">img</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">{</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">8</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token literal-property property\" style=\"color:var(--code-tag)\">pixels</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">64000</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token comment\" style=\"color:var(--code-comment)\">// 抽样分辨率,默认 64000</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">9</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token literal-property property\" style=\"color:var(--code-tag)\">distance</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">0.22</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token comment\" style=\"color:var(--code-comment)\">// 聚类距离</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">10</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token literal-property property\" style=\"color:var(--code-tag)\">crossOrigin</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token string\" style=\"color:var(--code-string)\">\"anonymous\"</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token comment\" style=\"color:var(--code-comment)\">// 跨域图片 URL 时需要</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">11</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">}</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">)</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">;</span></span></div>",
text: "1import extractColors from \"@wenhaoqi/wasm_design_utils/extract-colors\";2\n3// 从 <img> 提取调色板,第一个色块通常是主色4const [dominant, ...rest] = await extractColors(img);5\n6// 常用参数7const palette = await extractColors(img, {8 pixels: 64000, // 抽样分辨率,默认 640009 distance: 0.22, // 聚类距离10 crossOrigin: \"anonymous\", // 跨域图片 URL 时需要11});",
},
{ type: "p", segs: [{ t: "code", v: "input" }, { t: "text", v: " 支持:图片 URL 字符串、" }, { t: "code", v: "<img>" }, { t: "text", v: " / " }, { t: "code", v: "Image" }, { t: "text", v: "、" }, { t: "code", v: "ImageData" }, { t: "text", v: "。" }] },
{ type: "h2", text: "平滑圆角", id: "平滑圆角" },
{ type: "p", segs: [{ t: "text", v: "普通 " }, { t: "code", v: "border-radius" }, { t: "text", v: " 在大圆角时转角容易发尖;squircle 用 SVG path 过渡更顺。" }] },
{
type: "code",
language: "js",
label: "JavaScript",
html: "<div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">1</span><span><span class=\"token keyword module\" style=\"color:var(--code-keyword)\">import</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token imports punctuation\" style=\"color:var(--code-operator)\">{</span><span class=\"token imports\" style=\"color:var(--label-1)\"> getPath </span><span class=\"token imports punctuation\" style=\"color:var(--code-operator)\">}</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token keyword module\" style=\"color:var(--code-keyword)\">from</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token string\" style=\"color:var(--code-string)\">\"@wenhaoqi/wasm_design_utils/squircle\"</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">2</span><span><span class=\"token plain\" style=\"display:inline-block;color:var(--label-1)\">\n</span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">3</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token keyword\" style=\"color:var(--code-keyword)\">const</span><span class=\"token plain\" style=\"color:var(--label-1)\"> d </span><span class=\"token operator\" style=\"color:var(--code-operator)\">=</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token keyword control-flow\" style=\"color:var(--code-keyword)\">await</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token function\" style=\"color:var(--code-function)\">getPath</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">(</span><span class=\"token string\" style=\"color:var(--code-string)\">\"squircle\"</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">200</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">120</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">16</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">)</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">4</span><span><span class=\"token plain\" style=\"color:var(--label-1)\">pathEl</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">.</span><span class=\"token method function property-access\" style=\"color:var(--code-function)\">setAttribute</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">(</span><span class=\"token string\" style=\"color:var(--code-string)\">\"d\"</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"> d</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">)</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">5</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token comment\" style=\"color:var(--code-comment)\">// viewBox 对应:0 0 200 120</span></span></div>",
text: "1import { getPath } from \"@wenhaoqi/wasm_design_utils/squircle\";2\n3const d = await getPath(\"squircle\", 200, 120, 16);4pathEl.setAttribute(\"d\", d);5// viewBox 对应:0 0 200 120",
},
{ type: "p", segs: [{ t: "code", v: "shape" }, { t: "text", v: " 也可以是 " }, { t: "code", v: "\"capsule\"" }, { t: "text", v: "(胶囊形标签、Chip 等)。" }] },
{ type: "h2", text: "本站怎么用", id: "本站怎么用" },
{ type: "p", segs: [{ t: "text", v: "文章页图片放大时,会用取色 + OKLCH 生成跟图片主色接近的蒙层背景:" }] },
{ type: "list", ordered: true, items: [[{ t: "code", v: "extractColors" }, { t: "text", v: " 取主色" }], [{ t: "code", v: "rgb2oklch" }, { t: "text", v: " 转成 OKLCH" }], [{ t: "text", v: "按明暗主题调整亮度,再 " }, { t: "code", v: "oklch2rgb_abs" }, { t: "text", v: " 转回 RGB" }]] },
{ type: "p", segs: [{ t: "text", v: "这样全屏查看图片时,背景不会突兀地跳成纯黑。" }] },
{ type: "h2", text: "Next.js 注意", id: "nextjs-注意" },
{ type: "p", segs: [{ t: "text", v: "需要在" }, { t: "strong", v: "客户端" }, { t: "text", v: "使用(依赖 " }, { t: "code", v: "Image" }, { t: "text", v: " 和 WebAssembly)。放在 " }, { t: "code", v: "\"use client\"" }, { t: "text", v: " 组件里,或用动态 " }, { t: "code", v: "import()" }, { t: "text", v: " 加载即可。" }] },
],
},
"/adrive": {
title: "aDrive 阿里云盘",
date: "Jan 07, 2022",
year: "",
iframe: null,
blocks: [
{ type: "p", segs: [{ t: "text", v: "从零搭建阿里云盘设计系统,并参与其长期维护,支撑全端设计语言统一与设计组件复用。参与首页、各版本导航结构与启动器框架,以及影音播放器等业务设计;同时开发或协作开发设计系统文档工具 ADS 客户端与 Figma design token 导出工具。" }] },
{ type: "p", segs: [{ t: "text", v: "Teambition 网盘是阿里云盘的前身。前期为了快速搭建并验证方向,我们选择在 Teambition 主产品内「生长」:底层天然具备协作能力,无论面向企业还是个人,都比从零起步更省力。设计侧同样如此,直接沿用成熟的 " }, { t: "link", v: "Clarity design", href: "https://design.teambition.com" }, { t: "text", v: ",也无需再搭一套全新的设计系统。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad1.jpg" },
{ type: "p", segs: [{ t: "text", v: "首页、传输列表、相册分享菜单" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad2.jpg" },
{ type: "p", segs: [{ t: "text", v: "文件预览、文件预览讨论圈点、视频弹幕圈点(概念)" }] },
{ type: "p", segs: [{ t: "text", v: "在获得外界与集团内部认可之后,我们决定把它做成独立的客户端,并争取到更充裕的研发资源;资源到位之后,也就有条件从零建立一套新的设计系统。" }] },
{ type: "h2", text: "ADS 架构", id: "ads-架构" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad3.png" },
{ type: "p", segs: [{ t: "text", v: "ADS 有两个驱动核心:一是设计目标,二是业务目标。我们刻意不把二者混为一谈——业务诉求本身并不会自动指向更好的用户体验。持续迭代、不断补全的设计目标,才是拉升体验的主轴;业务目标则负责在收益与体验之间拿捏分寸,避免过度设计。" }] },
{ type: "h2", text: "ADS 设计原则", id: "ads-设计原则" },
{ type: "p", segs: [{ t: "text", v: "好的工作流能够显著提高团队效率;相较某些偏形而上的设计方法,它对组织而言往往更落地、也更容易推广。设计系统本质上就是设计、产品、工程有机融合的一条工作流,Figma 等工具协作可以帮助完成约 60% 的工作,其余部分要靠管理机制与各相关方达成共识来补齐。" }] },
{ type: "h3", text: "规范简洁", id: "规范简洁" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad4.png" },
{ type: "list", ordered: false, items: [[{ t: "text", v: "场景命名" }], [{ t: "text", v: "使用缩写" }], [{ t: "text", v: "层级清晰" }]] },
{ type: "h3", text: "高度复用", id: "高度复用" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad5.png" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad6.png" },
{ type: "list", ordered: false, items: [[{ t: "text", v: "组件复用" }], [{ t: "text", v: "跨端一致性" }], [{ t: "text", v: "统一 Token 管理" }]] },
{ type: "h3", text: "可持续性", id: "可持续性" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad7.png" },
{ type: "list", ordered: false, items: [[{ t: "text", v: "反馈敏捷" }], [{ t: "text", v: "受控逃逸 / Escape hatch(允许在特殊情况下跨出设计系统的既定限制,避免机制僵化;并非鼓励随意破窗,而是为真实业务留出可控出口)" }]] },
{ type: "h2", text: "ADS 周边工具链", id: "ads-周边工具链" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad8.png" },
{ type: "p", segs: [{ t: "text", v: "ADS 客户端基于 Gatsby 与 Electron 开发,用于承载设计系统文档、组件演示与设计资源整合。对仅有 Figma 查看权限的同学,它还能把多条设计稿链接拼成一张「设计地图」。在团队语境里,大家默认:凡与云盘设计相关的内容,都会在 ADS 客户端里找到对应落点。" }] },
{ type: "p", segs: [{ t: "text", v: "Fridge 也被纳入阿里云盘项目,用于把更完整的色板与 icon 实时同步给使用者。" }] },
{ type: "p", segs: [{ t: "text", v: "Figma Time Line 是我们借助 Figma 的 Auto Layout「搭」出来的排期看板,全组的工作日程都通过它来对齐。" }] },
{ type: "hr" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad9.jpg" },
{ type: "p", segs: [{ t: "text", v: "阿里云盘在上线初期收获好评之后,为了在行业内做出差异化、参与竞争,团队探索了以「场景」为核心的个人云:用户不仅能把数字资产放进云盘,还能按不同使用场景在云盘内完成消费,而不必反复跳转到其他应用,从而形成「存—用」一体的个人数字资产闭环。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad10.jpg" },
{ type: "p", segs: [{ t: "text", v: "滑动导航与启动器" }] },
{ type: "p", segs: [{ t: "text", v: "滑动导航是一次有趣的探索:我们希望单一导航栏仍能完整呈现「个人云」的能力版图,又不能牺牲可用性。这一方案在设计冲刺阶段我曾持保留态度,但在原型与可用性测试之后我改变了看法;我接手了与滑动导航相关的全部设计工作,并最终推动上线——日后有机会可以再单独展开当时的推演与取舍。" }] },
{ type: "hr" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad11.jpg" },
{ type: "p", segs: [{ t: "text", v: "多功能菜单、分享菜单" }] },
{ type: "p", segs: [{ t: "text", v: "多功能菜单既贴合当代产品的操作习惯,又比层层模态与二级页面更轻、更快;相较传统的 Action sheet,它在布局与信息密度上也更自由。这也是许多优质 iOS 与 Android 应用正在采用的设计趋势之一。" }] },
{ type: "hr" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad12.jpg" },
{ type: "p", segs: [{ t: "text", v: "音频播放器、视频播放器、放映室" }] },
{ type: "hr" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad13.jpg" },
{ type: "p", segs: [{ t: "text", v: "占位符" }] },
{ type: "hr" },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/adrive/ad14.jpg" },
{ type: "p", segs: [{ t: "text", v: "高度统一的桌面端" }] },
{ type: "hr" },
{ type: "p", segs: [{ t: "text", v: "最后,在阿里云盘与 Teambition 的这段经历非常充实:不仅让我的设计能力有了明显提升,也结识了许多一路互相促进的伙伴。" }] },
],
},
"/shore_icon": {
title: "Shore Icon",
date: "Mar 01, 2022",
year: "2022",
iframe: null,
blocks: [
{ type: "p", segs: [{ t: "text", v: "在 Shore 的工作时间不长,但我做了一套风格现代、维护成本可控的图标系统(Icon System)。过程中主要参考了刚完成重构的 " }, { t: "link", v: "Spotify Icon System", href: "https://spotify.design/article/refreshing-our-icon-system-the-why-and-how-behind-the-changes" }, { t: "text", v: "、微软的 " }, { t: "link", v: "Microsoft Fluent System Icons", href: "https://www.figma.com/community/file/836835755999342788/Microsoft-Fluent-System-Icons" }, { t: "text", v: ",以及业内的 " }, { t: "link", v: "SF Symbols", href: "https://developer.apple.com/design/resources/#sf-symbols" }, { t: "text", v: "。这套系统在风格管理、版本管理、跨端表现和自动化交付上都更顺手,我也希望把其中的经验留给正在从零搭建或准备重构图标系统的团队与设计师。" }] },
{ type: "p", segs: [{ t: "text", v: "要做一套好用的图标系统,风格统一、识别清晰、交付与管理简单——听起来是共识,真正落地时每一环都可能变成痛点。" }] },
{ type: "h2", text: "风格统一", id: "风格统一" },
{ type: "p", segs: [{ t: "text", v: "图标能不能称为「系统」,第一条往往是够不够统一。我们以前的做法,是在统一尺寸的画布上,用一套网格约束、几档规范的圆角和统一的描边粗细去框图形。这样顶多统一了表层样式;若网格卡得太死,执行时很容易出现「多一格嫌长、少一格嫌短」的别扭,反而违背视觉直觉。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon01.png" },
{ type: "p", segs: [{ t: "text", v: "Material 与 Ant Design 的图标网格" }] },
{ type: "h2", text: "识别清晰", id: "识别清晰" },
{ type: "p", segs: [{ t: "text", v: "图标传达内容,不只靠外形,还与最小可用尺寸、正负形是否一致有关;这些细节会直接影响识别,也容易制造视觉错觉。" }] },
{ type: "h3", text: "交付与管理", id: "交付与管理" },
{ type: "p", segs: [{ t: "text", v: "把多人绘制的图标收成一套资源,本身就很费神。好在 Figma 能让更多人在同一份设计稿里协作,历史版本也算能管。但设计稿的版本并不等于研发最终接手的版本,两者很容易脱节。每次还要按端单独导出格式,若没有专人维护,输出就会越来越乱,最后线上各端各版本、各画各的图标。" }] },
{ type: "p", segs: [{ t: "text", v: "阿里巴巴的 " }, { t: "link", v: "iconfont", href: "https://www.iconfont.cn/" }, { t: "text", v: " 在上一代工具里很好地缓解过这些问题,但以今天的协作与工程节奏来看,已经明显不够用了。" }] },
{ type: "h2", text: "SF Symbols", id: "sf-symbols" },
{ type: "p", segs: [{ t: "link", v: "SF Symbols →", href: "https://developer.apple.com/design/resources/#sf-symbols" }] },
{ type: "p", segs: [{ t: "text", v: "门槛最低:多数设计师的 Mac 上都装得到 SF Symbols。细读之后会发现,无论从哪个维度看,这套图标都相当出色。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon02.png" },
{ type: "p", segs: [{ t: "text", v: "SF 的图标与 SF Pro 是一起为混排设计的,因此字形的中线、基线也会进图标参考;字体没有「裁剪内容」一类的包袱,边缘留多少不必纠结。每个字重都有对应图标,第一眼就很震撼。3.0 起又补了大量彩色图标,同样基于彩色字体。" }] },
{ type: "p", segs: [{ t: "text", v: "我把 SF 放进 Figma 看路径时发现:每个字重下还有 5 档相对宽度,而且宽度变化是线性的,并不是随便挑几个档位——多半是为了让描边粗细在观感上更均匀。另一个细节是转折与交叉处的「收口」,这是字形里常用的手法,让弯折处看起来和直线段一样稳,小尺寸也更清楚;在成千上万枚图标里坚持这样做,非常难得。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon03.png" },
{ type: "h2", text: "Microsoft Fluent System Icons", id: "microsoft-fluent-system-icons" },
{ type: "p", segs: [{ t: "link", v: "Microsoft Fluent System Icons →", href: "https://www.figma.com/community/file/836835755999342788/Microsoft-Fluent-System-Icons" }] },
{ type: "p", segs: [{ t: "text", v: "微软更慷慨一些,把整套图标系统设计稿放在 Figma 社区里,规范也写得清楚,很适合当教材。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon04.png" },
{ type: "p", segs: [{ t: "text", v: "Fluent 讲了网格、不同类型外形的画法、怎么测视觉权重、填充图标怎么处理,以及角标不要挡关键信息——而不只是「铺一层底色」那种粗暴做法,等等。" }] },
{ type: "h2", text: "Spotify Icon System", id: "spotify-icon-system" },
{ type: "p", segs: [{ t: "link", v: "Refreshing our Icon System: the why and how behind the changes →", href: "https://spotify.design/article/refreshing-our-icon-system-the-why-and-how-behind-the-changes" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon05.png" },
{ type: "p", segs: [{ t: "text", v: "在我看来,Spotify 很擅长用较低成本换较大收益,跨端设计系统就是例子;这次图标系统更新也延续了同一套思路。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon06.png" },
{ type: "p", segs: [{ t: "text", v: "新系统用两种线宽覆盖两类尺寸区间,并对不同线宽做不同细化——相比 SF 为每个字重各做一整套图标,更贴近「资源没有苹果那么宽裕」的普通团队。" }] },
{ type: "p", segs: [{ t: "text", v: "有了前面的输入,我想做一套自己的图标系统:视觉统一、识别清楚、手感平衡,还要有一条顺手的交付链路。把整套库做成能和文字自然混排的字体,对我来说不现实,维护和绘制成本都太高,最后还是落在更主流的 SVG 上。不同的是我选了 " }, { t: "link", v: "SVG Symbol", href: "https://developer.mozilla.org/zh-CN/docs/Web/SVG/Element/symbol" }, { t: "text", v: " 这种单文件、多图形的组织方式,导出则依赖我自研的 Figma 插件 " }, { t: "link", v: "VectorS", href: "/stories/figma_and_me#vectors" }, { t: "text", v: "。" }] },
{ type: "h2", text: "多重线宽", id: "多重线宽" },
{ type: "p", segs: [{ t: "text", v: "我借鉴了 SF 的多档线宽思路,在 24×24 的格子里找出视觉平衡的 5 档宽度,并为每一档写了使用说明。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon07.png" },
{ type: "p", segs: [{ t: "text", v: "为了批量整理图标在 Frame 里的适配规则、少手填线宽,我在 VectorS 里加了一串小工具做样式填充,线宽这一层就这样收住了。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon08.png" },
{ type: "h2", text: "非严格的网格", id: "非严格的网格" },
{ type: "p", segs: [{ t: "text", v: "很多第三方图标不如官方图标「舒服」,很大一部分原因是对网格的理解:网格应是参照,而不是枷锁;在网格给定的范围里画出舒服的形,比处处贴齐更重要。各家的官方图标也不是死板对齐,而是灵活运用对齐与对比。" }] },
{ type: "p", segs: [{ t: "text", v: "我画了一套偏「非严格」的辅助网格,定形之后再配合模糊看视觉权重。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon09.png" },
{ type: "h2", text: "非零与偶奇填充", id: "非零与偶奇填充" },
{ type: "p", segs: [{ t: "text", v: "非零规则(non-zero)与偶奇规则(even-odd)对应 SVG 的 " }, { t: "link", v: "fill-rule", href: "https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/fill-rule" }, { t: "text", v: ",描述的是路径布尔运算怎么算。简单说,要么按路径的绕向自动运算,要么靠标记规则;前者兼容性更好(字体、Android 矢量等),后者在 Web 与 iOS 上往往更可控。" }] },
{ type: "p", segs: [{ t: "text", v: "Figma 默认更接近 even-odd。用过 Figma 导出到 iconfont 的人多半知道 " }, { t: "link", v: "Fill Rule Editor", href: "https://www.figma.com/community/plugin/771155994770327940/Fill-Rule-Editor" }, { t: "text", v: "——它通过调整路径方向,让结果符合 non-zero 规则。作者曾是 Figma 的前 CTO,不知是否因此,社区里几乎找不到第二个做同类事的插件。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon10.png" },
{ type: "p", segs: [{ t: "text", v: "为跨端考虑,Shore Icon 的填充规则我选了兼容性更好的 non-zero。" }] },
{ type: "h2", text: "统一输出格式", id: "统一输出格式" },
{ type: "p", segs: [{ t: "text", v: "格式统一同样是跨端前提。我用插件导出两种格式,给研发同事评估怎么消费。" }] },
{ type: "p", segs: [{ t: "text", v: "SVG Symbol 格式预览" }] },
{
type: "code",
language: "xml",
label: "Xml",
html: "<div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">1</span><span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;</span><span class=\"token tag\" style=\"color:var(--code-tag)\">svg</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">style</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">display: none;</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">xmlns</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">http://www.w3.org/2000/svg</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name namespace\" style=\"color:var(--code-tag)\">xmlns:</span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">xlink</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">http://www.w3.org/1999/xlink</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">2</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token comment\" style=\"color:var(--code-comment)\">&lt;!-- 3 icons / 2022/3/18上午1:31:10 / VectorS 1.0.0 --&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">3</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;</span><span class=\"token tag\" style=\"color:var(--code-tag)\">symbol</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">id</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">Figma</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">viewbox</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">0 0 24 24</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">4</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;</span><span class=\"token tag\" style=\"color:var(--code-tag)\">g</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">transform</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">translate(5.1 2.1)</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">5</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;</span><span class=\"token tag\" style=\"color:var(--code-tag)\">path</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">fill-rule</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">evenodd</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">clip-rule</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">evenodd</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">d</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">M 3.9 0 L 9.9 0 C 12.053 0 13.8 1.747 13.8 3.9 C 13.8 5.106 13.252 6.185 12.391 6.9 C 13.252 7.616 13.8 8.694 13.8 9.9 C 13.8 12.053 12.053 13.8 9.9 13.8 C 9.127 13.8 8.406 13.575 7.8 13.186 L 7.8 15.9 C 7.8 18.053 6.053 19.8 3.9 19.8 C 1.747 19.8 0 18.053 0 15.9 C 0 14.694 0.548 13.616 1.409 12.9 C 0.548 12.184 0 11.106 0 9.9 C 0 8.694 0.548 7.616 1.409 6.9 C 0.548 6.185 0 5.106 0 3.9 C 0 1.747 1.747 0 3.9 0 Z M 1.8 3.9 C 1.8 2.741 2.741 1.8 3.9 1.8 L 6 1.8 L 6 6 L 3.9 6 C 2.741 6 1.8 5.059 1.8 3.9 Z M 6 9.902 C 6 9.901 6 9.901 6 9.9 C 6 9.899 6 9.899 6 9.898 L 6 7.8 L 3.9 7.8 C 2.741 7.8 1.8 8.741 1.8 9.9 C 1.8 11.059 2.741 12 3.9 12 L 6 12 L 6 9.902 Z M 7.8 9.9 C 7.8 11.059 8.741 12 9.9 12 C 11.059 12 12 11.059 12 9.9 C 12 8.741 11.059 7.8 9.9 7.8 C 8.741 7.8 7.8 8.741 7.8 9.9 Z M 9.9 6 C 11.059 6 12 5.059 12 3.9 C 12 2.741 11.059 1.8 9.9 1.8 L 7.8 1.8 L 7.8 6 L 9.9 6 Z M 1.8 15.9 C 1.8 14.741 2.741 13.8 3.9 13.8 L 6 13.8 L 6 15.9 C 6 17.059 5.059 18 3.9 18 C 2.741 18 1.8 17.059 1.8 15.9 Z</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">fill</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">rgb(0,0,0)</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">/&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">6</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;/</span><span class=\"token tag\" style=\"color:var(--code-tag)\">g</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">7</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;/</span><span class=\"token tag\" style=\"color:var(--code-tag)\">symbol</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">8</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;</span><span class=\"token tag\" style=\"color:var(--code-tag)\">symbol</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">id</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">Twitter</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">viewbox</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">0 0 24 24</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">9</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;</span><span class=\"token tag\" style=\"color:var(--code-tag)\">g</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">transform</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">translate(2.5 4)</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">10</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;</span><span class=\"token tag\" style=\"color:var(--code-tag)\">path</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">d</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">M 17.048 3.984 C 17.055 4.16 17.055 4.328 17.055 4.504 C 17.063 9.84 13.143 16 5.973 16 C 3.859 16 1.783 15.368 0 14.184 C 0.309 14.224 0.617 14.24 0.926 14.24 C 2.678 14.24 4.383 13.632 5.765 12.504 C 4.098 12.472 2.632 11.344 2.122 9.696 C 2.709 9.816 3.311 9.792 3.882 9.624 C 2.068 9.256 0.764 7.6 0.756 5.672 C 0.756 5.656 0.756 5.64 0.756 5.624 C 1.297 5.936 1.906 6.112 2.524 6.128 C 0.818 4.944 0.286 2.584 1.32 0.736 C 3.303 3.264 6.22 4.792 9.353 4.96 C 9.037 3.56 9.469 2.088 10.48 1.096 C 12.047 -0.432 14.516 -0.352 15.998 1.272 C 16.87 1.096 17.711 0.76 18.475 0.288 C 18.182 1.224 17.572 2.016 16.762 2.52 C 17.534 2.424 18.29 2.208 19 1.888 C 18.475 2.704 17.812 3.408 17.048 3.984 Z</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">fill</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">rgb(0,0,0)</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">/&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">11</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;/</span><span class=\"token tag\" style=\"color:var(--code-tag)\">g</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">12</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;/</span><span class=\"token tag\" style=\"color:var(--code-tag)\">symbol</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">13</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;</span><span class=\"token tag\" style=\"color:var(--code-tag)\">symbol</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">id</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">Instagram</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">viewbox</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">0 0 24 24</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">14</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;</span><span class=\"token tag\" style=\"color:var(--code-tag)\">g</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">transform</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">translate(2 2)</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">15</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;</span><span class=\"token tag\" style=\"color:var(--code-tag)\">path</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">fill-rule</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">evenodd</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">clip-rule</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">evenodd</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">d</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">M 9.996 4.865 C 7.163 4.865 4.861 7.163 4.861 10 C 4.861 12.837 7.159 15.135 9.996 15.135 C 12.833 15.135 15.131 12.837 15.131 10 C 15.131 7.163 12.833 4.865 9.996 4.865 Z M 9.996 13.329 C 8.155 13.329 6.663 11.837 6.663 9.996 C 6.663 8.155 8.155 6.663 9.996 6.663 C 11.837 6.663 13.329 8.155 13.329 9.996 C 13.329 11.837 11.837 13.329 9.996 13.329 Z M 16.532 4.659 C 16.532 5.321 15.995 5.857 15.333 5.857 C 14.671 5.857 14.135 5.321 14.135 4.659 C 14.135 3.997 14.671 3.46 15.333 3.46 C 15.995 3.46 16.532 3.997 16.532 4.659 Z M 9.996 0 C 7.282 0 6.94 0.012 5.873 0.06 C 4.81 0.107 4.083 0.278 3.448 0.524 C 2.79 0.778 2.234 1.123 1.679 1.679 C 1.123 2.234 0.782 2.794 0.524 3.448 C 0.278 4.083 0.107 4.81 0.06 5.877 C 0.012 6.94 0 7.282 0 9.996 C 0 12.71 0.012 13.052 0.06 14.119 C 0.107 15.183 0.278 15.909 0.524 16.548 C 0.778 17.206 1.123 17.762 1.679 18.317 C 2.234 18.873 2.794 19.214 3.448 19.472 C 4.083 19.718 4.81 19.889 5.877 19.936 C 6.944 19.984 7.282 19.996 10 19.996 C 12.718 19.996 13.056 19.984 14.123 19.936 C 15.187 19.889 15.913 19.718 16.552 19.472 C 17.21 19.218 17.766 18.873 18.321 18.317 C 18.877 17.762 19.218 17.202 19.476 16.548 C 19.722 15.913 19.893 15.186 19.94 14.119 C 19.988 13.052 20 12.714 20 9.996 C 20 7.278 19.988 6.94 19.94 5.873 C 19.893 4.81 19.722 4.083 19.476 3.444 C 19.222 2.786 18.877 2.23 18.321 1.675 C 17.766 1.119 17.206 0.778 16.552 0.52 C 15.917 0.274 15.19 0.103 14.123 0.056 C 13.052 0.012 12.71 0 9.996 0 Z M 9.996 1.802 C 12.667 1.802 12.98 1.813 14.036 1.861 C 15.012 1.905 15.54 2.067 15.893 2.206 C 16.361 2.389 16.694 2.603 17.044 2.952 C 17.393 3.302 17.611 3.635 17.79 4.103 C 17.925 4.456 18.091 4.984 18.135 5.96 C 18.183 7.016 18.194 7.329 18.194 10 C 18.194 12.671 18.183 12.984 18.135 14.04 C 18.091 15.016 17.929 15.544 17.79 15.897 C 17.607 16.365 17.393 16.698 17.044 17.048 C 16.694 17.397 16.361 17.615 15.893 17.794 C 15.54 17.929 15.012 18.095 14.036 18.139 C 12.98 18.186 12.667 18.198 9.996 18.198 C 7.325 18.198 7.012 18.186 5.956 18.139 C 4.98 18.095 4.452 17.933 4.099 17.794 C 3.631 17.611 3.298 17.397 2.948 17.048 C 2.599 16.698 2.381 16.365 2.202 15.897 C 2.067 15.544 1.901 15.016 1.857 14.04 C 1.81 12.984 1.798 12.671 1.798 10 C 1.798 7.329 1.81 7.016 1.857 5.96 C 1.901 4.984 2.063 4.456 2.202 4.103 C 2.385 3.635 2.599 3.302 2.948 2.952 C 3.298 2.603 3.631 2.385 4.099 2.206 C 4.452 2.071 4.98 1.905 5.956 1.861 C 7.012 1.81 7.329 1.802 9.996 1.802 Z</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag attr-name\" style=\"color:var(--code-tag)\">fill</span><span class=\"token tag attr-value punctuation attr-equals\" style=\"color:var(--code-operator)\">=</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag attr-value\" style=\"color:var(--code-tag)\">rgb(0,0,0)</span><span class=\"token tag attr-value punctuation\" style=\"color:var(--code-operator)\">\"</span><span class=\"token tag\" style=\"color:var(--code-tag)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">/&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">16</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;/</span><span class=\"token tag\" style=\"color:var(--code-tag)\">g</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">17</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;/</span><span class=\"token tag\" style=\"color:var(--code-tag)\">symbol</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">18</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&lt;/</span><span class=\"token tag\" style=\"color:var(--code-tag)\">svg</span><span class=\"token tag punctuation\" style=\"color:var(--code-operator)\">&gt;</span></span></div>",
text: "1<svg style=\"display: none;\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">2 <!-- 3 icons / 2022/3/18上午1:31:10 / VectorS 1.0.0 -->3 <symbol id=\"Figma\" viewbox=\"0 0 24 24\">4 <g transform=\"translate(5.1 2.1)\">5 <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M 3.9 0 L 9.9 0 C 12.053 0 13.8 1.747 13.8 3.9 C 13.8 5.106 13.252 6.185 12.391 6.9 C 13.252 7.616 13.8 8.694 13.8 9.9 C 13.8 12.053 12.053 13.8 9.9 13.8 C 9.127 13.8 8.406 13.575 7.8 13.186 L 7.8 15.9 C 7.8 18.053 6.053 19.8 3.9 19.8 C 1.747 19.8 0 18.053 0 15.9 C 0 14.694 0.548 13.616 1.409 12.9 C 0.548 12.184 0 11.106 0 9.9 C 0 8.694 0.548 7.616 1.409 6.9 C 0.548 6.185 0 5.106 0 3.9 C 0 1.747 1.747 0 3.9 0 Z M 1.8 3.9 C 1.8 2.741 2.741 1.8 3.9 1.8 L 6 1.8 L 6 6 L 3.9 6 C 2.741 6 1.8 5.059 1.8 3.9 Z M 6 9.902 C 6 9.901 6 9.901 6 9.9 C 6 9.899 6 9.899 6 9.898 L 6 7.8 L 3.9 7.8 C 2.741 7.8 1.8 8.741 1.8 9.9 C 1.8 11.059 2.741 12 3.9 12 L 6 12 L 6 9.902 Z M 7.8 9.9 C 7.8 11.059 8.741 12 9.9 12 C 11.059 12 12 11.059 12 9.9 C 12 8.741 11.059 7.8 9.9 7.8 C 8.741 7.8 7.8 8.741 7.8 9.9 Z M 9.9 6 C 11.059 6 12 5.059 12 3.9 C 12 2.741 11.059 1.8 9.9 1.8 L 7.8 1.8 L 7.8 6 L 9.9 6 Z M 1.8 15.9 C 1.8 14.741 2.741 13.8 3.9 13.8 L 6 13.8 L 6 15.9 C 6 17.059 5.059 18 3.9 18 C 2.741 18 1.8 17.059 1.8 15.9 Z\" fill=\"rgb(0,0,0)\" />6 </g>7 </symbol>8 <symbol id=\"Twitter\" viewbox=\"0 0 24 24\">9 <g transform=\"translate(2.5 4)\">10 <path d=\"M 17.048 3.984 C 17.055 4.16 17.055 4.328 17.055 4.504 C 17.063 9.84 13.143 16 5.973 16 C 3.859 16 1.783 15.368 0 14.184 C 0.309 14.224 0.617 14.24 0.926 14.24 C 2.678 14.24 4.383 13.632 5.765 12.504 C 4.098 12.472 2.632 11.344 2.122 9.696 C 2.709 9.816 3.311 9.792 3.882 9.624 C 2.068 9.256 0.764 7.6 0.756 5.672 C 0.756 5.656 0.756 5.64 0.756 5.624 C 1.297 5.936 1.906 6.112 2.524 6.128 C 0.818 4.944 0.286 2.584 1.32 0.736 C 3.303 3.264 6.22 4.792 9.353 4.96 C 9.037 3.56 9.469 2.088 10.48 1.096 C 12.047 -0.432 14.516 -0.352 15.998 1.272 C 16.87 1.096 17.711 0.76 18.475 0.288 C 18.182 1.224 17.572 2.016 16.762 2.52 C 17.534 2.424 18.29 2.208 19 1.888 C 18.475 2.704 17.812 3.408 17.048 3.984 Z\" fill=\"rgb(0,0,0)\" />11 </g>12 </symbol>13 <symbol id=\"Instagram\" viewbox=\"0 0 24 24\">14 <g transform=\"translate(2 2)\">15 <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M 9.996 4.865 C 7.163 4.865 4.861 7.163 4.861 10 C 4.861 12.837 7.159 15.135 9.996 15.135 C 12.833 15.135 15.131 12.837 15.131 10 C 15.131 7.163 12.833 4.865 9.996 4.865 Z M 9.996 13.329 C 8.155 13.329 6.663 11.837 6.663 9.996 C 6.663 8.155 8.155 6.663 9.996 6.663 C 11.837 6.663 13.329 8.155 13.329 9.996 C 13.329 11.837 11.837 13.329 9.996 13.329 Z M 16.532 4.659 C 16.532 5.321 15.995 5.857 15.333 5.857 C 14.671 5.857 14.135 5.321 14.135 4.659 C 14.135 3.997 14.671 3.46 15.333 3.46 C 15.995 3.46 16.532 3.997 16.532 4.659 Z M 9.996 0 C 7.282 0 6.94 0.012 5.873 0.06 C 4.81 0.107 4.083 0.278 3.448 0.524 C 2.79 0.778 2.234 1.123 1.679 1.679 C 1.123 2.234 0.782 2.794 0.524 3.448 C 0.278 4.083 0.107 4.81 0.06 5.877 C 0.012 6.94 0 7.282 0 9.996 C 0 12.71 0.012 13.052 0.06 14.119 C 0.107 15.183 0.278 15.909 0.524 16.548 C 0.778 17.206 1.123 17.762 1.679 18.317 C 2.234 18.873 2.794 19.214 3.448 19.472 C 4.083 19.718 4.81 19.889 5.877 19.936 C 6.944 19.984 7.282 19.996 10 19.996 C 12.718 19.996 13.056 19.984 14.123 19.936 C 15.187 19.889 15.913 19.718 16.552 19.472 C 17.21 19.218 17.766 18.873 18.321 18.317 C 18.877 17.762 19.218 17.202 19.476 16.548 C 19.722 15.913 19.893 15.186 19.94 14.119 C 19.988 13.052 20 12.714 20 9.996 C 20 7.278 19.988 6.94 19.94 5.873 C 19.893 4.81 19.722 4.083 19.476 3.444 C 19.222 2.786 18.877 2.23 18.321 1.675 C 17.766 1.119 17.206 0.778 16.552 0.52 C 15.917 0.274 15.19 0.103 14.123 0.056 C 13.052 0.012 12.71 0 9.996 0 Z M 9.996 1.802 C 12.667 1.802 12.98 1.813 14.036 1.861 C 15.012 1.905 15.54 2.067 15.893 2.206 C 16.361 2.389 16.694 2.603 17.044 2.952 C 17.393 3.302 17.611 3.635 17.79 4.103 C 17.925 4.456 18.091 4.984 18.135 5.96 C 18.183 7.016 18.194 7.329 18.194 10 C 18.194 12.671 18.183 12.984 18.135 14.04 C 18.091 15.016 17.929 15.544 17.79 15.897 C 17.607 16.365 17.393 16.698 17.044 17.048 C 16.694 17.397 16.361 17.615 15.893 17.794 C 15.54 17.929 15.012 18.095 14.036 18.139 C 12.98 18.186 12.667 18.198 9.996 18.198 C 7.325 18.198 7.012 18.186 5.956 18.139 C 4.98 18.095 4.452 17.933 4.099 17.794 C 3.631 17.611 3.298 17.397 2.948 17.048 C 2.599 16.698 2.381 16.365 2.202 15.897 C 2.067 15.544 1.901 15.016 1.857 14.04 C 1.81 12.984 1.798 12.671 1.798 10 C 1.798 7.329 1.81 7.016 1.857 5.96 C 1.901 4.984 2.063 4.456 2.202 4.103 C 2.385 3.635 2.599 3.302 2.948 2.952 C 3.298 2.603 3.631 2.385 4.099 2.206 C 4.452 2.071 4.98 1.905 5.956 1.861 C 7.012 1.81 7.329 1.802 9.996 1.802 Z\" fill=\"rgb(0,0,0)\" />16 </g>17 </symbol>18</svg>",
},
{ type: "p", segs: [{ t: "text", v: "JSON 格式数据结构预览" }] },
{
type: "code",
language: "json",
label: "JSON",
html: "<div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">1</span><span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">{</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">2</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"name\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token string\" style=\"color:var(--code-string)\">\"FigmaIcon\"</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">3</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"description\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token string\" style=\"color:var(--code-string)\">\"\"</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">4</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"width\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">24</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">5</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"height\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">24</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">6</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"id\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">[</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">7</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token string\" style=\"color:var(--code-string)\">\"3627:1307\"</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">8</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token string\" style=\"color:var(--code-string)\">\"046c56ddfafa72e2cbb4b521de681feed7b9db0b\"</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">9</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">]</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">10</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"paths\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">[</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">11</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">{</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">12</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"color\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">{</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">13</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"r\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">0</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">14</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"g\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">0</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">15</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"b\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">0</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">16</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">}</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">17</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"evenodd\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token boolean\" style=\"color:var(--code-number)\">false</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">18</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"opacity\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">1</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">19</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"path\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">[</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">20</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token string\" style=\"color:var(--code-string)\">\"M 3.9 0 L 9.9 0 C 12.053 0 13.8 1.747 13.8 3.9 C 13.8 5.106 13.252 6.185 12.391 6.9 C 13.252 7.616 13.8 8.694 13.8 9.9 C 13.8 12.053 12.053 13.8 9.9 13.8 C 9.127 13.8 8.406 13.575 7.8 13.186 L 7.8 15.9 C 7.8 18.053 6.053 19.8 3.9 19.8 C 1.747 19.8 0 18.053 0 15.9 C 0 14.694 0.548 13.616 1.409 12.9 C 0.548 12.184 0 11.106 0 9.9 C 0 8.694 0.548 7.616 1.409 6.9 C 0.548 6.185 0 5.106 0 3.9 C 0 1.747 1.747 0 3.9 0 Z M 1.8 3.9 C 1.8 2.741 2.741 1.8 3.9 1.8 L 6 1.8 L 6 6 L 3.9 6 C 2.741 6 1.8 5.059 1.8 3.9 Z M 6 9.902 C 6 9.901 6 9.901 6 9.9 C 6 9.899 6 9.899 6 9.898 L 6 7.8 L 3.9 7.8 C 2.741 7.8 1.8 8.741 1.8 9.9 C 1.8 11.059 2.741 12 3.9 12 L 6 12 L 6 9.902 Z M 7.8 9.9 C 7.8 11.059 8.741 12 9.9 12 C 11.059 12 12 11.059 12 9.9 C 12 8.741 11.059 7.8 9.9 7.8 C 8.741 7.8 7.8 8.741 7.8 9.9 Z M 9.9 6 C 11.059 6 12 5.059 12 3.9 C 12 2.741 11.059 1.8 9.9 1.8 L 7.8 1.8 L 7.8 6 L 9.9 6 Z M 1.8 15.9 C 1.8 14.741 2.741 13.8 3.9 13.8 L 6 13.8 L 6 15.9 C 6 17.059 5.059 18 3.9 18 C 2.741 18 1.8 17.059 1.8 15.9 Z\"</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">21</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">]</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">22</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"x\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">5.1</span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">,</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">23</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token property\" style=\"color:var(--code-tag)\">\"y\"</span><span class=\"token operator\" style=\"color:var(--code-operator)\">:</span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token number\" style=\"color:var(--code-number)\">2.1</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">24</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">}</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">25</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"> </span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">]</span><span class=\"token plain\" style=\"color:var(--label-1)\"></span></span></div><div class=\"gap-4 grid grid-cols-[auto_1fr]\" style=\"color:#9CDCFE\"><span aria-hidden=\"true\" class=\"select-none text-right tabular-nums text-(--label-4)\">26</span><span><span class=\"token plain\" style=\"color:var(--label-1)\"></span><span class=\"token punctuation\" style=\"color:var(--code-operator)\">}</span></span></div>",
text: "1{2 \"name\": \"FigmaIcon\",3 \"description\": \"\",4 \"width\": 24,5 \"height\": 24,6 \"id\": [7 \"3627:1307\",8 \"046c56ddfafa72e2cbb4b521de681feed7b9db0b\"9 ],10 \"paths\": [11 {12 \"color\": {13 \"r\": 0,14 \"g\": 0,15 \"b\": 016 },17 \"evenodd\": false,18 \"opacity\": 1,19 \"path\": [20 \"M 3.9 0 L 9.9 0 C 12.053 0 13.8 1.747 13.8 3.9 C 13.8 5.106 13.252 6.185 12.391 6.9 C 13.252 7.616 13.8 8.694 13.8 9.9 C 13.8 12.053 12.053 13.8 9.9 13.8 C 9.127 13.8 8.406 13.575 7.8 13.186 L 7.8 15.9 C 7.8 18.053 6.053 19.8 3.9 19.8 C 1.747 19.8 0 18.053 0 15.9 C 0 14.694 0.548 13.616 1.409 12.9 C 0.548 12.184 0 11.106 0 9.9 C 0 8.694 0.548 7.616 1.409 6.9 C 0.548 6.185 0 5.106 0 3.9 C 0 1.747 1.747 0 3.9 0 Z M 1.8 3.9 C 1.8 2.741 2.741 1.8 3.9 1.8 L 6 1.8 L 6 6 L 3.9 6 C 2.741 6 1.8 5.059 1.8 3.9 Z M 6 9.902 C 6 9.901 6 9.901 6 9.9 C 6 9.899 6 9.899 6 9.898 L 6 7.8 L 3.9 7.8 C 2.741 7.8 1.8 8.741 1.8 9.9 C 1.8 11.059 2.741 12 3.9 12 L 6 12 L 6 9.902 Z M 7.8 9.9 C 7.8 11.059 8.741 12 9.9 12 C 11.059 12 12 11.059 12 9.9 C 12 8.741 11.059 7.8 9.9 7.8 C 8.741 7.8 7.8 8.741 7.8 9.9 Z M 9.9 6 C 11.059 6 12 5.059 12 3.9 C 12 2.741 11.059 1.8 9.9 1.8 L 7.8 1.8 L 7.8 6 L 9.9 6 Z M 1.8 15.9 C 1.8 14.741 2.741 13.8 3.9 13.8 L 6 13.8 L 6 15.9 C 6 17.059 5.059 18 3.9 18 C 2.741 18 1.8 17.059 1.8 15.9 Z\"21 ],22 \"x\": 5.1,23 \"y\": 2.124 }25 ]26}",
},
{ type: "p", segs: [{ t: "text", v: "调研下来,JSON 虽易读,若要再编译成各端格式,往往仍要各端各用各的技术栈。前端的方案是直接消费 SVG Symbol,打包进 React 组件、用 Props 调图标;构建阶段再用 Node 工具把 Symbol 拆成适合移动端的单文件 SVG。整条链路可以交给 GitHub Actions 一类流程自动化,统一格式与交付也就闭环了。" }] },
{ type: "h2", text: "版本管理", id: "版本管理" },
{ type: "p", segs: [{ t: "text", v: "最后一个问题乍看棘手,其实前面几步已经埋好答案:用 GitHub 管代码即可。只是 GitHub 面向工程思维,我能逐行读 SVG 的 Diff,不是所有设计师都习惯这一套。" }] },
{ type: "img", src: "https://mysite2026-blog-cyn6.vercel.app/blog/shore/icon11.png" },
{ type: "p", segs: [{ t: "text", v: "接下来想把 VectorS 接到 GitHub:身份验证通过后,插件读取仓库里约定的 SVG Symbol,在界面里渲染出来,再通过 API 拉 Diff 做图形化对比——有点像 Abstract 在做的事。" }] },
{ type: "p", segs: [{ t: "text", v: "我会尽量把这套流程带进以后的项目,也不排除把它做成自己的第一个小产品。回头看,以前对计算机图形只有模糊印象,这次折腾下来,总算又往清楚走近了一点。" }] },
],
},
"/teambition": {
title: "Teambition",
date: "May 31, 2026",
year: "2018-2020",
iframe: null,
blocks: [
{ type: "p", segs: [{ t: "text", v: "Work in progress — this page is not finished yet." }] },
{ type: "p", segs: [{ t: "text", v: "From 2018 to 2020, I worked on product and design at Teambition (Alibaba), focused on collaboration and project management. More details coming soon." }] },
{ type: "p", segs: [{ t: "link", v: "teambition.com", href: "https://www.teambition.com/" }] },
],
},
// /2026 — the passcode-protected TikTok post. The original article body is
// server-gated behind the site's secret passcode and therefore unreadable;
// this is stand-in content in the same structure (swap in real copy if it
// ever becomes available).
"/2026": {
title: "TikTok",
date: "May 31, 2026",
year: "2022-2026",
iframe: null,
blocks: [
{ type: "p", segs: [{ t: "text", v: "This article is passcode-protected on the original site, so its content could not be cloned. What is known from the public bundle: it is a post dated 2022-2026 about design engineering and AI exploration work, protected behind the 4-digit passcode flow." }] },
{ type: "p", segs: [{ t: "text", v: "Everything around it — the card, the locked brand label, the unlock screen, and this route — is reproduced 1:1. Unlock with the clone's passcode (default 2026, override with PASSCODE_CODE) to read this page like on the original." }] },
],
},
};