lcabrini
Theme switcher: "system" theme
I tried setting background color by theme using bg-blue-500 dark:bg-yellow-300 and that worked fine. However, the system/auto theme in the theme switcher (the one that is supposed to use the desktop theme) uses bg-blue-500 although my desktop theme variant is dark.
What is the correct way to set custom colors to an element that works with the system theme variant?
I don’t think it makes any difference but my desktop theme is Breeze dark. Browser is Brave.
Marked As Solved
LostKobrakai
The event listener is defined inline in root.html.heex by default. This is to prevent wrongly styling content while js initializes async. Also the theme setup of daisy ui is about supporting arbitrary themes, not just darkmode/lightmode. You can customize how your themes behave in you app.css. All phoenix does is set a theme name.








