UNPKG

@nature-ui/color

Version:

A base React component for icons

14 lines (12 loc) 634 B
declare const tone: (color: string) => "dark" | "light"; declare const isDark: (color: string) => boolean; declare const generateStripe: (size?: string, color?: string) => string; interface RandomColorOptions { string?: string; colors?: string[]; } declare const randomColorFromString: (str: string) => string; declare const randomColorFromList: (str: string, list: string[]) => string; declare const randomFromList: (list: string[]) => string; declare const randomColor: (opts?: RandomColorOptions) => string; export { generateStripe, isDark, randomColor, randomColorFromList, randomColorFromString, randomFromList, tone };