Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Theme Not Working with @mui/material 6.0.0 and pigment-css in Next.js #215

Closed
wh5938316 opened this issue Aug 28, 2024 · 2 comments
Closed
Assignees
Labels
package: system Specific to @mui/system

Comments

@wh5938316
Copy link

wh5938316 commented Aug 28, 2024

Steps to reproduce

next.config.mjs

export default withPigment(nextConfig, {
  theme: createTheme({
    cssVariables: true,
    colorSchemes: { light: true, dark: true },
    typography: {
      fontFamily: 'var(--font-roboto)',
    },
    components: {
      MuiButton: {
        styleOverrides: {
          root: {
            background: '#000 !important',
          },
        },
      }
    }
  }),
  transformLibraries: ['@mui/material'],
});

The custom theme is not being applied as expected. Components do not reflect the customized theme settings.

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: pigment-css, next.js

@wh5938316 wh5938316 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 28, 2024
@wh5938316
Copy link
Author

The issue has been taken over by the @mui/material maintainers.
@mui/material issue #43501

@zannager zannager added the package: system Specific to @mui/system label Aug 29, 2024
@wh5938316
Copy link
Author

Resolved after 0.0.21 release

@github-actions github-actions bot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: system Specific to @mui/system
Projects
None yet
Development

No branches or pull requests

3 participants