Re: [css-variables][naming] Renaming 'var'

> var-purple: green;
> var-color: red;
>
> Šis obviously less confusing?

Beacuse if I'm styling a web page with coca-cola branding I'll want to use
a variable named 'red' to store the exact brand color. Since 'red' is also
color keyword, 'set-red' to me implies you might be messing with the
keyword value itself.

'var-' is less generic than 'set-', so the intention is clearer.


-- 
Pete Boere
Web Developer

Received on Tuesday, 16 April 2013 07:43:08 UTC