I wanted to include a patch, but no obvious way without it being messy really stood out, so this is only a bug report. contrib/css describes using the 'prefers-color-scheme' media query selector, but Gentoo got a report that the selection between light & dark didn't work. One of the other devs traced it down to nuances of the HTML link media attribute: query expressions are not valid in the HTML variant in some browsers. This is also mentioned here: https://stackoverflow.com/questions/69113672/loading-css-based-on-prefers-color-scheme-media-query > Loading CSS based on any media query expression seems to be out of specification for the media attribute. As a workaround, I merged the two files with a wrapper, but it feels sub-optimal, because the entire text gets injected into the PI HTML. ``` @media(prefers-color-scheme: dark) { ... #content of 216dark } @media(prefers-color-scheme: light) { ... #content of 216light } ``` I think the cleanest solution would be a variant of the above: clauses, but with @import statements inside them, and making PI-httpd expose all the CSS Files. -- Robin Hugh Johnson Gentoo Linux: Dev, Infra Lead, Foundation President & Treasurer E-Mail : robbat2@gentoo.org GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136