saltfish
Version:
An interactive video-guided tour system for web applications
22 lines • 682 B
TypeScript
/**
* Color utility functions for parsing and converting colors.
* Shared across managers to reduce bundle size.
*/
/**
* Parses a color string to RGB values using browser's computed style
*/
export declare function parseColorToRgb(color: string): {
r: number;
g: number;
b: number;
} | null;
/**
* Converts a color to rgba format with specified opacity
*/
export declare function colorToRgba(color: string, opacity: number): string;
/**
* Calculates a contrasting text color (white or dark) for a background
* Uses relative luminance formula
*/
export declare function getContrastingTextColor(bgColor: string): string;
//# sourceMappingURL=colorUtils.d.ts.map