【发布时间】:2020-06-05 15:40:55
【问题描述】:
我正在使用此处推荐的全局覆盖构建一个完整的自定义 Material UI 主题:https://material-ui.com/customization/components/#global-theme-override
例子:
const theme = createMuiTheme({
overrides: {
MuiButton: {
root: {
fontSize: '1rem',
},
},
},
});
我的问题是如何获得应用了我的自定义主题的 Material UI 文档的副本? https://material-ui.com/getting-started/installation/
一些注意事项:
- 我希望 Material UI 文档可以更新(即遵循最新版本)
- 基本上是封装在我的自定义主题中的 Material UI 文档的精确副本
这里的任何帮助将不胜感激!
【问题讨论】:
-
您想要这样做的原因是什么?
-
创建一个基于 Material ui 的定制设计系统。需要一些中心文档供其他开发人员使用。
标签: reactjs material-ui