Favicons
I generate the favicon set from the brand mark and never edit it by hand. The source of truth is src/assets/icons/logos/logo.svg.
Updating the logo or icons
pnpm icons:generate # rewrite every icon from logo.svg
pnpm icons:check # fail if the committed icons are staleCommit the regenerated files together with the logo change. Output is deterministic, so an unchanged logo produces no diff.
What gets generated
scripts/assets/generate-favicons.mjs letterboxes the wide AM mark onto a square tile (off-white mark on navy) and writes:
| File | Used for |
|---|---|
src/app/icon.svg | Scalable browser tab icon; tile and mark invert in dark mode |
src/app/favicon.ico | Legacy browsers (16, 32 and 48px) |
src/app/apple-icon.png | iOS home screen (180px) |
public/icons/icon-192.png, icon-512.png | Web manifest |
public/icons/icon-maskable-512.png | Web manifest, maskable (extra safe-zone padding) |
Next.js turns the files in src/app into the <link rel="icon"> and apple-touch-icon tags, and src/app/manifest.ts serves the web manifest that references the PNGs in public/icons.
The tile colors (INK and GROUND) match the Open Graph image in src/app/opengraph-image.tsx.
Last updated on