NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Dark mode on netbsd.org



On Tue, Nov 24, 2026 at 10:27:25AM +0000, Benny Siegert wrote:
> On Tue, 24 Nov 2026, Eugene Andrienko wrote:
> > Hello! If the browser doesn't support dark mode (e.g. NetSurf, Dillo,
> > Midori, etc) then which color mode will be used - the dark one or the
> > light one? I'm worrying because I have an astigmatism and need to use
> > the light mode everywhere, since dark mode gives me an eyestrain :-(.
> 
> Light is always the default. A manual toggle would probably need JavaScript,
> which for example Dillo does not support either.
> 
> > > I have not implemented a manual toggle so far.
> > 
> > Will it be implemented in the future? Asking for the same reason, as
> > above :-)
> 
> Maybe, but after fixing all the display issues that other people on this
> thread have pointed out. Again, a manual toggle would most likely require
> JavaScript.

There is an old web standard for offering alternative stylesheets
without JS. Unfortunately, it is neglected and barely anything supports
it any more besides Firefox.

https://www.w3.org/Style/Examples/007/alternatives.en.html
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel/alternate_stylesheet

For maximum surprise, open the w3.org page in a firefox-based browser
with the menu bar open. Go to "view", "page style", and observe choice!


Home | Main Index | Thread Index | Old Index