mancuoj

mancuoj

Better late than never.
github
twitter

Simple Implementation of Switching Light and Dark Themes in Daisy UI

For React + Tailwind CSS projects, the same applies to other languages, just change the data-theme attribute of the html tag.

If you want to remember the user's selection, you can retrieve the theme from localStorage and store the value when the user changes it.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.