Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/mui-material/src/styles/defaultTheme.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
'use client';
import createTheme from './createTheme';
// `createTheme()` with no arguments is definitionally identical to `createThemeNoVars()`
// (the public `createTheme` returns `createThemeNoVars(options)` for the default
// `cssVariables: false` path). Importing `createThemeNoVars` directly keeps the CSS
// theme-variables machinery (`createThemeWithVars` and friends) out of every component
// bundle that only needs this default fallback theme.
import createThemeNoVars from './createThemeNoVars';

const defaultTheme = createTheme();
const defaultTheme = createThemeNoVars();

export default defaultTheme;
Loading