9 lines
332 B
Plaintext
9 lines
332 B
Plaintext
/**
|
|
* Takes in a color and makes it more transparent by convert to `rgba` and
|
|
* decreasing the amount in the alpha channel.
|
|
*
|
|
* @param amount The amount to increase the transparency by, given as a decimal between 0 and 1
|
|
*/
|
|
declare function transparentize(color: string, amount: number): string;
|
|
export default transparentize;
|