By default it follows the operating system setting (prefers-color-scheme). It can also be switched manually with a class on the <html> element.
💡 Key Takeaways: Tailwind Dark Mode
Mastering Tailwind Dark Mode helps you write clean and reliable Tailwind CSS code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.