-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
What version of Tailwind CSS are you using?
4.0.0-beta.8
What build tool (or framework if it abstracts the build tool) are you using?
Next.js 15.1.1, postcss 8.4.49
What version of Node.js are you using?
Bun 1.1.40
What browser are you using?
Safari
What operating system are you using?
macOS 15.2
Describe your issue
Original description
With optimization enabled, LightningCSS exclusively respects the color-scheme declaration set on the html element, not elsewhere.
<html className="scheme-light dark:scheme-dark">
<...>
<div className="text-foreground">Hello</div>
<div className="text-foreground scheme-only-dark">Hello</div>
</...>
</html>
Metadata
Metadata
Assignees
Labels
No labels