Skip to content

Commit

Permalink
docs: add description to theme customization docs (ant-design#47959)
Browse files Browse the repository at this point in the history
* docs(Button): change paddingBlock type def desc

* doc(Theme): 主题定制 cssVar 和 hashed 文档增加 API 说明
  • Loading branch information
songhongkai99 authored Mar 20, 2024
1 parent 708bdfc commit ff76a64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/react/customize-theme.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ const theme = {
| inherit | Inherit theme configured in upper ConfigProvider | boolean | true |
| algorithm | Modify the algorithms of theme | `(token: SeedToken) => MapToken` \| `((token: SeedToken) => MapToken)[]` | `defaultAlgorithm` |
| components | Modify Component Token and Alias Token applied to components | `ComponentsConfig` | - |
| cssVar | Toggle CSS Variables | boolean \| { prefix?: string; key?: string } [CSS Variables](/docs/react/css-variables-cn#api) | false |
| hashed | Component class Hash value | boolean [Refer](/docs/react/css-variables#disable-hash) | true |

### ComponentsConfig

Expand Down
2 changes: 2 additions & 0 deletions docs/react/customize-theme.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ const theme = {
| inherit | 继承上层 ConfigProvider 中配置的主题。 | boolean | true |
| algorithm | 用于修改 Seed Token 到 Map Token 的算法 | `(token: SeedToken) => MapToken` \| `((token: SeedToken) => MapToken)[]` | `defaultAlgorithm` |
| components | 用于修改各个组件的 Component Token 以及覆盖该组件消费的 Alias Token | `ComponentsConfig` | - |
| cssVar | 开启 CSS 变量 | boolean \| { prefix?: string; key?: string } 参考 [使用 CSS 变量](/docs/react/css-variables-cn#api) | false |
| hashed | 组件 class Hash 值 | boolean [参考](/docs/react/css-variables-cn#关闭-hash) | true |

### ComponentsConfig

Expand Down

0 comments on commit ff76a64

Please sign in to comment.