Skip to content

awesomerobot/discourse-header-theme-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published