Skip to content

Commit

Permalink
[zero][demo] Fix sample next app build (#41197)
Browse files Browse the repository at this point in the history
  • Loading branch information
brijeshb42 authored Feb 20, 2024
1 parent 36bb1aa commit 06face1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/zero-runtime-next-app/next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node */
// eslint-ignore-next-line import/no-unresolved
const { withZeroPlugin } = require('@mui/zero-next-plugin');
const { extendTheme } = require('@mui/zero-runtime');
const { experimental_extendTheme: extendTheme } = require('@mui/material/styles');

/**
* @typedef {import('@mui/zero-next-plugin').ZeroPluginConfig} ZeroPluginConfig
Expand Down Expand Up @@ -83,6 +83,10 @@ const theme = extendTheme({
},
});

theme.getColorSchemeSelector = (key) => {
return `[data-mui-color-scheme="${key}"]`;
};

// { [theme.getColorSchemeSelector('dark')]: { color: 'black' } }

/**
Expand Down

0 comments on commit 06face1

Please sign in to comment.