【发布时间】:2023-03-15 19:17:01
【问题描述】:
运行 材质 UI 1.0.0-beta.24
我正在使用createMuiTheme 设置一个新主题:
import {createMuiTheme} from 'material-ui/styles';
const theme = createMuiTheme({
typography: {
fontSize: 16
}
});
export default theme;
如何在此处直接访问我要覆盖的主题? 我想这样做,这是行不通的:
import {createMuiTheme} from 'material-ui/styles';
const theme = createMuiTheme({
typography: {
fontSize: theme.typography.fontSize + 2
}
});
export default theme;
【问题讨论】:
标签: reactjs material-ui theming jss