W3C home > Mailing lists > Public > www-style@w3.org > April 2009

Re: Automatic scheme: dark or light

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 28 Apr 2009 09:57:49 -0500
Message-ID: <dd0fbad0904280757h373b6d42i9ebba2c1fc92ca93@mail.gmail.com>
To: adderek.pl+SPAM@gmail.com
Cc: www-style@w3.org
On Mon, Apr 27, 2009 at 3:04 AM, Maciej Wakuła <adderek.pl@gmail.com> wrote:
> User screens are usually dark-on-light or light-on-dark.
> Example: VIM editor has color schemes that are defined as light or dark.
> I have not seen any automated mechanism of determining which is used
> by the user (so that scheme could set to correct stylesheet).
> I think that only W3C can implement that feature to become a standard
> (since, thanks to any god, "the browsers" seek to get compatible with
> W3C).
> Currently I find internet web pages to be mostly designed for
> dark-on-light desktops mostly. Whenever I set dark OS scheme - the
> contrast between OS and user pages is too high for 99% of the pages.
> I would like to see some automated mechanism to open pages in correct
> (light or dark, depending on my OS settings) style. If no style is
> defined then browsers could at least try to optionally invert the
> colors.
> Text browsers could probably support that... and are probably more
> impacted by the issue than the graphical browsers.
> I guess that this is a simple, yet intuitive and quite important, request.

I actually have this same problem (I use a green-on-black scheme to
help my eyes).  I solved it with a user stylesheet through the Stylish
extension on Firefox.  It's a bit drastic, but it achieves what I
needed, and makes everything look like old-school consoles.

Basically, just setting "*{ background: black !important; font-color:
#0f0 !important; }" fixes the issue, and still leaves most websites

This is pretty much just a UA issue, though, not a CSS issue.  It's
perfectly appropriate for browsers to offer an alternate default
stylesheet.  Just bug the implementors of whatever you use or, if you
have a browser that supports them, put together a user stylesheet for
yourself.  I can share my full "Consolizer" stylesheet with you if
you'd like.  ^_^

Received on Tuesday, 28 April 2009 14:58:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:36 UTC