Closed benfrain closed 9 years ago
You should miss $
in variables
.
But also we should add check for this case in plugin.
Ha! Glad I asked - thanks for that. I was trying all manner of more complicated things! Yes, if it could adapt to there being a $
that would be really useful as vars from CSS style could be easily ported into JS object.
If you want me to adapt the readme for this I would be happy to. However, if you plan on adapting the JS to cope it would be unneeded. :+1:
I will fix choice ru work with both cases $name
and name
.
Fixed 82f1ac3
Released in 1.0.1
Amazing, thanks :)
On 15 Sep 2015, at 18:14, Andrey Sitnik notifications@github.com wrote:
Released in 1.0.1
— Reply to this email directly or view it on GitHub.
I'm using Gulp and here is the relevant section of my gulpfile.js:
Within my
preCSS/variables.js
I have my vars set up like this:Now, in my CSS files I have a rule like this:
The build fails with 'undefined variable $color-grey-47'
Is this how I should be referencing my vars in the CSS? Like I would if they were defined in the CSS? You will notice that the mixin (
FontHeadline
) I have included in the Gulpfile references the vars in a JS fashion (and this works) but when I try that in the CSS it fails too.Could you advise what I'm doing wrong here? Thanks for any pointers.