Skip to content

v5 use existing theme as base #3538

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

You must be logged in to vote

Hey,

Back then it was a JS object so you could do that. You could even do any other object manipulations with JS.
Now it's a CSS file and those are not possible here.
daisyUI 5 still made it possible to extend built-in themes based on the name. So if you're extending light theme, name should stay light.

However, good news is, you can just add multiple themes, with any color and any name. For example, go to https://v5.daisyui.com/theme-generator/ customize light theme, change its name and add it to your CSS.

Let me know if you have a question.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zkrzyzanowski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants