Re: Colour tweaking (was: Re: Agenda conf call 25-jan-2012)

On Wed, Jan 25, 2012 at 8:36 AM, Chris Lilley <chris@w3.org> wrote:
> On Wednesday, January 25, 2012, 5:21:15 PM, Tab wrote:
> TAJ> On Wed, Jan 25, 2012 at 8:11 AM, Chris Lilley <chris@w3.org> wrote:
>>> You can lighten, darken, hue rotate, desaturate already using the filter syntax.
> TAJ> That lets you lighten/darken/etc an entire particular element.  It
> TAJ> doesn't help the use-case of tweaking a color that is then used
> TAJ> throughout the document (like a variable), or of tweaking the color
> TAJ> used in a single property in an element.
>
> Ah, okay.
>
> So the use case is declaring one colour in a style sheet then generating a bunch of (lighter/darker/triad) colours from it?
>
> If so, should the dependent colours change when the base colour is changed (by script) or animated?

Yes, definitely.  CSS is declarative, and you're declaring "I want X
color, but darker", so it should *always* be a darker version of X, no
matter how X changes.

~TJ

Received on Wednesday, 25 January 2012 16:39:40 UTC