Tailwind CSS 38 🎨 Dark Mode Strategies (Media Queries vs Class/Selector-Based Dark Mode)
Dark mode is no longer a nice-to-have. Operating systems ship with it, browsers expose it, and users expect it. Tailwind’s dark: variant makes it straightforward to write styles that change when dark mode is active: bg-white dark:bg-gray-900 produces a white background in light mode and a dark gray one in dark mode. The syntax is…