I'm trying to create dynamic classes using Less without hardcoding every color, like this:
<p class="text-red">Red text</p>
<p class="text-green">Green text</p>
<p class="text-blue">Blue text</p>
// Mixin
.text-(@color) {
color: @color;
}
// Selector
.text-@{color} {
.yog-color(@{color});
}
But it's not working, and compiler is not returning any error message, any clue for what could be wrong with this code?