Answers for "change font of all material ui typography"

0

change font of all material ui typography

const theme = createMuiTheme({
  typography: {
    fontFamily: 'Raleway, Arial',
  },
  overrides: {
    MuiCssBaseline: {
      '@global': {
        '@font-face': [raleway],
      },
    },
  },
});

// ...
return (
  <ThemeProvider theme={theme}>
    <CssBaseline />
    {children}
  </ThemeProvider>
);
Posted by: Guest on December-20-2020

Code answers related to "change font of all material ui typography"

Browse Popular Code Answers by Language