There is a default Background Class for all themes. #562
-
Hello, first I would like to congratulate you on DaisyUI :) I have a doubt, what is the background class we have to use for multiple themes? Is there a default class? In my testing when using bg-base-* or neutral classes, some components get bad and others don't. I don't know what the default background for each theme would be. Thanks for listening. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use any color but So this would be the safest option for nesting themes inside each other: <div class="bg-base-100 text-base-content" data-theme=dark>
<div class="bg-base-100 text-base-content" data-theme=light>
<div class="bg-base-100 text-base-content" data-theme=night>
</div>
</div>
</div> |
Beta Was this translation helpful? Give feedback.
You can use any color but
bg-base-100
would be the best choice. If you're nesting themes you will also need to set the text color otherwise it will inherit from the parent.So this would be the safest option for nesting themes inside each other: