Plume-org / Plume

Federated blogging application, thanks to ActivityPub (now on https://git.joinplu.me/ — this is just a mirror)
https://joinplu.me
GNU Affero General Public License v3.0
2.11k stars 136 forks source link

night mode #403

Open trinity-1686a opened 5 years ago

trinity-1686a commented 5 years ago

From Matrix :

One minor thing: no night mode.

Some users prefer a darker theme, it would be great to have a simple switch somewhere on most pages to switch between two color themes, the one we already have, and a darker "night mode" one. Before implementing that, we should take into account how it should interact with #354

Plume version (and/or commit): 0.2.0

igalic commented 5 years ago

there's also this CSS draft https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme

elegaanz commented 5 years ago

Can we consider this as fixed now that we have a dark theme by default too? The only issue is that it doesn't respect prefers-color-scheme, but I don't really know if we could easily have an "automatic" version of the default theme, that switches between ligth and dark based on that.

igalic commented 5 years ago

Chrome, Firefox and Safari already support it as do most mobile browsers. I think we can just add it, since CSS falls back gracefully (ignores things it doesn't know) we should be safe.


although, i have no idea how to set my preference in my Firefox.

elegaanz commented 5 years ago

Oh, I had an idea, we could just use @import at the end of the CSS file to import the other variant when needed.

although, i have no idea how to set my preference in my Firefox.

Probably some flag in about:config for the moment? Or maybe it uses the preference from your DE?