mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
Self-serve internal tool to generate on-brand OG (1200x630) and Thumb images for supabase.com/blog posts. New App Router app at apps/og-generator. - Render via next/og (satori + resvg), self-hosted Manrope, fontkit text measurement; all colors/fonts resolve from a design-tokens config (no hardcoded hex) per the non-destructive recipe model - Headline: auto sentence-case + acronym allowlist, auto-fit to <=2 lines (64->40px) with overflow blocking, manual line-break/size override - 4 guardrailed templates + background pattern library (grid/dots/rules, opacity locked 4-12%), each template with a default pattern - Line-art icon system, stroke normalized to 1.22-1.88px; OG + Thumb share it - Guardrails: char counter (60/70), WCAG contrast check, safe-area overlay, platform-crop preview - Stateless /api/og URL + 1x/2x PNG export Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>