Letting users select different themes


(Erlend Sogge Heggen) #1

Continuing the discussion from What about an easier styling/theming system?:

Will your theming system support showing different themes for different users? I’m not talking about completely different themes with HTML and JS changes. But it occurred to me that it could be rather nice to let users pick between a Light vs a Dark theme on our forum, provided we’ve made our theme to support that feature of course, because that shouldn’t be a given for every Discourse theme.

Example from Tweetdeck:


It's a dark theme!
Per-user theme selection
Coming soon to Meta :new_moon: DARKNESS :new_moon:
Peronsal Customizable Forum Themes
A more robust ecosystem for creating, sharing and modifying themes
Night Mode Switch for Mobile Devices
Sprockets Upgrade
Per-user theme selection
A more robust ecosystem for creating, sharing and modifying themes
Per-user theme chooser
(Kris) #2

Yes! we’re totally planning on a simple dark/light switch along with a few other pre-defined color combinations to choose from. Near future!


(Erlend Sogge Heggen) #3

Perfect. The near future is my all-time favorite place.


(David Winslow) #4

Hello, has there been an update on this? I just started using Discourse and already had this request from several users.


(Jeff Atwood) #5

There is no support for per user theming and no plans for it. You may want to point your users to Stylish extension for their browser.


(Erlend Sogge Heggen) #6

So what still holds true for what @awesomerobot was referring to when he said this?

Strictly the theme customiser, without per-user switching? Well then, I hope we can make it possible through plugins somehow. Thanks for the Stylish tip, could be useful in the meantime.


(Dave McClure) #7

There is a work-around for this now:

I have both links bookmarked so I can go back and forth between them easily here on meta. You could do something similar with links in a custom header.


(Sam Saffron) #8

Minor caveat, there is no way at the moment to apply a “custom style” on top of a “base style” so you lose on the base customisations (like the feature and bug tabs at the moment)


(Dylan) #9

I definitely think letting users choose from a couple or so different themes is helpful. Some like lighter designs, some like darker designs.

If the Admins create a few theme options it would be good to be able to make it where users could have an option in their preferences to switch between the configured themes.

Are there any plans currently to have something like this implemented?


(Dave McClure) #10

Check out this post for a customization that has been used in the wild, and also sam’s later comment:


Color changes can't be previewed?
(Dylan) #11

Easy enough to do, works for now.


(Daniel M ) #16

Continuing the discussion from Coming soon to Meta :new_moon: DARKNESS :new_moon::

No, that was a mockup of a per-user theme selector, located under preferences (in fact, the mockup was based off of a “custom field” on a VM that I installed discourse on a while back). I still think that a built-in per-user theme would be better than installing an extension (+ the user doesn’t have to know how to write CSS).

BTW, when I quoted my post, discourse didn’t automatically copy images.


(Sam Saffron) #17

Per user theme selection is not something we have scheduled or planned.


(Jeff Atwood) #18

If anyone wants to work on it as a community PR that is fine.


(Sam Saffron) #19

Just keep in mind we need preview style function working in admin before any of this


#21

[quote=“sam, post:4, topic:32450, full:true”]
Just keep in mind we need preview style function working in admin before any of this
[/quote]Seems to me that adding user selectable pre-defined themes that have restricted visibility (by TL or group, for instance) would be an easy way for an admin to preview a new style. :smile:

I wish I could take credit for this brilliant idea, but it is straight out of vBulletin.

The theme picker could be shown to a user who has the ability to pick themes (by TL?) and there’s more than one that he is able to pick given his credentials. So an admin could define and save a new theme but only permit it to the admin group, and then select it in the front end and give the system a test drive with it, all out of sight from regular users.

And slightly off-topic, on the New Color Scheme page, sure would be nice to have some sort of color picker built in.


(Rod James) #22

My client would love to have user selectable themes! They have a dark and light theme that they would like to present to their commentators.


(Keith) #23

I’m bumping against this too - a large handful of my users are complaining that they want dark theming, that the light theme is melting their eyes, which spawned another handful to proclaim that they hate dark theming, and its worse on their eyes…etc etc etc…

Would this be that difficult to solve?


(Sam Saffron) #24

This is on our tentative roadmap but not slotted for any release yet, the new theme work will have to precede this


(Sam Saffron) #25

Implemented per: