Skip to content
Merged
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
[zero][demo] Fix sample next app build
  • Loading branch information
brijeshb42 committed Feb 20, 2024
commit b9ce0585f4ad99d8ff9138c7a88008a2ae26c73c
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