This is not entirely true. If you run the following code:
.header { $color:
You'll get
Sass Error: Undefined variable: "$color".
So, the color variable is not global at all. It is available only in the context of its definition.
However, SASS or LESS have many limitations. If you are not happy with what they offer, I suggest checking it out .
source share