@itshixun/qst-ui-system
Version:
40 lines (39 loc) • 1.28 kB
TypeScript
export type CssVarConfigType = Record<string, (string | CssVarConfigType)[]>;
export interface ConfigList {
[key: string]: ConfigList | string;
}
export declare const generateExtraColors: (option: {
namespace?: string;
configkey?: string;
configs: Record<string, string>;
}) => Record<string, string>;
export declare const generateUnocssTheme: (namespace?: string, extraColorConfig?: Record<string, string>) => {
width: Record<string, string>;
height: Record<string, string>;
maxWidth: Record<string, string>;
maxHeight: Record<string, string>;
minWidth: Record<string, string>;
minHeight: Record<string, string>;
inlineSize: Record<string, string>;
blockSize: Record<string, string>;
maxInlineSize: Record<string, string>;
maxBlockSize: Record<string, string>;
minInlineSize: Record<string, string>;
minBlockSize: Record<string, string>;
lineHeight: Record<string, string>;
spacing: Record<string, string>;
borderRadius: {
[x: string]: string;
};
colors: {
text: ConfigList;
bg: ConfigList;
border: ConfigList;
fill: ConfigList;
extra: Record<string, string>;
theme: string;
};
fontSize: {
[x: string]: string;
};
};