We built a white-label P2P money app on send21: here's how to rebrand it with one file
Описание и применение
Переименование P2P‑приложения dewby в один файл: редактирование 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