FrontPastel/node_modules/@mui/system/cssVars/prepareCssVars.d.ts

20 lines
729 B
TypeScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
export interface DefaultCssVarsTheme {
colorSchemes?: Record<string, any>;
defaultColorScheme?: string;
}
declare function prepareCssVars<T extends DefaultCssVarsTheme, ThemeVars extends Record<string, any>, Selector = any>(theme: T, parserConfig?: {
prefix?: string;
shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean;
getSelector?: (colorScheme: string | undefined, css: Record<string, any>) => Selector;
}): {
vars: ThemeVars;
generateCssVars: (colorScheme?: string) => {
css: {
[x: string]: string | number;
};
vars: ThemeVars;
selector: string | NonNullable<Selector>;
};
};
export default prepareCssVars;