UNPKG

pantone-tcx

Version:

Find the nearest Pantone TCX color by HEX, get similar colors within a specified range, and return details like name, TCX code, or HEX value.

16 lines (12 loc) 377 B
interface PantoneColor { name: string; tcx: string; hex: string; } export function getNearestPantone(inputHex: string): PantoneColor; export function getNearestPantoneName(inputHex: string): string; export function getNearestPantoneTcx(inputHex: string): string; export function getSimilarColors( inputHex: string, maxDistance?: number | string ): PantoneColor[];