Sidebar Color Palette Toggle

:information_source: Summary Sidebar Color Palette Toggle adds a color-scheme selector in the sidebar menu’s footer provided there is more than 1 user selectable color-scheme. This selector works with both logged-on users and anonymous users.
:hammer_and_wrench: Repository https://github.com/Lhcfl/discourse-sidebar-colorscheme-toggle
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

TL;DR

It works completely like Sidebar Theme Toggle but it is used to select color palettes instead of themes.

9 Likes

I took this for a spin and it’s really quite nice! Foundation out of the box works very well with all the palettes offered by default, including those from horizon. So it would be nice to be able to let site members choose a different palette to suit their taste. Horizon has a palette chooser built in, but foundation does not.

But sadly I think this component is broken, now that the way dark mode is handled has changed in Discourse. When you choose a different palette:

  • light/dark toggle button in sidebar disappears
  • dark mode palette changes to a number in user prefs
  • dark mode stops working

Here’s a screencast of my experience:

1 Like