@bobthered/tailwindcss-palette-generator
Version:
Quickly generate tailwindcss color palettes from a base color or colors.
17 lines (14 loc) • 439 B
TypeScript
type Color = Record<string | number, string>;
type Options = {
colors?: string[];
names?: string[];
preserve?: boolean;
shades?: Shade[];
};
type Palette = Record<string, Color>;
type Shade = {
name: string | number;
lightness: number;
};
declare const tailwindcssPaletteGenerator: (options: string | string[] | Options) => Palette;
export { tailwindcssPaletteGenerator as default, tailwindcssPaletteGenerator };