News for hackers. Stuff that matters.
Re:CSS Variables published as First Public Working Draft by Kilimanjaro on Wednesday April 11, 2012 @07:35PM (#3830193)
Yep, I'd be happy with this:

    $header-color: #06c;    
    h1 { 
        background-color: $header-color;
    }
Re:CSS Variables published as First Public Working Draft by Kilimanjaro on Wednesday April 11, 2012 @07:38PM (#3830203)
Or even this:

    :vars {
        header-color: #06c;
        header-font: helvetica;
    }
    h1 { 
        font-family: $header-font;
        background-color: $header-color; 
    }
Re:CSS Variables published as First Public Working Draft by pbhjpbhj on Wednesday April 11, 2012 @08:35PM (#3830368)
@, : and $ are already well used though.
Re:CSS Variables published as First Public Working Draft by wdewind on Wednesday April 11, 2012 @08:38PM (#3830378)
Yeah, the name spacing part is crucial because you can do

:root { var-color: #000; }

p { var-color: #666; }

* { color: var(color) }