materialuiupgraded
Version:
Material-UI's workspace package
22 lines (18 loc) • 528 B
JavaScript
import React from 'react';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
const theme = createMuiTheme({
typography: {
// Tell Material-UI what the font-size on the html element is.
htmlFontSize: 10,
useNextVariants: true,
},
});
function FontSizeTheme() {
return (
<MuiThemeProvider theme={theme}>
<Typography>body1</Typography>
</MuiThemeProvider>
);
}
export default FontSizeTheme;