Skip to content

fix(web): set an explicit page background for dark mode - #49

Merged
yusukebe merged 1 commit into
mainfrom
fix/web-dark-mode-background
Oct 22, 2026
Merged

yusukebe merged 1 commit into
mainfrom
fix/web-dark-mode-background

Conversation

@yusukebe

@yusukebe yusukebe commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

In dark mode the text turned light but the page stayed white, because color-scheme: light dark was set only on <body> and the root canvas kept the light scheme. This gives the body an explicit --bg (white / stone-950 in dark), which propagates to the whole canvas.

Closes #47

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm format && pnpm lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit fa201fd into main Oct 22, 2026
1 check passed
@yusukebe
yusukebe deleted the fix/web-dark-mode-background branch October 22, 2026 10:04
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.

Poor contrast in dark mode makes the web unreadable

1 participant