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

author-defined color aliases

From: Brant Langer Gurganus <brantgurganus2001@cherokeescouting.org>
Date: Sun, 15 Jun 2003 13:19:23 -0500
Message-ID: <3EECB8AB.2020007@cherokeescouting.org>
To: www-style@w3.org

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.

Example of CSS-defined color (normatively included in specification):
@color-definition {
    name: white
    color: #FFFFFF
}

Example of Author-defined color:
@color-definition {
    name: almostBlack;
    color: #010101
}

Example Usage:
body {
    color: almostBlack;
    background-color: white
}

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.

-- 
Brant Langer Gurganus
<http://www.cherokeescouting.org/OtherUnits/Troop545IIN/brant.xhtml>

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT/M/P/S/TW d- s+:- a18 C+++ U P+ L E-- W+++ N+++ o K- w+ O--- M-- V- PS+ PE-- Y-- PGP--- t+ 5 X R tv+ b++ DI D G++ e h! !r y-
------END GEEK CODE BLOCK------



avast! (VPS 6/13/2003): the message contains no virus
Received on Sunday, 15 June 2003 14:19:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:21 GMT