0

I have multiple less files like variables.less, custom.less etc into variables.less files I have declared a @base variable and used in into different less file. Now we need to compile these less files using less.js and jquery so that if any user change @base color at run time then the theme change at run time. Is these any way to do it.

1

1 Answer 1

0

You can have all your .less files You want separately, then, make one to import and compile, for example libs.less

In that file, You may want to import all your other Less files; for example:

@import "common.less";
@import "variables.less";
@import "colors.less";
@import "otherlessfile.less";

Then compile... I use Winless, a very nice and easy to use compiler.

pd: This is my first answer here, regards ;)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.