Skip to content

Playground loses darkmode when tailwind is enabled #1263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sacrosanctic opened this issue Apr 5, 2025 · 1 comment
Open

Playground loses darkmode when tailwind is enabled #1263

sacrosanctic opened this issue Apr 5, 2025 · 1 comment

Comments

@sacrosanctic
Copy link
Contributor

sacrosanctic commented Apr 5, 2025

I tried using :global(body) but that doesn't seem to work.

Recording.2025-04-05.154654.mp4

The behaviour is also different from when the tailwind CDN is imported. REPL

@dummdidumm
Copy link
Member

The logic right now is that we override the base CSS completely when there's tailwind CSS, which is probably the more sensible behavior (we can't really know what the tailwind CSS is doing, for example in which way it supports dark mode). Merging CSS could result in weird outcomes.
We could however add some basic dark mode support built-in - but it would only work when you're not adding your own global CSS (which will be possible through #1383)

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

No branches or pull requests

2 participants