Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which version of less is this compatible with? #63

Open
SteveHawes opened this issue Feb 15, 2020 · 3 comments
Open

Which version of less is this compatible with? #63

SteveHawes opened this issue Feb 15, 2020 · 3 comments

Comments

@SteveHawes
Copy link

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:

.test {
  color: #0f0;
}

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

@Horcrux7
Copy link
Member

Maps are currently not supported and it is difficult to implement it. That there is no plan to implement it.

@mattcoz
Copy link

mattcoz commented Aug 11, 2020

Do you have any documentation of what is and isn't supported? I'm looking for another compiler to replace the one I've been using because it has been abandoned.

@Horcrux7
Copy link
Member

There is no such documentation. You can take a look into the *.less files of the tests to see what is working: https://github.com/i-net-software/jlessc/tree/master/test/com/inet/lib/less/samples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants