I added a bit more expected functionality to our scss parser. So now you can do all this stuff.
color: darken( red, 5% );
color: lighten( red, 5% );
color: mix( red, white, 0.5 );
color: lerp( red, white, 0.5 );
color: mix( red, lighten(red, 50%), 0.5 );
color: invert( green );
color: lighten( $yellow, 5% );
This stuff comes in very useful.
As an added bonus, you can also do this stuff in c#.
var myColor = Color.Parse( "mix( red, lighten(red, 50%), 0.5 )" );
User Comments