From b9ce0585f4ad99d8ff9138c7a88008a2ae26c73c Mon Sep 17 00:00:00 2001 From: Brijesh Bittu Date: Tue, 20 Feb 2024 17:33:04 +0530 Subject: [PATCH] [zero][demo] Fix sample next app build --- apps/zero-runtime-next-app/next.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/zero-runtime-next-app/next.config.js b/apps/zero-runtime-next-app/next.config.js index 1b2a7f58906be7..d4e26ffdbaa66a 100644 --- a/apps/zero-runtime-next-app/next.config.js +++ b/apps/zero-runtime-next-app/next.config.js @@ -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 @@ -83,6 +83,10 @@ const theme = extendTheme({ }, }); +theme.getColorSchemeSelector = (key) => { + return `[data-mui-color-scheme="${key}"]`; +}; + // { [theme.getColorSchemeSelector('dark')]: { color: 'black' } } /**