UNPKG

615 BTypeScriptView Raw
1/**
2 * `baseTheme` usually comes from `createTheme()` or `extendTheme()`.
3 *
4 * This function is intended to be used with zero-runtime CSS-in-JS like Pigment CSS
5 * For example, in a Next.js project:
6 *
7 * ```js
8 * // next.config.js
9 * const { extendTheme } = require('@mui/material/styles');
10 *
11 * const theme = extendTheme();
12 * // `.toRuntimeSource` is Pigment CSS specific to create a theme that is available at runtime.
13 * theme.toRuntimeSource = stringifyTheme;
14 *
15 * module.exports = withPigment({
16 * theme,
17 * });
18 * ```
19 */
20export declare function stringifyTheme(baseTheme?: Record<string, any>): string;