Re: Relative colours in CSS?

> 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 UTC