Is it somehow posible to change a LESSCSS variable like
@basecolor: #F90;
that is later used like this:
.myclass {
color: darken(@basecolor, 10%);
}
with jQuery based on user input from something like the following:
$("#mybutton").click(function() {
var color = $("#inputfield").val();
//Some magic to change the LESS basecolor
});
I am using less.js to compile the .less files on the fly.
Thanks in advance.