DEV Community

bronxsystem
bronxsystem

Posted on

1

Material ui themeing Typoography

Hey all I have been trying to add a default margin bottom to all my typography. Struggling I dont understand the documentation.

const theme = createMuiTheme({
  typography: {
    subtitle1: {
      fontSize: 12,
    },
    body1: {
      fontWeight: 500,
    },
    button: {
      fontStyle: 'italic',
    },
  },
});
Enter fullscreen mode Exit fullscreen mode

I tried writing

const theme = createMuiTheme({
  h1: {
   marginBottom: "20px" 
  },
});
Enter fullscreen mode Exit fullscreen mode

its not working :(

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay