I'm using material-ui with React. I'm trying to theme my application. Unfortunately the material-ui library provides a light-theme.js example (via some means), but the material-ui theming components rely on functions within the theme. Specifically the theme.typography.pxToRem function for calculating rem conversions.
How do I provide access to those functions on in my own theme?
Now, I would go through the steps of reimplementing pxToRem and similar on my theme, but it seems very unlikely that others have done that due to the nested closure used. What are others doing to access functions on the material-ui theme?