Skip to content

Custom theme light/dark mode help #99

Answered by joseluis9595
lnlyssg asked this question in Q&A
Discussion options

You must be logged in to vote

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:

your_custom_theme:
  modes:
    light:
      lorem: ipsum
    dark:
      lorem: ipsum

  ...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lnlyssg
Comment options

Answer selected by lnlyssg
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