Skip to content

Instantly share code, notes, and snippets.

@sadaco
Created June 25, 2012 17:11
Show Gist options
  • Select an option

  • Save sadaco/2989941 to your computer and use it in GitHub Desktop.

Select an option

Save sadaco/2989941 to your computer and use it in GitHub Desktop.
details about the operators
+,-,*,/ - Arithmetic operators
lighten(@colour, n%) - Returns the colour value @colour, lightened by n percent
darken(@colour, n%) - Returns the colour value @colour, darkened by n percent
saturate(@colour, n%) - Returns the colour value @colour, with saturation increased by n percent
desaturate(@colour, n%) - Returns the colour value @colour, with saturation decreased by n percent
fadein(@colour, n%) - Returns the colour value @colour, made n percent more opaque
fadeout(@colour, n%) - Returns the colour value @colour, made n percent more transparent
hue(@colour) - Returns the hue component of the colour value @colour
saturation(@colour) - Returns the saturation component of the colour value @colour
lightness(@colour) - Returns the lightness component of the colour value @colour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment