-
I wish to create menu to switch themes, but I don't know how to import list of themes that I use. Edit: After building project for production I can see list of themes in CSS. But that's Not what I'm searching for. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Here's a way: you can put themes in a js file, and import it both in tailwind config and your page: |
Beta Was this translation helpful? Give feedback.
Here's a way:
you can put themes in a js file, and import it both in tailwind config and your page:
https://stackblitz.com/edit/daisyui-vite-ug9u4q/?file=src%2Fthemes.js,src%2Fmain.js,tailwind.config.js