Implementing a Dark Mode Toggle in Laravel with Tailwind CSS 4

TailwindCSS 4 out the box supports prefers-color-scheme CSS media feature, I want class based dark mode support