How to make the automatic dark theme the same as the selected dark theme?

Many apologies! This is a confusing area in our admin interface, and we are working to improve it currently. I hope I am getting this right but let me explain the current functionality my way.

One change is that we are starting to talk only about “color palette” and no longer “color scheme”. That will change in the UI soon. As of now, palette and scheme are the same thing.

To make use of dark mode support in discourse, I’ve had the best luck with the following:

  • have only one theme enabled
  • specify the light mode color palette in the settings for the enabled theme
  • specify dark mode color palette in the default dark mode color scheme id site setting.
  • dark mode operating system setting of your members is respected
  • dark mode toggle theme component works to toggle light/dark mode
  • your members can see the light and dark mode options in their user preferences (and do not see the theme selector because there is only one theme)

If you have customized your dark theme beyond the color palette used and you don’t want people to use the light mode theme with dark colors, then you can’t use the dark mode selector. You would:

  • have two themes enabled
  • light mode theme has light colors
  • dark mode theme has dark colors
  • default dark mode color scheme id setting is not specified
  • dark mode operating system setting of your members is NOT respected
  • the dark mode toggle theme component does not work
  • in your user preferences your members can choose their preferred theme

And finally, if you only want one light or dark theme, just enable one theme and one palette, and don’t specify any palette in the default dark mode color scheme id site setting.

4 Likes