Is it possible to pass !important as parameter/option for LESSCSS mixins?
This is what I already have: .coloring(@color){ color:@color; } But this is what I actually wanted to do: .coloring(@color, @important:''){ color:@color @important; //etc } So I could call: .coloring(@color, !important); But I get the error message "ParseError: Unrecognised input" Is there a way to tell this mixin optoinally to use "!important" for the CSS statements? See The !important keyword . E.g. can just use .coloring(red) !important; w/o mixin changes. Or use escaping for the modified mixin since ! is not allowed symbol in mixin parameter values (i.e. .coloring(red, ~'!important'); ).