Hi,
I would to achieve the following:
import { createMuiTheme } from "material-ui/styles";
import "typeface-roboto";
const theme = createMuiTheme({
overrides: {
MuiButton: { root: { margin: theme.spacing.unit * 2 } }
}
});
export default theme;
I don't see how's that possible to use the theme variable like that (I think it can only be used via withStyles()).
Is there a way to support it?
I'm able to implement it myself and create a pull request, with some guidance.
Thanks!
@galah92 Something I have been doing so far:
import { createMuiTheme } from "material-ui/styles";
import "typeface-roboto";
const theme = createMuiTheme();
theme.overrides = {
MuiButton: { root: { margin: theme.spacing.unit * 2 } }
}
export default theme;
Saved my life ))
Most helpful comment
@galah92 Something I have been doing so far: