I have a less file to define a bunch of colours/color. Each class name contains the name of the relevant colour, such as .colourOrange{..}
or .colourBorderOr
This is a legacy feature of Less. For the time being, one of the below work-around solutions could be used to overcome this color name to hex code conversion.
.completeColour(~"Orange",1);
or
.completeColour(e("Orange"),1);
Both the options explicitly tell the compiler that the value being passed is a String and not a Color and hence Less compiler would not convert it to the corresponding hex code.
Sources:
Update: Starting from version 2.0.0, this color name to hex code conversion would not happen if the color is mentioned explicitly as a name and has no other color based operations on it. Version 2.0.0 is currently in beta mode.
(Official Update: V2 Upgrade Guide | Original Source: More consistent named color variables).