vben-aggregate-core-shared
Version:
vben-aggregate-core-shared package
19 lines (14 loc) • 665 B
TypeScript
export { TinyColor } from '@ctrl/tinycolor';
declare function isDarkColor(color: string): any;
declare function isLightColor(color: string): any;
declare function convertToHsl(color: string): string;
declare function convertToHslCssVar(color: string): string;
declare function convertToRgb(str: string): string;
declare function isValidColor(color?: string): any;
interface ColorItem {
alias?: string;
color: string;
name: string;
}
declare function generatorColorVariables(colorItems: ColorItem[]): Record<string, string>;
export { convertToHsl, convertToHslCssVar, convertToRgb, generatorColorVariables, isDarkColor, isLightColor, isValidColor };