@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
12 lines (11 loc) • 513 B
TypeScript
import { AliasToken } from 'antd/es/theme/interface';
import type { ColorScaleItem } from "../../color/types";
export declare const generateColorPalette: ({ type, scale, appearance, }: {
appearance: 'light' | 'dark';
scale: ColorScaleItem;
type: 'Primary' | 'Success' | 'Warning' | 'Error' | 'Info' | string;
}) => Partial<AliasToken>;
export declare const generateColorNeutralPalette: ({ scale, appearance, }: {
appearance: 'light' | 'dark';
scale: ColorScaleItem;
}) => Partial<AliasToken>;