CZT
CZT
About

Creating a Sleek Theme Switcher Using Tailwind

#css#javascript#react#tailwind
2022-10-30

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.

© 2023 Christian Z. Tamayo • Built with Next.js, Tailwind, and MDX • Hosted on Vercel • Terms