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

Re: [css-ui] Styling Form Controls

From: Florian Rivoal <florian@rivoal.net>
Date: Thu, 29 Jan 2015 21:39:20 +0100
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-Id: <6B349C6D-443B-46DA-99D1-77FBB9680F86@rivoal.net>
To: "Tab Atkins Jr." <jackalmage@gmail.com>

> On 29 Jan 2015, at 20:11, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> On Thu, Jan 29, 2015 at 3:25 AM, Florian Rivoal <florian@rivoal.net> wrote:
>> 2 + 3 could probably be worked around by having the UA workout your color palette from the various controls you've styled, and derive the full list of colors it needs from that. But in that case, why not provide that directly?
>> @controls {
>>  saturated-light-color: <color>+;
>>  saturated-dark-color: <color>+;
>>  neutral-light-color: <color>+;
>>  neutral-dark-color: <color>+;
>>  preferred-scheme: light-on-dark | dark-on-light;
>> }
>> Or something along these lines. I am not a designer, so I am not sure what's the best way to label the components of a palette, but you get the idea. The UA could pick from the list for the relevant aspects of its controls, and generate additional or intermediate colors as needed from there.
>> When it comes to fonts, by a similar logic, rather than giving the fonts based on building blocks, you could give them by intent: title-font, text-body-font...
> Yes, I think this is a better approach for this kind of thing.  It
> lets UAs continue to innovate in form control UI, while letting
> anything imaginable integrate into the page.  It's basically a set of
> UA-defined variables, just using a syntax that doesn't clash with
> custom properties.

Per UA-defined, you don't mean implementation specific, right?
The trick is to figure out which which properties/variables to expose, to have something meaningful across UA and across platforms. Just one 'color' descriptor, and you throw all your palette in there, coma separated? Split it into categories as I suggested? Split it into semantic categories? Feedback from people who actually know something about building color palettes and applying it to various designs would be welcome.

 - Florian
Received on Thursday, 29 January 2015 20:39:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:50 UTC