9 lines
270 B
Plaintext
9 lines
270 B
Plaintext
/**
|
|
* Darkens using lightness. This is equivalent to subtracting the lightness
|
|
* from the L in HSL.
|
|
*
|
|
* @param amount The amount to darken, given as a decimal between 0 and 1
|
|
*/
|
|
declare function darken(color: string, amount: number): string;
|
|
export default darken;
|