Skip to content

Conversation

@paoloricciuti
Copy link
Member

Today if you have dark mode as system preference and load svelte.dev with Javascript disabled you'll get the Light mode instead. This changes this by using the css media query to set the default in case there's no dark/light class on the body.

There's a bit of duplication but I don't think there's another way to do it unfortunately.

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.

@vercel
Copy link

vercel bot commented Oct 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
svelte-dev Ready Ready Preview Oct 22, 2025 2:59pm

@Ocean-OS Ocean-OS merged commit a6354e3 into main Oct 22, 2025
2 checks passed
@Ocean-OS Ocean-OS deleted the media-query-theme branch October 22, 2025 17: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.

3 participants