Switching between the Default and Dark theme doesn't have any effect on bg color

For me, on meta.discourse.org the Default and Dark theme both display with a black background.

On one of the Discourse sites I’m admin for when switching between the Default and the Dark theme they both display with a white background - the Dark theme is set to use the Dark Colour Palette.

Installed version:
3.4.0.beta3-dev
(6b3e28216c)

It’s occuring for me when using Google Chrome: Version 131.0.6778.140 (Official Build) (64-bit)

Can’t replicate it on Firefox 133.0 (64-bit).

Which color palette have you selected in your preferences? Since that is something you can select per device, don’t forget to check the settings in Chrome and Firefox

The color palette isn’t changed when you select a different theme. So when I choose grey amber, I have to select the default color palette to actually see the colors. Though I remember I had problems even when I did that.

Thanks @Moin - It was set to Color Palette Regular: Dark. Changing it to Default Light the background color is changed to white etc.

Is this a new addition? I’ve swtiched themes in the past from Default to Dark and vice versa which seemed to also change the colour background without changing the Color Palette setting.

Has worked that way as long I’ve used Discourse, something like 4 years I guess.

1 Like

I think as long as you do not change the palette and use “theme default,” the color changes as expected. But once you select something else, the result is confusing.

@tobiaseigen said it’s an area they are currently working on in How to make the automatic dark theme the same as the selected dark theme? - #5 by tobiaseigen. So hopefully, improving the setup for admins will also make it easier for users.

I think having a default light and dark color palette per theme, which is set when the user chooses that theme, would help. Otherwise, selecting palettes like grey amber is difficult because it’s not an option for all themes and the defaut dark mode scheme setting makes things even more confusing.

2 Likes

A default light and dark color palette per theme which is set when selecting one or the other sounds good.

You get a different experience if you switch themes when browsing anonymously - Default: white background, Dark: black background for instance. (as the user hasn’t changed the palette.)

1 Like