I've been attempting to create a LESS mixin that uses a default value if a variable is not set, but no matter what I try my code always defaults to the backup value. Here's what I have:
@color : red;
.mixin (@color : blue) {
color: @color;
}
.block {.mixin()}
Even though I want it to be red in this specific instance, it keeps showing as blue. Is there an alternative method to achieve this? Am I overlooking something here? Thank you for your help in advance.