retro-react
Version:
A React component library for building retro-style websites
10 lines (9 loc) • 432 B
TypeScript
/**
* Alter a hex color code or a theme color name by increasing the red value and decreasing the blue value.
*
* @param color hex color code or a theme color name.
* @param amount (optional) amount to alter the color.
* @returns a new hex color code.
*/
export declare const alterColor: (color: string, amount?: number) => string;
export declare const alterColorEnhanced: (color: string, amount?: number) => string;