Alternative logo for dark themes

theme-component

(Joe) #1

This is a theme component that will allow you to add alternative logos for dark themes / light themes.

The effects of this theme are purely visual. All functionality is intact / unchanged.

Repository link

https://github.com/hnb-ku/discourse-alt-logo

Demo:

https://theme-creator.discourse.org/theme/Johani/alt-logo


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:

And the same goes with the small logo that shows up when you scroll.


This theme attempts to address the issue by adding two theme settings that you can use to override the logo(s) 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 your theme(s) as a theme component and you’re all set!



Color Scheme Contest (with Prizes!)
Color Scheme Contest (with Prizes!)