less.js
less.js copied to clipboard
Question: Any way to edit global variables dynamically
Say i have a less file with a bunch of global variables (@variable...) would it be possible for me to change their value using JavaScript (after the page is loaded)? Thanks!
When the page loads, the stylesheet is compiled to CSS. You'd have to access the syntax tree, modify the variable, and recompile it. It's possible, just complicated.
Any way to use the loadStyles function (doing a search and replace in a