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

[styles] Remove code & docs #45633

Merged
merged 9 commits into from
Mar 21, 2025
Merged

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented Mar 20, 2025

This PR removes the @mui/styles code from the master branch as well as the docs for it, and will redirect to the v6.mui.com docs (after this docs will be published, for now it redirects to mui.com/* pages).

@mnajdova mnajdova added the package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. label Mar 20, 2025
@mui-bot
Copy link

mui-bot commented Mar 20, 2025

Netlify deploy preview

https://deploy-preview-45633--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 112877b

@@ -511,6 +511,11 @@ https://v4.material-ui.com/* https://v4.mui.com/:splat 301!
/material-ui/experimental-api/css-theme-variables/usage/ /material-ui/customization/css-theme-variables/usage/ 301
/material-ui/experimental-api/css-theme-variables/customization/ /material-ui/customization/css-theme-variables/configuration/ 301
/base-ui/ https://base-ui.com/ 301
#2025
# TODO v7 change mui.com to v6.mui.com when domains are switched
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DiegoAndai do we have some pattern for comments to search for before the stable release?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll search for "todo v7" case insensitive. But honestly, at this point, we shouldn't do any further code changes so we can have a safe stable release

@mnajdova mnajdova marked this pull request as ready for review March 20, 2025 12:48
@mnajdova mnajdova requested review from Janpot and DiegoAndai March 20, 2025 12:48
Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I wouldn't necessarily add the Next.js redirect.

Will you also npm deprecate @mui/styles ...?

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 21, 2025
@mnajdova
Copy link
Member Author

Will you also npm deprecate @mui/styles ...?

I can do after merging 👌 I would use the message: "Deprecated in favor of @mui/system, check the migration instruction in https://mui.com/material-ui/migration/migrating-from-jss/". cc @aarongarciah @DiegoAndai in case you have an opinion on the deprecation message :)

Signed-off-by: Marija Najdova <mnajdova@gmail.com>
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Mar 21, 2025
@aarongarciah
Copy link
Member

It's a bit confusing saying "in favor of @mui/system" when the migration guide doesn't mention @mui/system at all. Would mentioning @mui/material/styles instead make sense?

- Deprecated in favor of @mui/system, check the migration instruction in https://mui.com/material-ui/migration/migrating-from-jss/
+ Deprecated in favor of @mui/system, check the migration guide in https://mui.com/material-ui/migration/migrating-from-jss/

@mnajdova
Copy link
Member Author

It's a bit confusing saying "in favor of @mui/system" when the migration guide doesn't mention @mui/system at all. Would mentioning @mui/material/styles instead make sense?

Yeah fair enough. My thought was that the underlaying engine is @mui/system, as historically, @mui/styles utils were exported from @material-ui/core/styles - it was long time tough :D I'll use your proposed deprecation message, but also wait for @DiegoAndai's response before deprecating in case he has an opinion on it. I will proceed with merging the PR, it's not related to it.

@mnajdova mnajdova merged commit 58486c8 into mui:master Mar 21, 2025
22 checks passed
@DiegoAndai
Copy link
Member

Agree with deprecating. Regarding the message, what about:

Deprecated, check the migration instruction in https://mui.com/material-ui/migration/migrating-from-jss/

No need to go into further detail, is just a nudge to migrate and to visit the guide.

@mnajdova
Copy link
Member Author

Done, https://www.npmjs.com/package/@mui/styles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants