We built a white-label P2P money app on send21: here's how to rebrand it with one file
说明与用途
在一个文件中重新品牌化 dewby P2P 应用:编辑 web/brand.js,运行 npm run brand 和 npm test,确保 UI、清单和钱包备注的一致性。
问题
Rebranding a P2P money app while keeping brand data in a single file and ensuring consistency across UI, manifest, and wallet memo.
结果
Rebranding is achieved with a single file edit and two npm commands, while automated tests ensure visual and functional consistency.
工作流
- Edit web/brand.js to set name, tagline, colors, storagePrefix, siteUrl, and icons.
- Run
npm run brandto rewrite manifest, title, theme color, share‑card meta, and redraw icons. - Run
npm testto check WCAG AA contrast, manifest/HTML match, share‑card size, and absence of leftover send21 branding.
证据
Everything brand‑specific is in web/brand.js
Run npm run brand. It rewrites the manifest, title, theme color and share‑card meta, and redraws the icons from your mark.
Run npm test. It checks every text color for WCAG AA contrast, that the manifest and HTML match the brand file, the share card size, and that no stray send21 branding is left in the UI.
- 记录日期: 2026-10-16T10:41:02.165Z