apphouse
Version:
Component library for React that uses observable state management and theme-able components.
8 lines (7 loc) • 328 B
TypeScript
/**
* Returns the base color from a CSS gradient string.
*
* @param {string} gradient - The CSS gradient string.
* @returns {string} The base color extracted from the gradient string, or the original gradient string if no base color was found.
*/
export declare function getBaseColorFromGradient(gradient: string): string;