In PHP, you can do the following.
$a = 'b';
$b = 'c';
echo $$a;
Resulting in
c
Can I do this in LESS?
@Red: #FF0000;
@Color: "Red";
div {
color: @@Color;
}
The basis of this idea is that on my application you can change the color scheme, and when it's changed I was planning to execute this:
less.modifyVars({
'@Color': 'blue'
});
If there is a better way to do this, I'd appreciate an example!