Dark mode toggle button

Switch to dark mode without any hassle with this simple JavaScript hack.
Sun night button

This tailwind example is contributed by Nishant Trivedi, on 22-Jul-2023. Component is made with Tailwind CSS v3. It is responsive. It supports dark mode.

17k
20

Explore components by Tags

Didn't find component you were looking for?

Search from 2000+ components

tailwindflex logo TailwindFlex.com
Tailwindflex.com is a free Tailwind CSS examples library. It's a one-stop destination for ready-made Tailwind CSS components and templates.

Contact

© 2025 TailwindFlex. All Rights Reserved.

v1.1