Closed haoyinag closed 2 years ago
The structure of the theme was changed, please follow the migration guide: https://mui.com/guides/migration-v4/#main-content
Here is one breaking change that you need to adopt:
-overrides: {
- MuiTypography: {
+components: {
+ MuiTypography: {
+ styleOverrides: {
h1: {
fontSize: 20,
fontWeight: 'bold',
[breakpoints.up('md')]: {
fontSize: 22,
},
},
},
},
@mnajdova i was stupid
thank you so much
Duplicates
Latest version
Current behavior 😯
Expected behavior 🤔
work as like V4.x.x
Steps to reproduce 🕹
Steps:
Context 🔦
Your environment 🌎
`npx @mui/envinfo`
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ``` ``` System: OS: Windows 10 10.0.19042 Binaries: Node: 16.13.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: Not Found Edge: Spartan (44.19041.1266.0), Chromium (98.0.1108.56) npmPackages: @emotion/react: ^11.7.1 => 11.8.1 @emotion/styled: ^11.6.0 => 11.8.1 @mui/base: 5.0.0-alpha.69 @mui/icons-material: ^5.4.3 => 5.4.2 @mui/lab: ^5.0.0-alpha.66 => 5.0.0-alpha.69 @mui/material: ^5.4.3 => 5.4.3 @mui/private-theming: 5.4.2 @mui/styled-engine: 5.4.2 @mui/styles: ^5.3.0 => 5.4.2 @mui/system: 5.4.2 @mui/types: 7.1.2 @mui/utils: 5.4.2 @types/react: 17.0.39 react: ^17.0.2 => 17.0.2 react-dom: ^17.0.2 => 17.0.2 styled-components: ^5.1.1 => 5.3.3 typescript: ^3.9.5 => 3.9.10 ```