W3C home > Mailing lists > Public > www-style@w3.org > June 2003

Re: author-defined color aliases

From: Kynn Bartlett <kynn@idyllmtn.com>
Date: Sun, 15 Jun 2003 17:09:17 -0700
Cc: www-style@w3.org
To: Brant Langer Gurganus <brantgurganus2001@cherokeescouting.org>
Message-Id: <C5542C48-9F8E-11D7-8E3E-000393D9E692@idyllmtn.com>

On Sunday, June 15, 2003, at 11:19 AM, Brant Langer Gurganus wrote:
> While it is probably too late for CSS3 Color Module consideration, I 
> believe that author-definable color aliases would be useful.  CSS can 
> define the RGB values of common colors (red, green, blue, etc.) and 
> then authors can define aliases to their commonly used RGB values.
> The advantages of such an addition to CSS would be more consistend 
> color themes because there would be fewer chances for typos.  If I 
> have a color like #7F027E, it is easier to associate that with a color 
> name than to remember that obscure combination over and over.

I don't see the point, if this is just for the author's benefit.  It
seems to me that you could simply solve the problem with an improved
authoring environment -- say, create your style rules with macros of
some kind, and then process them out of the style sheet before
publishing them to the server.  Or you could dynamically generate
your style sheet with ASP/PHP/JSP/Perl/whatever.

If there were advantages for the _end user_, then sure, I could see
doing this.  (Like, for example, if the end user could redefine
the color name 'green' to compensate for red-green colorblindness.)

But simply for author convenience?  No way.  Better ways to solve
THAT problem.


Kynn Bartlett <kynn@idyllmtn.com>                     http://kynn.com
Chief Technologist, Idyll Mountain                http://idyllmtn.com
Author, CSS in 24 Hours                       http://cssin24hours.com
Inland Anti-Empire Blog                      http://blog.kynn.com/iae
Shock & Awe Blog                           http://blog.kynn.com/shock
Received on Sunday, 15 June 2003 20:04:16 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:07 UTC