I want generate flexible color classes for another class like this without writing all of them on LESS as variables:
.link.color-green{
color:green;
}
.link.color-red{
color:red;
}
.link.color-cccccc{
color:#cccccc;
}
.link.color-FFF8DC{
color:#FFF8DC;
}
maybe something like this? but compiler say error:
NameError: variable @colorNameOrHexaCode is undefined
.link{
.color-@{colorNameOrHexaCode} {
color: rgb(@colorNameOrHexaCode);
};
}
I'm not sure how make loop or function for this, sorry.