Variables = Parent
venelinn opened this issue · 3 comments
venelinn commented
Hi,
Is there a way to do something like this?
$baseColor: #444;
$baseText: $baseColor;
Thanks !
ai commented
Yeap. In this order it should work.
ai commented
I tested with CSS:
$baseColor: #444444;
$baseText: $baseColor;
color: $baseText;
and got:
color: $baseText
Error was reported to 51 line in source code. So this 2 lines is not all that you have there. Maybe problem is different.
ara4n commented
hm, it's working for me...
sierra:vector-web matthew$ cat > test.css
.moo {
$baseColor: #444444;
$baseText: $baseColor;
color: $baseText;
}
sierra:vector-web matthew$ node_modules/.bin/postcss -u postcss-simple-vars test.css
.moo {
color: #444444;
}