UNPKG

672 BTypeScriptView Raw
1/**
2 * Converts a hex to RGB
3 *
4 * @export
5 */
6export declare function hexToRgb(value: string): any;
7/**
8 * Accepts a color (string) and returns a inverted hex color (string)
9 * http://stackoverflow.com/questions/9600295/automatically-change-text-color-to-assure-readability
10 *
11 * @export
12 */
13export declare function invertColor(value: string): string;
14/**
15 * Given a rgb, it will darken/lighten
16 * http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors
17 *
18 * @export
19 * @param \{ r, g, b }
20 */
21export declare function shadeRGBColor({ r, g, b }: {
22 r: any;
23 g: any;
24 b: any;
25}, percent: number): string;