Dark mode toggle in user preferences

Aisha Khan Aisha Khan hace 1 mes

It would be great if users could switch to a dark color scheme directly from their profile preferences, independent of the system theme. Many of us work late and dark mode reduces eye strain.

Ideally it respects the theme's dark palette and falls back to a sensible default.

5

Great point. I had not considered the angle you raised in the second paragraph — it reframes the whole thing for me.

This is the answer I wish I had found six months ago. Would have saved me a weekend of trial and error.

I respectfully disagree on one detail. In my setup the opposite held true, though I suspect it comes down to community size.

This is the answer I wish I had found six months ago. Would have saved me a weekend of trial and error.

Tried this on a staging copy first and it behaved exactly as described. Confident enough to roll it to production now.

Appreciate the clear steps. The dry-run tip in particular saved me from a mistake I would not have caught otherwise.

For what it is worth, the same approach works with the PMPro adapter — the membership side is identical from here.