@nightingale-elements/nightingale-new-core
Version:
Base Elements for Nightingale Components
6 lines • 329 B
TypeScript
type ColorProperty = "fill" | "stroke" | "color";
export declare function contrastingColor(color: number[] | null): "black" | "white";
export declare function luma(rgb: number[]): number;
export declare function getColor(element: Element, property: ColorProperty): number[] | null;
export {};
//# sourceMappingURL=colors.d.ts.map