Rebrand the generated OG images (docs, blog, site) - #8191
Merged
Conversation
… site The three next/og routes still drew the pre-2026 wordmark, and docs and site kept the old dark teal card, Barlow, and JetBrains Mono. This moves them onto one shared card in @prisma-docs/ui that follows the brand cover recipe: paper surface with the prism spectral wash, a dot kicker, a Sora headline, Inter body, Mona Sans Mono for API paths, and the full-color prism lockup as the sign-off. Docs cards pick the product accent from the section (ORM cyan, Postgres yellow, Compute red) and render API reference methods as tinted mono chips. Fonts are static TTF cuts instanced from the variable fonts vendored in @prisma/eclipse, shipped per app in public/fonts, because satori cannot parse woff2 and the docs route must render at build time without the network. The site route also stops rendering "Prisma Blog". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W9y85XV68x1dzsytbCcZRQ
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (16)
📒 Files selected for processing (5)
WalkthroughThe change adds shared OG image rendering and font-loading utilities. Blog, docs, and site routes now use the shared utilities. The docs route adds section, method, and API path styling. ChangesOpen Graph image system
Estimated code review effort: 4 (Complex) | ~45 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The generated Open Graph cards still carried the pre-2026 brand after #8142: all three
next/ogroutes drew the old triangle wordmark, and the docs and site cards kept the dark teal surface with Barlow and JetBrains Mono. Sharing a link to any docs page, the blog index, or the site route produced an off-brand preview.This PR moves all three routes onto one shared card in
@prisma-docs/uithat follows the brand cover recipe, and ships the real brand fonts (Sora, Inter, Mona Sans Mono) as static cuts each route can load at build time.What changed
Shared card (
packages/ui/src/components/og-image.tsx)prisma.io/docsURL line).Docs (
apps/docs/src/app/og/[...slug]/route.tsx){params}highlighted.Blog and site (
apps/blog/.../og/image.png,apps/site/.../og/image.png)prisma.io/blogfooter; it now renders the site tagline and description.Fonts (
apps/{docs,blog,site}/public/fonts)packages/eclipse/src/static/fontsand subset to Latin. satori cannot parse woff2, and the docs route pre-renders one card per page at build time so it must not need the network. The old Barlow-eraInter-Regular.ttfandJetBrainsMono-Regular.ttfin docs are replaced.Verification
pnpm types:checkpasses for docs, blog, and site;oxlintandoxfmtclean on the changed files.Audit: what still carries the old brand
Not changed here, listed for follow-up:
apps/site/public/og/(about 45 files, last touched March and April 2026):og-index.png,og-orm.png,og-postgres.png,og-pricing.png, the twelveprisma-with/*.png, and the rest. Pages reference them throughogImageincreatePageMetadata, so every marketing page except the homepage (/og.png, redone in 2026 rebrand: redesigned site, docs and blog branding, Prisma 8 #8142) still previews with the old brand.apps/docs/public/og/docs/default.pngandapps/blog/public/og/docs/default.png(February 2026) are unreferenced leftovers and can be deleted.packages/ui/src/components/navigation-menu.tsxstill embeds the old wordmark path asLogo, andWebNavigationrenders it. The only consumer isapps/site/src/components/navigation-wrapper.tsx, which nothing imports anymore, so both are dead code from before the rebrand.apps/blog/src/app/layout.tsxandapps/eclipse/src/app/layout.tsxstill load Barlow from Google Fonts.Summary by CodeRabbit