Automatically switch Discourse theme upon browser theme change

If I attempt to change my theme at u/rokejulianlockhart/preferences/interface:

image

…there is no way to force adherence to color-scheme: light dark:

image

All other Discourse instances I’ve utilised do.

Hi @RokeJulianLockhart I’m not sure why… I just tried to change my theme to Dark and it worked.

There are two Light themes with different components I guess. The second one is better on mobiles I think.

@how, your Discourse theme? If so, you changed it via /preferences/interface? If so, that’s a workaround: Discourse should automatically switch between them based upon what your browser reports its theme as.

I’m certain I do not understand your issue. I have no clue how browsers handle dark/light themes, and why this Discourse would behave differently than any other.

@how, presumably, this instance runs an older version? At meta.discourse.org, I see:

1 Like

I just upgraded. I think the “Dark Mode” switch belongs to the theme itself. Our current theme does not have it.

OK I found it. I had to go through Dark/light mode toggle now available in core - #24 by ozzi - Announcements - Discourse Meta and find this response in order to get what was going on.

Now the color switcher appears at the bottom of the (new) sidebar.

The black/white disk on the left is the toggle

(But this toggle does not seem to be effective. I think this is way above my head and not worth the trouble. Please follow the above topic on Meta and report when it’s been clarified.)

1 Like