shadecli
Version:
CLI tool to generate Tailwind color palettes and update Tailwind config files
11 lines (10 loc) • 604 B
TypeScript
/**
* Updates the Tailwind CSS configuration file with a new color and its shades.
*
* @param {string} configPath - The path to the Tailwind configuration file.
* @param {string} colorName - The name of the new color to be added.
* @param {Record<string, string>} shades - An object containing the color shades and their corresponding hex values.
* @param {string} baseColor - The base color to be added.
* @returns {Promise<void>}
*/
export declare function updateTailwindConfig(configPath: string, colorName: string, shades: Record<string, string>, baseColor: string): Promise<void>;