NetBSD-Users archive

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

Re: Dark mode on netbsd.org




> Am 24.11.2026 um 09:46 schrieb Eugene Andrienko <evg.andrienko%gmail.com@localhost>:
> 
>> This needs a browser that supports dark mode, e.g. Firefox under KDE
>> -- when you set the desktop to a dark theme, Firefox will also prefer
>> dark.
> 
> 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 :-(.

It is written using media queries, so it should only use dark mode if your 
browser/desktop supports the prefer-color-scheme media query and is configured
to use dark mode. If a browser that doesn’t support dark mode shows the page in
dark mode, it is a bug (from us or the browser).

See https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-color-scheme

> 
>> I have not implemented a manual toggle so far.
> 
> Will it be implemented in the future? Asking for the same reason, as
> above :-)

A manual toggle is mainly a override for users that want to use the opposite 
color scheme than the one configured in the browser/desktop. With media queries 
selecting the preferred color scheme automatically, you should not need it too 
much. I’d go as far and say its main use is development: being able to quickly
switch between the two modes to see how they differ.

Yuri


Home | Main Index | Thread Index | Old Index