Material-ui: Cannot change monospace font family

Created on 4 Mar 2020  路  5Comments  路  Source: mui-org/material-ui

I am attempting to customize the default monospace font in Material UI but there is no (documented) way of doing this according to:

https://material-ui.com/customization/default-theme/?expand-path=$.typography

I have searched for a solution with no luck on Github and StackOverflow.

How does one change the default monospace font family?

  • [x] The issue is present in the latest release.
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

(omitted other sections as not relevant)

question

All 5 comments

Have you looked at our typography theme page (https://material-ui.com/customization/typography/) ?

@joshwooding I think so, but no where does it talk about customizing the font family for monospace fonts?

@danawoodman What makes monospaced font different?

Material UI has styling for monospace fonts but no way to change the font family from what I can tell

Was this page helpful?
0 / 5 - 0 ratings