contrastrast
Version:
A lightweight tool that parses color strings and recommends text contrast based on WCAG Standards
10 lines • 353 B
TypeScript
/**
* Configuration options for parsing color strings
*/
export type ParseOptions = {
/** Whether to throw an error on invalid color strings (default: true) */
throwOnError: boolean;
/** Fallback color to use when throwOnError is false (default: "#000000") */
fallbackColor?: string;
};
//# sourceMappingURL=ParseOptions.types.d.ts.map