color-contrast-finder
Version:
The Color Contrast Finder is a library that automatically selects text colors that contrast with a given color.
9 lines (8 loc) • 416 B
TypeScript
import type { ColorContrastOptions, RGBAColor } from './types';
/**
* Finds the best contrast color for text based on the provided options.
* @param {ColorContrastOptions} options - Configuration for contrast color selection
* @returns {string} Best contrast color for the text
*/
export declare function findContrastColor(options: ColorContrastOptions): string;
export type { ColorContrastOptions, RGBAColor };