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

17 lines
581 B
TypeScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
import { DefaultCssVarsTheme } from './prepareCssVars';
interface Theme extends DefaultCssVarsTheme {
cssVarPrefix?: string;
shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean;
}
declare function createCssVarsTheme<T extends Theme, ThemeVars extends Record<string, any>>(theme: T): T & {
vars: ThemeVars;
generateCssVars: (colorScheme?: string | undefined) => {
css: {
[x: string]: string | number;
};
vars: ThemeVars;
selector: any;
};
};
export default createCssVarsTheme;