@mantine/colors-generator
Version:
A library to generate 10 shades of color based on provided color value
20 lines (19 loc) • 409 B
TypeScript
import chroma from 'chroma-js';
export declare function generateColorsMap(color: string): {
baseColorIndex: number;
colors: chroma.Color[];
};
export type MantineColorsTuple = readonly [
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
...string[]
];
export declare function generateColors(color: string): MantineColorsTuple;