W3C home > Mailing lists > Public > www-style@w3.org > January 2012

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 25 Jan 2012 08:38:41 -0800
Message-ID: <CAAWBYDDT1wvB2VJ0FUvRZrP6mFtdvr_Nd7HFkcsVj=k0NvH42w@mail.gmail.com>
To: Chris Lilley <chris@w3.org>
Cc: CSS public list <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:49 GMT