I am trying to implement a basic theme roller functionality using LESS CSS. Suppose I have the following Less Code, which compiles to a .css file included in the page:
@main-background-color: #809BB8;
body
{
background-color: @main-background-color;
}
I would like to change the @main-background-color dynamically with javascript based on an user action (Color Picker) and compile the LESS code dynamically and refresh the styles of the page so that the user changes are reflected immediately in the browser. Is this possible at all? Please advise!
Thanks