docs: add a sample link to the theme docs

This commit is contained in:
unix
2020-04-09 07:06:13 +08:00
parent bce4acbc44
commit 870548cd59
2 changed files with 6 additions and 2 deletions

View File

@@ -48,9 +48,11 @@ const App = () => {
### Customizing theme
Customize theme is very simple in `@zeit-ui/react`, you just need to provide a new theme `Object`, and all the components will change automatically.
Customize theme is very simple in `@zeit-ui/react`, you just need to provide a new theme `Object`,
and all the components will change automatically.
Here is <Link target="_blank" pure color href="https://github.com/zeit-ui/react/tree/master/examples/custom-themes">a complete sample project</Link> for reference.
Of course, if a *Component* doesn't use your customize variables, it doesn't make any additional **changes** or **rendering**.
Of course, if a *component* doesn't use your customize variables, it doesn't make any additional **changes** or **rendering**.
<Spacer y={1} />
<Note type="warning">The more changes you custom, the more Components <b>Re-Render</b>.</Note>

View File

@@ -50,6 +50,8 @@ const App = () => {
### 自定义主题
自定义主题样式在 `@zeit-ui/react` 中是非常简单的,你只需要提供一个新的样式对象给 `ZEITUIProvider`,所有的组件都会自然变化以适应你自定义的属性。
这里有 <Link target="_blank" pure color href="https://github.com/zeit-ui/react/tree/master/examples/custom-themes">一个完整的示例项目</Link> 可供参考。
当然,如果一个组件未使用到你自定义的变量,它不会发生任何变化也不会重新渲染。