How to create multiple themes #3525
-
I'll be A/B testing different color combinations so I need multiple custom themes on my website. I've looked through the beta documentation and found this for making custom themes, but I need to know how to make more than one. If multiple custom themes isn't possible, how can I change the color variables during runtime? I need to be able to dynamically change the colors on my website. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It's possible, just add You can use theme generator to create themes quickly, copy the CSS and add it to your CSS file. Example: Let me know if you have a question. |
Beta Was this translation helpful? Give feedback.
It's possible, just add
@plugin "daisyui/theme" {...
one after another.You can use theme generator to create themes quickly, copy the CSS and add it to your CSS file.
Example:
https://play.tailwindcss.com/foHfzej9xK?file=css (Only in Tailwind Play
@beta
tag is needed because daisyUI 5 is beta until next week)Let me know if you have a question.