Sass Functions Cheat Sheet: by Via
Sass Functions Cheat Sheet: by Via
Creates a Color from red, green, and blue values. Returns the inverse of a color.
lightness($color) selector-nest($selectors…)
Gets the lightness component of a color. Nests selector beneath one another like they would be nested in the
stylesheet.
adjust-hue($color, $degrees)
selector-replace($selector, $original, $replacement)
Changes the hue of a color.
Replaces $original with $replacement within $selector.
lighten($color, $amount)
More at Sass Functions
Makes a color lighter.
darken($color, $amount)
String Functions
Makes a color darker.
unquote($string)
saturate($color, $amount)
Removes quotes from a string.
Makes a color more saturated.
quote($string)
desaturate($color, $amount)
Adds quotes to a string.
Makes a color less saturated.
str-length($string)
grayscale($color)
Returns the number of characters in a string.
Converts a color to grayscale.
More at Sass Function
complement($color)
Finds the maximum of several numbers. Title: Sass Functions Cheat Sheet
random([$limit]) Design by: Hamid Yaftian
feature-exists($feature)
variable-exists($name)
Returns whether a variable with the given name exists in the current
scope.
global-variable-exists($name)
Returns whether a variable with the given name exists in the global scope.
function-exists($name)
mixin-exists($name)
inspect($value)
type-of($value)
unit($number)
unitless($number)