khroma
Version:
A collection of functions for manipulating CSS colors, inspired by SASS.
18 lines (9 loc) • 286 B
text/typescript
/* IMPORT */
import adjustChannel from '~/methods/adjust_channel';
import type {Channels} from '~/types';
/* MAIN */
const lighten = ( color: string | Channels, amount: number ): string => {
return adjustChannel ( color, 'l', amount );
};
/* EXPORT */
export default lighten;