UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

32 lines (31 loc) 1.18 kB
/** Variants for raw colours — pure hue overrides independent of semantic status. */ export interface ColorVariants { /** Element has primary colors. */ primary?: boolean | undefined; /** Element has secondary colors. */ secondary?: boolean | undefined; /** Element has tertiary colors. */ tertiary?: boolean | undefined; /** Element has red colours. */ red?: boolean | undefined; /** Element has orange colours. */ orange?: boolean | undefined; /** Element has yellow colours. */ yellow?: boolean | undefined; /** Element has green colours. */ green?: boolean | undefined; /** Element has aqua colours. */ aqua?: boolean | undefined; /** Element has blue colours. */ blue?: boolean | undefined; /** Element has purple colours. */ purple?: boolean | undefined; /** Element has pink colours. */ pink?: boolean | undefined; /** Element has pink colours. */ gray?: boolean | undefined; } /** Possible colour strings. */ export type Color = keyof ColorVariants; /** Get a class for a colour. */ export declare function getColorClass(color: Color | ColorVariants): string | undefined;