Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/esm/styles/stringifyTheme.d.ts 614 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  /**
   * `baseTheme` usually comes from `createTheme()` or `extendTheme()`.
   *
   * This function is intended to be used with zero-runtime CSS-in-JS like Pigment CSS
   * For example, in a Next.js project:
   *
   * ```js
   * // next.config.js
   * const { extendTheme } = require('@mui/material/styles');
   *
   * const theme = extendTheme();
   * // `.toRuntimeSource` is Pigment CSS specific to create a theme that is available at runtime.
   * theme.toRuntimeSource = stringifyTheme;
   *
   * module.exports = withPigment({
   *  theme,
   * });
   * ```
   */
  export declare function stringifyTheme(baseTheme?: Record<string, any>): string;