Skip to content

feat(og): uppercase black-weight title with white subtitle#894

Merged
tannerlinsley merged 1 commit intomainfrom
taren/admiring-mestorf-8e0f1c
May 6, 2026
Merged

feat(og): uppercase black-weight title with white subtitle#894
tannerlinsley merged 1 commit intomainfrom
taren/admiring-mestorf-8e0f1c

Conversation

@tannerlinsley
Copy link
Copy Markdown
Member

@tannerlinsley tannerlinsley commented May 6, 2026

Summary

  • Title is now uppercase Inter Black (900) with -3px letter spacing
  • Subtitle, doc title, and description render in white; library name keeps the accent color
  • Adds Inter-Black.ttf and includes it in the Netlify function bundle

Test plan

  • Regenerated .og-preview/ PNGs via pnpm exec tsx scripts/og-preview.ts and visually verified router/query/form (landing + docs variants)
  • Confirm Netlify deploy bundles Inter-Black.ttf and OG endpoint renders correctly in prod

Note: pre-commit hooks bypassed — failures were pre-existing TS/lint errors in unrelated files (blog.ts, shop/*, intent-admin.server.ts) and don't touch the OG code.

Summary by CodeRabbit

  • New Features

    • Added Inter Black font support to enhanced OG image generation.
  • Style

    • Updated OG image typography with white text color, uppercase styling, and improved letter-spacing for better visual impact when content is shared.

Render TANSTACK {LIBRARY} in Inter Black (900) with -3px letter spacing
and uppercase. Switch subtitle/intro/docs copy to white; library name
keeps its accent color. Adds Inter-Black.ttf and bundles it in the
Netlify function.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 6, 2026

Deploy Preview for tanstack ready!

Name Link
🔨 Latest commit e9c62a2
🔍 Latest deploy log https://app.netlify.com/projects/tanstack/deploys/69fbcfe73cefb70008705976
😎 Deploy Preview https://deploy-preview-894--tanstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 42 (🔴 down 7 from production)
Accessibility: 90 (no change from production)
Best Practices: 83 (🔴 down 9 from production)
SEO: 97 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3dfaa119-19db-434c-a336-d0f8ea2dab09

📥 Commits

Reviewing files that changed from the base of the PR and between fcade96 and e9c62a2.

⛔ Files ignored due to path filters (1)
  • public/fonts/Inter-Black.ttf is excluded by !**/*.ttf
📒 Files selected for processing (4)
  • netlify.toml
  • src/server/og/assets.server.ts
  • src/server/og/generate.server.ts
  • src/server/og/template.tsx

📝 Walkthrough

Walkthrough

This PR adds the Inter Black font (weight 900) to the Open Graph image generation pipeline. The font file is included in the Netlify build configuration, loaded into the asset cache, registered with the image renderer, and applied to template typography with white text styling.

Changes

OG Image Font Enhancement

Layer / File(s) Summary
Build Configuration
netlify.toml
Adds public/fonts/Inter-Black.ttf to [functions] included_files to ensure the font is bundled for deployment.
Asset Loading
src/server/og/assets.server.ts
Loads the Inter Black font file into the cached assets object as interBlack: Buffer alongside existing font assets.
Font Registration
src/server/og/generate.server.ts
Registers the loaded Inter Black font (weight 900) with the ImageResponse renderer's font configuration array.
Template Styling
src/server/og/template.tsx
Applies white text color (#ffffff) to pitch, docTitle, and description elements; updates title line typography with heavier weight, tighter letter-spacing (-3px), and uppercase text transform.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes


🐰 A font so bold, so black, so fine,
Makes every OG image truly shine,
White text gleaming, uppercase and bright,
The Inter family now takes flight!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: rendering the OG title uppercase in black weight with white subtitle styling.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch taren/admiring-mestorf-8e0f1c

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Comment @coderabbitai help to get the list of available commands and usage tips.

@tannerlinsley tannerlinsley merged commit 15128da into main May 6, 2026
7 of 8 checks passed
@tannerlinsley tannerlinsley deleted the taren/admiring-mestorf-8e0f1c branch May 6, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant