dark theme Arthur A. Gleckler (22 Mar 2026 17:11 UTC)
Re: dark theme Artyom Bologov (22 Mar 2026 18:11 UTC)
Re: dark theme Peter McGoron (22 Mar 2026 19:59 UTC)
Re: dark theme John Cowan (22 Mar 2026 20:25 UTC)
Re: dark theme Artyom Bologov (22 Mar 2026 20:56 UTC)
Re: dark theme Arthur A. Gleckler (22 Mar 2026 20:30 UTC)
Re: dark theme Peter McGoron (22 Mar 2026 21:24 UTC)
Re: dark theme Arthur A. Gleckler (22 Mar 2026 21:44 UTC)
Re: dark theme Peter McGoron (22 Mar 2026 22:26 UTC)
Re: dark theme Artyom Bologov (23 Mar 2026 00:37 UTC)
Re: dark theme Arthur A. Gleckler (31 Mar 2026 04:09 UTC)

Re: dark theme Arthur A. Gleckler 31 Mar 2026 04:09 UTC

I've added a dark/light/system control in the upper right-hand corner
of some pages on the SRFI site, including the home page.  By default,
the pages follow the system's settings for dark or light, but you can
click the circle to switch from system to dark to light and back.  The
setting is remembered using the browser's localStorage.

To prevent flashing during loading, I had to inline the Javascript
directly in the HTML <head>.  I've changed the <srfi generate-common>
command to insert the Javascript automatically.

I made a few adjustments to make links more readable.  Otherwise, I've kept the
look from the pull request, which I believe represents what people in
this discussion liked.

My plan is to add the same control to more pages, including the SRFIs
themselves, or at least new ones, over time.

Many thanks to Artyom Bologov, Peter McGoron, and everyone else who
helped with this.

Feedback welcome.