我在create-react-app项目中使用Semantic-UI.我使用自定义主题使用ThemeProvider修改单个组件,这是很好的.
但是我想弄清楚如何将较少的变量修改为 described in the semantic-ui documentation
但是我想弄清楚如何将较少的变量修改为 described in the semantic-ui documentation
react semantic-ui文档没有提供太多内容.
有什么建议吗?
我的Index.js看起来大致如下:
import 'semantic-ui-css/semantic.min.css' import { ThemeProvider } from 'styled-components' import mainTheme from './themes/mainTheme' ReactDOM.render( <ThemeProvider theme={mainTheme}> <App /> </ThemeProvider> document.getElementById('root') )
编辑:具体到我想要实现的目标,我想改变使用的主要字体.
查看
docs,您的主题文件夹中基本上可以有一个globals文件夹,其中包含两个可选文件:site.variables和site.overrides.我假设您可以覆盖所述site.overrides中的@font变量.
您可以看到site.variables here的示例.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。