UNPKG

@activelylearn/material-ui

Version:

Material-UI's workspace package

21 lines (17 loc) 480 B
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, }, }); function FontSizeTheme() { return ( <MuiThemeProvider theme={theme}> <Typography>body1</Typography> </MuiThemeProvider> ); } export default FontSizeTheme;