File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
docs/data/material/customization/typography Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -115,17 +115,21 @@ The `theme.typography.*` [variant](#variants) properties map directly to the gen
115
115
You can use [ media queries] ( /material-ui/customization/breakpoints/#api ) inside them:
116
116
117
117
``` js
118
- const theme = createTheme ();
118
+ const baseTheme = createTheme ();
119
119
120
- theme .typography .h3 = {
121
- fontSize: ' 1.2rem' ,
122
- ' @media (min-width:600px)' : {
123
- fontSize: ' 1.5rem' ,
124
- },
125
- [theme .breakpoints .up (' md' )]: {
126
- fontSize: ' 2.4rem' ,
120
+ const theme = createTheme ({
121
+ typography: {
122
+ h3: {
123
+ fontSize: ' 1.2rem' ,
124
+ ' @media (min-width:600px)' : {
125
+ fontSize: ' 1.5rem' ,
126
+ },
127
+ [baseTheme .breakpoints .up (' md' )]: {
128
+ fontSize: ' 2.4rem' ,
129
+ },
130
+ },
127
131
},
128
- };
132
+ }) ;
129
133
```
130
134
131
135
{{"demo": "CustomResponsiveFontSizes.js"}}
You can’t perform that action at this time.
0 commit comments