Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#145 2026-01-15 16:12:38

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,684
GitHub

Re: RFC: Textpattern 5 ideas & feature requests

Consider a core theme with dark mode detection / toggle.

I think it can be done with CSS and a little JS, it certainly doesn’t need a big framework to accomplish.

Offline

#146 2026-01-15 16:32:08

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,382
Website GitHub

Re: RFC: Textpattern 5 ideas & feature requests

gaekwad wrote #342229:

Consider a core theme with dark mode detection / toggle.

Looks easy. But there are probably corner cases.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#147 2026-01-15 23:23:19

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,613
Website

Re: RFC: Textpattern 5 ideas & feature requests

gaekwad wrote #342229:

Consider a core theme with dark mode detection / toggle.

I think it can be done with CSS and a little JS, it certainly doesn’t need a big framework to accomplish.

What do you mean by “with dark mode detection / toggle.” ?

Both Hive admin and the Textpattern public theme already have a dark theme built in.

To limit the use of media queries light-dark() works great (a Bloke notes), but check backwards compatibility.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#148 Today 10:23:23

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,684
GitHub

Re: RFC: Textpattern 5 ideas & feature requests

phiw13 wrote #342241:

What do you mean by “with dark mode detection / toggle.” ?

Both Hive admin and the Textpattern public theme already have a dark theme built in.

“Detection” == show the appropriate dark / light theme depending on the browser / operating system preferences.

“Toggle” == provide a switch / toggle override for light / dark, per the Hive admin theme.

Offline

Board footer

Powered by FluxBB