This site is not affiliated with or endorsed by Vercel, Inc. Read the docs, then deploy or run each experiment yourself.
Developer Tools

Favicon Brand Kit

Pick a brand color + letter - ImageResponse icon set (16/32/180/512) for favicons and PWA.

Run this experiment yourself

Demos are not embedded on this site. Deploy a standalone copy on Vercel or run the experiment app locally.

Local development

cd apps/experiments/favicon-brand-kit
pnpm install
pnpm dev

Then open http://localhost:3010.

This is an experimental demo. Use it as a starting point for your own projects.

Favicon Brand Kit is a Wave 3 Batch H composition lab. The UI builds icon URLs in logic.ts; GET /api/icon renders each size with ImageResponse.

Features

  • Hex color + letter
  • Multiple icon sizes
  • Pure ImageResponse

UI Reference

ControlBehavior
Brand colorValidated 6-digit hex (normalizeHex)
LetterFirst character, uppercased
Generate kitBuilds preview URLs via kitUrls

URL helpers live in the client - there is no JSON kit API.

API Reference

GET /api/icon

Query: color, letter, size (one of 16 / 32 / 180 / 512). Returns an ImageResponse PNG.

StatusCause
200Icon rendered
400Invalid color, letter, or size

Implementation Details

Validate in the UI

normalizeHex / normalizeLetter run in the demo before preview URLs are built.

Render with ImageResponse

GET /api/icon reads query params and returns a sized glyph on the brand background.

Limitations

  • Single glyph only.
  • No SVG export.
  • System font glyph.

Use in your project

Copy app/api/icon/route.tsx and logic.ts from apps/experiments/favicon-brand-kit/.

Deployment

Deploy on Vercel

Local Development

cd apps/experiments/favicon-brand-kit
pnpm install
pnpm dev

Configuration

VariableRequiredPurpose
——No secrets required

Next Steps

On this page