ollie314 / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

CSS variables (ex. for color scheme) #192

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I think CSS variables would be a nice addition to zen-coding.

First define all variables at the top of the CSS document like:

// $blue = #1c7ebf
// $gray = #e1e1e1

And then you can use the variables throughout the whole css document:

#footer{
background:$gray;
color:$blue
}

will be 

#footer{
background:#e1e1e1;
color:#1c7ebf
}

I know this can be achieved by adding snippets for each color but not all sites 
have the same color scheme + that takes much more time.

Original issue reported on code.google.com by thijsss...@gmail.com on 30 Jun 2010 at 9:00

GoogleCodeExporter commented 9 years ago
Should not be a part of Zen Coding, use LESS/SASS if you need variables

Original comment by serge....@gmail.com on 1 Feb 2011 at 10:54