feat: make OG image appearance configurable via theme/config
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 1
- Avg merge
- 12h 29m
- Merged PRs (30d)
- 12
Description
Problem
`src/server/routes/og.tsx` has all visual properties hardcoded:
- Background: `#0a0a0a`
- Text color: `#fafafa`
- Font: Inter (fetched from Google)
- Title size: 56px
- Dimensions: 1200x630
Site owners using a brand with different colors/fonts get generic-looking social previews.
Also, the output is SVG which many social platforms (Twitter/X, LinkedIn) don't render — should convert to PNG.
Suggested Fix
- Read colors/font from theme config or a new `og` config section
- Convert SVG → PNG using Sharp (already a dependency)
- Cache generated images with content-based keys
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/server/routes/og.tsx and inspect how theme/config is structured, then verify the existing Sharp dependency. Define the configuration and caching behavior before changing the generator. Done means configurable colors and fonts, PNG output at the stated dimensions, and content-based caching.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100