I have a LESS loop in which I determine color values to use in CSS rules. I get them through some quite complex vars evaluation, which forces me to use strings (If I remove the " I get a parse error). So what I get is a variable containing a color value in form of string.
@color: "@{col_@{animal}}"
// this is in a loop, and @animal contains the name of a var ('dog', 'cat', ...)
// @col_dog, @col_cat contain a color
// @col_dog: #F9E2A0
// @col_cat: #094DD0
so if I try to assign this @color variable to a rule
.border { border-color: @color }
in CSS I get
.border {border-color: "#F9E2A0"}
Which obviously is ignored. Is there a way to get rid of the "string" form, or a way to do the vars evaluation I need without using strings?
Thanks!