@primer/react
Version:
An implementation of GitHub's Primer Design System using React
10 lines • 582 B
TypeScript
import type { Hex } from './IssueLabel';
/**
* transforms a hex color provided by the user into a color object with background and text colors
* @param colorHex — the hex color provided by the user
* @param colorScheme — the color scheme the user has currently set
* @param bgColor — the background color from the selected theme, needed to calc the contrast for the colors
* @returns
*/
export declare const getColorsFromHex: (colorHex: Hex, colorScheme: string | undefined, bgColor: Hex) => React.CSSProperties | undefined;
//# sourceMappingURL=getColorFromHex.d.ts.map