KamoCRM

Lock Tailwind dark mode variant to class-based, never OS media query

Fixkamo-marketing
Shipped
18 ஏப்ரல், 2026 அன்று 3:04 AM UTC
Author
Kamo
Commit
f86c91a

Tailwind v4 defaults dark: utilities to respond to prefers-color-scheme (OS preference). The @variant override ensures dark: classes only activate when a .dark class is present in the DOM — the OS can never flip colors on any device.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing