Skip to content

How to get list of available themes? (Vite + React + UnoCSS + unocss-preset-daisy) #2459

Closed Answered by saadeghi
Avaray asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Avaray
Comment options

@rahul-thapa
Comment options

Answer selected by saadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants