This is a theme component that will allow you to add alternative logos on a per-theme basis. So, you can have two different sets of logos - one for your dark themes and one for your light themes.
The effects of this theme are purely visual. All functionality is intact / unchanged.
Repository link
https://github.com/discourse/discourse-alt-logo
Theme Creator Preview:
https://theme-creator.discourse.org/theme/Johani/alt-logo
Samples
To demonstrate what this theme does, here’s an example.
Let’s say this is your logo
You add it in your site settings or via the wizard and it looks like this
However, let’s say you want to also allow your users to be able to use a dark theme. Here’s what happens
The same goes with the small logo that shows up when you scroll and the mobile logo.
This theme attempts to address the issue by adding three theme settings that you can use to override the logos on a per-theme basis:
The end result is something like this:
You keep the default logo in themes which don’t have this component:
While being able to override it in themes that do have this component added:
How do I install this component?
Follow the official theme installation guide here
Then add the component to the themes you want to use it on and you’re all set!
If you’re new to Discourse themes, you can learn more about them here.