I'm facing a scenario where I need to replace the less variable property/value with an inline variable written in jsp/html. In my main file (abc.less), I've defined some variables like this:
@bodyColor: rgb(88,90,91); // (#585a5b) grayish<br>
@brandColor1: rgb(23,59,107); // (#173b6b) dark
Then, in my jsp/html file, I have the following code to change the color using the same variable names as in the main file:
@bodyColor: rgb(255,0,0); // (#ff0000) redish<br>
@brandColor1: rgb(204,204,204); // (#cccccc) grayish
However, it seems to be overriding the properties from the main file. Can anyone explain how this works? Appreciate the help in advance.