.set-colors(@type) when (@type = error) {
@base-color: #d9534f;
background: @base-color;
color: contrast(@base-color, lighten(@base-color, 25%), darken(@base-color, 25%));
border: 1px solid contrast(@base-color, lighten(@base-color, 25%), darken(@base-color, 25%));
}
.set-colors(@type)...