Custom theme light/dark mode help #99
-
I created a basic custom theme so I could hide the top navbar as per the info in the README but I just realised that in doing so I've lost the auto light/dark mode switching and it defaults to light mode all the time. Is there a way around this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! Honestly, didn't even realize about this until now, as I'm using a custom theme with lots of options apart from the ones in the README. Seems like home assistant needs a A quick workaround to make your theme adapt to both, would be to add a fake override for each mode entry, like so: your_custom_theme:
modes:
light:
lorem: ipsum
dark:
lorem: ipsum
... |
Beta Was this translation helpful? Give feedback.
Hi! Honestly, didn't even realize about this until now, as I'm using a custom theme with lots of options apart from the ones in the README.
Seems like home assistant needs a
modes
entry configured in your theme, to be able to detect that your theme can be used both in light and dark mode, even if there's no css overrides.A quick workaround to make your theme adapt to both, would be to add a fake override for each mode entry, like so: