2

Using the less-rails gem.

Using the following code to mix two colours:

@base: #ffdc52;
@add: #195742;
.colour{
    color: mix(@base, @add);
}

getting the following error:

Less::ParseError: error evaluating function `mix`: Cannot read property 'value' of undefined
pjumble
  • 16,880
  • 6
  • 43
  • 51
Mild Fuzz
  • 29,463
  • 31
  • 100
  • 148

1 Answers1

3

mix needs three parameters:

mix: function (color1, color2, weight) {
    var p = weight.value / 100.0;
    ...
},
pjumble
  • 16,880
  • 6
  • 43
  • 51