vercel / vercel/satori

Dark Mode Support

Open
#331 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
14k
Forks
364
Avg merge
11m
Merged PRs (30d)
5

Description

Feature Request

Description

SVGs allow the use of style tags and media queries prefers-color-scheme to generate dark-mode friendly images that match system color settings.

Example: This square below is red when the system setting is on light mode and green on dark mode~
dark mode demo

Any suggestions on how this can be accomplished with satori? 😃

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file, test, or entry point. Start by locating Satori's handling of style tags and prefers-color-scheme media queries; done means generated SVGs respond to system light and dark settings, with coverage for both modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.