counter-color
Version:
Helps to determine what color of text goes best for a given background, light or dark (and vice versa).
12 lines (11 loc) • 328 B
TypeScript
import { ColorValue } from "./types";
export * from "./luminance";
export * from "./contrast";
export * from "./rgb";
declare type Options = {
threshold?: number;
dark?: string;
light?: string;
};
export declare function counterColor(targetColor: ColorValue, options?: Options): string;
export default counterColor;