W3C home > Mailing lists > Public > www-style@w3.org > December 2000

Re: Relative colours in CSS?

From: Clover Andrew <aclover@1VALUE.com>
Date: Tue, 19 Dec 2000 13:48:49 +0100
Message-ID: <5F78AA062F6AD311A59000508B4AAF6D092C01@PCS02>
To: "'www-style@w3.org'" <www-style@w3.org>
> This I like -- whilst on the subject of colours
> I'd like to be able to do things like creating my own names

The obvious syntax for this would be an at-rule to extend/replace
the built-in colour names, eg.

  @color {
    color-name: skin;
    color-base: rgb(253, 210, 189);
  }

I suppose one might also be able to fit the 'relative colours'
idea into this sort of syntax, something like:

  @color {
    color-name: bruise;
    color-base: skin;
    color-value: darker; /* or -n% or an absolute value */
    color-hue: 153;  /* IMO HSV is a more useful model than RGB */
  }

I am not convinced it's worth the extra complication of putting
this sort of thing in CSS though. It would be an advantage if
it gave the reader the opportunity to tailor pages' colour
schemes easily, but if it's just a convenience for writers
it'd be better off done by authoring tools or, eg. XSLT.
IMO.

-- 
Andrew Clover
Technical Support
1VALUE.com AG
Received on Tuesday, 19 December 2000 07:56:01 GMT

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