Automatic dark mode picks wrong logo unless correct colour palette is selected manually

I also tried rebuilding with no success.

With dark mode enabled on my computer, in the source code of the forum I see this:

data-color-scheme-is-dark="false"

It sets the color scheme to a dark one, but apparently it’s not dark for the logo to also be dark..?