kang 3237ef8271 feat: 12 套 Sketch 也上 Figma,47/47 模板全部投射就位
- 16 个 .sketch 经 Playwright Import 上传(Figma 自动转 fig)
- 匹配脚本扩展:fig 优先,sketch 次之
- 47/47 匹配(35 fig + 12 sketch-only)
- banner 文案更新

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 15:58:06 +08:00
2026-04-22 15:57:23 +08:00

Figma 模板库

56 套 Web UI Kit 本地整理 + 静态展示站35 套 Figma 原生已云端就位 Drafts。

结构

├── source/         11G · 原始 zip/7z/rar + 预览图gitignored
├── extracted/      全套解压gitignored
├── manifest.json   56 条元数据
├── figma-files.json  云端 fileKey 列表
├── scripts/
│   ├── import-to-figma.sh    open -a Figma 批量(注意:不上云,仅本地)
│   └── match-and-update.py   按名字模糊匹配 Figma fileKey 回填 data.json
├── web/                      静态展示站
│   ├── index.html / styles.css / app.js
│   ├── data.json             前端数据
│   ├── thumbs/   6.1M        56 张 cover
│   └── previews/ 52M         gallery 压缩 JPG
├── nginx.conf + .htpasswd + Dockerfile   部署用
└── .memory/status.md         项目记忆

本地跑

cd web && python3 -m http.server 4010
# → http://localhost:4010

部署

nginx:alpine 容器 + basic-authkang / 见 credentials.md。 Coolify dockerfile 模式Gitea 主仓 + GitHub 镜像。

关键教训

  • open -a Figma file.fig 不上传云端,仅本地打开。真·上云走网页 Import 对话框(接受 .fig .sketch .pdf 等)
  • fileKey 抓取Figma REST 无 list-drafts用内部 API /api/folders/{drafts_folder_id}/paginated_files 需登录 cookiePlaywright MCP 实现
Description
56 套 Figma/Sketch/XD Web UI Kit 本地整理 + 静态展示站 + Figma 云端投射
Readme 51 MiB
Languages
JavaScript 34.6%
CSS 32.4%
Python 20.1%
HTML 7.2%
Shell 4.9%
Other 0.8%