Skip to Content
Favicons

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 stale

Commit 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:

FileUsed for
src/app/icon.svgScalable browser tab icon; tile and mark invert in dark mode
src/app/favicon.icoLegacy browsers (16, 32 and 48px)
src/app/apple-icon.pngiOS home screen (180px)
public/icons/icon-192.png, icon-512.pngWeb manifest
public/icons/icon-maskable-512.pngWeb 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