Automatic Night Mode Plugin


#1

Some users have been asking about automatic switching between a light and a dark theme. Could this be accomplished with a plugin?

I assume this would need two parts:

  • a theme component with a javascript switching themes based on local time

  • a Discourse plugin adding options to the user preferences page:
    turn night mode switching on/off, choose nighttime theme, set time nighttime time period

How difficult would it be to code? As in, how much would it cost?


(Denis Heraud) #2

That would be AWESOME!


(Sam Saffron) #3

With a plugin for sure, a bit harder to swing as a theme component.

If you reuse the logic in chronos by @joffreyjaffeux it will probably be not too hard. I would say 2 days of work if I had to pull out a number.