react-native-ui-lib
Version:
[](https://stand-with-ukraine.pp.ua)
17 lines (16 loc) • 596 B
TypeScript
import { Colors } from '../../style';
export type HSLColor = ReturnType<typeof Colors.getHSL>;
export declare const BORDER_RADIUS = 12;
export declare function getColorValue(color?: string): string | undefined;
export declare function getHexColor(text: string): string;
export declare function getValidColorString(text?: string): {
hex: string;
valid: boolean;
undefined?: undefined;
} | {
undefined: undefined;
valid: boolean;
hex?: undefined;
};
export declare function getHexString(color: HSLColor): string;
export declare function getTextColor(color: string): string;