Skip to content

Conversation

@sushanth-shetty11
Copy link

This PR adds the missing @mui/material/styles import to the TypeScript module
augmentation example in the "Adding color tokens" section of the palette documentation.

Without this import, the augmentation can cause issues with other
@mui/material/styles imports in a user's project.

Changes:

  • Updated docs/data/material/customization/palette/palette.md
  • Added import '@mui/material/styles'; above the augmentation block

Related issue:
Fixes #47425

@mui-bot
Copy link

mui-bot commented Dec 6, 2025

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 511c1fc

@mj12albert mj12albert added the docs Improvements or additions to the documentation. label Dec 7, 2025
@ZeeshanTamboli
Copy link
Member

Thanks but this PR is not needed now. See the discussion in #47425

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs] Add necessary imports to Typescript theme augmentation example

4 participants