Creating a Sleek Theme Switcher Using Tailwind
#css#javascript#react#tailwind
In this article, we will try to make a simple button that switches between icons based on the selected theme - similar to what I use on my navbar up top. We'll then give it a nice rotate transition to give that sleek look, all without writing any CSS thanks to Tailwind.