From 870548cd5993e137f5ae484ed3d74d99d4f26ca5 Mon Sep 17 00:00:00 2001 From: unix Date: Thu, 9 Apr 2020 07:06:13 +0800 Subject: [PATCH] docs: add a sample link to the theme docs --- pages/en-us/guide/themes.mdx | 6 ++++-- pages/zh-cn/guide/themes.mdx | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/en-us/guide/themes.mdx b/pages/en-us/guide/themes.mdx index 215e25d..11f167f 100644 --- a/pages/en-us/guide/themes.mdx +++ b/pages/en-us/guide/themes.mdx @@ -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 a complete sample project 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**. The more changes you custom, the more Components Re-Render. diff --git a/pages/zh-cn/guide/themes.mdx b/pages/zh-cn/guide/themes.mdx index 8675ab6..a6bbc70 100644 --- a/pages/zh-cn/guide/themes.mdx +++ b/pages/zh-cn/guide/themes.mdx @@ -50,6 +50,8 @@ const App = () => { ### 自定义主题 自定义主题样式在 `@zeit-ui/react` 中是非常简单的,你只需要提供一个新的样式对象给 `ZEITUIProvider`,所有的组件都会自然变化以适应你自定义的属性。 +这里有 一个完整的示例项目 可供参考。 + 当然,如果一个组件未使用到你自定义的变量,它不会发生任何变化也不会重新渲染。