Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
13 lines (11 sloc)
370 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import transparentize from './transparentize'; | |
/** | |
* Takes a color and un-transparentizes it. Equivalent to | |
* `transparentize(color, -amount)` | |
* | |
* @param amount The amount to increase the opacity by, given as a decimal between 0 and 1 | |
*/ | |
function opacify(color: string, amount: number): string { | |
return transparentize(color, -amount); | |
} | |
export default opacify; |