UNPKG

estilo

Version:

Create color schemes for Vim, NeoVim, Airline and Lightline

25 lines 632 B
/** * Confirms a string is a valid hexadecimal color. * * @param color - A hexadecimal color code without the hash (#) * @returns Color is hexadecimal * @example * ```ts * isHexColor("ffa") // true * isHexColor("fta") // false * ``` */ export declare function isHexColor(color: string): boolean; /** * Get the closest xterm color to a given hex color. * * @param hex A hexadecimal color code * @returns The number of the xterm color * @example * ```ts * hexterm("#005fd7"); // 2asdfasdf6 * hexterm("ff0"); // 11 * ``` */ export declare function hexterm(hex: string): number; //# sourceMappingURL=hexterm.d.ts.map