
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@double-coding/pixel-print
Advanced tools
PixelPrint(像素打印)—— Figma D2C 工具,一键安装 Claude Code Skill,像素级还原设计稿为前端代码(H5 / React Native / xtaro)
把 Figma 稿子丢给 Claude,喝杯咖啡的时间拿到可运行的代码 + 视觉对比截图。
npm 包名:
@double-coding/pixel-print· GitHub:double-coding-lab/PixelPrint · License MIT
PixelPrint 是一套让 Claude Code 学会「把 Figma 稿子还原成代码」的知识包。装到项目里,把设计稿链接发给 Claude,它自己拆图层、切图、出代码、逐块视觉对比。
H5(React) / React Native / RN 系跨端(xtaro / taro / 自定义) 三端产物一套 SKILL 全覆盖。走 Figma 原生 REST API,不装 MCP 插件、不走 OAuth。
cd 你的业务项目
npx @double-coding/pixel-print init
交互式引导 6 题,1 分钟内答完。
一键式装法(推荐给已知配置的场景,零交互):
# 携程 xtaro 一键
npx @double-coding/pixel-print init \
--framework rn --adapter-preset xtaro --merge-mode flat \
--figma-base 375 --responsive on \
--rpx-helper-import "@ctrip/xtaro" --rpx-helper-name xrpx \
--assets-dir assets/ --output-dir src/pages/ \
--figma-token figd_你的token
# React + SCSS 一键
npx @double-coding/pixel-print init \
--framework react --style-format scss --merge-mode flat \
--figma-base 375 --output-unit vw --output-base 375 \
--output-dir pages/ --figma-token figd_你的token
完整参数表见 docs/pixel-print-guide.md §6。
把 docs/design-guide.md 发给对接设计师。他花 20 分钟改图层名,你后面省 10 倍时间。
把这份稿子转成代码:https://figma.com/design/xxx?node-id=1-2
Claude 自动:探活 Token → 跑体检 → 拆图层 → 派 sub-agent 并行出码 → 切图 → 逐块视觉对比 → 交付。
📖 详细文档:docs/pixel-print-guide.md — 包含架构说明、init 交互实录(3 种模式)、CLI 参数、配置字段、Token 说明、故障排查、版本历史、效果图。
🎨 给设计师看:docs/design-guide.md — 图层命名规范速查(sub- / img- / bg- / fixed- / …)。
npx @double-coding/pixel-print init [options] # 交互式初始化(推荐)
npx @double-coding/pixel-print install # 仅复制模板文件,不交互
npx @double-coding/pixel-print clean-cache # 清 .d2c-cache/(figma / images / anchors / last-page.json)
npx @double-coding/pixel-print help # 完整帮助 + 参数示例
MIT © double-coding-lab
FAQs
PixelPrint(像素打印)—— Figma D2C 工具,一键安装 Claude Code Skill,像素级还原设计稿为前端代码(H5 / React Native / xtaro)
The npm package @double-coding/pixel-print receives a total of 1,131 weekly downloads. As such, @double-coding/pixel-print popularity was classified as popular.
We found that @double-coding/pixel-print demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.