Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 1.55 KB

README.md

File metadata and controls

23 lines (12 loc) · 1.55 KB

discourse-header-theme-toggle

I've built a simple toggle for the header that switches between two themes on click.

gif preview|548x120,75%

🛠️ Github repo: https://github.com/awesomerobot/discourse-header-theme-toggle

🤷‍♂️ How do I install a theme component?

In the theme component's settings, you can define the two themes and optionally enable immediate reloading (sometimes required for more complex themes).

theme settings|690x316,75%

⚠️ Please note

  • Both themes must have Theme can be selected by users enabled, and both themes must also have this theme component added.

  • The theme name is used in the toggle. I strongly recommend short names!

  • I have not yet added mobile support, so this only works on desktop for now

🍻 Inspired by B-iggy's Alien Night Theme & Theme Switcher Component, and heavily borrowing from Sam's Hamburger Theme Selector