I need to set a Less variable to match the website's active theme, ie, each theme has a different color.
I'd like to set @themeColor to the right color, based on the HTML's body CSS class that defines the theme.
For example:
body.themeBlue { @themeColor: blue; }
body.themeRed { @themeColor: red; }
This way I'd only need to use the @themeColor variable inside the other Less files.
Can anyone help? According to this (http://www.lesscss.org/#-scope) it is possible to do something like that, but I can't make it work. what is going on here?