I am trying to use a feature that is present in less.js V3.5.0 (Maps) but it throws an error.
Consider the following less:
@colors: {
@red: {
base: #f00;
};
@blue: {
base: #0f0;
}
};
@theme: blue;
.color(@color, @type) {
}
.test {
color: @colors[@@theme][base];
}
This should produce the following output:
Instead I get an error saying
Undefined Variable: @colors[@@theme][base]