Unify
Every app's favicon, home-screen icon and in-app logo come from one function — the same family, each in its own colour.
Try a hue and a glyph; download the SVG. In an app, the same spec goes in lib/brand.ts.
// app/icon.tsx — SVG favicon
export const contentType = "image/svg+xml";
export default function Icon() {
return new Response(appIconSvg(ICON), { headers: { "Content-Type": contentType } });
}
// app/apple-icon.tsx — 180×180 PNG for iOS
export const size = { width: 180, height: 180 };
export const contentType = "image/png";
export default function AppleIcon() {
return new ImageResponse(<img src={appIconDataUrl(ICON)} width={180} height={180} alt="" />, size);
}