Sass darken() Function

Last Updated:

Sass darken() Function

The darken() function makes a given color daker.

Example

SASS TO CSS CONVERTER
.foo{ color: darken(#036, 10%); color: darken(#036, 30%); }

Syntax

darken($color, $amount)

Parameter Value

ValueTypeExplanation
$color Required Specifies a color.
$amount Required Specifies the amount to decreases the HSL lightness of $color. The $amount must be a number between 0% and 100% (both are inclusive).

Return Value

ValueExplanation
color Returns the darken color.

Share this Page

Meet the Author