使用createMuiTheme更改Material UI的H1

时间:2019-07-07 18:54:24

标签: javascript css material-design material-ui

我正在创建具有实质性UI的自定义主题,但无法像我想要的那样定位主题的各个部分:

const theme = createMuiTheme({
  palette: {
    primary: {
      main: '#556cd6',
      fontFamily: '"Indie Flower", handwriting',
    },
    secondary: {
      main: '#19857b',
    },
    error: {
      main: red.A400,
    },
    background: {
      default: '#fff',
    },
  },
  typography: {
    // Use the system font instead of the default Roboto font.
    h1: {
      fontFamily: '"Indie Flower", handwriting',
    },
  },
})

您是否可以更改h1,h2,input,p的默认字体等内容?

0 个答案:

没有答案