I want to change a less variable on client side.
Say I have a less file
@color1: #123456;
@color2: @color1 + #111111;
.title { color: @color1; }
.text { color: @color2; }
I want that user yo pick a color and change the value of @color1 and recompile css without reloading the page.
Basically I’m looking for a js function, something like this
less_again({color1: '#ff0000'})
The creator of less.js added some features that should allow you to do something like this. Read the comments and the answers here: Load less.js rules dynamically