i-net-software / i-net-software/jlessc

Which version of less is this compatible with?

Open
#63 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
60
Forks
15
PR merge metrics
No merged PRs in 30d

Description

I am trying to use a feature that is present in less.js V3.5.0 ([Maps](http://lesscss.org/features/#maps-feature)) 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:
```
.test {
color: #0f0;
}
```

Instead I get an error saying
`Undefined Variable: @colors[@@theme][base]`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.