[进度指示器](https://material.io/design/components/progress-indicators.html)能够将当前处理过程的状态通知用户,例如加载一个应用,提交一个表单或保存一些更新。 它们与应用程序状态进行通信并指示可用的操作,例如用户是否可从当前页面离开。
@@ -99,6 +99,6 @@ function Progress(props) {
![高负载](/static/images/progress/heavy-load.gif)
-当它不可用时,您可以利用 `disableShrink` 属性来缓解这个问题。 查看 [这个问题](https://github.com/mui-org/material-ui/issues/10327).
+当这个方法不可行的时候,您可以利用 `disableShrink` 属性来缓解这个问题。 请查看 [这个问题](https://github.com/mui-org/material-ui/issues/10327)。
{{"demo": "pages/components/progress/CircularUnderLoad.js"}}
\ No newline at end of file
diff --git a/docs/src/pages/components/radio-buttons/radio-buttons-zh.md b/docs/src/pages/components/radio-buttons/radio-buttons-zh.md
index a95be0b17bac9f..63d2ff042fa0ed 100644
--- a/docs/src/pages/components/radio-buttons/radio-buttons-zh.md
+++ b/docs/src/pages/components/radio-buttons/radio-buttons-zh.md
@@ -27,7 +27,7 @@ components: Radio, RadioGroup, FormControl, FormLabel, FormControlLabel
## 标签放置
-你可以用 `FormControlLabel` 组件的 `labelPlacement` prop 来改变标签的位置。
+你可以用 `FormControlLabel` 组件的 `labelPlacement` 属性来改变标签的位置。
{{"demo": "pages/components/radio-buttons/FormControlLabelPlacement.js"}}
diff --git a/docs/src/pages/components/skeleton/skeleton-pt.md b/docs/src/pages/components/skeleton/skeleton-pt.md
index cd02a2aa8914ad..c770e20594934d 100644
--- a/docs/src/pages/components/skeleton/skeleton-pt.md
+++ b/docs/src/pages/components/skeleton/skeleton-pt.md
@@ -31,11 +31,11 @@ Por padrão, o skeleton pulsa, mas você pode mudar a animação para uma onda o
{{"demo": "pages/components/skeleton/Animations.js"}}
-### Pulsate example
+### Exemplo com efeito de pulsação
{{"demo": "pages/components/skeleton/YouTube.js", "defaultCodeOpen": false}}
-### Wave example
+### Exemplo com efeito de ondas
{{"demo": "pages/components/skeleton/Facebook.js", "defaultCodeOpen": false, "bg": true}}
@@ -65,6 +65,6 @@ loading
## Acessibilidade
-Skeleton screens provide an alternative to the traditional spinner methods. Rather than showing an abstract widget, skeleton screens create anticipation of what is to come and reduce cognitive load.
+Telas com Skeleton fornecem uma alternativa aos métodos tradicionais de feedback. Em vez de mostrar um resumo abstrato na tela, telas com skeleton criam uma expectativa do que está por vir, reduzindo a sensação cognitiva do processo de carregamento.
-The background color of the skeleton uses the least amount of luminance to be visible in good conditions (good ambient light, good screen, no visual impairments).
\ No newline at end of file
+A cor de fundo do skeleton usa uma quantidade menor de luminância para ser visível em boas condições (boa luz ambiente, boa tela, sem deficiência visual).
\ No newline at end of file
diff --git a/docs/src/pages/components/skeleton/skeleton-zh.md b/docs/src/pages/components/skeleton/skeleton-zh.md
index e7fc6ef00d1488..a1f17e5f23c531 100644
--- a/docs/src/pages/components/skeleton/skeleton-zh.md
+++ b/docs/src/pages/components/skeleton/skeleton-zh.md
@@ -1,5 +1,5 @@
---
-title: 骨架屏 React 组件
+title: React Skeleton 骨架屏组件
components: Skeleton
---
@@ -31,11 +31,11 @@ components: Skeleton
{{"demo": "pages/components/skeleton/Animations.js"}}
-### Pulsate example
+### 脉动动画例子
{{"demo": "pages/components/skeleton/YouTube.js", "defaultCodeOpen": false}}
-### Wave example
+### 波浪动画例子
{{"demo": "pages/components/skeleton/Facebook.js", "defaultCodeOpen": false, "bg": true}}
@@ -65,6 +65,6 @@ loading
## 可访问性
-Skeleton screens provide an alternative to the traditional spinner methods. Rather than showing an abstract widget, skeleton screens create anticipation of what is to come and reduce cognitive load.
+骨架屏提供了一个可替代传统 进度条(spinner) 的解决方案。 骨架屏不是一个抽象的小部件,而是提供一个对未来事件的预期,来减少人们的认知负荷。
-The background color of the skeleton uses the least amount of luminance to be visible in good conditions (good ambient light, good screen, no visual impairments).
\ No newline at end of file
+骨架屏使用的背景色是在良好条件下可见的最小亮度(良好的环境光、良好的屏幕、无视觉障碍)。
\ No newline at end of file
diff --git a/docs/src/pages/components/snackbars/snackbars-zh.md b/docs/src/pages/components/snackbars/snackbars-zh.md
index 96c76a8b9648e3..04e3be223af82e 100644
--- a/docs/src/pages/components/snackbars/snackbars-zh.md
+++ b/docs/src/pages/components/snackbars/snackbars-zh.md
@@ -5,11 +5,11 @@ components: Snackbar, SnackbarContent
# Snackbar 消息条
-
-[步骤条](https://material.io/archive/guidelines/components/steppers.html) 通过一系列逻辑和编号的步骤来显示当前操作的进度。 它们也可用于导航。 在保存一个步骤后,步骤条可能会显示短暂的反馈信息。
+[步骤条](https://material.io/archive/guidelines/components/steppers.html)通过一系列逻辑和编号的步骤来显示当前操作的进度。 它们也可用于导航。 在保存一个步骤后,步骤条可能会显示短暂的反馈信息。
-- **节点类型**:可编辑节点,不可编辑节点,移动节点,非强制节点
-- **步进器类型**:横向步进器,竖向步进器,线性步进器,非线性步进器
+- **步骤的类型**:可编辑的,不可编辑的,移动端的,可选择的
+- **步骤条的类型**:横向的,竖向的,线性的,非线性的
-> **注意:**步进器不再出现在 [Material Design 指南](https://material.io/) 中, 但 Material-UI 会继续支持步进器。
+> **请注意:**步骤条不再出现在 [Material Design 指南](https://material.io/)中, 但 Material-UI 会继续支持此组件。
-## 横向步进器
+## 横向的步骤条
### 线性的步骤条
-您可以在 `activeStep` 属性中传入一个初始值为0的当前步骤值来控制 `步骤条`。 您也可以借助 `orientation` 属性来设置 `步骤条` 的方向。
+您可以在 `activeStep` 属性中传入一个初始值为0的当前步骤值来控制`步骤条`。 您也可以借助 `orientation` 属性来设置 `步骤条` 的方向。
这个例子把`optional` 属性放在第二个 `步骤` 的组件上,它展示了如何使用一个可选的步骤条。 请注意,您可以自行选择管理跳过一个可选的步骤。 一旦决定将一个特定步骤设置为可选的,您就必须配置这个属性 `completed={false}` 以表示即使激活的步骤索引超出了可选的步骤,步骤条并没有完成。
{{"demo": "pages/components/steppers/HorizontalLinearStepper.js", "bg": true}}
-### 线性步骤条 - 备选标签
+### 线性步骤条 — 备选的标签
-您可以将标签放置在节点图标之下。请在 `Stepper` 组件中设置 `alternativeLabel` 这一属性。
+您可以将标签置于步骤的图标之下,通过设置 `Stepper` 组件的 `alternativeLabel` 属性可以实现。
{{"demo": "pages/components/steppers/HorizontalLinearAlternativeLabelStepper.js", "bg": true}}
-### 定制步进器
+### 定制的步骤器
以下是自定义组件的一个示例。 您可以在[样式重写文档页](/customization/components/)中了解有关此内容的更多信息。
@@ -46,23 +46,23 @@ components: MobileStepper, Step, StepButton, StepConnector, StepContent, StepIco
{{"demo": "pages/components/steppers/HorizontalNonLinearStepper.js", "bg": true}}
-### 非线性步骤条 - 备选标签
+### 非线性的步骤条 — 备选的标签
-您可以将标签放置在节点图标之下。请在 `Stepper` 组件中设置 `alternativeLabel` 这一属性。
+您可以将标签置于步骤的图标之下,通过设置 `Stepper` 组件的 `alternativeLabel` 属性可以实现。
{{"demo": "pages/components/steppers/HorizontalNonLinearAlternativeLabelStepper.js", "bg": true}}
-### 非线性步骤条 - 错误步骤
+### 非线性的步骤条 — 错误的步骤
{{"demo": "pages/components/steppers/HorizontalNonLinearStepperWithError.js", "bg": true}}
-## 垂直步骤条
+## 垂直的步骤条
{{"demo": "pages/components/steppers/VerticalLinearStepper.js", "bg": true}}
-## 移动设备上的步进器
+## 移动设备上的步骤条
-该组件实现了适用于移动设备的紧凑型步进器。 有关其详情, 请参阅 [移动步骤](https://material.io/archive/guidelines/components/steppers.html#steppers-types-of-steps)。
+该组件实现了适用于移动设备上的紧凑型步骤条。 有关这方面的详细介绍,请参阅 [移动设备上的步骤条](https://material.io/archive/guidelines/components/steppers.html#steppers-types-of-steps)。
### 文本
@@ -78,7 +78,7 @@ components: MobileStepper, Step, StepButton, StepConnector, StepContent, StepIco
### 点状
-当步骤的数字不是特别明显时使用点状标记。
+当步骤数并不是很多的时候,用点标记。
{{"demo": "pages/components/steppers/DotsMobileStepper.js", "bg": true}}
diff --git a/docs/src/pages/components/switches/switches-pt.md b/docs/src/pages/components/switches/switches-pt.md
index 2550d85d997154..5038cfa45b9720 100644
--- a/docs/src/pages/components/switches/switches-pt.md
+++ b/docs/src/pages/components/switches/switches-pt.md
@@ -39,7 +39,7 @@ Gosta de interruptores menores? Use a propriedade `size`.
{{"demo": "pages/components/switches/SwitchesSize.js"}}
-## Label placement
+## Posicionamento do rótulo
Você pode alterar o posicionamento do rótulo:
diff --git a/docs/src/pages/components/tabs/tabs-aa.md b/docs/src/pages/components/tabs/tabs-aa.md
index 37c777180ea8a9..deaa73ba83e475 100644
--- a/docs/src/pages/components/tabs/tabs-aa.md
+++ b/docs/src/pages/components/tabs/tabs-aa.md
@@ -1,6 +1,6 @@
---
title: crwdns92116:0crwdne92116:0
-components: crwdns131786:0crwdne131786:0
+components: crwdns133260:0crwdne133260:0
---
# crwdns92120:0crwdne92120:0
@@ -104,10 +104,14 @@ crwdns132504:0crwdne132504:0 crwdns132506:0crwdne132506:0
crwdns132510:0crwdne132510:0 crwdns132512:0crwdne132512:0 crwdns132514:0crwdne132514:0
-#### crwdns132516:0crwdne132516:0
+#### crwdns133262:0crwdne133262:0
crwdns132518:0crwdne132518:0 crwdns132520:0crwdne132520:0
+```jsx
+crwdns133264:0crwdne133264:0
+```
+
crwdns132522:0crwdne132522:0
## crwdns132524:0crwdne132524:0
diff --git a/docs/src/pages/components/tabs/tabs-de.md b/docs/src/pages/components/tabs/tabs-de.md
index d661a942cd83a2..8c3eedc9011127 100644
--- a/docs/src/pages/components/tabs/tabs-de.md
+++ b/docs/src/pages/components/tabs/tabs-de.md
@@ -1,6 +1,6 @@
---
title: Tabs React-Komponente
-components: Tabs, Tab, TabScrollButton
+components: Tabs, Tab, TabScrollButton, TabContext, TabList, TabPanel
---
# Tabs
@@ -104,10 +104,17 @@ An example for the current implementation can be found in the demos on this page
The components implement keyboard navigation using the "manual activation" behavior. If you want to switch to the "selection automatically follows focus" behavior you have pass `selectionFollowsFocus` to the `Tabs` component. The WAI-ARIA authoring practices have a detailed guide on [how to decide when to make selection automatically follow focus](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus).
-#### `selectionFollowsFocus` Demo
+#### Demo
The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference.
+```jsx
+/* Tabs where selection follows focus */
+
+/* Tabs where each tab needs to be selected manually */
+
+```
+
{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
## Experimental API
diff --git a/docs/src/pages/components/tabs/tabs-es.md b/docs/src/pages/components/tabs/tabs-es.md
index 87b2953c743d1f..7efbb8d7b1eeb8 100644
--- a/docs/src/pages/components/tabs/tabs-es.md
+++ b/docs/src/pages/components/tabs/tabs-es.md
@@ -1,6 +1,6 @@
---
title: Tabs React component
-components: Tabs, Tab, TabScrollButton
+components: Tabs, Tab, TabScrollButton, TabContext, TabList, TabPanel
---
# Pestañas
@@ -104,10 +104,17 @@ An example for the current implementation can be found in the demos on this page
The components implement keyboard navigation using the "manual activation" behavior. If you want to switch to the "selection automatically follows focus" behavior you have pass `selectionFollowsFocus` to the `Tabs` component. The WAI-ARIA authoring practices have a detailed guide on [how to decide when to make selection automatically follow focus](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus).
-#### `selectionFollowsFocus` Demo
+#### Demo
The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference.
+```jsx
+/* Tabs where selection follows focus */
+
+/* Tabs where each tab needs to be selected manually */
+
+```
+
{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
## Experimental API
diff --git a/docs/src/pages/components/tabs/tabs-fr.md b/docs/src/pages/components/tabs/tabs-fr.md
index ca80b8131f5055..dd18b168bfd7ae 100644
--- a/docs/src/pages/components/tabs/tabs-fr.md
+++ b/docs/src/pages/components/tabs/tabs-fr.md
@@ -1,6 +1,6 @@
---
title: Tabs React component
-components: Tabs, Tab, TabScrollButton
+components: Tabs, Tab, TabScrollButton, TabContext, TabList, TabPanel
---
# Tabs (Onglets)
@@ -104,10 +104,17 @@ An example for the current implementation can be found in the demos on this page
The components implement keyboard navigation using the "manual activation" behavior. If you want to switch to the "selection automatically follows focus" behavior you have pass `selectionFollowsFocus` to the `Tabs` component. The WAI-ARIA authoring practices have a detailed guide on [how to decide when to make selection automatically follow focus](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus).
-#### `selectionFollowsFocus` Demo
+#### Démo
The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference.
+```jsx
+/* Tabs where selection follows focus */
+
+/* Tabs where each tab needs to be selected manually */
+
+```
+
{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
## Experimental API
diff --git a/docs/src/pages/components/tabs/tabs-ja.md b/docs/src/pages/components/tabs/tabs-ja.md
index 762a0556735240..36d7540b0ff532 100644
--- a/docs/src/pages/components/tabs/tabs-ja.md
+++ b/docs/src/pages/components/tabs/tabs-ja.md
@@ -1,6 +1,6 @@
---
title: Tabs React component
-components: Tabs, Tab, TabScrollButton
+components: Tabs, Tab, TabScrollButton, TabContext, TabList, TabPanel
---
# Tabs
@@ -104,10 +104,17 @@ An example for the current implementation can be found in the demos on this page
The components implement keyboard navigation using the "manual activation" behavior. If you want to switch to the "selection automatically follows focus" behavior you have pass `selectionFollowsFocus` to the `Tabs` component. The WAI-ARIA authoring practices have a detailed guide on [how to decide when to make selection automatically follow focus](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus).
-#### `selectionFollowsFocus` Demo
+#### Demo
The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference.
+```jsx
+/* Tabs where selection follows focus */
+
+/* Tabs where each tab needs to be selected manually */
+
+```
+
{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
## Experimental API
diff --git a/docs/src/pages/components/tabs/tabs-pt.md b/docs/src/pages/components/tabs/tabs-pt.md
index 5bd67cc539a33f..6eea7de53ffbc1 100644
--- a/docs/src/pages/components/tabs/tabs-pt.md
+++ b/docs/src/pages/components/tabs/tabs-pt.md
@@ -1,6 +1,6 @@
---
title: Componente React para Abas
-components: Tabs, Tab, TabScrollButton
+components: Tabs, Tab, TabScrollButton, TabContext, TabList, TabPanel
---
# Abas
@@ -104,10 +104,17 @@ Um exemplo para a implementação atual pode ser encontrado nas demonstrações
Os componentes implementam a navegação do teclado usando o comportamento de "ativação manual". Se você quiser mudar para o comportamento "seleção segue automaticamente o foco" você deve definir `selectionFollowsFocus` no componente `Tabs`. As práticas de autoria da WAI-ARIA têm um guia detalhado sobre [how to decide when to make selection automatically follow focus](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus).
-#### Demonstração `selectionFollowsFocus`
+#### Demonstração
As duas demonstrações seguintes diferem apenas no seu comportamento de navegação por teclado. Foque em uma aba e navegue com as teclas de seta para notar a diferença.
+```jsx
+/* Tabs where selection follows focus */
+
+/* Tabs where each tab needs to be selected manually */
+
+```
+
{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
## API experimental
diff --git a/docs/src/pages/components/tabs/tabs-ru.md b/docs/src/pages/components/tabs/tabs-ru.md
index bd076e7f8ab88d..5de07f949e5c50 100644
--- a/docs/src/pages/components/tabs/tabs-ru.md
+++ b/docs/src/pages/components/tabs/tabs-ru.md
@@ -1,6 +1,6 @@
---
title: Tabs React component
-components: Tabs, Tab, TabScrollButton
+components: Tabs, Tab, TabScrollButton, TabContext, TabList, TabPanel
---
# Вкладки
@@ -104,10 +104,17 @@ An example for the current implementation can be found in the demos on this page
The components implement keyboard navigation using the "manual activation" behavior. If you want to switch to the "selection automatically follows focus" behavior you have pass `selectionFollowsFocus` to the `Tabs` component. The WAI-ARIA authoring practices have a detailed guide on [how to decide when to make selection automatically follow focus](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus).
-#### `selectionFollowsFocus` Demo
+#### Demo
The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference.
+```jsx
+/* Tabs where selection follows focus */
+
+/* Tabs where each tab needs to be selected manually */
+
+```
+
{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
## Experimental API
diff --git a/docs/src/pages/components/tabs/tabs-zh.md b/docs/src/pages/components/tabs/tabs-zh.md
index eca0bde77cac13..1242c885d20673 100644
--- a/docs/src/pages/components/tabs/tabs-zh.md
+++ b/docs/src/pages/components/tabs/tabs-zh.md
@@ -1,6 +1,6 @@
---
title: React Tabs 选项卡组件
-components: Tabs, Tab, TabScrollButton
+components: Tabs, Tab, TabScrollButton, TabContext, TabList, TabPanel
---
# Tabs 选项卡
@@ -69,7 +69,7 @@ components: Tabs, Tab, TabScrollButton
{{"demo": "pages/components/tabs/CustomizedTabs.js", "bg": true}}
-🎨 If you are looking for inspiration, you can check [MUI Treasury's customization examples](https://mui-treasury.com/styles/tabs/).
+🎨如果你是在寻找灵感,你可以查看 [MUI Treasury's customization examples](https://mui-treasury.com/styles/tabs/)。
## 垂直的选项卡
@@ -93,25 +93,32 @@ components: Tabs, Tab, TabScrollButton
(WAI-ARIA: https://www.w3.org/TR/wai-aria-practices/#tabpanel)
-The following steps are needed in order to provide necessary information for assistive technologies:
+需要采取以下步骤,以便为无障碍技术提供必要的信息:
-1. Label `Tabs` via `aria-label` or `aria-labelledby`.
-2. `Tab`s need to be connected to their corresponding `[role="tabpanel"]` by setting the correct `id`, `aria-controls` and `aria-labelledby`.
+1. 在 `Tabs` 上应用 `aria-label` 或 `aria-labelledby` 标签。
+2. `Tab` 需要连接到其 相应的 `id`、`aria-controls` 和 `aria-labelledby` 中对应的 `[role="tabpanel"]`。
-An example for the current implementation can be found in the demos on this page. We've also published [an experimental API](#experimental-api) in `@material-ui/lab` that does not require extra work.
+当前实现的例子可以在本页面的演示中找到。 我们还在 `@material-ui/lab` 中发布了不需要额外工作就能使用的 [实验性 API](#experimental-api)
-### Keyboard navigation
+### 键盘导航
-The components implement keyboard navigation using the "manual activation" behavior. If you want to switch to the "selection automatically follows focus" behavior you have pass `selectionFollowsFocus` to the `Tabs` component. The WAI-ARIA authoring practices have a detailed guide on [how to decide when to make selection automatically follow focus](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus).
+该组件使用 “手动激活” 的行为来实现键盘导航。 如果你想切换到 “选择自动跟随焦点(selection automatically follows focus)”的行为,你必须将 `selectionFollowsFocus` 传递给 `Tabs` 组件。 WAI-ARIA 项目实践中有一个详细的指南 [如何决定什么时候选择自动跟随焦点](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus)。
-#### `selectionFollowsFocus` Demo
+#### 演示
-The following two demos only differ in their keyboard navigation behavior. Focus a tab and navigate with arrow keys to notice the difference.
+下面的两个演示只是在键盘导航行为上有所区别。 聚焦到其中一个选项卡,然后用方向键导航你就可以注意到其中的差异。
+
+```jsx
+/* Tabs where selection follows focus */
+
+/* Tabs where each tab needs to be selected manually */
+
+```
{{"demo": "pages/components/tabs/AccessibleTabs.js", "bg": true}}
-## Experimental API
+## 实验性 API
-`@material-ui/lab` offers utility components that inject props to implement accessible tabs following [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices/#tabpanel).
+遵循 [WAI-ARIA 项目实践](https://www.w3.org/TR/wai-aria-practices/#tabpanel),`@material-ui/lab` 提供了工具集组件,该组件通过注入属性的方式来实现具有可访问性(accessible) 功能的选项卡。
{{"demo": "pages/components/tabs/LabTabs.js", "bg": true}}
\ No newline at end of file
diff --git a/docs/src/pages/components/toggle-button/toggle-button-zh.md b/docs/src/pages/components/toggle-button/toggle-button-zh.md
index ed025ba108fb18..677f62b054f359 100644
--- a/docs/src/pages/components/toggle-button/toggle-button-zh.md
+++ b/docs/src/pages/components/toggle-button/toggle-button-zh.md
@@ -7,7 +7,7 @@ components: ToggleButton, ToggleButtonGroup
Use a tipografia para apresentar seu design e conteúdo da forma mais clara e eficiente possível.
-O uso de diferentes tamanhos e estilos de uma só vez pode estragar qualquer layout. Uma [escala tipográfica](https://material.io/design/typography/#type-scale) tem um conjunto limitado de tamanhos de tipo que funcionam bem em conjunto com a grade de layout.
+O uso de diferentes tamanhos e estilos de uma só vez pode estragar qualquer leiaute. Uma [escala tipográfica](https://material.io/design/typography/#type-scale) tem um conjunto limitado de tipos de tamanhos que funcionam bem em conjunto com o leiaute de grade.
## Geral
-A fonte *Roboto* **não** será carregada automaticamente pelo Material-UI. O desenvolvedor é responsável por carregar todas as fontes usadas em sua aplicação. A fonte Roboto possui algumas maneiras fáceis de começar. Para configuração mais avançadas, dê uma olhada na [seção de personalização de temas](/customization/typography/).
+A fonte *Roboto* **não** será carregada automaticamente pelo Material-UI. O desenvolvedor é responsável por carregar todas as fontes usadas em sua aplicação. A fonte Roboto possui algumas maneiras fáceis de ser carregada. Para uma abordagem mais avançada, dê uma olhada na [seção de customização de temas](/customization/typography/).
## CDN da fonte Roboto
@@ -32,9 +32,9 @@ Então, você pode importá-la no seu ponto de entrada (entry-point).
import 'fontsource-roboto';
```
-For more info check out [Fontsource](https://github.com/DecliningLotus/fontsource/blob/master/packages/roboto/README.md).
+Para maiores informações, confira em [Fontsource](https://github.com/DecliningLotus/fontsource/blob/master/packages/roboto/README.md).
-⚠️ Tome cuidado ao usar essa abordagem. Certifique-se de que seu bundler não carregue ansiosamente todas as variações da fonte (100/300/400/500/700/900, itálico/regular, SVG/woff). Fontsource can be configured to load specific subsets, weights and styles. Colocar todos os arquivos de fonte em linha pode aumentar o tamanho do seu pacote significativamente. A configuração de tipografia padrão do Material-UI depende apenas dos pesos de fonte de 300, 400, 500 e 700.
+⚠️ Tome cuidado ao usar essa abordagem. Certifique-se de que seu bundler não carregue ansiosamente todas as variações da fonte (100/300/400/500/700/900, itálico/regular, SVG/woff). Fontsource pode ser configurado para carregar subconjuntos, pesos e estilos específicos. Colocar todos os arquivos de fonte em linha pode aumentar o tamanho do seu pacote significativamente. A configuração de tipografia padrão do Material-UI depende apenas dos pesos de fonte de 300, 400, 500 e 700.
## Componente
diff --git a/docs/src/pages/components/typography/typography-zh.md b/docs/src/pages/components/typography/typography-zh.md
index c3d5d151f72627..d63e9cd30b4616 100644
--- a/docs/src/pages/components/typography/typography-zh.md
+++ b/docs/src/pages/components/typography/typography-zh.md
@@ -1,5 +1,5 @@
---
-components: 文字排版
+components: Typography
---
# Typography 文字铸排
@@ -32,9 +32,9 @@ Material-UI **不会**自动加载 *Roboto* 字体。 开发人员需要自行
import 'fontsource-roboto';
```
-For more info check out [Fontsource](https://github.com/DecliningLotus/fontsource/blob/master/packages/roboto/README.md).
+有关更多信息请查看 [Fontsource](https://github.com/DecliningLotus/fontsource/blob/master/packages/roboto/README.md)。
-⚠️使用这种方法时要格外小心。 确保您的包不会一次性加载所有字体的变体 (100/300/400/500/700/900,italic/regular,SVG/woff)。 Fontsource can be configured to load specific subsets, weights and styles. 当内联所有字体文件的时候,捆绑包的大小会显著增加。 Material-UI 默认的排版配置仅依赖于300,400和500的字重。
+⚠️使用这种方法时要格外小心。 确保您的包不会一次性加载所有字体的变体 (100/300/400/500/700/900,italic/regular,SVG/woff)。 Fontsource 可以配置为加载特定的 子集(subsets)、字体粗细(weights) 和 样式(styles)。 当内联所有字体文件的时候,捆绑包的大小会显著增加。 Material-UI 默认的排版配置仅依赖于300,400和500的字重。
## 组件
diff --git a/docs/src/pages/customization/breakpoints/breakpoints-aa.md b/docs/src/pages/customization/breakpoints/breakpoints-aa.md
index df8075d10f8780..14fbd2380897c5 100644
--- a/docs/src/pages/customization/breakpoints/breakpoints-aa.md
+++ b/docs/src/pages/customization/breakpoints/breakpoints-aa.md
@@ -81,8 +81,14 @@ crwdns132160:0crwdne132160:0
crwdns132162:0crwdne132162:0
-```tsx
-crwdns132164:0crwdne132164:0
+```js
+crwdns133266:0crwdne133266:0
+```
+
+crwdns133268:0crwdne133268:0
+
+```ts
+crwdns133270:0crwdne133270:0
```
## crwdns132166:0crwdne132166:0
@@ -95,14 +101,14 @@ crwdns132164:0crwdne132164:0
#### crwdns92930:0crwdne92930:0
-crwdns132168:0crwdne132168:0
+crwdns133272:0crwdne133272:0
#### crwdns92934:0crwdne92934:0
```js
-crwdns132170:0{
+crwdns133274:0{
backgroundColor: 'red',
- }crwdne132170:0
+ }crwdne133274:0
```
### `crwdns92938:0crwdne92938:0`
@@ -113,14 +119,14 @@ crwdns132170:0{
#### crwdns92944:0crwdne92944:0
-crwdns132172:0crwdne132172:0
+crwdns133276:0crwdne133276:0
#### crwdns92948:0crwdne92948:0
```js
-crwdns132174:0{
+crwdns133278:0{
backgroundColor: 'red',
- }crwdne132174:0
+ }crwdne133278:0
```
### `crwdns92952:0crwdne92952:0`
@@ -131,14 +137,14 @@ crwdns132174:0{
#### crwdns92958:0crwdne92958:0
-crwdns132176:0crwdne132176:0
+crwdns133280:0crwdne133280:0
#### crwdns92962:0crwdne92962:0
```js
-crwdns132178:0{
+crwdns133282:0{
backgroundColor: 'red',
- }crwdne132178:0
+ }crwdne133282:0
```
### `crwdns92966:0crwdne92966:0`
@@ -150,25 +156,25 @@ crwdns132178:0{
#### crwdns92974:0crwdne92974:0
-crwdns132180:0crwdne132180:0
+crwdns133284:0crwdne133284:0
#### crwdns92978:0crwdne92978:0
```js
-crwdns132182:0{
+crwdns133286:0{
backgroundColor: 'red',
- }crwdne132182:0
+ }crwdne133286:0
```
### `crwdns92982:0[options]crwdne92982:0`
-crwdns132184:0crwdne132184:0 crwdns132186:0crwdne132186:0 crwdns132188:0crwdne132188:0 crwdns132190:0crwdne132190:0
+crwdns133288:0crwdne133288:0 crwdns133290:0crwdne133290:0 crwdns133292:0crwdne133292:0 crwdns133294:0crwdne133294:0
```ts
-crwdns132192:0crwdne132192:0
+crwdns133296:0crwdne133296:0
```
-crwdns132194:0crwdne132194:0
+crwdns133298:0crwdne133298:0
- crwdns132196:0crwdne132196:0 crwdns132198:0crwdne132198:0
@@ -180,22 +186,22 @@ crwdns132194:0crwdne132194:0
- crwdns93020:0[optional]crwdne93020:0 crwdns93022:0crwdne93022:0 crwdns93024:0crwdne93024:0 crwdns93026:0%20hicrwdne93026:0 crwdns93028:0crwdne93028:0
```js
-crwdns132200:0crwdne132200:0
- crwdns132202:0crwdne132202:0
+crwdns133300:0crwdne133300:0
+ crwdns133302:0crwdne133302:0
```
- crwdns132204:0[optional]crwdne132204:0 crwdns132206:0crwdne132206:0
#### crwdns93038:0crwdne93038:0
-crwdns132208:0crwdne132208:0
+crwdns133304:0crwdne133304:0
#### crwdns93042:0crwdne93042:0
```jsx
-crwdns132210:0{ isWidthUp }crwdne132210:0
+crwdns133306:0{ isWidthUp }crwdne133306:0
```
## crwdns132212:0crwdne132212:0
-crwdns132214:0crwdne132214:0
\ No newline at end of file
+crwdns133308:0crwdne133308:0
\ No newline at end of file
diff --git a/docs/src/pages/customization/breakpoints/breakpoints-de.md b/docs/src/pages/customization/breakpoints/breakpoints-de.md
index 94b7c63eb8a9d8..475122cbaac97e 100644
--- a/docs/src/pages/customization/breakpoints/breakpoints-de.md
+++ b/docs/src/pages/customization/breakpoints/breakpoints-de.md
@@ -109,7 +109,7 @@ const theme = createMuiTheme({
Feel free to have as few or as many breakpoints as you want, naming them in whatever way you'd prefer for your project.
-```tsx
+```js
const theme = createMuiTheme({
breakpoints: {
values: {
@@ -119,11 +119,13 @@ const theme = createMuiTheme({
},
},
});
+```
-declare module "@material-ui/core/styles/createBreakpoints"
-{
- interface BreakpointOverrides
- {
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module "@material-ui/core/styles/createBreakpoints" {
+ interface BreakpointOverrides {
xs: false; // removes the `xs` breakpoint
sm: false;
md: false;
diff --git a/docs/src/pages/customization/breakpoints/breakpoints-es.md b/docs/src/pages/customization/breakpoints/breakpoints-es.md
index 9db0c9aee74de2..4f0b1903370634 100644
--- a/docs/src/pages/customization/breakpoints/breakpoints-es.md
+++ b/docs/src/pages/customization/breakpoints/breakpoints-es.md
@@ -109,7 +109,7 @@ const theme = createMuiTheme({
Feel free to have as few or as many breakpoints as you want, naming them in whatever way you'd prefer for your project.
-```tsx
+```js
const theme = createMuiTheme({
breakpoints: {
values: {
@@ -119,11 +119,13 @@ const theme = createMuiTheme({
},
},
});
+```
-declare module "@material-ui/core/styles/createBreakpoints"
-{
- interface BreakpointOverrides
- {
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module "@material-ui/core/styles/createBreakpoints" {
+ interface BreakpointOverrides {
xs: false; // removes the `xs` breakpoint
sm: false;
md: false;
diff --git a/docs/src/pages/customization/breakpoints/breakpoints-fr.md b/docs/src/pages/customization/breakpoints/breakpoints-fr.md
index 88f8a3ef2d87af..dcf27c317d0fd4 100644
--- a/docs/src/pages/customization/breakpoints/breakpoints-fr.md
+++ b/docs/src/pages/customization/breakpoints/breakpoints-fr.md
@@ -109,7 +109,7 @@ const theme = createMuiTheme({
Feel free to have as few or as many breakpoints as you want, naming them in whatever way you'd prefer for your project.
-```tsx
+```js
const theme = createMuiTheme({
breakpoints: {
values: {
@@ -119,11 +119,13 @@ const theme = createMuiTheme({
},
},
});
+```
-declare module "@material-ui/core/styles/createBreakpoints"
-{
- interface BreakpointOverrides
- {
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module "@material-ui/core/styles/createBreakpoints" {
+ interface BreakpointOverrides {
xs: false; // removes the `xs` breakpoint
sm: false;
md: false;
diff --git a/docs/src/pages/customization/breakpoints/breakpoints-ja.md b/docs/src/pages/customization/breakpoints/breakpoints-ja.md
index 3550febc4b518e..c720d3ca444b26 100644
--- a/docs/src/pages/customization/breakpoints/breakpoints-ja.md
+++ b/docs/src/pages/customization/breakpoints/breakpoints-ja.md
@@ -109,7 +109,7 @@ const theme = createMuiTheme({
Feel free to have as few or as many breakpoints as you want, naming them in whatever way you'd prefer for your project.
-```tsx
+```js
const theme = createMuiTheme({
breakpoints: {
values: {
@@ -119,11 +119,13 @@ const theme = createMuiTheme({
},
},
});
+```
-declare module "@material-ui/core/styles/createBreakpoints"
-{
- interface BreakpointOverrides
- {
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module "@material-ui/core/styles/createBreakpoints" {
+ interface BreakpointOverrides {
xs: false; // removes the `xs` breakpoint
sm: false;
md: false;
diff --git a/docs/src/pages/customization/breakpoints/breakpoints-pt.md b/docs/src/pages/customization/breakpoints/breakpoints-pt.md
index e3ca757ae355e3..2a34f04760987b 100644
--- a/docs/src/pages/customization/breakpoints/breakpoints-pt.md
+++ b/docs/src/pages/customization/breakpoints/breakpoints-pt.md
@@ -109,7 +109,7 @@ const theme = createMuiTheme({
Sinta-se à vontade para ter quantos pontos de quebra você quiser, nomeando-os da maneira que preferir para o seu projeto.
-```tsx
+```js
const theme = createMuiTheme({
breakpoints: {
values: {
@@ -119,17 +119,19 @@ const theme = createMuiTheme({
},
},
});
+```
-declare module "@material-ui/core/styles/createBreakpoints"
-{
- interface BreakpointOverrides
- {
- xs: false; // remove o ponto de quebra `xs`
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module "@material-ui/core/styles/createBreakpoints" {
+ interface BreakpointOverrides {
+ xs: false; // removes the `xs` breakpoint
sm: false;
md: false;
lg: false;
xl: false;
- tablet: true; // adiciona o ponto de quebra `tablet`
+ tablet: true; // adds the `tablet` breakpoint
laptop: true;
desktop: true;
}
diff --git a/docs/src/pages/customization/breakpoints/breakpoints-ru.md b/docs/src/pages/customization/breakpoints/breakpoints-ru.md
index 1fc4c4a81551c3..059047de68810c 100644
--- a/docs/src/pages/customization/breakpoints/breakpoints-ru.md
+++ b/docs/src/pages/customization/breakpoints/breakpoints-ru.md
@@ -109,7 +109,7 @@ const theme = createMuiTheme({
Feel free to have as few or as many breakpoints as you want, naming them in whatever way you'd prefer for your project.
-```tsx
+```js
const theme = createMuiTheme({
breakpoints: {
values: {
@@ -119,11 +119,13 @@ const theme = createMuiTheme({
},
},
});
+```
-declare module "@material-ui/core/styles/createBreakpoints"
-{
- interface BreakpointOverrides
- {
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module "@material-ui/core/styles/createBreakpoints" {
+ interface BreakpointOverrides {
xs: false; // removes the `xs` breakpoint
sm: false;
md: false;
diff --git a/docs/src/pages/customization/breakpoints/breakpoints-zh.md b/docs/src/pages/customization/breakpoints/breakpoints-zh.md
index fee2f558329a67..2863bd516b9281 100644
--- a/docs/src/pages/customization/breakpoints/breakpoints-zh.md
+++ b/docs/src/pages/customization/breakpoints/breakpoints-zh.md
@@ -109,7 +109,7 @@ const theme = createMuiTheme({
Feel free to have as few or as many breakpoints as you want, naming them in whatever way you'd prefer for your project.
-```tsx
+```js
const theme = createMuiTheme({
breakpoints: {
values: {
@@ -119,11 +119,13 @@ const theme = createMuiTheme({
},
},
});
+```
-declare module "@material-ui/core/styles/createBreakpoints"
-{
- interface BreakpointOverrides
- {
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module "@material-ui/core/styles/createBreakpoints" {
+ interface BreakpointOverrides {
xs: false; // removes the `xs` breakpoint
sm: false;
md: false;
diff --git a/docs/src/pages/customization/color/color-aa.md b/docs/src/pages/customization/color/color-aa.md
index f9fabee728aea4..c9402cef1f716b 100644
--- a/docs/src/pages/customization/color/color-aa.md
+++ b/docs/src/pages/customization/color/color-aa.md
@@ -4,72 +4,72 @@
crwdns93052:0crwdne93052:0
-## crwdns93054:0crwdne93054:0
+## crwdns133310:0crwdne133310:0
-### crwdns93056:0crwdne93056:0
+### crwdns133312:0crwdne133312:0
-#### crwdns93058:0crwdne93058:0
+crwdns133314:0crwdne133314:0 crwdns133316:0crwdne133316:0
-crwdns93060:0crwdne93060:0 crwdns93062:0crwdne93062:0 crwdns93064:0crwdne93064:0
-
-#### crwdns93066:0crwdne93066:0
-
-crwdns93068:0crwdne93068:0 crwdns93070:0crwdne93070:0 crwdns93072:0crwdne93072:0
-
-### crwdns93074:0crwdne93074:0
+
+
+
+
+
-crwdns93076:0crwdne93076:0 crwdns93078:0crwdne93078:0
-crwdns93080:0crwdne93080:0
+crwdns133324:0crwdne133324:0
```js
-crwdns93082:0[500]crwdne93082:0
+crwdns133326:0{ createMuiTheme }crwdne133326:0
```
-### crwdns93084:0crwdne93084:0
+### crwdns133328:0crwdne133328:0
-crwdns93086:0crwdne93086:0
+crwdns133330:0crwdne133330:0 crwdns133332:0crwdne133332:0
-```jsx
-crwdns93088:0[SHADE]crwdne93088:0
-```
+crwdns133334:0crwdne133334:0
-crwdns130888:0crwdne130888:0
+crwdns133336:0crwdne133336:0
-## crwdns93092:0crwdne93092:0
+```jsx
+crwdns133338:0{ createMuiTheme }crwdnd133338:0[500]crwdnd133338:0{
+ main: '#f44336',
+ }crwdne133338:0
+```
-crwdns93094:0crwdne93094:0 crwdns93096:0crwdne93096:0
+crwdns133340:0crwdne133340:0
-crwdns130890:0crwdne130890:0
+crwdns133342:0crwdne133342:0
-crwdns103436:0crwdne103436:0
+### crwdns133344:0crwdne133344:0
-```jsx
-crwdns93102:0{ createMuiTheme }crwdnd93102:0{
- main: '#f44336',
- }crwdne93102:0
-```
+- crwdns100876:0crwdne100876:0
+- crwdns100878:0crwdne100878:0
+- crwdns93130:0crwdne93130:0
-crwdns93104:0crwdne93104:0
+## crwdns133346:0crwdne133346:0
-crwdns93106:0crwdne93106:0
+crwdns133348:0crwdne133348:0 crwdns133350:0crwdne133350:0
-### crwdns93108:0crwdne93108:0
+### crwdns133352:0crwdne133352:0
-crwdns93110:0crwdne93110:0 crwdns93112:0crwdne93112:0
+- crwdns133354:0crwdne133354:0 crwdns133356:0crwdne133356:0 crwdns133358:0crwdne133358:0
+- crwdns133360:0crwdne133360:0 crwdns133362:0crwdne133362:0 crwdns133364:0crwdne133364:0
-
-
-
+### crwdns133366:0crwdne133366:0
-crwdns93120:0crwdne93120:0
+crwdns133368:0crwdne133368:0
```jsx
-crwdns93122:0{ createMuiTheme }crwdne93122:0
+crwdns133370:0[SHADE]crwdne133370:0
```
-### crwdns93124:0crwdne93124:0
+crwdns133372:0crwdne133372:0
-- crwdns100876:0crwdne100876:0
-- crwdns100878:0crwdne100878:0
-- crwdns93130:0crwdne93130:0
\ No newline at end of file
+### crwdns133374:0crwdne133374:0
+
+crwdns133376:0crwdne133376:0
+
+```js
+crwdns133378:0[500]crwdne133378:0
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/color/color-de.md b/docs/src/pages/customization/color/color-de.md
index 65a55918514490..ffafde4e6e2174 100644
--- a/docs/src/pages/customization/color/color-de.md
+++ b/docs/src/pages/customization/color/color-de.md
@@ -4,48 +4,45 @@
Das Material Design [Farbsystem](https://material.io/design/color/) kann verwendet werden, um ein Farbschema zu erstellen, das Ihre Marke oder Ihren Stil widerspiegelt.
-## Farbsystem
+## Picking colors
-### Wichtige Begriffe
-
-#### "Palette"
-
-Eine Palette ist eine Sammlung von Farben, d.h. Farbtönen und deren Nuancen. Die Material-UI stellt alle Farben aus den Richtlinien für Material Design zur Verfügung. [ Diese Farbpalette ](#color-palette) wurde mit Farben gestaltet, die harmonisch zusammenarbeiten.
-
-#### "Farbton" & "Schatten"
+### Offizielles Farbwerkzeug
-Eine einzelne Farbe innerhalb der Palette besteht aus einem Farbton wie "Rot" und eine Schattierung wie "500". "Rot 50" ist der hellste Rotton (*Pink!*), während "Rot 900" am dunkelsten ist. Darüber hinaus enthalten die meisten Farbtöne Akzentfarben, denen ein `A` vorangestellt ist.
+The Material Design team has also built an awesome palette configuration tool: [material.io/resources/color/](https://material.io/resources/color/). Auf diese Weise können Sie eine Farbpalette für Ihre Benutzeroberfläche erstellen und die Zugänglichkeit einer beliebigen Farbkombination messen.
-### Beispiele
+
+
+
+
+
-Die Material Design-Farbpalette umfasst Primär- und Akzentfarben, die zur Illustration oder zur Entwicklung Ihrer Markenfarben verwendet werden können. Sie wurden entwickelt, um harmonisch miteinander zu arbeiten.
-Sie können sich beispielsweise auf komplementäre Primär- und Akzentfarben beziehen (z. B. 'red 500' & 'purple A200'):
+Die Ausgabe kann in die `createMuiTheme()` Funktion eingegeben werden:
```js
-import purple from '@material-ui/core/colors/purple';
-import red from '@material-ui/core/colors/red';
-
-const primary = red[500]; // #F44336
-const accent = purple['A200']; // #E040FB
-const accent = purple.A200; // #E040FB (alternative Methode)
-```
-
-### Farbpalette
-
-Wenn ein *Ton* (rot, pink usw.) und eine *Schattierung* (500, 600 usw.) gegeben sind, können Sie die Farbe folgendermaßen importieren:
-
-```jsx
-import HUE from '@material-ui/core/colors/HUE';
+import { createMuiTheme } from '@material-ui/core/styles';
-const color = HUE[SHADE];
+const theme = createMuiTheme({
+ palette: {
+ primary: {
+ light: '#757ce8',
+ main: '#3f50b5',
+ dark: '#002884',
+ contrastText: '#fff',
+ },
+ secondary: {
+ light: '#ff7961',
+ main: '#f44336',
+ dark: '#ba000d',
+ contrastText: '#000',
+ },
+ },
+});
```
-{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-
-## Farbwerkzeug
+### Spielwiese
-Um ein [ material.io/design/color ](https://material.io/design/color/) Farbschema mittels der Material-UI Dokumentation zu testen, wählen Sie die Farben mittels der Palette und der Regler weiter unten aus. Alternativ können Sie Hex-Werte in die Felder Primärer und Sekundärer Text eingeben.
+To test a [material.io/design/color](https://material.io/design/color/) color scheme with the Material-UI documentation, simply select colors using the palette and sliders below. Alternativ können Sie Hex-Werte in die Felder Primärer und Sekundärer Text eingeben.
{{"demo": "pages/customization/color/ColorTool.js", "hideToolbar": true, "bg": true}}
@@ -57,7 +54,9 @@ import purple from '@material-ui/core/colors/purple';
const theme = createMuiTheme({
palette: {
- primary: purple,
+ primary: {
+ main: purple[500],
+ },
secondary: {
main: '#f44336',
},
@@ -69,39 +68,42 @@ Nur die `Haupttöne` müssen bereitgestellt werden (es sei denn, Sie möchten `l
Wenn Sie die standardmäßigen primären und / oder sekundären Farbtöne verwenden, wird durch das Bereitstellen von dem Farbobjekt die entsprechenden Farbtöne der Materialfarbe für main, light und dark von `createMuiTheme()` berechnet.
-### Offizielles Farbwerkzeug
+### Werkzeuge von der Community
-Das Material Design Team hat auch ein tolles Tool zur Palettenkonfiguration entwickelt: [material.io/tools/color](https://material.io/tools/color/). Auf diese Weise können Sie eine Farbpalette für Ihre Benutzeroberfläche erstellen und die Zugänglichkeit einer beliebigen Farbkombination messen.
+- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): Is an online tool for creating Material-UI themes via Material Design Color Tool.
+- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/): A tool to generate themes for your Material-UI applications by just selecting the colors and having a live preview.
+- [Material palette generator](https://material.io/inline-tools/color/): Mit dem Material-Palettengenerator können Sie eine Palette für jede von Ihnen eingegebene Farbe erstellen.
-
-
-
+## 2014 Material Design color palettes
-Die Ausgabe kann in die `createMuiTheme()` Funktion eingegeben werden:
+These color palettes, originally created by Material Design in 2014, are comprised of colors designed to work together harmoniously, and can be used to develop your brand palette. To generate your own harmonious palettes, use the palette generation tool.
+
+### Wichtige Begriffe
+
+- **Palette**: A palette is a collection of colors, i.e. hues and their shades. Die Material-UI stellt alle Farben aus den Richtlinien für Material Design zur Verfügung. [ Diese Farbpalette ](#color-palette) wurde mit Farben gestaltet, die harmonisch zusammenarbeiten.
+- **Hue" & "Shade**: A single color within the palette is made up of a hue such as "red", and shade, such as "500". "Rot 50" ist der hellste Rotton (*Pink!*), während "Rot 900" am dunkelsten ist. Darüber hinaus enthalten die meisten Farbtöne Akzentfarben, denen ein `A` vorangestellt ist.
+
+### Farbpalette
+
+Wenn ein *Ton* (rot, pink usw.) und eine *Schattierung* (500, 600 usw.) gegeben sind, können Sie die Farbe folgendermaßen importieren:
```jsx
-import { createMuiTheme } from '@material-ui/core/styles';
+import HUE from '@material-ui/core/colors/HUE';
-const theme = createMuiTheme({
- palette: {
- primary: {
- light: '#757ce8',
- main: '#3f50b5',
- dark: '#002884',
- contrastText: '#fff',
- },
- secondary: {
- light: '#ff7961',
- main: '#f44336',
- dark: '#ba000d',
- contrastText: '#000',
- },
- },
-});
+const color = HUE[SHADE];
```
-### Werkzeuge von der Community
+{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): Is an online tool for creating Material-UI themes via Material Design Color Tool.
-- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/): A tool to generate themes for your Material-UI applications by just selecting the colors and having a live preview.
-- [Material palette generator](https://material.io/inline-tools/color/): Mit dem Material-Palettengenerator können Sie eine Palette für jede von Ihnen eingegebene Farbe erstellen.
\ No newline at end of file
+### Beispiele
+
+For instance, you can refer to complementary primary and accent colors, "red 500" and "purple A200" like so:
+
+```js
+import purple from '@material-ui/core/colors/purple';
+import red from '@material-ui/core/colors/red';
+
+const primary = red[500]; // #f44336
+const accent = purple['A200']; // #e040fb
+const accent = purple.A200; // #e040fb (alternative method)
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/color/color-es.md b/docs/src/pages/customization/color/color-es.md
index e2712cd74a537b..0be0b1ee42c33d 100644
--- a/docs/src/pages/customization/color/color-es.md
+++ b/docs/src/pages/customization/color/color-es.md
@@ -4,48 +4,45 @@
El [sistema de color](https://material.io/design/color/) Material Design se puede utilizar para crear un tema de color que refleje su marca o estilo.
-## Sistema de color
+## Picking colors
-### Términos importantes
-
-#### "Pallette" (Paleta)
-
-Una paleta es una colección de colores, es decir, su matiz (color) y sus tonos. Material-UI proporciona todos los colores incluidos en las pautas de Material Design. [Esta paleta de colores](#color-palette) ha sido diseñada con colores que funcionan en armonía unos con otros.
-
-#### "Hue" & "Shade" (Matiz y tono)
+### Herramienta oficial de color
-Un solo color dentro de la paleta está formado por un matiz como el "rojo" y un tono, como "500". "rojo 50" es el tono más claro de rojo (*¡rosa!*), mientras que "rojo 900" es el más oscuro. Además, la mayoría de los matices vienen con tonos de "acento", prefijados con una `A`.
+The Material Design team has also built an awesome palette configuration tool: [material.io/resources/color/](https://material.io/resources/color/). This can help you create a color palette for your UI, as well as measure the accessibility level of any color combination.
-### Ejemplos
+
+
+
+
+
-La paleta de colores de Material Design consta de colores primarios y de acento que se pueden usar para ilustrar o desarrollar los colores de su marca. Han sido diseñados para trabajar en armonía unos con otros.
-Por ejemplo, puede referirse a colores primarios y de acento complementarios (por ejemplo, 'rojo 500' & 'púrpura A200'), así:
+The output can be fed into `createMuiTheme()` function:
```js
-import purple from '@material-ui/core/colors/purple';
-import red from '@material-ui/core/colors/red';
-
-const primary = red[500]; // #F44336
-const accent = purple['A200']; // #E040FB
-const accent = purple.A200; // #E040FB (método alternativo)
-```
-
-### Paleta de colores
-
-Dado un *HUE (matiz)* (rojo, rosa, etc.) y una *SHADE (tono)* (500, 600, etc.) se puede importar el color así:
-
-```jsx
-import HUE from '@material-ui/core/colors/HUE';
+import { createMuiTheme } from '@material-ui/core/styles';
-const color = HUE[SHADE];
+const theme = createMuiTheme({
+ palette: {
+ primary: {
+ light: '#757ce8',
+ main: '#3f50b5',
+ dark: '#002884',
+ contrastText: '#fff',
+ },
+ secondary: {
+ light: '#ff7961',
+ main: '#f44336',
+ dark: '#ba000d',
+ contrastText: '#000',
+ },
+ },
+});
```
-{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-
-## Herramienta de color
+### Campo de pruebas
-Para probar un esquema de color [material.io/design/color](https://material.io/design/color/) con la documentación de Material-UI, simplemente se pueden seleccionar los colores usando la paleta y los sliders de abajo. Como alternativa, se pueden escribir valores hexadecimales en los campos de text Primary (color primario) y Secondary (color secundario).
+To test a [material.io/design/color](https://material.io/design/color/) color scheme with the Material-UI documentation, simply select colors using the palette and sliders below. Como alternativa, se pueden escribir valores hexadecimales en los campos de text Primary (color primario) y Secondary (color secundario).
{{"demo": "pages/customization/color/ColorTool.js", "hideToolbar": true, "bg": true}}
@@ -57,7 +54,9 @@ import purple from '@material-ui/core/colors/purple';
const theme = createMuiTheme({
palette: {
- primary: purple,
+ primary: {
+ main: purple[500],
+ },
secondary: {
main: '#f44336',
},
@@ -69,39 +68,42 @@ Only the `main` shades need be provided (unless you wish to further customize `l
If you are using the default primary and / or secondary shades then by providing the color object, `createMuiTheme()` will use the appropriate shades from the material color for main, light and dark.
-### Herramienta oficial de color
+### Herramientas de la comunidad
-El equipo de Material Design ha creado una increíble herramienta para configurar la paleta [material.io/tools/color](https://material.io/tools/color/). This can help you create a color palette for your UI, as well as measure the accessibility level of any color combination.
+- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): Is an online tool for creating Material-UI themes via Material Design Color Tool.
+- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/): A tool to generate themes for your Material-UI applications by just selecting the colors and having a live preview.
+- [Material palette generator](https://material.io/inline-tools/color/): The Material palette generator can be used to generate a palette for any color you input.
-
-
-
+## 2014 Material Design color palettes
-The output can be fed into `createMuiTheme()` function:
+These color palettes, originally created by Material Design in 2014, are comprised of colors designed to work together harmoniously, and can be used to develop your brand palette. To generate your own harmonious palettes, use the palette generation tool.
+
+### Términos importantes
+
+- **Palette**: A palette is a collection of colors, i.e. hues and their shades. Material-UI proporciona todos los colores incluidos en las pautas de Material Design. [Esta paleta de colores](#color-palette) ha sido diseñada con colores que funcionan en armonía unos con otros.
+- **Hue" & "Shade**: A single color within the palette is made up of a hue such as "red", and shade, such as "500". "rojo 50" es el tono más claro de rojo (*¡rosa!*), mientras que "rojo 900" es el más oscuro. Además, la mayoría de los matices vienen con tonos de "acento", prefijados con una `A`.
+
+### Paleta de colores
+
+Dado un *HUE (matiz)* (rojo, rosa, etc.) y una *SHADE (tono)* (500, 600, etc.) se puede importar el color así:
```jsx
-import { createMuiTheme } from '@material-ui/core/styles';
+import HUE from '@material-ui/core/colors/HUE';
-const theme = createMuiTheme({
- palette: {
- primary: {
- light: '#757ce8',
- main: '#3f50b5',
- dark: '#002884',
- contrastText: '#fff',
- },
- secondary: {
- light: '#ff7961',
- main: '#f44336',
- dark: '#ba000d',
- contrastText: '#000',
- },
- },
-});
+const color = HUE[SHADE];
```
-### Herramientas de la comunidad
+{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): Is an online tool for creating Material-UI themes via Material Design Color Tool.
-- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/): A tool to generate themes for your Material-UI applications by just selecting the colors and having a live preview.
-- [Material palette generator](https://material.io/inline-tools/color/): The Material palette generator can be used to generate a palette for any color you input.
\ No newline at end of file
+### Ejemplos
+
+For instance, you can refer to complementary primary and accent colors, "red 500" and "purple A200" like so:
+
+```js
+import purple from '@material-ui/core/colors/purple';
+import red from '@material-ui/core/colors/red';
+
+const primary = red[500]; // #f44336
+const accent = purple['A200']; // #e040fb
+const accent = purple.A200; // #e040fb (alternative method)
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/color/color-fr.md b/docs/src/pages/customization/color/color-fr.md
index e1e4ec47e52192..17a35f7b465b12 100644
--- a/docs/src/pages/customization/color/color-fr.md
+++ b/docs/src/pages/customization/color/color-fr.md
@@ -4,46 +4,43 @@
The Material Design [color system](https://material.io/design/color/) can be used to create a color theme that reflects your brand or style.
-## Color system
+## Picking colors
-### Important Terms
-
-#### "Palette"
-
-A palette is a collection of colors, i.e. hues and their shades. Material-UI provides all colors from the Material Design guidelines. [This color palette](#color-palette) has been designed with colors that work harmoniously with each other.
-
-#### "Hue" & "Shade"
+### Official color tool
-A single color within the palette is made up of a hue such as "red", and shade, such as "500". "red 50" is the lightest shade of red (*pink!*), while "red 900" is the darkest. In addition, most hues come with "accent" shades, prefixed with an `A`.
+The Material Design team has also built an awesome palette configuration tool: [material.io/resources/color/](https://material.io/resources/color/). This can help you create a color palette for your UI, as well as measure the accessibility level of any color combination.
-### Exemples
+
+
+
+
+
-The Material Design color palette comprises primary and accent colors that can be used for illustration or to develop your brand colors. They’ve been designed to work harmoniously with each other.
-For instance, you can refer to complementary primary and accent colors (for example 'red 500' & 'purple A200'), like so:
+The output can be fed into `createMuiTheme()` function:
```js
-import purple from '@material-ui/core/colors/purple';
-import red from '@material-ui/core/colors/red';
-
-const primary = red[500]; // #F44336
-const accent = purple['A200']; // #E040FB
-const accent = purple.A200; // #E040FB (alternative method)
-```
-
-### Color palette
-
-Given a *HUE* (red, pink, etc.) and a *SHADE* (500, 600, etc.) you can import the color like this:
-
-```jsx
-import HUE from '@material-ui/core/colors/HUE';
+import { createMuiTheme } from '@material-ui/core/styles';
-const color = HUE[SHADE];
+const theme = createMuiTheme({
+ palette: {
+ primary: {
+ light: '#757ce8',
+ main: '#3f50b5',
+ dark: '#002884',
+ contrastText: '#fff',
+ },
+ secondary: {
+ light: '#ff7961',
+ main: '#f44336',
+ dark: '#ba000d',
+ contrastText: '#000',
+ },
+ },
+});
```
-{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-
-## Color tool
+### Playground
To test a [material.io/design/color](https://material.io/design/color/) color scheme with the Material-UI documentation, simply select colors using the palette and sliders below. Alternatively, you can enter hex values in the Primary and Secondary text fields.
@@ -57,7 +54,9 @@ import purple from '@material-ui/core/colors/purple';
const theme = createMuiTheme({
palette: {
- primary: purple,
+ primary: {
+ main: purple[500],
+ },
secondary: {
main: '#f44336',
},
@@ -69,39 +68,42 @@ Only the `main` shades need be provided (unless you wish to further customize `l
If you are using the default primary and / or secondary shades then by providing the color object, `createMuiTheme()` will use the appropriate shades from the material color for main, light and dark.
-### Official color tool
+### Tools by the community
-The Material Design team has also built an awesome palette configuration tool: [material.io/tools/color](https://material.io/tools/color/). This can help you create a color palette for your UI, as well as measure the accessibility level of any color combination.
+- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): Is an online tool for creating Material-UI themes via Material Design Color Tool.
+- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/): A tool to generate themes for your Material-UI applications by just selecting the colors and having a live preview.
+- [Material palette generator](https://material.io/inline-tools/color/): The Material palette generator can be used to generate a palette for any color you input.
-
-
-
+## 2014 Material Design color palettes
-The output can be fed into `createMuiTheme()` function:
+These color palettes, originally created by Material Design in 2014, are comprised of colors designed to work together harmoniously, and can be used to develop your brand palette. To generate your own harmonious palettes, use the palette generation tool.
+
+### Important Terms
+
+- **Palette**: A palette is a collection of colors, i.e. hues and their shades. Material-UI provides all colors from the Material Design guidelines. [This color palette](#color-palette) has been designed with colors that work harmoniously with each other.
+- **Hue" & "Shade**: A single color within the palette is made up of a hue such as "red", and shade, such as "500". "red 50" is the lightest shade of red (*pink!*), while "red 900" is the darkest. In addition, most hues come with "accent" shades, prefixed with an `A`.
+
+### Color palette
+
+Given a *HUE* (red, pink, etc.) and a *SHADE* (500, 600, etc.) you can import the color like this:
```jsx
-import { createMuiTheme } from '@material-ui/core/styles';
+import HUE from '@material-ui/core/colors/HUE';
-const theme = createMuiTheme({
- palette: {
- primary: {
- light: '#757ce8',
- main: '#3f50b5',
- dark: '#002884',
- contrastText: '#fff',
- },
- secondary: {
- light: '#ff7961',
- main: '#f44336',
- dark: '#ba000d',
- contrastText: '#000',
- },
- },
-});
+const color = HUE[SHADE];
```
-### Tools by the community
+{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): Is an online tool for creating Material-UI themes via Material Design Color Tool.
-- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/): A tool to generate themes for your Material-UI applications by just selecting the colors and having a live preview.
-- [Material palette generator](https://material.io/inline-tools/color/): The Material palette generator can be used to generate a palette for any color you input.
\ No newline at end of file
+### Exemples
+
+For instance, you can refer to complementary primary and accent colors, "red 500" and "purple A200" like so:
+
+```js
+import purple from '@material-ui/core/colors/purple';
+import red from '@material-ui/core/colors/red';
+
+const primary = red[500]; // #f44336
+const accent = purple['A200']; // #e040fb
+const accent = purple.A200; // #e040fb (alternative method)
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/color/color-ja.md b/docs/src/pages/customization/color/color-ja.md
index 4440f376b25e86..176728b13e0830 100644
--- a/docs/src/pages/customization/color/color-ja.md
+++ b/docs/src/pages/customization/color/color-ja.md
@@ -4,48 +4,45 @@
Material Design[color system](https://material.io/design/color/)を使用すると、自分のブランドやスタイルを反映した色のテーマを作成できます。
-## カラーシステム (Color system)
+## Picking colors
-### 重要な用語
-
-#### "パレット"
-
-パレットは色のコレクション、つまり色相とその色合いです。 Material-UIは、Material Designガイドラインのすべてのカラーを提供します。 [このカラーパレット](#color-palette)は、互いに調和する色でデザインされています。
-
-#### "色相" & "シェード"
+### 公式カラーツール
-パレット内の単色は、「赤」などの色相と「500」などのシェードで構成されます。 "red 50" は赤(*pink!*) の最も明るいシェードで、"red 900"は最も暗いシェードです。 また、ほとんどの色相には、先頭に`A`を持つ「アクセント」シェードが使用されます。
+The Material Design team has also built an awesome palette configuration tool: [material.io/resources/color/](https://material.io/resources/color/). これにより、UIのカラーパレットを作成したり、任意のカラー組み合わせのアクセシビリティレベルを測定したりできます。
-### 例
+
+
+
+
+
-Material Design カラーパレットは、イラストやブランドカラーの作成に使用できる原色とアクセント色で構成されています。 それらは互いに調和するように設計されています。
-たとえば、次のように補足的な原色とアクセント色(例:'red 500'&'purple A200') を参照できます。
+出力は、`createMuiTheme()`関数に渡すことができます。
```js
-import purple from '@material-ui/core/colors/purple';
-import red from '@material-ui/core/colors/red';
-
-const primary = red[500]; // #F44336
-const accent = purple['A200']; // #E040FB
-const accent = purple.A200; // #E040FB (alternative method)
-```
-
-### カラー・パレット
-
-* HUEが与えられた場合* (赤、ピンクなど)および* SHADE * (500、600など)次のように色をインポートできます。
-
-```jsx
-import HUE from '@material-ui/core/colors/HUE';
+import { createMuiTheme } from '@material-ui/core/styles';
-const color = HUE[SHADE];
+const theme = createMuiTheme({
+ palette: {
+ primary: {
+ light: '#757ce8',
+ main: '#3f50b5',
+ dark: '#002884',
+ contrastText: '#fff',
+ },
+ secondary: {
+ light: '#ff7961',
+ main: '#f44336',
+ dark: '#ba000d',
+ contrastText: '#000',
+ },
+ },
+});
```
-{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-
-## カラーツール
+### Playground
-[ material.io/design/colorをテストするには](https://material.io/design/color/) Material-UIのドキュメントの配色では、以下のパレットとスライダーを使用してカラーを選択するだけです。 または、プライマリおよびセカンダリテキストフィールドに16進値を入力できます。
+To test a [material.io/design/color](https://material.io/design/color/) color scheme with the Material-UI documentation, simply select colors using the palette and sliders below. または、プライマリおよびセカンダリテキストフィールドに16進値を入力できます。
{{"demo": "pages/customization/color/ColorTool.js", "hideToolbar": true, "bg": true}}
@@ -57,7 +54,9 @@ import purple from '@material-ui/core/colors/purple';
const theme = createMuiTheme({
palette: {
- primary: purple,
+ primary: {
+ main: purple[500],
+ },
secondary: {
main: '#f44336',
},
@@ -69,39 +68,42 @@ const theme = createMuiTheme({
デフォルトの一次または二次シェード、あるいはその両方を使用している場合にカラーオブジェクトを指定すると、`createMuiTheme()`はメイン、ライト、およびダークにマテリアルカラーからの適切なシェードを使用します。
-### 公式カラーツール
+### コミュニティによるツール
-Material Designチームは素晴らしいパレット設定ツール、[materialio/tools/color](https://material.io/tools/color/)も開発しました。 これにより、UIのカラーパレットを作成したり、任意のカラー組み合わせのアクセシビリティレベルを測定したりできます。
+- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): Is an online tool for creating Material-UI themes via Material Design Color Tool.
+- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/): A tool to generate themes for your Material-UI applications by just selecting the colors and having a live preview.
+- [マテリアルパレットジェネレータ](https://material.io/inline-tools/color/) : マテリアルパレットジェネレータを使用して、入力した任意のカラーのパレットを生成できます。
-
-
-
+## 2014 Material Design color palettes
-出力は、`createMuiTheme()`関数に渡すことができます。
+These color palettes, originally created by Material Design in 2014, are comprised of colors designed to work together harmoniously, and can be used to develop your brand palette. To generate your own harmonious palettes, use the palette generation tool.
+
+### 重要な用語
+
+- **Palette**: A palette is a collection of colors, i.e. hues and their shades. Material-UIは、Material Designガイドラインのすべてのカラーを提供します。 [このカラーパレット](#color-palette)は、互いに調和する色でデザインされています。
+- **Hue" & "Shade**: A single color within the palette is made up of a hue such as "red", and shade, such as "500". "red 50" は赤(*pink!*) の最も明るいシェードで、"red 900"は最も暗いシェードです。 また、ほとんどの色相には、先頭に`A`を持つ「アクセント」シェードが使用されます。
+
+### カラー・パレット
+
+* HUEが与えられた場合* (赤、ピンクなど)および* SHADE * (500、600など)次のように色をインポートできます。
```jsx
-import { createMuiTheme } from '@material-ui/core/styles';
+import HUE from '@material-ui/core/colors/HUE';
-const theme = createMuiTheme({
- palette: {
- primary: {
- light: '#757ce8',
- main: '#3f50b5',
- dark: '#002884',
- contrastText: '#fff',
- },
- secondary: {
- light: '#ff7961',
- main: '#f44336',
- dark: '#ba000d',
- contrastText: '#000',
- },
- },
-});
+const color = HUE[SHADE];
```
-### コミュニティによるツール
+{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): Is an online tool for creating Material-UI themes via Material Design Color Tool.
-- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/): A tool to generate themes for your Material-UI applications by just selecting the colors and having a live preview.
-- [マテリアルパレットジェネレータ](https://material.io/inline-tools/color/) : マテリアルパレットジェネレータを使用して、入力した任意のカラーのパレットを生成できます。
\ No newline at end of file
+### 例
+
+For instance, you can refer to complementary primary and accent colors, "red 500" and "purple A200" like so:
+
+```js
+import purple from '@material-ui/core/colors/purple';
+import red from '@material-ui/core/colors/red';
+
+const primary = red[500]; // #f44336
+const accent = purple['A200']; // #e040fb
+const accent = purple.A200; // #e040fb (alternative method)
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/color/color-pt.md b/docs/src/pages/customization/color/color-pt.md
index 7ca681bbabcdb9..2f223ee79a511f 100644
--- a/docs/src/pages/customization/color/color-pt.md
+++ b/docs/src/pages/customization/color/color-pt.md
@@ -4,48 +4,45 @@
O [sistema de cores](https://material.io/design/color/) do Material Design pode ser usado para criar um tema que reflete sua marca ou estilo.
-## Sistema de cor
+## Picking colors
-### Termos importantes
-
-#### "Paleta de Cores"
-
-Uma paleta é uma coleção de cores, ou seja, matizes e seus tons. Material-UI fornece todas as cores das diretrizes do Material Design. [Esta paleta de cores](#color-palette) foi projetada com cores que funcionam harmoniosamente entre si.
-
-#### "Matiz" & "Tonalidade"
+### Ferramenta oficial de cores
-Uma única cor dentro da paleta é composta de uma matiz como "red" e tonalidade, como "500". "red 50" é o tom mais claro de vermelho (*rosa!*), enquanto "red 900" é o mais escuro. Além disso, a maioria dos matizes vem com tons de "destaque" (acentuação), prefixados com um `A`.
+The Material Design team has also built an awesome palette configuration tool: [material.io/resources/color/](https://material.io/resources/color/). Isso pode ajudar você a criar uma paleta de cores para sua UI, bem como medir o nível de acessibilidade de qualquer combinação de cores.
-### Exemplos
+
+
+
+
+
-A paleta de cores do Material Design inclui cores primárias e de destaque que podem ser usadas para ilustração ou para desenvolver as cores da sua marca. Elas foram projetados para trabalhar harmoniosamente umas com as outras.
-Por exemplo, você pode se referir a cores complementares primárias e de destaque (por exemplo, 'red 500' & 'purple A200'), da seguinte forma:
+A saída pode ser alimentada na função `createMuiTheme()`:
```js
-import purple from '@material-ui/core/colors/purple';
-import red from '@material-ui/core/colors/red';
-
-const primary = red[500]; // #F44336
-const accent = purple['A200']; // #E040FB
-const accent = purple.A200; // #E040FB (método alternativo)
-```
-
-### Paleta de cores
-
-Dado que *HUE* seja (red, pink, etc.) e *SHADE* (500, 600, etc.) você pode importar a cor assim:
-
-```jsx
-import HUE from '@material-ui/core/colors/HUE';
+import { createMuiTheme } from '@material-ui/core/styles';
-const color = HUE[SHADE];
+const theme = createMuiTheme({
+ palette: {
+ primary: {
+ light: '#757ce8',
+ main: '#3f50b5',
+ dark: '#002884',
+ contrastText: '#fff',
+ },
+ secondary: {
+ light: '#ff7961',
+ main: '#f44336',
+ dark: '#ba000d',
+ contrastText: '#000',
+ },
+ },
+});
```
-{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-
-## Ferramenta de cor
+### Área de exemplos
-Para testar um esquema de cores do [material.io/design/color](https://material.io/design/color/) com a documentação do Material-UI, simplesmente selecione as cores usando a paleta e os controles deslizantes abaixo. Como alternativa, você pode inserir valores hexadecimais nos campos de texto Primário e Secundário.
+To test a [material.io/design/color](https://material.io/design/color/) color scheme with the Material-UI documentation, simply select colors using the palette and sliders below. Como alternativa, você pode inserir valores hexadecimais nos campos de texto Primário e Secundário.
{{"demo": "pages/customization/color/ColorTool.js", "hideToolbar": true, "bg": true}}
@@ -57,7 +54,9 @@ import purple from '@material-ui/core/colors/purple';
const theme = createMuiTheme({
palette: {
- primary: purple,
+ primary: {
+ main: purple[500],
+ },
secondary: {
main: '#f44336',
},
@@ -69,39 +68,42 @@ Apenas o tom `main` precisa ser fornecido (a menos que você deseje customizar a
Se você estiver usando os tons primário e / ou secundário por padrão, fornecendo o objeto de cor, `createMuiTheme()` usará tons apropriados da cor do material para `main`, `light` e `dark`.
-### Ferramenta oficial de cores
+### Ferramentas da comunidade
-A equipe do Material Design também criou uma ferramenta de configuração de paleta incrível: [material.io/tools/color](https://material.io/tools/color/). Isso pode ajudar você a criar uma paleta de cores para sua UI, bem como medir o nível de acessibilidade de qualquer combinação de cores.
+- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): É uma ferramenta online para criar temas de Material-UI por meio da ferramenta de cor do Material Design.
+- [material-ui-tema-editor](https://in-your-saas.github.io/material-ui-theme-editor/): Uma ferramenta para gerar temas para seus aplicativos de Material-UI, basta selecionar as cores e ter uma visualização ao vivo.
+- [Material palette generator](https://material.io/inline-tools/color/): O gerador de paleta do Material pode ser usado para gerar uma paleta para qualquer cor que você inserir.
-
-
-
+## 2014 Material Design color palettes
-A saída pode ser alimentada na função `createMuiTheme()`:
+These color palettes, originally created by Material Design in 2014, are comprised of colors designed to work together harmoniously, and can be used to develop your brand palette. To generate your own harmonious palettes, use the palette generation tool.
+
+### Termos importantes
+
+- **Palette**: A palette is a collection of colors, i.e. hues and their shades. Material-UI fornece todas as cores das diretrizes do Material Design. [Esta paleta de cores](#color-palette) foi projetada com cores que funcionam harmoniosamente entre si.
+- **Hue" & "Shade**: A single color within the palette is made up of a hue such as "red", and shade, such as "500". "red 50" é o tom mais claro de vermelho (*rosa!*), enquanto "red 900" é o mais escuro. Além disso, a maioria dos matizes vem com tons de "destaque" (acentuação), prefixados com um `A`.
+
+### Paleta de cores
+
+Dado que *HUE* seja (red, pink, etc.) e *SHADE* (500, 600, etc.) você pode importar a cor assim:
```jsx
-import { createMuiTheme } from '@material-ui/core/styles';
+import HUE from '@material-ui/core/colors/HUE';
-const theme = createMuiTheme({
- palette: {
- primary: {
- light: '#757ce8',
- main: '#3f50b5',
- dark: '#002884',
- contrastText: '#fff',
- },
- secondary: {
- light: '#ff7961',
- main: '#f44336',
- dark: '#ba000d',
- contrastText: '#000',
- },
- },
-});
+const color = HUE[SHADE];
```
-### Ferramentas da comunidade
+{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): É uma ferramenta online para criar temas de Material-UI por meio da ferramenta de cor do Material Design.
-- [material-ui-tema-editor](https://in-your-saas.github.io/material-ui-theme-editor/): Uma ferramenta para gerar temas para seus aplicativos de Material-UI, basta selecionar as cores e ter uma visualização ao vivo.
-- [Material palette generator](https://material.io/inline-tools/color/): O gerador de paleta do Material pode ser usado para gerar uma paleta para qualquer cor que você inserir.
\ No newline at end of file
+### Exemplos
+
+For instance, you can refer to complementary primary and accent colors, "red 500" and "purple A200" like so:
+
+```js
+import purple from '@material-ui/core/colors/purple';
+import red from '@material-ui/core/colors/red';
+
+const primary = red[500]; // #f44336
+const accent = purple['A200']; // #e040fb
+const accent = purple.A200; // #e040fb (alternative method)
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/color/color-ru.md b/docs/src/pages/customization/color/color-ru.md
index a800c9b01a6247..d2fb6a9b5c8a93 100644
--- a/docs/src/pages/customization/color/color-ru.md
+++ b/docs/src/pages/customization/color/color-ru.md
@@ -4,48 +4,45 @@
[Система цветов](https://material.io/design/color/) Material Design может быть использована для создания цветовой темы, которая отражает ваш бренд или стиль.
-## Цветовая система
+## Picking colors
-### Важные термины
-
-#### "Палитра"
-
-Палитра - это набор цветов, то есть тонов и их оттенков. Материал-UI предоставляет все цвета из руководящих принципов Material Design. [This color palette](#color-palette) has been designed with colors that work harmoniously with each other.
-
-#### "Оттенок" и "Тень"
+### Официальный инструмент для работы с цветом
-Отдельно взятый цвет в палитре состоит из цветового тона, например «красный», и оттенка, например «500». «red 50» - самый светлый оттенок красного (* розовый! *), а «red 900» самый темный. Кроме того, большинство тонов имеют «акцентные» оттенки с префиксом `A`.
+The Material Design team has also built an awesome palette configuration tool: [material.io/resources/color/](https://material.io/resources/color/). This can help you create a color palette for your UI, as well as measure the accessibility level of any color combination.
-### Примеры
+
+
+
+
+
-Цветовая палитра Material Design включает в себя основные и акцентные цвета, которые можно использовать для иллюстрации или для разработки цвета вашего бренда. Они создавались таким образом, чтобы гармонировать друг с другом.
-Вы можете обратиться к дополнительным первичным и акцентным цветам (таким как «red 500» & «purple A200»), например:
+The output can be fed into `createMuiTheme()` function:
```js
-import purple from '@material-ui/core/colors/purple';
-import red from '@material-ui/core/colors/red';
-
-const primary = red[500]; // #F44336
-const accent = purple['A200']; // #E040FB
-const accent = purple.A200; // #E040FB (alternative method)
-```
-
-### Цветовая палитра
-
-Зная тон *HUE* (red, pink и т. д.) и оттенок *SHADE* (500, 600 и т. д.), можно импортировать цвет следующим образом:
-
-```jsx
-import HUE from '@material-ui/core/colors/HUE';
+import { createMuiTheme } from '@material-ui/core/styles';
-const color = HUE[SHADE];
+const theme = createMuiTheme({
+ palette: {
+ primary: {
+ light: '#757ce8',
+ main: '#3f50b5',
+ dark: '#002884',
+ contrastText: '#fff',
+ },
+ secondary: {
+ light: '#ff7961',
+ main: '#f44336',
+ dark: '#ba000d',
+ contrastText: '#000',
+ },
+ },
+});
```
-{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-
-## Инструменты для работы с цветом
+### Песочница
-Используйте палитру и слайдеры, расположенные ниже, чтобы опробовать цветовую схему [material.io/design/color](https://material.io/design/color/) на документации Material-UI. Либо можете ввести шестнадцатеричные значения в текстовые поля Primary и Secondary.
+To test a [material.io/design/color](https://material.io/design/color/) color scheme with the Material-UI documentation, simply select colors using the palette and sliders below. Либо можете ввести шестнадцатеричные значения в текстовые поля Primary и Secondary.
{{"demo": "pages/customization/color/ColorTool.js", "hideToolbar": true, "bg": true}}
@@ -57,7 +54,9 @@ import purple from '@material-ui/core/colors/purple';
const theme = createMuiTheme({
palette: {
- primary: purple,
+ primary: {
+ main: purple[500],
+ },
secondary: {
main: '#f44336',
},
@@ -69,39 +68,42 @@ Only the `main` shades need be provided (unless you wish to further customize `l
If you are using the default primary and / or secondary shades then by providing the color object, `createMuiTheme()` will use the appropriate shades from the material color for main, light and dark.
-### Официальный инструмент для работы с цветом
+### Инструменты, созданные сообществом
-The Material Design team has also built an awesome palette configuration tool: [material.io/tools/color](https://material.io/tools/color/). This can help you create a color palette for your UI, as well as measure the accessibility level of any color combination.
+- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): Is an online tool for creating Material-UI themes via Material Design Color Tool.
+- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/): A tool to generate themes for your Material-UI applications by just selecting the colors and having a live preview.
+- [Material palette generator](https://material.io/inline-tools/color/): Этот инструмент можно использовать для создания палитры на основе любого выбранного цвета.
-
-
-
+## 2014 Material Design color palettes
-The output can be fed into `createMuiTheme()` function:
+These color palettes, originally created by Material Design in 2014, are comprised of colors designed to work together harmoniously, and can be used to develop your brand palette. To generate your own harmonious palettes, use the palette generation tool.
+
+### Важные термины
+
+- **Palette**: A palette is a collection of colors, i.e. hues and their shades. Материал-UI предоставляет все цвета из руководящих принципов Material Design. [This color palette](#color-palette) has been designed with colors that work harmoniously with each other.
+- **Hue" & "Shade**: A single color within the palette is made up of a hue such as "red", and shade, such as "500". «red 50» - самый светлый оттенок красного (* розовый! *), а «red 900» самый темный. Кроме того, большинство тонов имеют «акцентные» оттенки с префиксом `A`.
+
+### Цветовая палитра
+
+Зная тон *HUE* (red, pink и т. д.) и оттенок *SHADE* (500, 600 и т. д.), можно импортировать цвет следующим образом:
```jsx
-import { createMuiTheme } from '@material-ui/core/styles';
+import HUE from '@material-ui/core/colors/HUE';
-const theme = createMuiTheme({
- palette: {
- primary: {
- light: '#757ce8',
- main: '#3f50b5',
- dark: '#002884',
- contrastText: '#fff',
- },
- secondary: {
- light: '#ff7961',
- main: '#f44336',
- dark: '#ba000d',
- contrastText: '#000',
- },
- },
-});
+const color = HUE[SHADE];
```
-### Инструменты, созданные сообществом
+{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): Is an online tool for creating Material-UI themes via Material Design Color Tool.
-- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/): A tool to generate themes for your Material-UI applications by just selecting the colors and having a live preview.
-- [Material palette generator](https://material.io/inline-tools/color/): Этот инструмент можно использовать для создания палитры на основе любого выбранного цвета.
\ No newline at end of file
+### Примеры
+
+For instance, you can refer to complementary primary and accent colors, "red 500" and "purple A200" like so:
+
+```js
+import purple from '@material-ui/core/colors/purple';
+import red from '@material-ui/core/colors/red';
+
+const primary = red[500]; // #f44336
+const accent = purple['A200']; // #e040fb
+const accent = purple.A200; // #e040fb (alternative method)
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/color/color-zh.md b/docs/src/pages/customization/color/color-zh.md
index a7f48cb3e5ca5f..4042ce9c3fe182 100644
--- a/docs/src/pages/customization/color/color-zh.md
+++ b/docs/src/pages/customization/color/color-zh.md
@@ -4,48 +4,45 @@
使用 Material Design 的[颜色系统](https://material.io/design/color/),您可创建表现独特品牌或风格的颜色主题。
-## 颜色系统
+## Picking colors
-### 一些重要的术语
-
-#### "调色板(Palette)"
-
-一个调色板是颜色合集,譬如即色调和它们的阴影。 Material-UI 涵盖了 Material Design 指南中的所有颜色。 设计[此调色板](#color-palette)时,我们确保了各个颜色之间的协调。
+### 官方色彩工具
-#### “色彩”和“阴影”
+The Material Design team has also built an awesome palette configuration tool: [material.io/resources/color/](https://material.io/resources/color/). 它会帮助你为你的 UI 建立自己的色彩集合,同时也会帮助测量每个颜色组合的可访问性。
-调色板中的单色由一个诸如“红色”的色调,以及一个诸如“500”的阴影调和而成。 “red 50”是红色的最浅的一度 (* 粉红色! *),而“red 900”是最暗的。 除此之外,大多数的色调都带有以 `A` 为前缀的强调(accent)色调。
-
-### 例子
+
+
+
+
+
-Material Design 调色板包括主要(primary)和强调(accent)颜色,它们可用于展示或开发您的品牌颜色。 它们彼此可以协调地呈现。
-例如,您可以参考互补主要颜色(complementary primary)和强调(accent)颜色(例如“red 500”和“purple A200”):
+它的输出可以使用在` createMuiTheme() ` 函数:
```js
-import purple from '@material-ui/core/colors/purple';
-import red from '@material-ui/core/colors/red';
-
-const primary = red[500]; // #F44336
-const accent = purple['A200']; // #E040FB
-const accent = purple.A200; // #E040FB (替代方法)
-```
-
-### 调色板
-
-若给定了一种*色调*(如红色,粉红色等)以及一个*阴影* (500,600等),你可以这样导入颜色:
-
-```jsx
-import HUE from '@material-ui/core/colors/HUE';
+import { createMuiTheme } from '@material-ui/core/styles';
-const color = HUE[SHADE];
+const theme = createMuiTheme({
+ palette: {
+ primary: {
+ light: '#757ce8',
+ main: '#3f50b5',
+ dark: '#002884',
+ contrastText: '#fff',
+ },
+ secondary: {
+ light: '#ff7961',
+ main: '#f44336',
+ dark: '#ba000d',
+ contrastText: '#000',
+ },
+ },
+});
```
-{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-
-## 颜色工具
+### 练习
-若想使用 Material-UI 文档来测试 [material.io/design/color](https://material.io/design/color/) 的颜色方案,你只需使用下面的调色板和滑块来选择颜色。 或者,您可以在 “Primary ”和 “Secondary” 两个文本框中输入 hex 色彩码。
+To test a [material.io/design/color](https://material.io/design/color/) color scheme with the Material-UI documentation, simply select colors using the palette and sliders below. 或者, 您可以在“Primary”和“Secondary”文本字段中输入十六进制值.
{{"demo": "pages/customization/color/ColorTool.js", "hideToolbar": true, "bg": true}}
@@ -57,7 +54,9 @@ import purple from '@material-ui/core/colors/purple';
const theme = createMuiTheme({
palette: {
- primary: purple,
+ primary: {
+ main: purple[500],
+ },
secondary: {
main: '#f44336',
},
@@ -67,41 +66,44 @@ const theme = createMuiTheme({
您只需提供 `主要的` 阴影(除非您希望进一步自定义 `light`,`dark` 或 `contrastText` 这几个属性)。在 [自定义主题](/customization/palette/) 章节提到了这样的原因是其他颜色会由 `createMuiTheme()` 自动计算。
-如果您使用的是默认的主色调和/或副色调,那么通过提供一个颜色对象,`createMuiTheme()` 则会从 material 颜色里提取的合适的阴影来构成主色,浅色和深色。
+如果你通过提供 color object 的方式 使用默认的主要阴影 和/或 次要阴影,`createMuiTheme()` 将会根据 主、亮和暗 三种 material 颜色选择合适的阴影。
-### 官方的色彩工具
+### 社区工具
-Material Design 团队还打造了一款超棒的调色板配置工具: [material.io/tools/color](https://material.io/tools/color/)。 它会为你的 UI 建立一个色彩的集合,同时也会评估不同颜色组合的可访问性。
+- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): 使用 Material Design 颜色工具来创建 Material-UI 主题的在线工具。
+- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/):只需要选择颜色即可为你的 Material-UI 应用生成主题的工具,同时还支持在线预览。
+- [Material palette generator](https://material.io/inline-tools/color/):它可用于通过您输入的任何颜色生成一系列的调色板。
-
-
-
+## 2014 Material Design color palettes
+
+These color palettes, originally created by Material Design in 2014, are comprised of colors designed to work together harmoniously, and can be used to develop your brand palette. To generate your own harmonious palettes, use the palette generation tool.
+
+### 一些重要的术语
+
+- **Palette**: A palette is a collection of colors, i.e. hues and their shades. Material-UI 提供Material Design 指南中的所有颜色. 设计[此调色板](#color-palette)时,我们确保了各个颜色之间的协调。
+- **Hue" & "Shade**: A single color within the palette is made up of a hue such as "red", and shade, such as "500". "rad 50" 是红色的最浅的阴影 (* 粉红色! *), 而 "red 900" 是最暗的。 此外, 大多数色调都带有强调色调, 以 ` A ` 为前缀。
+
+### 调色板
-` createMuiTheme() ` 函数可以使用此输出结果:
+若给定了一种*色调*(如红色,粉红色等)以及一个*阴影* (500,600等),你可以这样导入颜色:
```jsx
-import { createMuiTheme } from '@material-ui/core/styles';
+import HUE from '@material-ui/core/colors/HUE';
-const theme = createMuiTheme({
- palette: {
- primary: {
- light: '#757ce8',
- main: '#3f50b5',
- dark: '#002884',
- contrastText: '#fff',
- },
- secondary: {
- light: '#ff7961',
- main: '#f44336',
- dark: '#ba000d',
- contrastText: '#000',
- },
- },
-});
+const color = HUE[SHADE];
```
-### 社区提供的一些工具
+{{"demo": "pages/customization/color/Color.js", "hideToolbar": true, "bg": "inline"}}
-- [create-mui-theme](https://react-theming.github.io/create-mui-theme/): 使用 Material Design 颜色工具来创建 Material-UI 主题的在线工具。
-- [material-ui-theme-editor](https://in-your-saas.github.io/material-ui-theme-editor/):只需要选择颜色即可为你的 Material-UI 应用生成主题的工具,同时还支持在线预览。
-- [Material palette generator](https://material.io/inline-tools/color/):它可用于通过您输入的任何颜色生成一系列的调色板。
\ No newline at end of file
+### 例子
+
+For instance, you can refer to complementary primary and accent colors, "red 500" and "purple A200" like so:
+
+```js
+import purple from '@material-ui/core/colors/purple';
+import red from '@material-ui/core/colors/red';
+
+const primary = red[500]; // #f44336
+const accent = purple['A200']; // #e040fb
+const accent = purple.A200; // #e040fb (alternative method)
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/components/components-zh.md b/docs/src/pages/customization/components/components-zh.md
index 2c21efd648ec5c..5f7081cea0e1c5 100644
--- a/docs/src/pages/customization/components/components-zh.md
+++ b/docs/src/pages/customization/components/components-zh.md
@@ -22,7 +22,7 @@
{{"demo": "pages/customization/components/ClassNames.js"}}
-### 用类(classes)覆盖样式
+### 用类覆盖样式
当 `className` 属性不足够时,你需要访问更深层的元素,这时则可使用`classes` 对象属性,这样就能够自定义该组件中所有由 Material-UI 注入的 CSS。
@@ -77,9 +77,9 @@ const StyledButton = withStyles({
### CSS 伪类(Pseudo-classes)
-组件特殊状态,如* hover * ,* focus * ,* disabled *和* selected * ,具有更高的CSS特异性。 [特异性是一种重量](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity)这适用于给定的CSS声明。
+组件会有一些特殊的状态,如 *hover* ,*focus* ,*disabled* 和 *selected* ,它们被一些更高的 CSS 特异性所装饰。 [特异性是一种加权](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity),它适用于给定的 CSS 声明。
-为了覆盖组件的特殊状态,**需要提高特异性** 。 下面是一个示例,其中 *disabled* 状态,按钮组件使用 **伪类** (`disabled`):
+为了覆盖组件的特殊状态,**你会需要提高特殊性** 。 下面是一个示例,它展示了 *disabled* 状态,以及一个使用**伪类**的按钮组件(`disabled`):
```css
.Button {
@@ -94,7 +94,7 @@ const StyledButton = withStyles({
In der Palette können Sie die Farbe der Komponenten an Ihre Marke anpassen.
-## Intentionen
+## Palette colors
-Eine Farbintention ist eine Zuordnung einer Palette zu einer bestimmten Intention in Ihrer Anwendung. Das Theme stellt die folgenden FarbIntentionen zur Verfügung:
+A color intention is a mapping of a palette color to a given intention within your application. The theme exposes the following palette colors (accessible under `theme.palette.`):
-- primary - wird verwendet, um primäre Oberflächenelemente für einen Benutzer darzustellen.
-- secondary - wird verwendet, um sekundäre Oberflächenelemente für einen Benutzer darzustellen.
-- error- wird verwendet, um Oberflächenelemente darzustellen, auf die der Benutzer aufmerksam gemacht werden sollte.
-- warning - used to represent potentially dangerous actions or important messages.
-- info - used to present information to the user that is neutral and not necessarily important.
-- success - used to indicate the successful completion of an action that user triggered.
+- *primary* - used to represent primary interface elements for a user. It's the color displayed most frequently across your app's screens and components.
+- *secondary* - used to represent secondary interface elements for a user. It provides more ways to accent and distinguish your product. Having it is optional.
+- *error* - used to represent interface elements that the user should be made aware of.
+- *warning* - used to represent potentially dangerous actions or important messages.
+- *info* - used to present information to the user that is neutral and not necessarily important.
+- *success* - used to indicate the successful completion of an action that user triggered.
-Die Standardpalette verwendet die mit `A` (`A200` usw.) gekennzeichneten Schattierungen für die sekundäre Intention, und die nicht vorangestellten Farben für die anderen Intentionen.
+If you want to learn more about color, you can check out [the color section](/customization/color/).
+
+## Default values
-Wenn Sie mehr über Farbe erfahren möchten, können Sie sich im [Farbabschnitt](/customization/color/) informeiren.
+You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
{{"demo": "pages/customization/palette/Intentions.js", "bg": "inline", "hideToolbar": true}}
-### Individuelle Anpassung
+Die Standardpalette verwendet die mit `A` (`A200` usw.) gekennzeichneten Schattierungen für die sekundäre Intention, und die nicht vorangestellten Farben für die anderen Intentionen.
+
+## Individuelle Anpassung
+
+You may override the default palette values by including a palette object as part of your theme. If any of the:
-Sie können die Standardpalettenwerte überschreiben, indem Sie ein Palette Objekt als Teil Ihres Themas hinzufügen.
+- [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary)
+- [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary)
+- [`palette.error`](/customization/default-theme/?expand-path=$.palette.error)
+- [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning)
+- [`palette.info`](/customization/default-theme/?expand-path=$.palette.info)
+- [`palette.success`](/customization/default-theme/?expand-path=$.palette.success)
-If any of the [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary), [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary), [`palette.error`](/customization/default-theme/?expand-path=$.palette.error), [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning), [`palette.info`](/customization/default-theme/?expand-path=$.palette.info) or [`palette.success`](/customization/default-theme/?expand-path=$.palette.success) 'intention' objects are provided, they will replace the defaults.
+palette color objects are provided, they will replace the defaults.
-Der Intentionswert kann entweder ein [ Farbobjekt ](/customization/color/) sein oder ein Objekt mit einem oder mehreren der Schlüssel, die von der folgenden TypeScript-Schnittstelle angegeben werden:
+The palette color value can either be a [color](/customization/color/#2014-material-design-color-palettes) object, or an object with one or more of the keys specified by the following TypeScript interface:
```ts
-interface PaletteIntention {
+interface PaletteColor {
light?: string;
main: string;
dark?: string;
@@ -36,7 +47,7 @@ interface PaletteIntention {
}
```
-**Verwenden eines Farbobjekts**
+### Verwenden eines Farbobjekts
Die einfachste Möglichkeit, eine Absicht anzupassen, besteht darin, eine oder mehrere der angegebenen Farben zu importieren und auf eine Palettenabsicht anzuwenden:
@@ -51,7 +62,7 @@ const theme = createMuiTheme({
});
```
-**Die Farben direkt zur Verfügung stellen**
+### Die Farben direkt zur Verfügung stellen
Wenn Sie mehr benutzerdefinierte Farben bereitstellen möchten, können Sie entweder ein eigenes Farbobjekt erstellen oder Farben für einige oder alle Schlüssel der Absichten direkt angeben:
@@ -103,11 +114,56 @@ Note that "contrastThreshold" follows a non-linear curve.
### Beispiel
-{{"demo": "pages/customization/palette/Palette.js"}}
+{{"demo": "pages/customization/palette/Palette.js", "defaultCodeOpen": true}}
+
+### Adding new colors
+
+You can add new colors inside and outside the palette of the theme as follow:
+
+```js
+import { createMuiTheme } from '@material-ui/core/styles';
+
+const theme = createMuiTheme({
+ status: {
+ danger: '#e53e3e',
+ },
+ palette: {
+ neutral: {
+ main: '#5c6ac4',
+ },
+ },
+});
+```
+
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
-## Farbwerkzeug
+```ts
+declare module '@material-ui/core/styles/createMuiTheme' {
+ interface Theme {
+ status: {
+ danger: React.CSSProperties['color'],
+ }
+ }
+ interface ThemeOptions {
+ status: {
+ danger: React.CSSProperties['color']
+ }
+ }
+}
-Etwas Inspiration gefällig? The Material Design team has built an awesome [palette configuration tool](/customization/color/#color-tool) to help you.
+declare module "@material-ui/core/styles/createPalette" {
+ interface Palette {
+ neutral: Palette['primary'];
+ }
+ interface PaletteOptions {
+ neutral: PaletteOptions['primary'];
+ }
+}
+```
+
+## Picking colors
+
+Etwas Inspiration gefällig? The Material Design team has built an [palette configuration tool](/customization/color/#picking-colors) to help you.
## Dark mode
@@ -159,8 +215,4 @@ function App() {
);
}
-```
-
-## Default values
-
-You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/palette/palette-es.md b/docs/src/pages/customization/palette/palette-es.md
index 9ef0732c7ed54c..2833bd0d37c546 100644
--- a/docs/src/pages/customization/palette/palette-es.md
+++ b/docs/src/pages/customization/palette/palette-es.md
@@ -2,33 +2,44 @@
La paleta le permite modificar el color de los componentes para adaptarse a su marca.
-## Propósitos
+## Palette colors
-El propósito de un color es una asignación de una paleta a una determinada intención dentro de la aplicación. El tema expone los siguientes propósitos de colores:
+A color intention is a mapping of a palette color to a given intention within your application. The theme exposes the following palette colors (accessible under `theme.palette.`):
-- primary - se usa para representar los elementos de interfaz de usuario primarios.
-- secondary - se usa para representar los elementos de interfaz de usuario secundarios.
-- error - se usa para representar los elementos de interfaz de usuario de los cuales estar alerta.
-- warning - se usa para representar posibles acciones peligrosas o mensajes importantes.
-- info - se utiliza para presentar información al usuario de que es neutral y no necesariamente importante.
-- success - utilizado para indicar la finalización exitosa de una acción que el usuario activó.
-
-La paleta predeterminada utiliza los tonos con prefijo `A` (`A200`, etc.) para los propósitos secundarios, y los tonos sin prefijo para las otras intenciones.
+- *primary* - used to represent primary interface elements for a user. It's the color displayed most frequently across your app's screens and components.
+- *secondary* - used to represent secondary interface elements for a user. It provides more ways to accent and distinguish your product. Having it is optional.
+- *error* - used to represent interface elements that the user should be made aware of.
+- *warning* - used to represent potentially dangerous actions or important messages.
+- *info* - used to present information to the user that is neutral and not necessarily important.
+- *success* - used to indicate the successful completion of an action that user triggered.
Si quieres aprender más sobre el color, puedes echar un vistazo a [la sección de color](/customization/color/).
+## Default values
+
+You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
+
{{"demo": "pages/customization/palette/Intentions.js", "bg": "inline", "hideToolbar": true}}
-### Personalización
+La paleta predeterminada utiliza los tonos con prefijo `A` (`A200`, etc.) para los propósitos secundarios, y los tonos sin prefijo para las otras intenciones.
+
+## Personalización
+
+Puede anular los valores de la paleta por defecto incluyendo un objeto de paleta como parte de su tema. If any of the:
-Puede anular los valores de la paleta por defecto incluyendo un objeto de paleta como parte de su tema.
+- [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary)
+- [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary)
+- [`palette.error`](/customization/default-theme/?expand-path=$.palette.error)
+- [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning)
+- [`palette.info`](/customization/default-theme/?expand-path=$.palette.info)
+- [`palette.success`](/customization/default-theme/?expand-path=$.palette.success)
-If any of the [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary), [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary), [`palette.error`](/customization/default-theme/?expand-path=$.palette.error), [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning), [`palette.info`](/customization/default-theme/?expand-path=$.palette.info) or [`palette.success`](/customization/default-theme/?expand-path=$.palette.success) 'intention' objects are provided, they will replace the defaults.
+palette color objects are provided, they will replace the defaults.
-El valor del propósito de color puede ser un objeto [color](/customization/color/), o un objeto con una o más de las claves especificadas en la siguiente interfaz de TypeScript:
+The palette color value can either be a [color](/customization/color/#2014-material-design-color-palettes) object, or an object with one or more of the keys specified by the following TypeScript interface:
```ts
-interface PaletteIntention {
+interface PaletteColor {
light?: string;
main: string;
dark?: string;
@@ -36,7 +47,7 @@ interface PaletteIntention {
}
```
-**Utilizando un objeto de color**
+### Utilizando un objeto de color
La forma más sencilla de personalizar un propósito de color es importar uno o más de los colores proporcionados y aplicarlos a una intención de paleta:
@@ -51,7 +62,7 @@ const theme = createMuiTheme({
});
```
-**Proporcionando los colores directamente**
+### Proporcionando los colores directamente
Si desea proporcionar colores más personalizados, puede crear su propio objeto de color, o directamente proporciona colores a algunas o todas las claves del propósito de color:
@@ -103,11 +114,56 @@ Note that "contrastThreshold" follows a non-linear curve.
### Ejemplo
-{{"demo": "pages/customization/palette/Palette.js"}}
+{{"demo": "pages/customization/palette/Palette.js", "defaultCodeOpen": true}}
+
+### Adding new colors
+
+You can add new colors inside and outside the palette of the theme as follow:
+
+```js
+import { createMuiTheme } from '@material-ui/core/styles';
+
+const theme = createMuiTheme({
+ status: {
+ danger: '#e53e3e',
+ },
+ palette: {
+ neutral: {
+ main: '#5c6ac4',
+ },
+ },
+});
+```
+
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module '@material-ui/core/styles/createMuiTheme' {
+ interface Theme {
+ status: {
+ danger: React.CSSProperties['color'],
+ }
+ }
+ interface ThemeOptions {
+ status: {
+ danger: React.CSSProperties['color']
+ }
+ }
+}
+
+declare module "@material-ui/core/styles/createPalette" {
+ interface Palette {
+ neutral: Palette['primary'];
+ }
+ interface PaletteOptions {
+ neutral: PaletteOptions['primary'];
+ }
+}
+```
-## Herramienta de color
+## Picking colors
-Need inspiration? The Material Design team has built an awesome [palette configuration tool](/customization/color/#color-tool) to help you.
+Need inspiration? The Material Design team has built an [palette configuration tool](/customization/color/#picking-colors) to help you.
## Dark mode
@@ -159,8 +215,4 @@ function App() {
);
}
-```
-
-## Default values
-
-You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/palette/palette-fr.md b/docs/src/pages/customization/palette/palette-fr.md
index 364e23473603cb..515602f84588f7 100644
--- a/docs/src/pages/customization/palette/palette-fr.md
+++ b/docs/src/pages/customization/palette/palette-fr.md
@@ -2,33 +2,44 @@
The palette enables you to modify the color of the components to suit your brand.
-## Intentions
+## Palette colors
-A color intention is a mapping of a palette to a given intention within your application. The theme exposes the following color intentions:
+A color intention is a mapping of a palette color to a given intention within your application. The theme exposes the following palette colors (accessible under `theme.palette.`):
-- primary - used to represent primary interface elements for a user.
-- secondary - used to represent secondary interface elements for a user.
-- error - used to represent interface elements that the user should be made aware of.
-- warning - used to represent potentially dangerous actions or important messages.
-- info - used to present information to the user that is neutral and not necessarily important.
-- success - used to indicate the successful completion of an action that user triggered.
-
-The default palette uses the shades prefixed with `A` (`A200`, etc.) for the secondary intention, and the un-prefixed shades for the other intentions.
+- *primary* - used to represent primary interface elements for a user. It's the color displayed most frequently across your app's screens and components.
+- *secondary* - used to represent secondary interface elements for a user. It provides more ways to accent and distinguish your product. Having it is optional.
+- *error* - used to represent interface elements that the user should be made aware of.
+- *warning* - used to represent potentially dangerous actions or important messages.
+- *info* - used to present information to the user that is neutral and not necessarily important.
+- *success* - used to indicate the successful completion of an action that user triggered.
If you want to learn more about color, you can check out [the color section](/customization/color/).
+## Default values
+
+You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
+
{{"demo": "pages/customization/palette/Intentions.js", "bg": "inline", "hideToolbar": true}}
-### Personnalisation
+The default palette uses the shades prefixed with `A` (`A200`, etc.) for the secondary intention, and the un-prefixed shades for the other intentions.
+
+## Personnalisation
+
+You may override the default palette values by including a palette object as part of your theme. If any of the:
-You may override the default palette values by including a palette object as part of your theme.
+- [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary)
+- [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary)
+- [`palette.error`](/customization/default-theme/?expand-path=$.palette.error)
+- [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning)
+- [`palette.info`](/customization/default-theme/?expand-path=$.palette.info)
+- [`palette.success`](/customization/default-theme/?expand-path=$.palette.success)
-If any of the [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary), [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary), [`palette.error`](/customization/default-theme/?expand-path=$.palette.error), [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning), [`palette.info`](/customization/default-theme/?expand-path=$.palette.info) or [`palette.success`](/customization/default-theme/?expand-path=$.palette.success) 'intention' objects are provided, they will replace the defaults.
+palette color objects are provided, they will replace the defaults.
-The intention value can either be a [color](/customization/color/) object, or an object with one or more of the keys specified by the following TypeScript interface:
+The palette color value can either be a [color](/customization/color/#2014-material-design-color-palettes) object, or an object with one or more of the keys specified by the following TypeScript interface:
```ts
-interface PaletteIntention {
+interface PaletteColor {
light?: string;
main: string;
dark?: string;
@@ -36,7 +47,7 @@ interface PaletteIntention {
}
```
-**Using a color object**
+### Using a color object
The simplest way to customize an intention is to import one or more of the provided colors and apply them to a palette intention:
@@ -51,7 +62,7 @@ const theme = createMuiTheme({
});
```
-**Providing the colors directly**
+### Providing the colors directly
If you wish to provide more customized colors, you can either create your own color object, or directly supply colors to some or all of the intention's keys:
@@ -103,11 +114,56 @@ Note that "contrastThreshold" follows a non-linear curve.
### Exemple
-{{"demo": "pages/customization/palette/Palette.js"}}
+{{"demo": "pages/customization/palette/Palette.js", "defaultCodeOpen": true}}
+
+### Adding new colors
+
+You can add new colors inside and outside the palette of the theme as follow:
+
+```js
+import { createMuiTheme } from '@material-ui/core/styles';
+
+const theme = createMuiTheme({
+ status: {
+ danger: '#e53e3e',
+ },
+ palette: {
+ neutral: {
+ main: '#5c6ac4',
+ },
+ },
+});
+```
+
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module '@material-ui/core/styles/createMuiTheme' {
+ interface Theme {
+ status: {
+ danger: React.CSSProperties['color'],
+ }
+ }
+ interface ThemeOptions {
+ status: {
+ danger: React.CSSProperties['color']
+ }
+ }
+}
+
+declare module "@material-ui/core/styles/createPalette" {
+ interface Palette {
+ neutral: Palette['primary'];
+ }
+ interface PaletteOptions {
+ neutral: PaletteOptions['primary'];
+ }
+}
+```
-## Color tool
+## Picking colors
-Need inspiration? The Material Design team has built an awesome [palette configuration tool](/customization/color/#color-tool) to help you.
+Need inspiration? The Material Design team has built an [palette configuration tool](/customization/color/#picking-colors) to help you.
## Dark mode
@@ -159,8 +215,4 @@ function App() {
);
}
-```
-
-## Default values
-
-You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/palette/palette-ja.md b/docs/src/pages/customization/palette/palette-ja.md
index b3bcbe62c7ad1a..48878c1828cf4b 100644
--- a/docs/src/pages/customization/palette/palette-ja.md
+++ b/docs/src/pages/customization/palette/palette-ja.md
@@ -2,33 +2,44 @@
パレットを使用すると、ブランドに合わせてコンポーネントの色を変更できます。
-## Intentions
+## Palette colors
-A color intention とは、パレットをアプリケーション内の特定の意図にマッピングすることです。 このテーマは、次の色の目的を明らかにします。
+A color intention is a mapping of a palette color to a given intention within your application. The theme exposes the following palette colors (accessible under `theme.palette.`):
-- primary-ユーザのプライマリインタフェース要素を表すために使用します。
-- secondary - ユーザーの二次インタフェース要素を表します。
-- error-ユーザが認識すべきインタフェース要素を表すために使用されます。
-- warning - used to represent potentially dangerous actions or important messages.
-- info - used to present information to the user that is neutral and not necessarily important.
-- success - used to indicate the successful completion of an action that user triggered.
-
-既定のパレットでは、副次的な意図を表すために、先頭に`A`(`A200`など。) が付いたシェーディングが使用されます。 他の目的のために省略されたシェードがあります。
+- *primary* - used to represent primary interface elements for a user. It's the color displayed most frequently across your app's screens and components.
+- *secondary* - used to represent secondary interface elements for a user. It provides more ways to accent and distinguish your product. Having it is optional.
+- *error* - used to represent interface elements that the user should be made aware of.
+- *warning* - used to represent potentially dangerous actions or important messages.
+- *info* - used to present information to the user that is neutral and not necessarily important.
+- *success* - used to indicate the successful completion of an action that user triggered.
色の詳細については、[色セクション](/customization/color/)をご覧ください。
+## デフォルト値
+
+You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
+
{{"demo": "pages/customization/palette/Intentions.js", "bg": "inline", "hideToolbar": true}}
-### カスタマイズ
+既定のパレットでは、副次的な意図を表すために、先頭に`A`(`A200`など。) が付いたシェーディングが使用されます。 他の目的のために省略されたシェードがあります。
+
+## カスタマイズ
+
+You may override the default palette values by including a palette object as part of your theme. If any of the:
-テーマの一部として palette オブジェクトを含めると、パレットの既定値を変更できます。
+- [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary)
+- [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary)
+- [`palette.error`](/customization/default-theme/?expand-path=$.palette.error)
+- [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning)
+- [`palette.info`](/customization/default-theme/?expand-path=$.palette.info)
+- [`palette.success`](/customization/default-theme/?expand-path=$.palette.success)
-If any of the [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary), [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary), [`palette.error`](/customization/default-theme/?expand-path=$.palette.error), [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning), [`palette.info`](/customization/default-theme/?expand-path=$.palette.info) or [`palette.success`](/customization/default-theme/?expand-path=$.palette.success) 'intention' objects are provided, they will replace the defaults.
+palette color objects are provided, they will replace the defaults.
-Intention値は、 [color](/customization/color/)オブジェクト、または次のTypeScriptインターフェイスで指定されたキーを持つオブジェクトのいずれかです。
+The palette color value can either be a [color](/customization/color/#2014-material-design-color-palettes) object, or an object with one or more of the keys specified by the following TypeScript interface:
```ts
-interface PaletteIntention {
+interface PaletteColor {
light?: string;
main: string;
dark?: string;
@@ -36,7 +47,7 @@ interface PaletteIntention {
}
```
-**カラーオブジェクトを使用する**
+### カラーオブジェクトを使用する
意図をカスタマイズする最も簡単な方法は、提供されている1つまたは複数のカラーをインポートすることです。 次のようにパレット意図に適用します。
@@ -51,7 +62,7 @@ const theme = createMuiTheme({
});
```
-**色を直接提供する**
+### 色を直接提供する
よりカスタマイズされた色を提供する場合は、独自の色オブジェクト 作成するか、意図のキーの一部またはすべてに直接色を指定できます。
@@ -103,11 +114,56 @@ Note that "contrastThreshold" follows a non-linear curve.
### 例
-{{"demo": "pages/customization/palette/Palette.js"}}
+{{"demo": "pages/customization/palette/Palette.js", "defaultCodeOpen": true}}
+
+### Adding new colors
+
+You can add new colors inside and outside the palette of the theme as follow:
+
+```js
+import { createMuiTheme } from '@material-ui/core/styles';
+
+const theme = createMuiTheme({
+ status: {
+ danger: '#e53e3e',
+ },
+ palette: {
+ neutral: {
+ main: '#5c6ac4',
+ },
+ },
+});
+```
+
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module '@material-ui/core/styles/createMuiTheme' {
+ interface Theme {
+ status: {
+ danger: React.CSSProperties['color'],
+ }
+ }
+ interface ThemeOptions {
+ status: {
+ danger: React.CSSProperties['color']
+ }
+ }
+}
+
+declare module "@material-ui/core/styles/createPalette" {
+ interface Palette {
+ neutral: Palette['primary'];
+ }
+ interface PaletteOptions {
+ neutral: PaletteOptions['primary'];
+ }
+}
+```
-## カラーツール
+## Picking colors
-インスピレーションが必要ですか? Material Designチームは、あなたを助ける素晴らしい[パレット設定ツール](/customization/color/#color-tool)を構築しました。
+インスピレーションが必要ですか? The Material Design team has built an [palette configuration tool](/customization/color/#picking-colors) to help you.
## Dark mode
@@ -159,8 +215,4 @@ function App() {
);
}
-```
-
-## デフォルト値
-
-You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/palette/palette-pt.md b/docs/src/pages/customization/palette/palette-pt.md
index 999971ccffc62c..d42b137af7b584 100644
--- a/docs/src/pages/customization/palette/palette-pt.md
+++ b/docs/src/pages/customization/palette/palette-pt.md
@@ -2,33 +2,44 @@
A paleta permite modificar a cor dos componentes para se adequarem à sua marca.
-## Intenções
+## Palette colors
-Uma intenção de cor é um mapeamento de uma paleta para uma determinada intenção dentro da sua aplicação. O tema expõe as seguintes intenções de cores:
+A color intention is a mapping of a palette color to a given intention within your application. The theme exposes the following palette colors (accessible under `theme.palette.`):
-- primário - usado para representar os elementos de interface primários para um usuário.
-- secundário - usado para representar os elementos de interface secundários para um usuário.
-- erro - usado para representar os elementos de interface dos quais o usuário deve estar ciente.
-- aviso - usado para representar ações potencialmente perigosas ou mensagens importantes.
-- info - usado para apresentar ao usuário informações neutras e não necessariamente importantes.
-- success - usado para indicar a conclusão bem-sucedida de uma ação que o usuário acionou.
-
-A paleta padrão usa as sombras prefixadas com `A` (`A200`, etc.) para a intenção secundária, e as cores não pré-fixadas para as outras intenções.
+- *primary* - used to represent primary interface elements for a user. It's the color displayed most frequently across your app's screens and components.
+- *secondary* - used to represent secondary interface elements for a user. It provides more ways to accent and distinguish your product. Having it is optional.
+- *error* - used to represent interface elements that the user should be made aware of.
+- *warning* - used to represent potentially dangerous actions or important messages.
+- *info* - used to present information to the user that is neutral and not necessarily important.
+- *success* - used to indicate the successful completion of an action that user triggered.
Se você quiser aprender mais sobre cor, você pode conferir [a seção de cores](/customization/color/).
+## Valores padrão
+
+Você pode explorar os valores padrão da paleta usando [o explorador de tema](/customization/default-theme/?expand-path=$.palette) ou abrindo o console das ferramentas de desenvolvimento nesta página (`window.theme.palette`).
+
{{"demo": "pages/customization/palette/Intentions.js", "bg": "inline", "hideToolbar": true}}
-### Customização
+A paleta padrão usa as sombras prefixadas com `A` (`A200`, etc.) para a intenção secundária, e as cores não pré-fixadas para as outras intenções.
+
+## Customização
+
+You may override the default palette values by including a palette object as part of your theme. If any of the:
-Você pode sobrescrever os valores padrão da paleta incluindo um objeto palette como parte do seu tema.
+- [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary)
+- [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary)
+- [`palette.error`](/customization/default-theme/?expand-path=$.palette.error)
+- [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning)
+- [`palette.info`](/customization/default-theme/?expand-path=$.palette.info)
+- [`palette.success`](/customization/default-theme/?expand-path=$.palette.success)
-Se algum dos objetos [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary), [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary), [`palette.error`](/customization/default-theme/?expand-path=$.palette.error), [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning), [`palette.info`](/customization/default-theme/?expand-path=$.palette.info) ou [`palette.success`](/customization/default-theme/?expand-path=$.palette.successs) 'intenção' são fornecidos, eles substituirão os padrões.
+palette color objects are provided, they will replace the defaults.
-O valor da intenção pode ser um objeto [cor](/customization/color/), ou um objeto com uma ou mais das chaves especificadas pela seguinte interface TypeScript:
+The palette color value can either be a [color](/customization/color/#2014-material-design-color-palettes) object, or an object with one or more of the keys specified by the following TypeScript interface:
```ts
-interface PaletteIntention {
+interface PaletteColor {
light?: string;
main: string;
dark?: string;
@@ -36,7 +47,7 @@ interface PaletteIntention {
}
```
-**Usando um objeto de cor**
+### Usando um objeto de cor
A maneira mais simples de customizar uma intenção é importar uma ou mais das cores fornecidas e aplicá-las a uma intenção da paleta:
@@ -51,7 +62,7 @@ const theme = createMuiTheme({
});
```
-**Fornecendo as cores diretamente**
+### Fornecendo as cores diretamente
Se você deseja fornecer cores mais personalizadas, você pode criar seu próprio objeto de cor, ou fornecer cores diretamente para algumas ou todas as chaves da intenção:
@@ -103,11 +114,56 @@ Observe que "contrastThreshold" segue uma curva não linear.
### Exemplo
-{{"demo": "pages/customization/palette/Palette.js"}}
+{{"demo": "pages/customization/palette/Palette.js", "defaultCodeOpen": true}}
+
+### Adding new colors
+
+You can add new colors inside and outside the palette of the theme as follow:
+
+```js
+import { createMuiTheme } from '@material-ui/core/styles';
+
+const theme = createMuiTheme({
+ status: {
+ danger: '#e53e3e',
+ },
+ palette: {
+ neutral: {
+ main: '#5c6ac4',
+ },
+ },
+});
+```
+
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module '@material-ui/core/styles/createMuiTheme' {
+ interface Theme {
+ status: {
+ danger: React.CSSProperties['color'],
+ }
+ }
+ interface ThemeOptions {
+ status: {
+ danger: React.CSSProperties['color']
+ }
+ }
+}
+
+declare module "@material-ui/core/styles/createPalette" {
+ interface Palette {
+ neutral: Palette['primary'];
+ }
+ interface PaletteOptions {
+ neutral: PaletteOptions['primary'];
+ }
+}
+```
-## Ferramenta de cor
+## Picking colors
-Precisa de inspiração? A equipe do Material Design construiu uma incrível [ferramenta de configuração de paleta](/customization/color/#color-tool) para te ajudar.
+Precisa de inspiração? The Material Design team has built an [palette configuration tool](/customization/color/#picking-colors) to help you.
## Modo escuro
@@ -159,8 +215,4 @@ function App() {
);
}
-```
-
-## Valores padrão
-
-Você pode explorar os valores padrão da paleta usando [o explorador de tema](/customization/default-theme/?expand-path=$.palette) ou abrindo o console das ferramentas de desenvolvimento nesta página (`window.theme.palette`).
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/palette/palette-ru.md b/docs/src/pages/customization/palette/palette-ru.md
index bbf8a4e03a13e4..06752e57b466c1 100644
--- a/docs/src/pages/customization/palette/palette-ru.md
+++ b/docs/src/pages/customization/palette/palette-ru.md
@@ -2,33 +2,44 @@
The palette enables you to modify the color of the components to suit your brand.
-## Оттенки
+## Palette colors
-Оттенки - это разбиение палитры на несколько цветовых гамм. Тема предоставляет следующие вариации:
+A color intention is a mapping of a palette color to a given intention within your application. The theme exposes the following palette colors (accessible under `theme.palette.`):
-- primary - основной, используется для основных элементов интерфейса.
-- secondary - вторичный, соответственно для второстепенных элементов.
-- error - используется для тех элементов интерфейса, которые должны зацепить внимание пользователя.
-- warning - used to represent potentially dangerous actions or important messages.
-- info - used to present information to the user that is neutral and not necessarily important.
-- success - used to indicate the successful completion of an action that user triggered.
-
-Стандартная палитра использует оттенки с префиксом `A` (`A200`, и т. д.) для вторичного оттенка, и без префикса для остальных.
+- *primary* - used to represent primary interface elements for a user. It's the color displayed most frequently across your app's screens and components.
+- *secondary* - used to represent secondary interface elements for a user. It provides more ways to accent and distinguish your product. Having it is optional.
+- *error* - used to represent interface elements that the user should be made aware of.
+- *warning* - used to represent potentially dangerous actions or important messages.
+- *info* - used to present information to the user that is neutral and not necessarily important.
+- *success* - used to indicate the successful completion of an action that user triggered.
Для более подробного изучения цветовых настроек можно посетить [секцию про цвета](/customization/color/).
+## Default values
+
+You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
+
{{"demo": "pages/customization/palette/Intentions.js", "bg": "inline", "hideToolbar": true}}
-### Кастомизация
+Стандартная палитра использует оттенки с префиксом `A` (`A200`, и т. д.) для вторичного оттенка, и без префикса для остальных.
+
+## Кастомизация
+
+You may override the default palette values by including a palette object as part of your theme. If any of the:
-You may override the default palette values by including a palette object as part of your theme.
+- [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary)
+- [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary)
+- [`palette.error`](/customization/default-theme/?expand-path=$.palette.error)
+- [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning)
+- [`palette.info`](/customization/default-theme/?expand-path=$.palette.info)
+- [`palette.success`](/customization/default-theme/?expand-path=$.palette.success)
-If any of the [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary), [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary), [`palette.error`](/customization/default-theme/?expand-path=$.palette.error), [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning), [`palette.info`](/customization/default-theme/?expand-path=$.palette.info) or [`palette.success`](/customization/default-theme/?expand-path=$.palette.success) 'intention' objects are provided, they will replace the defaults.
+palette color objects are provided, they will replace the defaults.
-The intention value can either be a [color](/customization/color/) object, or an object with one or more of the keys specified by the following TypeScript interface:
+The palette color value can either be a [color](/customization/color/#2014-material-design-color-palettes) object, or an object with one or more of the keys specified by the following TypeScript interface:
```ts
-interface PaletteIntention {
+interface PaletteColor {
light?: string;
main: string;
dark?: string;
@@ -36,7 +47,7 @@ interface PaletteIntention {
}
```
-**Using a color object**
+### Using a color object
The simplest way to customize an intention is to import one or more of the provided colors and apply them to a palette intention:
@@ -51,7 +62,7 @@ const theme = createMuiTheme({
});
```
-**Providing the colors directly**
+### Providing the colors directly
If you wish to provide more customized colors, you can either create your own color object, or directly supply colors to some or all of the intention's keys:
@@ -103,11 +114,56 @@ Note that "contrastThreshold" follows a non-linear curve.
### Пример
-{{"demo": "pages/customization/palette/Palette.js"}}
+{{"demo": "pages/customization/palette/Palette.js", "defaultCodeOpen": true}}
+
+### Adding new colors
+
+You can add new colors inside and outside the palette of the theme as follow:
+
+```js
+import { createMuiTheme } from '@material-ui/core/styles';
+
+const theme = createMuiTheme({
+ status: {
+ danger: '#e53e3e',
+ },
+ palette: {
+ neutral: {
+ main: '#5c6ac4',
+ },
+ },
+});
+```
+
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module '@material-ui/core/styles/createMuiTheme' {
+ interface Theme {
+ status: {
+ danger: React.CSSProperties['color'],
+ }
+ }
+ interface ThemeOptions {
+ status: {
+ danger: React.CSSProperties['color']
+ }
+ }
+}
+
+declare module "@material-ui/core/styles/createPalette" {
+ interface Palette {
+ neutral: Palette['primary'];
+ }
+ interface PaletteOptions {
+ neutral: PaletteOptions['primary'];
+ }
+}
+```
-## Инструменты для работы с цветом
+## Picking colors
-Ищите вдохновение? The Material Design team has built an awesome [palette configuration tool](/customization/color/#color-tool) to help you.
+Ищите вдохновение? The Material Design team has built an [palette configuration tool](/customization/color/#picking-colors) to help you.
## Темный режим
@@ -159,8 +215,4 @@ function App() {
);
}
-```
-
-## Default values
-
-You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/palette/palette-zh.md b/docs/src/pages/customization/palette/palette-zh.md
index de6b8d5f90036c..f89e700d3f249e 100644
--- a/docs/src/pages/customization/palette/palette-zh.md
+++ b/docs/src/pages/customization/palette/palette-zh.md
@@ -2,33 +2,44 @@
The palette enables you to modify the color of the components to suit your brand.
-## Intentions
+## Palette colors
-A color intention is a mapping of a palette to a given intention within your application. The theme exposes the following color intentions:
+A color intention is a mapping of a palette color to a given intention within your application. The theme exposes the following palette colors (accessible under `theme.palette.`):
-- primary - 用来表示用户界面的主要元素
-- secondary - used to represent secondary interface elements for a user.
-- error - used to represent interface elements that the user should be made aware of.
-- warning - used to represent potentially dangerous actions or important messages.
-- info - used to present information to the user that is neutral and not necessarily important.
-- success - used to indicate the successful completion of an action that user triggered.
-
-The default palette uses the shades prefixed with `A` (`A200`, etc.) for the secondary intention, and the un-prefixed shades for the other intentions.
+- *primary* - used to represent primary interface elements for a user. It's the color displayed most frequently across your app's screens and components.
+- *secondary* - used to represent secondary interface elements for a user. It provides more ways to accent and distinguish your product. Having it is optional.
+- *error* - used to represent interface elements that the user should be made aware of.
+- *warning* - used to represent potentially dangerous actions or important messages.
+- *info* - used to present information to the user that is neutral and not necessarily important.
+- *success* - used to indicate the successful completion of an action that user triggered.
If you want to learn more about color, you can check out [the color section](/customization/color/).
+## 默认值
+
+You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
+
{{"demo": "pages/customization/palette/Intentions.js", "bg": "inline", "hideToolbar": true}}
-### Customization 个性化
+The default palette uses the shades prefixed with `A` (`A200`, etc.) for the secondary intention, and the un-prefixed shades for the other intentions.
+
+## Customization 个性化
+
+You may override the default palette values by including a palette object as part of your theme. If any of the:
-您可以通过在主题中包含 palette 对象来覆盖默认调色板值。
+- [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary)
+- [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary)
+- [`palette.error`](/customization/default-theme/?expand-path=$.palette.error)
+- [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning)
+- [`palette.info`](/customization/default-theme/?expand-path=$.palette.info)
+- [`palette.success`](/customization/default-theme/?expand-path=$.palette.success)
-If any of the [`palette.primary`](/customization/default-theme/?expand-path=$.palette.primary), [`palette.secondary`](/customization/default-theme/?expand-path=$.palette.secondary), [`palette.error`](/customization/default-theme/?expand-path=$.palette.error), [`palette.warning`](/customization/default-theme/?expand-path=$.palette.warning), [`palette.info`](/customization/default-theme/?expand-path=$.palette.info) or [`palette.success`](/customization/default-theme/?expand-path=$.palette.success) 'intention' objects are provided, they will replace the defaults.
+palette color objects are provided, they will replace the defaults.
-意图值可以是一个[color](/customization/color/) 对象,也可以是通过下面的TypeScript接口指定的包含一个或多个键的对象
+The palette color value can either be a [color](/customization/color/#2014-material-design-color-palettes) object, or an object with one or more of the keys specified by the following TypeScript interface:
```ts
-interface PaletteIntention {
+interface PaletteColor {
light?: string;
main: string;
dark?: string;
@@ -36,7 +47,7 @@ interface PaletteIntention {
}
```
-**使用颜色对象**
+### 使用颜色对象
The simplest way to customize an intention is to import one or more of the provided colors and apply them to a palette intention:
@@ -51,7 +62,7 @@ const theme = createMuiTheme({
});
```
-**Providing the colors directly**
+### Providing the colors directly
If you wish to provide more customized colors, you can either create your own color object, or directly supply colors to some or all of the intention's keys:
@@ -103,11 +114,56 @@ Note that "contrastThreshold" follows a non-linear curve.
### 示例
-{{"demo": "pages/customization/palette/Palette.js"}}
+{{"demo": "pages/customization/palette/Palette.js", "defaultCodeOpen": true}}
+
+### Adding new colors
+
+You can add new colors inside and outside the palette of the theme as follow:
+
+```js
+import { createMuiTheme } from '@material-ui/core/styles';
+
+const theme = createMuiTheme({
+ status: {
+ danger: '#e53e3e',
+ },
+ palette: {
+ neutral: {
+ main: '#5c6ac4',
+ },
+ },
+});
+```
+
+If you are using TypeScript, you would also need to use [module augmentation](/guides/typescript/#customization-of-theme) for the theme to accept the above values.
+
+```ts
+declare module '@material-ui/core/styles/createMuiTheme' {
+ interface Theme {
+ status: {
+ danger: React.CSSProperties['color'],
+ }
+ }
+ interface ThemeOptions {
+ status: {
+ danger: React.CSSProperties['color']
+ }
+ }
+}
+
+declare module "@material-ui/core/styles/createPalette" {
+ interface Palette {
+ neutral: Palette['primary'];
+ }
+ interface PaletteOptions {
+ neutral: PaletteOptions['primary'];
+ }
+}
+```
-## 颜色工具
+## Picking colors
-Need inspiration? The Material Design team has built an awesome [palette configuration tool](/customization/color/#color-tool) to help you.
+Need inspiration? The Material Design team has built an [palette configuration tool](/customization/color/#picking-colors) to help you.
## Dark mode
@@ -159,8 +215,4 @@ function App() {
);
}
-```
-
-## 默认值
-
-You can explore the default values of the palette using [the theme explorer](/customization/default-theme/?expand-path=$.palette) or by opening the dev tools console on this page (`window.theme.palette`).
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/docs/src/pages/customization/theming/theming-aa.md b/docs/src/pages/customization/theming/theming-aa.md
index e9b48161d1bb2c..625699a785a3bb 100644
--- a/docs/src/pages/customization/theming/theming-aa.md
+++ b/docs/src/pages/customization/theming/theming-aa.md
@@ -72,12 +72,7 @@ crwdns93962:0crwdne93962:0
#### crwdns93964:0crwdne93964:0
```js
-crwdns93966:0{ createMuiTheme }crwdnd93966:0{
- primary: purple,
- secondary: green,
- }crwdnd93966:0{
- danger: 'orange',
- }crwdne93966:0
+crwdns133520:0{ createMuiTheme }crwdnd133520:0[500]crwdnd133520:0[500]crwdne133520:0
```
### `crwdns93968:0crwdne93968:0`
diff --git a/docs/src/pages/customization/theming/theming-de.md b/docs/src/pages/customization/theming/theming-de.md
index 8354746d70b286..02b5feefaf4020 100644
--- a/docs/src/pages/customization/theming/theming-de.md
+++ b/docs/src/pages/customization/theming/theming-de.md
@@ -78,11 +78,12 @@ import green from '@material-ui/core/colors/green';
const theme = createMuiTheme({
palette: {
- primary: purple,
- secondary: green,
- },
- status: {
- danger: 'orange',
+ primary: {
+ main: purple[500],
+ },
+ secondary: {
+ main: green[500],
+ },
},
});
```
diff --git a/docs/src/pages/customization/theming/theming-es.md b/docs/src/pages/customization/theming/theming-es.md
index d60a3990eb8f9e..78822bab2e90b9 100644
--- a/docs/src/pages/customization/theming/theming-es.md
+++ b/docs/src/pages/customization/theming/theming-es.md
@@ -78,11 +78,12 @@ import green from '@material-ui/core/colors/green';
const theme = createMuiTheme({
palette: {
- primary: purple,
- secondary: green,
- },
- status: {
- danger: 'orange',
+ primary: {
+ main: purple[500],
+ },
+ secondary: {
+ main: green[500],
+ },
},
});
```
diff --git a/docs/src/pages/customization/theming/theming-fr.md b/docs/src/pages/customization/theming/theming-fr.md
index b2ebed6ef0049b..0963529c2abef7 100644
--- a/docs/src/pages/customization/theming/theming-fr.md
+++ b/docs/src/pages/customization/theming/theming-fr.md
@@ -78,11 +78,12 @@ import green from '@material-ui/core/colors/green';
const theme = createMuiTheme({
palette: {
- primary: purple,
- secondary: green,
- },
- status: {
- danger: 'orange',
+ primary: {
+ main: purple[500],
+ },
+ secondary: {
+ main: green[500],
+ },
},
});
```
diff --git a/docs/src/pages/customization/theming/theming-ja.md b/docs/src/pages/customization/theming/theming-ja.md
index 530988591b6be3..dcc2772dbd4941 100644
--- a/docs/src/pages/customization/theming/theming-ja.md
+++ b/docs/src/pages/customization/theming/theming-ja.md
@@ -78,11 +78,12 @@ import green from '@material-ui/core/colors/green';
const theme = createMuiTheme({
palette: {
- primary: purple,
- secondary: green,
- },
- status: {
- danger: 'orange',
+ primary: {
+ main: purple[500],
+ },
+ secondary: {
+ main: green[500],
+ },
},
});
```
diff --git a/docs/src/pages/customization/theming/theming-pt.md b/docs/src/pages/customization/theming/theming-pt.md
index 54c443d19d3f08..aad519ff292c94 100644
--- a/docs/src/pages/customization/theming/theming-pt.md
+++ b/docs/src/pages/customization/theming/theming-pt.md
@@ -78,11 +78,12 @@ import green from '@material-ui/core/colors/green';
const theme = createMuiTheme({
palette: {
- primary: purple,
- secondary: green,
- },
- status: {
- danger: 'orange',
+ primary: {
+ main: purple[500],
+ },
+ secondary: {
+ main: green[500],
+ },
},
});
```
diff --git a/docs/src/pages/customization/theming/theming-ru.md b/docs/src/pages/customization/theming/theming-ru.md
index d2495c3fec1b49..446c312c55765c 100644
--- a/docs/src/pages/customization/theming/theming-ru.md
+++ b/docs/src/pages/customization/theming/theming-ru.md
@@ -78,11 +78,12 @@ import green from '@material-ui/core/colors/green';
const theme = createMuiTheme({
palette: {
- primary: purple,
- secondary: green,
- },
- status: {
- danger: 'orange',
+ primary: {
+ main: purple[500],
+ },
+ secondary: {
+ main: green[500],
+ },
},
});
```
diff --git a/docs/src/pages/customization/theming/theming-zh.md b/docs/src/pages/customization/theming/theming-zh.md
index cc8fc98fcd5164..759c4af6752d4b 100644
--- a/docs/src/pages/customization/theming/theming-zh.md
+++ b/docs/src/pages/customization/theming/theming-zh.md
@@ -1,6 +1,6 @@
# 主题
-
定制自己的 Material-UI 主题, You can change the colors, the typography and much more.
+
定制自己的 Material-UI 主题, 你可以改变颜色、排版等等
主题可以指定组件的配色、平面的明暗、阴影的深浅、墨水元素适当的不透明度等。
@@ -12,7 +12,7 @@
如果你想要自定义样式,则需要使用 `MuiThemeProvider` 组件才能将样式注入到你的应用中。 但是,这是可选的,因为 Material-UI 组件带有默认主题。
-`ThemeProvider` relies on the [context feature of React](https://reactjs.org/docs/context.html) to pass the theme down to the components, so you need to make sure that `ThemeProvider` is a parent of the components you are trying to customize. 您可以在 [API 章节](/styles/api/#themeprovider) 中了解有关此内容的更多信息 。
+`ThemeProvider` 依赖于 [React 的上下文(context) 功能 ](https://reactjs.org/docs/context.html) 来将主题向下应用给组件,所以你需要确保 `ThemeProvider` 是你试图自定义组件的父级。 您可以在 [API 章节](/styles/api/#themeprovider) 中了解有关此内容的更多信息 。
## 主题配置变量
@@ -29,13 +29,13 @@
### 自定义变量
-When using Material-UI's theme with the [styling solution](/styles/basics/) or [any others](/guides/interoperability/#themeprovider), it can be convenient to add additional variables to the theme so you can use them everywhere. 就像这样:
+当 Material-UI 的主题与 [样式解决方案](/styles/basics/) 或 [任何其他解决方案](/guides/interoperability/#themeprovider) 一起使用时,你可以方便地将额外的变量添加到主题中,这样你就可以随处使用它。 就像这样:
{{"demo": "pages/customization/theming/CustomStyles.js"}}
## 访问组件中的主题
-You [can access](/styles/advanced/#accessing-the-theme-in-a-component) the theme variables inside your React components.
+你 [可以访问](/styles/advanced/#accessing-the-theme-in-a-component) React 组件内部的主题变量。
## 嵌套主题
@@ -43,13 +43,13 @@ You [can access](/styles/advanced/#accessing-the-theme-in-a-component) the theme
{{"demo": "pages/customization/theming/ThemeNesting.js"}}
-内部主题将 **覆盖** 外部主题。 You can extend the outer theme by providing a function:
+内部主题将 **覆盖** 外部主题。 你可以提供一个函数来扩展外部主题:
{{"demo": "pages/customization/theming/ThemeNestingExtend.js"}}
### 关于性能
-The performance implications of nesting the `ThemeProvider` component are linked to JSS's work behind the scenes. The main point to understand is that the injected CSS is cached with the following tuple `(styles, theme)`.
+嵌套 `ThemeProvider` 组件的性能受到 JSS 幕后工作的影响。 需要理解的要点是,注入的 CSS 是用下面的元组(tuple) `(styles, theme)` 缓存的。
- `theme`: 每次渲染时,如果你提供了一个新的主题,一个新的CSS对象将会被生成并注入。 不管是为了更统一的UI风格还是性能,都应该尽量不要每次生成新的主题 object。
- `styles`: 样式 object 越大,需要的运算越多。
@@ -63,7 +63,7 @@ The performance implications of nesting the `ThemeProvider` component are linked
#### 参数
1. `options` (*Object*):采用不完整的主题对象并添加缺少的部分。
-2. `...args` (*Array*): Deep merge the arguments with the about to be returned theme.
+2. `...args` (*Array*): 将参数与即将返回的主题深度合并(deep merge)。
#### 返回结果
@@ -78,22 +78,23 @@ import green from '@material-ui/core/colors/green';
const theme = createMuiTheme({
palette: {
- primary: purple,
- secondary: green,
- },
- status: {
- danger: 'orange',
+ primary: {
+ main: purple[500],
+ },
+ secondary: {
+ main: green[500],
+ },
},
});
```
### `responsiveFontSizes(theme, options) => theme`
-Generate responsive typography settings based on the options received.
+根据接收到的选项生成响应式的排版设置。
#### 参数
-1. `theme` (*Object*): The theme object to enhance.
+1. `theme` (*Object*): 要增强的主题对象。
2. `options` (*Object* [optional]):
- `breakpoints` (*Array\* [optional]): Default to `['sm', 'md', 'lg']`. Array of [breakpoints](/customization/breakpoints/) (identifiers).
@@ -103,7 +104,7 @@ Generate responsive typography settings based on the options received.
#### 返回结果
-`theme` (*Object*): The new theme with a responsive typography.
+`theme` (*Object*): 响应式排版的新主题。
#### 示例
@@ -116,25 +117,25 @@ theme = responsiveFontSizes(theme);
### `unstable_createMuiStrictModeTheme(options, ...args) => theme`
-**WARNING**: Do not use this method in production.
+**警告**:不要在生产环境中使用该方法。
-Generates a theme that reduces the amount of warnings inside [`React.StrictMode`](https://reactjs.org/docs/strict-mode.html) like `Warning: findDOMNode is deprecated in StrictMode`.
+生成一个主题,该主题减少 [`React.StrictMode`](https://reactjs.org/docs/strict-mode.html) 内的警告数量,类似于 `Warning: findDOMNode is deprecated in StrictMode`。
-#### Requirements
+#### 要求
-Using `unstable_createMuiStrictModeTheme` restricts the usage of some of our components.
+使用 `unstable_createMuiStrictModeTheme` 会限制某些组件的使用。
-##### `component` prop
+##### `component` 属性
-The component used in the `component` prop of the following components need to forward their ref:
+在 `组件(component)` 属性中使用的组件需要转发其 ref:
- [`Collapse 折叠`](/api/collapse/)
-Otherwise you'll encounter `Error: Function component cannot be given refs`. See also: [Composition: Caveat with refs](/guides/composition/#caveat-with-refs).
+否则你会收到 `Error: Function component cannot be given refs` 错误。 参见: [Composition: Caveat with refs](/guides/composition/#caveat-with-refs)。
-##### `children` prop
+##### `children` 属性
-The `children` of the following components need to forward their ref:
+在 `子组件(children)` 属性中使用的组件需要转发其 ref:
- [`Fade 淡入淡出`](/api/fade/)
- [`Grow 扩展`](/api/grow/)
@@ -152,11 +153,11 @@ function Tabs() {
}
```
-Otherwise the component will not animate properly and you'll encounter the warning that `Function components cannot be given refs`.
+否则组件的动画将不会正常显示,你会收到 `Function components cannot be given refs` 警告。
-#### Disable StrictMode compatibility partially
+#### 部分禁用严格模式(StrictMode) 兼容性
-If you still see `Error: Function component cannot be given refs` then you're probably using a third-party component for which the previously mentioned fixes aren't applicable. You can fix this by applying `disableStrictModeCompat`. You'll see deprecation warnings again but these are only warnings while `Function component cannot be given refs` actually breaks the documented behavior of our components.
+如果你仍然能收到 `Error: Function component cannot be given refs` 错误,那么你可能使用的是第三方组件,而之前所提到的修复方法并不适用它。 你可以通过应用 `disableStrictModeCompat` 来修复此问题。 You'll see deprecation warnings again but these are only warnings while `Function component cannot be given refs` actually breaks the documented behavior of our components.
```diff
import { unstable_createMuiStrictModeTheme } from '@material-ui/core/styles';
@@ -185,7 +186,7 @@ function Fade() {
#### 参数
1. `options` (*Object*):采用不完整的主题对象并添加缺少的部分。
-2. `...args` (*Array*): Deep merge the arguments with the about to be returned theme.
+2. `...args` (*Array*): 将参数与即将返回的主题深度合并(deep merge)。
#### 返回结果
diff --git a/docs/src/pages/customization/z-index/z-index-zh.md b/docs/src/pages/customization/z-index/z-index-zh.md
index ef2f833c1ec2e6..358b9ba728030c 100644
--- a/docs/src/pages/customization/z-index/z-index-zh.md
+++ b/docs/src/pages/customization/z-index/z-index-zh.md
@@ -7,7 +7,7 @@
[这些值](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/styles/zIndex.js)从任意数字开始,足够大和特别来避免冲突。
- mobile stepper(移动设备起步): 1000
-- speed dial: 1050
+- speed dial(快速拨号): 1050
- app bar(应用栏):1100
- drawer(抽屉):1200
- modal(浮层):1300
diff --git a/docs/src/pages/discover-more/related-projects/related-projects-pt.md b/docs/src/pages/discover-more/related-projects/related-projects-pt.md
index e586994970d853..8b9ca1fd8a6baa 100644
--- a/docs/src/pages/discover-more/related-projects/related-projects-pt.md
+++ b/docs/src/pages/discover-more/related-projects/related-projects-pt.md
@@ -4,13 +4,13 @@
Como o escopo dos problemas que o Material-UI resolve é limitado, tentamos interagir bem com outras bibliotecas. Sinta-se à vontade para enviar uma solicitação de pull request para adicionar outro projeto; será aceito se for adequado.
-## Recursos de Design
+## Recursos de design
-- **Sketch**: [Sketch for Material-UI](https://material-ui.com/store/items/sketch-react/?utm_source=docs&utm_medium=referral&utm_campaign=related-projects-sketch) — A large UI kit with over 600 handcrafted Material-UI's symbols 💎.
-- **Figma**: [Figma for Material-UI](https://material-ui.com/store/items/figma-react/?utm_source=docs&utm_medium=referral&utm_campaign=related-projects-sketch) — A large UI kit with over 600 handcrafted Material-UI's components 🎨.
-- **Framer**: [Framer for Material-UI](https://packages.framer.com/package/material-ui/material-ui) — A small MIT UI kit preview of handcrafted Material-UI's component.
+- **Sketch**: [Sketch para Material-UI](https://material-ui.com/store/items/sketch-react/?utm_source=docs&utm_medium=referral&utm_campaign=related-projects-sketch) — Um kit de interface de usuário grande com mais de 600 símbolos de Material-UI trabalhados à mão 💎.
+- **Figma**: [Figma para Material-UI](https://material-ui.com/store/items/figma-react/?utm_source=docs&utm_medium=referral&utm_campaign=related-projects-sketch) — Um kit de interface de usuário grande com mais de 600 componentes de Material-UI trabalhados à mão 🎨.
+- **Framer**: [Framer para Material-UI](https://packages.framer.com/package/material-ui/material-ui) — Um pequeno kit MIT de interface de usuário em preview, de componentes de Material-UI trabalhado a mão.
-Você não encontrou os recursos de design que sua equipe está procurando? [Let us know!](mailto:design@material-ui.com)
+Você não encontrou os recursos de design que sua equipe está procurando? [Nos conte!](mailto:design@material-ui.com)
## Imagens e ilustrações
@@ -37,7 +37,7 @@ Esta é uma coleção de projetos de terceiros que estendem Material-UI.
- [mui-datatables](https://github.com/gregnb/mui-datatables): Tabelas de dados responsivas para Material-UI com filtro, ordenação, pesquisa e muito mais.
- [tubular-react](https://github.com/unosquare/tubular-react): Uma tabela de Material-UI com fonte de dados local ou remota. Com filtragem, classificação, pesquisa de texto livre, exportação para CSV localmente e agregações.
-### Notification
+### Notificação
- [notistack](https://github.com/iamhosseindhv/notistack): Facilita a exibição de snackbars (assim você não precisa ter que lidar com o estado de aberto/fechado delas).
@@ -45,7 +45,7 @@ Esta é uma coleção de projetos de terceiros que estendem Material-UI.
- [material-ui-dropzone](https://github.com/Yuvaleros/material-ui-dropzone): Construído sobre o react-dropzone.
-### Form
+### Formulário
- [formik-material-ui](https://github.com/stackworx/formik-material-ui) Bindings para usar Material-UI com [formik](https://jaredpalmer.com/formik).
- [redux-form-material-ui](https://github.com/erikras/redux-form-material-ui) Bindings para usar Material-UI com [Redux Form](https://redux-form.com/).
@@ -64,11 +64,11 @@ Esta é uma coleção de projetos de terceiros que estendem Material-UI.
- [material-ui-flat-pagination](https://github.com/szmslab/material-ui-flat-pagination): Um componente de paginação de design plano para Material-UI.
-### Scheduler/Calendar
+### Agenda/Calendário
- [dx-react-scheduler-material-ui](https://devexpress.github.io/devextreme-reactive/react/scheduler/): Um componente agenda/calendário para Material-UI com múltiplas visualizações de calendário, edição, compromissos de recorrência e recursos de navegação por data ([licença paga](https://js.devexpress.com/licensing/)).
-### Chart
+### Gráfico
- [dx-react-chart-material-ui](https://devexpress.github.io/devextreme-reactive/react/chart/) Gráficos Material-UI para visualizar dados usando uma variedade de tipos de série, incluindo barra, linha, área, dispersão, pizza e muito mais ([licença paga](https://js.devexpress.com/licensing/)).
@@ -76,9 +76,9 @@ Esta é uma coleção de projetos de terceiros que estendem Material-UI.
- [material-ui-confirm](https://github.com/jonatanklosko/material-ui-confirm): Fornece diálogos de confirmação fáceis de usar para simplificar as ações de confirmação do usuário sem escrever código boilerplate.
-### Color picker
+### Seleção de cores
-- [material-ui-color](https://github.com/mikbry/material-ui-color): Collections of color components for material-ui. No dependencies, small, highly customizable and theming support!
+- [material-ui-color](https://github.com/mikbry/material-ui-color): Coleções de componentes de cor para material-ui. Sem dependências, pequeno, altamente customizável e com suporte ao tema!
## Blocos
diff --git a/docs/src/pages/getting-started/supported-platforms/supported-platforms-aa.md b/docs/src/pages/getting-started/supported-platforms/supported-platforms-aa.md
index 3c72f73d3cbc2c..dd1f4655eefcd1 100644
--- a/docs/src/pages/getting-started/supported-platforms/supported-platforms-aa.md
+++ b/docs/src/pages/getting-started/supported-platforms/supported-platforms-aa.md
@@ -25,4 +25,8 @@ crwdns95084:0crwdne95084:0 crwdns95086:0crwdne95086:0 crwdns95088:0crwdne95088:0
## crwdns95092:0crwdne95092:0
-crwdns95094:0crwdne95094:0 crwdns104938:0crwdne104938:0
\ No newline at end of file
+crwdns95094:0crwdne95094:0 crwdns104938:0crwdne104938:0
+
+## crwdns133140:0crwdne133140:0
+
+crwdns133142:0crwdne133142:0
\ No newline at end of file
diff --git a/docs/src/pages/getting-started/supported-platforms/supported-platforms-de.md b/docs/src/pages/getting-started/supported-platforms/supported-platforms-de.md
index dacc3b6efc7852..0352ecd9600bc1 100644
--- a/docs/src/pages/getting-started/supported-platforms/supported-platforms-de.md
+++ b/docs/src/pages/getting-started/supported-platforms/supported-platforms-de.md
@@ -25,4 +25,8 @@ Das in dieser Dokumentation bereitgestellte CSS wird mit dem [`Autoprefixer`](ht
## React
-Material-UI supports the most recent versions of React, starting with ^16.8.0 (the one with the hooks). Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility.
\ No newline at end of file
+Material-UI supports the most recent versions of React, starting with ^16.8.0 (the one with the hooks). Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility.
+
+## TypeScript
+
+Material-UI requires a minimum version of TypeScript 3.2.
\ No newline at end of file
diff --git a/docs/src/pages/getting-started/supported-platforms/supported-platforms-es.md b/docs/src/pages/getting-started/supported-platforms/supported-platforms-es.md
index cd2b383d7316e6..f9fa5f3f27bb36 100644
--- a/docs/src/pages/getting-started/supported-platforms/supported-platforms-es.md
+++ b/docs/src/pages/getting-started/supported-platforms/supported-platforms-es.md
@@ -25,4 +25,8 @@ El CSS servido en ésta documentación se procesa con [`autoprefixer`](https://w
## React
-Material-UI supports the most recent versions of React, starting with ^16.8.0 (the one with the hooks). Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility.
\ No newline at end of file
+Material-UI supports the most recent versions of React, starting with ^16.8.0 (the one with the hooks). Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility.
+
+## TypeScript
+
+Material-UI requires a minimum version of TypeScript 3.2.
\ No newline at end of file
diff --git a/docs/src/pages/getting-started/supported-platforms/supported-platforms-fr.md b/docs/src/pages/getting-started/supported-platforms/supported-platforms-fr.md
index 4e98a7ef46ced0..8852a59f860c3a 100644
--- a/docs/src/pages/getting-started/supported-platforms/supported-platforms-fr.md
+++ b/docs/src/pages/getting-started/supported-platforms/supported-platforms-fr.md
@@ -25,4 +25,8 @@ The CSS served on this documentation is processed with [`autoprefixer`](https://
## React
-Material-UI supports the most recent versions of React, starting with ^16.8.0 (the one with the hooks). Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility.
\ No newline at end of file
+Material-UI supports the most recent versions of React, starting with ^16.8.0 (the one with the hooks). Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility.
+
+## TypeScript
+
+Material-UI requires a minimum version of TypeScript 3.2.
\ No newline at end of file
diff --git a/docs/src/pages/getting-started/supported-platforms/supported-platforms-ja.md b/docs/src/pages/getting-started/supported-platforms/supported-platforms-ja.md
index 9c548707fab604..271929abae88ae 100644
--- a/docs/src/pages/getting-started/supported-platforms/supported-platforms-ja.md
+++ b/docs/src/pages/getting-started/supported-platforms/supported-platforms-ja.md
@@ -25,4 +25,8 @@ Be aware that some CSS features [require](https://github.com/cssinjs/jss/issues/
## React
-Material-UIは、^16.8. 0(フックのついた方) 以降のReactの最新バージョンをサポートします。 Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility.
\ No newline at end of file
+Material-UIは、^16.8. 0(フックのついた方) 以降のReactの最新バージョンをサポートします。 Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility.
+
+## TypeScript
+
+Material-UI requires a minimum version of TypeScript 3.2.
\ No newline at end of file
diff --git a/docs/src/pages/getting-started/supported-platforms/supported-platforms-pt.md b/docs/src/pages/getting-started/supported-platforms/supported-platforms-pt.md
index d3d164378b0bd6..40e6ff0b4b16a2 100644
--- a/docs/src/pages/getting-started/supported-platforms/supported-platforms-pt.md
+++ b/docs/src/pages/getting-started/supported-platforms/supported-platforms-pt.md
@@ -25,4 +25,8 @@ O CSS exibido nesta documentação é processado com [`autoprefixer`](https://ww
## React
-Material-UI suporta as versões mais recentes do React, começando com ^16.8.0 (o que possui os hooks). Dê uma olhada nas [versões](https://material-ui.com/versions/) mais antigas para compatibilidade.
\ No newline at end of file
+Material-UI suporta as versões mais recentes do React, começando com ^16.8.0 (o que possui os hooks). Dê uma olhada nas [versões](https://material-ui.com/versions/) mais antigas para compatibilidade.
+
+## TypeScript
+
+Material-UI requires a minimum version of TypeScript 3.2.
\ No newline at end of file
diff --git a/docs/src/pages/getting-started/supported-platforms/supported-platforms-ru.md b/docs/src/pages/getting-started/supported-platforms/supported-platforms-ru.md
index c56ab04a98b388..6db7dbad5cd0d9 100644
--- a/docs/src/pages/getting-started/supported-platforms/supported-platforms-ru.md
+++ b/docs/src/pages/getting-started/supported-platforms/supported-platforms-ru.md
@@ -25,4 +25,8 @@ The CSS served on this documentation is processed with [`autoprefixer`](https://
## React
-Material-UI supports the most recent versions of React, starting with ^16.8.0 (the one with the hooks). Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility.
\ No newline at end of file
+Material-UI supports the most recent versions of React, starting with ^16.8.0 (the one with the hooks). Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility.
+
+## TypeScript
+
+Material-UI requires a minimum version of TypeScript 3.2.
\ No newline at end of file
diff --git a/docs/src/pages/getting-started/supported-platforms/supported-platforms-zh.md b/docs/src/pages/getting-started/supported-platforms/supported-platforms-zh.md
index f144216234ffc7..4c4b7aceae9000 100644
--- a/docs/src/pages/getting-started/supported-platforms/supported-platforms-zh.md
+++ b/docs/src/pages/getting-started/supported-platforms/supported-platforms-zh.md
@@ -11,7 +11,7 @@ Material-UI支持所有主流浏览器和平台的最新稳定版本。 我们
| 11 | >= 14 | >= 52 | >= 49 | >= 10 | ✅ |
-因为 Googlebot 使用了Web rendering service - WRS (网络渲染服务)对页面进行索引,所以Material-UI能提供对它的支持非常重要。 [WRS regularly updates the rendering engine it uses](https://webmasters.googleblog.com/2019/05/the-new-evergreen-googlebot.html). 在没有重大问题的情况下,您可以指望能够渲染Material-UI的组件。
+因为 Googlebot 使用了Web rendering service - WRS (网络渲染服务)对页面进行索引,所以Material-UI能提供对它的支持非常重要。 [WRS 定期更新它使用的渲染引擎](https://webmasters.googleblog.com/2019/05/the-new-evergreen-googlebot.html)。 在没有重大问题的情况下,您可以指望能够渲染Material-UI的组件。
## 服务器
@@ -25,4 +25,8 @@ Material-UI支持所有主流浏览器和平台的最新稳定版本。 我们
## React
-Material-UI支持最新版本的React,从16.8.0开始(带有hook的版本)。 我们同时提供了向后兼容的[版本](https://material-ui.com/versions/)。
\ No newline at end of file
+Material-UI支持最新版本的React,从16.8.0开始(带有hook的版本)。 我们同时提供了向后兼容的[版本](https://material-ui.com/versions/)。
+
+## TypeScript
+
+Material-UI requires a minimum version of TypeScript 3.2.
\ No newline at end of file
diff --git a/docs/src/pages/guides/api/api-pt.md b/docs/src/pages/guides/api/api-pt.md
index b05ba6e6aa4b54..2c66cc10ba17a6 100644
--- a/docs/src/pages/guides/api/api-pt.md
+++ b/docs/src/pages/guides/api/api-pt.md
@@ -1,4 +1,4 @@
-# Abordagem de Design da API
+# Abordagem do Design da API
Nós aprendemos bastante como o Material-UI é usado e o refatoramento da v1 permitiu-nos repensar completamente o componente de API.
@@ -64,10 +64,10 @@ const styles = {
Os componentes aninhados dentro de um componente possuem:
-- their own flattened properties when these are key to the top level component abstraction, for instance an `id` prop for the `Input` component.
+- suas próprias propriedades niveladas quando estas são chaves para a abstração do componente de nível superior, por exemplo uma propriedade `id` para o componente `input`.
- suas próprias propriedades `xxxProps`, quando os usuários podem precisar ajustar os subcomponentes do método de renderização interno, por exemplo, expondo as propriedades `inputProps` e `InputProps` em componentes que usam `Input` internamente.
- suas próprias propriedades `xxxComponent` para executar a injeção de componentes.
-- their own `xxxRef` prop when you might need to perform imperative actions, for instance, exposing an `inputRef` prop to access the native `input` on the `Input` component. Isso ajuda a responder a pergunta ["Como posso acessar o elemento DOM?"](/getting-started/faq/#how-can-i-access-the-dom-element)
+- suas próprias propriedades `xxxRef`, quando o usuário precisar executar ações imperativas, por exemplo, expondo uma propriedade `inputRef` para acessar nativamente o `input` no componente `Input`. Isso ajuda a responder a pergunta ["Como posso acessar o elemento DOM?"](/getting-started/faq/#how-can-i-access-the-dom-element)
### Nomeando propriedades
@@ -86,7 +86,7 @@ A maior parte de componentes controlados, é controlado pelas propriedades `valu
Existem duas opções para projetar a API para as variações de um componente: com um *boolean*; ou com um *enum*. Por exemplo, vamos pegar um botão que tenha tipos diferentes. Cada opção tem seus prós e contras:
-- Opção 1 *boolean*:
+- Opção 1 *boleano*:
```tsx
type Props = {
@@ -97,7 +97,7 @@ Existem duas opções para projetar a API para as variações de um componente:
Esta API ativou a notação abreviada: ``, ``, ``.
-- Opção 2 *enum*:
+- Opção 2 *enumerador*:
```tsx
type Props = {
@@ -111,14 +111,14 @@ Existem duas opções para projetar a API para as variações de um componente:
Os componentes de Material-UI usam uma combinação das duas abordagens de acordo com as seguintes regras:
-- A *boolean* is used when **2** possible values are required.
-- An *enum* is used when **> 2** possible values are required, or if there is the possibility that additional possible values may be required in the future.
+- Um *boleano* é usado quando **2** valores possíveis são necessários.
+- Um *enumerador* é usado quando **2** valores possíveis são necessários, ou se houver a possibilidade de que valores possíveis adicionais possam ser necessários no futuro.
-Going back to the previous button example; since it requires 3 possible values, we use an *enum*.
+Voltando ao exemplo do botão anterior; ele requer 3 valores possíveis, usamos um *enumerador*.
### Ref
-O `ref` é encaminhado para o elemento raiz. This means that, without changing the rendered root element via the `component` prop, it is forwarded to the outermost DOM element which the component renders. If you pass a different component via the `component` prop, the ref will be attached to that component instead.
+O `ref` é encaminhado para o elemento raiz. Isso significa que, sem alterar o elemento raiz renderizado através da propriedade `component`, ele é encaminhado para o elemento DOM mais externo para que o componente renderize. Se você passar um componente diferente através da propriedade `component`, o ref será anexado para esse componente.
## Glossário
diff --git a/docs/src/pages/guides/interoperability/interoperability-pt.md b/docs/src/pages/guides/interoperability/interoperability-pt.md
index 0460794309d186..7ed418e7f89a67 100644
--- a/docs/src/pages/guides/interoperability/interoperability-pt.md
+++ b/docs/src/pages/guides/interoperability/interoperability-pt.md
@@ -2,7 +2,7 @@
Enquanto você pode usar a solução de estilo baseada em JSS fornecida pelo Material-UI para estilizar sua aplicação, você também pode usar o que você já conhece e ama (desde CSS simples a styled-components).
-This guide aims to document the most popular alternatives, but you should find that the principles applied here can be adapted to other libraries. Existem exemplos para as seguintes soluções de estilo:
+Este guia tem como objetivo documentar as alternativas mais populares, mas você deve descobrir que os princípios aplicados aqui podem ser adaptados para outras bibliotecas. Existem exemplos para as seguintes soluções de estilo:
- [CSS puro](#plain-css)
- [CSS global](#global-css)
diff --git a/docs/src/pages/guides/localization/localization-zh.md b/docs/src/pages/guides/localization/localization-zh.md
index 9b7f1c28939bab..57898b7e8ca463 100644
--- a/docs/src/pages/guides/localization/localization-zh.md
+++ b/docs/src/pages/guides/localization/localization-zh.md
@@ -68,7 +68,7 @@ const theme = createMuiTheme({
要创建自己的翻译,或自定义英文文本,请将此文件复制到您的项目中,进行所需的任何更改并从那里导入语言环境。
-Please do consider contributing new translations back to Material-UI by opening a pull request. However, Material-UI aims to support the [100 most popular locales](https://en.wikipedia.org/wiki/List_of_languages_by_number_of_native_speakers), we might not accept contributions for locales that are not frequently used, for instance `gl-ES` that has "only" 2.5 million native speakers.
+请考虑创建一个 拉取请求(pull request) 来向 Material-UI 贡献新的译文。 但是,Material-UI 的目标是支持 [100个最流行的语言地区](https://en.wikipedia.org/wiki/List_of_languages_by_number_of_native_speakers),对于那些不太流行的地区,我们可能不会接受贡献,例如 `gl-ES` “只有” 250万的母语使用者。
## RTL 支持
diff --git a/docs/src/pages/guides/migration-v0x/migration-v0x-zh.md b/docs/src/pages/guides/migration-v0x/migration-v0x-zh.md
index d917c6516ad525..3e3320370399ff 100644
--- a/docs/src/pages/guides/migration-v0x/migration-v0x-zh.md
+++ b/docs/src/pages/guides/migration-v0x/migration-v0x-zh.md
@@ -43,7 +43,7 @@ Material-UI 这个项目是从[4年前](https://github.com/mui-org/material-ui/c
import Button from '@material-ui/core/Button'; // v1.x
```
-2. Run [the migration helper](https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod) on your project.
+2. 在你的项目上运行 [迁移助手](https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod)
3。 `MuiThemeProvider` is optional for v1.x., but if you have a custom theme, you are free to use v0.x and v1.x versions of the component at the same time, like this:
```jsx
@@ -81,11 +81,11 @@ Material-UI 这个项目是从[4年前](https://github.com/mui-org/material-ui/c
Material-UI doesn't provide a high-level API for solving this problem.
You're encouraged you to explore [the solutions the React community has built](/components/autocomplete/).
-In the future, we will look into providing a simple component to solve the simple use cases: [#9997](https://github.com/mui-org/material-ui/issues/9997).
+未来,我们打算提供一个简单的组件来解决这个用例:[#9997](https://github.com/mui-org/material-ui/issues/9997)。
-### Svg Icon
+### Svg 图标
-Run [the migration helper](https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod) on your project.
+在你的项目上运行 [迁移助手](https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod)
This will apply a change such as the following:
@@ -187,4 +187,4 @@ This will apply a change such as the following:
### 未完待续...
-您是否已成功迁移您的应用,并助社区一臂之力? There is an open issue in order to finish this migration guide [#7195](https://github.com/mui-org/material-ui/issues/7195). 我们欢迎任何 pull request。
\ No newline at end of file
+您是否已成功迁移您的应用,并助社区一臂之力? 要完成本迁移指南 [#7195](https://github.com/mui-org/material-ui/issues/7195),还存在一个未决问题。 我们欢迎任何 pull request。
\ No newline at end of file
diff --git a/docs/src/pages/guides/migration-v3/migration-v3-zh.md b/docs/src/pages/guides/migration-v3/migration-v3-zh.md
index 9a7bda13b10a32..b212658471d8fc 100644
--- a/docs/src/pages/guides/migration-v3/migration-v3-zh.md
+++ b/docs/src/pages/guides/migration-v3/migration-v3-zh.md
@@ -71,7 +71,7 @@ yarn add @material-ui/styles
### Styles(样式表单)
- ⚠️ Material-UI 依赖于 JSS v10版本。 JSS v10版本与v9版本不向后兼容。 请保证您的开发环境中未安装 JSS v9版本。 (Removing `react-jss` from your `package.json` can help). StylesProvider 组件替代了 JssProvider 组件。
-- 请移除 `withTheme()` 中的第一个可选的参数。 (The first argument was a placeholder for a potential future option that never arose.)
+- 请移除 `withTheme()` 中的第一个可选的参数。 (第一个参数是从未出现的可能会是未来选项的占位符。)
它与[emotion 的 API](https://emotion.sh/docs/introduction) 以及 [styled-components 的 API ](https://www.styled-components.com) 相匹配。
@@ -165,7 +165,7 @@ function MySelect({ children }) {
}
```
-This change is explained in more detail in the [TypeScript guide](/guides/typescript/#handling-value-and-event-handlers)
+[TypeScript 指南](/guides/typescript/#handling-value-and-event-handlers) 中对此更改进行了更详细的说明
### Buttons(按钮)
@@ -238,7 +238,7 @@ This change is explained in more detail in the [TypeScript guide](/guides/typesc
- 当使用头像时,您必须要使用 `ListItemAvatar` 组件。
- 当使用左边的复选框时,您必须使用 `ListItemIcon` 组件。
- 您必须要在图标按钮上设置 `edge` 属性。
-- [List] `dense` no longer reduces the top and bottom padding of the `List` element.
+- [List] `dense` 不再减少 `List` 元素的上下边距。
- [ListItem] 加强 `disabled` 和 `focusVisible` 样式规则的 CSS 特性。
diff --git a/docs/src/pages/guides/typescript/typescript-aa.md b/docs/src/pages/guides/typescript/typescript-aa.md
index 816f9a117614d0..d734e2084da4a7 100644
--- a/docs/src/pages/guides/typescript/typescript-aa.md
+++ b/docs/src/pages/guides/typescript/typescript-aa.md
@@ -2,23 +2,25 @@
Sie können statische Typisierung zu JavaScript hinzufügen, um die Produktivität und die Codequalität dank TypeScript zu verbessern.
-Schauen Sie sich das [Create React App mit TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) Beispiel an. Eine Mindestversion von TypeScript 2.8 ist erforderlich.
+Material-UI requires a minimum version of TypeScript 3.2.
+
+Schauen Sie sich das [Create React App mit TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) Beispiel an.
In order for types to work, you have to at least have the following options enabled in your `tsconfig.json`:
@@ -302,7 +304,7 @@ function ThirdPartyComponent({ prop1 } : { prop1: string }) {
The `prop1` became required for the `GenericCustomComponent` as the `ThirdPartyComponent` has it as a requirement.
-Not every component fully supports any component type you pass in. If you encounter a component that rejects its `component` props in TypeScript please open an issue. There is an ongoing effort to fix this by making component props generic.
+Nicht jede Komponente unterstützt vollständig jeden übergebenen Komponententyp. If you encounter a component that rejects its `component` props in TypeScript please open an issue. Es besteht ein ständiger Aufwand, um dies zu beheben, indem Komponentenstützen generisch gemacht werden.
## Handling `value` and event handlers
diff --git a/docs/src/pages/guides/typescript/typescript-es.md b/docs/src/pages/guides/typescript/typescript-es.md
index ded2ec73a54c70..d21146db0e11c5 100644
--- a/docs/src/pages/guides/typescript/typescript-es.md
+++ b/docs/src/pages/guides/typescript/typescript-es.md
@@ -2,7 +2,9 @@
You can add static typing to JavaScript to improve developer productivity and code quality thanks to TypeScript.
-Have a look at the [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) example. A minimum version of TypeScript 2.8 is required.
+Material-UI requires a minimum version of TypeScript 3.2.
+
+Have a look at the [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) example.
In order for types to work, you have to at least have the following options enabled in your `tsconfig.json`:
diff --git a/docs/src/pages/guides/typescript/typescript-fr.md b/docs/src/pages/guides/typescript/typescript-fr.md
index c0a8d3fae5646e..c036c04606fe6c 100644
--- a/docs/src/pages/guides/typescript/typescript-fr.md
+++ b/docs/src/pages/guides/typescript/typescript-fr.md
@@ -2,7 +2,9 @@
Vous pouvez ajouter du typage statique à JavaScript pour améliorer la productivité des développeurs et la qualité du code grâce à TypeScript.
-Have a look at the [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) example. Une version minimale de TypeScript 2.8 est requise.
+Material-UI requires a minimum version of TypeScript 3.2.
+
+Have a look at the [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) example.
In order for types to work, you have to at least have the following options enabled in your `tsconfig.json`:
diff --git a/docs/src/pages/guides/typescript/typescript-ja.md b/docs/src/pages/guides/typescript/typescript-ja.md
index 00215baa83f03c..af4d11eb8e5cca 100644
--- a/docs/src/pages/guides/typescript/typescript-ja.md
+++ b/docs/src/pages/guides/typescript/typescript-ja.md
@@ -2,7 +2,9 @@
-[Create React AppでのTypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript)の使用例を参考にしてください。 TypeScript 2.8以上が必要です。
+Material-UI requires a minimum version of TypeScript 3.2.
+
+[Create React AppでのTypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript)の使用例を参考にしてください。
In order for types to work, you have to at least have the following options enabled in your `tsconfig.json`:
@@ -300,12 +302,12 @@ function ThirdPartyComponent({ prop1 } : { prop1: string }) {
The `prop1` became required for the `GenericCustomComponent` as the `ThirdPartyComponent` has it as a requirement.
-Not every component fully supports any component type you pass in. If you encounter a component that rejects its `component` props in TypeScript please open an issue. There is an ongoing effort to fix this by making component props generic.
+すべてのコンポーネントが、渡すコンポーネントタイプを完全にサポートしているわけではありません。 If you encounter a component that rejects its `component` props in TypeScript please open an issue. コンポーネントプロップを汎用化することで、この問題を解決するための取り組みが続けられています。
## `value` およびイベントハンドラの処理
-Many components concerned with user input offer a `value` prop or event handlers which include the current `value`. In most situations that `value` is only handled within React which allows it be of any type, such as objects or arrays.
+ユーザ入力に関連する多くのコンポーネントは、現在の `value`を含む`value`プロパティまたはイベントハンドラを提供します。 ほとんどの場合、`値`のみが処理されます。 オブジェクトや配列などの任意のタイプを使用できます。
-However, that type cannot be verified at compile time in situations where it depends on the component's children e.g. for `Select` or `RadioGroup`. This means that the soundest option is to type it as `unknown` and let the developer decide how they want to narrow that type down. We do not offer the possibility to use a generic type in those cases for [the same reasons `event.target` is not generic in React](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682).
+ただし、そのタイプは、たとえば`Select`または`RadioGroup`など、コンポーネントの子に依存する状況では、コンパイル時に検証できません。 つまり、soundest オプションは、それを`unknown`として入力し、その型をどのように絞り込むかを開発者に決定させることです。 [同じ理由で` event.target` は Reactでは一般的ではないため](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682)これらの場合にジェネリック タイプを使用する可能性は提供しません。
-The demos include typed variants that use type casting. It is an acceptable tradeoff because the types are all located in a single file and are very basic. You have to decide for yourself if the same tradeoff is acceptable for you. The library types are be strict by default and loose via opt-in.
\ No newline at end of file
+The demos include typed variants that use type casting. すべての型が単一のファイル内にあり、非常に基本的であるため、これは許容できるトレードオフです。 同じトレードオフが受け入れられるかどうかは、自分で判断する必要があります。 The library types are be strict by default and loose via opt-in.
\ No newline at end of file
diff --git a/docs/src/pages/guides/typescript/typescript-pt.md b/docs/src/pages/guides/typescript/typescript-pt.md
index 842132ccd7b326..9c07ff4351203d 100644
--- a/docs/src/pages/guides/typescript/typescript-pt.md
+++ b/docs/src/pages/guides/typescript/typescript-pt.md
@@ -2,7 +2,9 @@
Você pode adicionar tipagem estática para o JavaScript para melhorar a produtividade do desenvolvimento e a qualidade do código graças ao TypeScript.
-Dê uma olhada no exemplo [Create React App com TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript). É necessário estar no mínimo com a versão 2.8 do TypeScript.
+Material-UI requires a minimum version of TypeScript 3.2.
+
+Dê uma olhada no exemplo [Create React App com TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript).
Para que os tipos funcionem, você tem que pelo menos ter as seguintes opções habilitadas no seu `tsconfig.json`:
diff --git a/docs/src/pages/guides/typescript/typescript-ru.md b/docs/src/pages/guides/typescript/typescript-ru.md
index ded2ec73a54c70..d21146db0e11c5 100644
--- a/docs/src/pages/guides/typescript/typescript-ru.md
+++ b/docs/src/pages/guides/typescript/typescript-ru.md
@@ -2,7 +2,9 @@
You can add static typing to JavaScript to improve developer productivity and code quality thanks to TypeScript.
-Have a look at the [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) example. A minimum version of TypeScript 2.8 is required.
+Material-UI requires a minimum version of TypeScript 3.2.
+
+Have a look at the [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) example.
In order for types to work, you have to at least have the following options enabled in your `tsconfig.json`:
diff --git a/docs/src/pages/guides/typescript/typescript-zh.md b/docs/src/pages/guides/typescript/typescript-zh.md
index 086d0cd76b6a97..ae906ed5c826d1 100644
--- a/docs/src/pages/guides/typescript/typescript-zh.md
+++ b/docs/src/pages/guides/typescript/typescript-zh.md
@@ -2,7 +2,9 @@
-请查看一下 [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) 的例子。 我们要求 TypeScript 版本必须大于 2.8。
+Material-UI requires a minimum version of TypeScript 3.2.
+
+请查看一下 [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) 的例子。
为了让类型检查起作用,你必须在 `tsconfig.json` 里启用以下选项:
@@ -304,8 +306,8 @@ The `prop1` became required for the `GenericCustomComponent` as the `ThirdPartyC
## 处理`值`和事件处理器
-很多与用户输入有关的组件会提供一个 `value` 属性或者包含当前 `value` 的事件处理器。 大多数情况下`value`只在 React 内被处理,这样的话它能够是任何类型,譬如 objects 或者 arrays。
+很多与用户输入有关的组件会提供一个 `value` 属性或者包含当前`值`的事件处理器。 大多数情况下`值`只在 React 内被处理,这样的话它能够是任何类型,譬如 objects 或者 arrays。
-然而,如果它依赖于组件的子组件,则类型无法在编译时被验证,例如对于 `Select` 或者 `RadioGroup` 组件来说。 这意味着留给我们的最合适的选项是将其输入为 `unknown` 并让开发者自行决定如何来缩小该类型。 与 [`event.target` 在 React 中并不通用的原因](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682)相同,我们并不推荐您在这些案例中尝试使用一个通用的类型。
+然而,如果是它依赖于组件子项的情况,此类型无法在编译时被验证,例如对于 `Select` 或者 `RadioGroup` 来说。 这意味着留给我们的最合适的选项是将其输入为 `unknown` 并让开发者自行决定如何来缩小该类型。 与 [`event.target` 在 React 中并不通用的原因](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682)相同,我们并不推荐您在这些案例中尝试使用一个通用的类型。
The demos include typed variants that use type casting. 鉴于所有的类型都位于一个文件中,并且都是非常基本的,这样的折衷可以接受。 您必须自行决定是否能够接受同样的折衷。 The library types are be strict by default and loose via opt-in.
\ No newline at end of file
diff --git a/docs/src/pages/production-error/index-aa.md b/docs/src/pages/production-error/index-aa.md
new file mode 100644
index 00000000000000..4ecd7c3969a557
--- /dev/null
+++ b/docs/src/pages/production-error/index-aa.md
@@ -0,0 +1,7 @@
+# crwdns133248:0crwdne133248:0
+
+
crwdns133250:0crwdne133250:0
+
+crwdns133252:0crwdne133252:0 crwdns133254:0crwdne133254:0 crwdns133256:0crwdne133256:0
+
+crwdns133258:0crwdne133258:0
diff --git a/docs/src/pages/production-error/index-de.md b/docs/src/pages/production-error/index-de.md
new file mode 100644
index 00000000000000..d2ab9a0e0378ef
--- /dev/null
+++ b/docs/src/pages/production-error/index-de.md
@@ -0,0 +1,7 @@
+# Production Error
+
+
In the production build of Material-UI error messages are minified to reduce the size of your application.
+
+We recommend using the development build when debugging this error. It will include additional warnings about potential problems. If you encounter an exception while using the production build, this page will reassemble the orrigianl text of the error.
+
+{{"demo": "pages/production-error/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}
diff --git a/docs/src/pages/production-error/index-es.md b/docs/src/pages/production-error/index-es.md
new file mode 100644
index 00000000000000..d2ab9a0e0378ef
--- /dev/null
+++ b/docs/src/pages/production-error/index-es.md
@@ -0,0 +1,7 @@
+# Production Error
+
+
In the production build of Material-UI error messages are minified to reduce the size of your application.
+
+We recommend using the development build when debugging this error. It will include additional warnings about potential problems. If you encounter an exception while using the production build, this page will reassemble the orrigianl text of the error.
+
+{{"demo": "pages/production-error/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}
diff --git a/docs/src/pages/production-error/index-fr.md b/docs/src/pages/production-error/index-fr.md
new file mode 100644
index 00000000000000..d2ab9a0e0378ef
--- /dev/null
+++ b/docs/src/pages/production-error/index-fr.md
@@ -0,0 +1,7 @@
+# Production Error
+
+
In the production build of Material-UI error messages are minified to reduce the size of your application.
+
+We recommend using the development build when debugging this error. It will include additional warnings about potential problems. If you encounter an exception while using the production build, this page will reassemble the orrigianl text of the error.
+
+{{"demo": "pages/production-error/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}
diff --git a/docs/src/pages/production-error/index-ja.md b/docs/src/pages/production-error/index-ja.md
new file mode 100644
index 00000000000000..d2ab9a0e0378ef
--- /dev/null
+++ b/docs/src/pages/production-error/index-ja.md
@@ -0,0 +1,7 @@
+# Production Error
+
+
In the production build of Material-UI error messages are minified to reduce the size of your application.
+
+We recommend using the development build when debugging this error. It will include additional warnings about potential problems. If you encounter an exception while using the production build, this page will reassemble the orrigianl text of the error.
+
+{{"demo": "pages/production-error/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}
diff --git a/docs/src/pages/production-error/index-pt.md b/docs/src/pages/production-error/index-pt.md
new file mode 100644
index 00000000000000..d2ab9a0e0378ef
--- /dev/null
+++ b/docs/src/pages/production-error/index-pt.md
@@ -0,0 +1,7 @@
+# Production Error
+
+
In the production build of Material-UI error messages are minified to reduce the size of your application.
+
+We recommend using the development build when debugging this error. It will include additional warnings about potential problems. If you encounter an exception while using the production build, this page will reassemble the orrigianl text of the error.
+
+{{"demo": "pages/production-error/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}
diff --git a/docs/src/pages/production-error/index-ru.md b/docs/src/pages/production-error/index-ru.md
new file mode 100644
index 00000000000000..d2ab9a0e0378ef
--- /dev/null
+++ b/docs/src/pages/production-error/index-ru.md
@@ -0,0 +1,7 @@
+# Production Error
+
+
In the production build of Material-UI error messages are minified to reduce the size of your application.
+
+We recommend using the development build when debugging this error. It will include additional warnings about potential problems. If you encounter an exception while using the production build, this page will reassemble the orrigianl text of the error.
+
+{{"demo": "pages/production-error/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}
diff --git a/docs/src/pages/production-error/index-zh.md b/docs/src/pages/production-error/index-zh.md
new file mode 100644
index 00000000000000..d2ab9a0e0378ef
--- /dev/null
+++ b/docs/src/pages/production-error/index-zh.md
@@ -0,0 +1,7 @@
+# Production Error
+
+
In the production build of Material-UI error messages are minified to reduce the size of your application.
+
+We recommend using the development build when debugging this error. It will include additional warnings about potential problems. If you encounter an exception while using the production build, this page will reassemble the orrigianl text of the error.
+
+{{"demo": "pages/production-error/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}
diff --git a/docs/src/pages/styles/advanced/advanced-zh.md b/docs/src/pages/styles/advanced/advanced-zh.md
index 67b589e0904c1a..a4591f55e38398 100644
--- a/docs/src/pages/styles/advanced/advanced-zh.md
+++ b/docs/src/pages/styles/advanced/advanced-zh.md
@@ -77,7 +77,7 @@ const DeepChild = withTheme(DeepChildRaw);
{{"demo": "pages/styles/advanced/ThemeNesting.js"}}
-内部主题将 **覆盖** 外部主题。 You can extend the outer theme by providing a function:
+内部主题将 **覆盖** 外部主题。 你可以提供一个函数来扩展外部主题:
```jsx
diff --git a/docs/src/pages/system/basics/basics-zh.md b/docs/src/pages/system/basics/basics-zh.md
index 6aedfd145d2b8f..de8cddadcfd61e 100644
--- a/docs/src/pages/system/basics/basics-zh.md
+++ b/docs/src/pages/system/basics/basics-zh.md
@@ -262,7 +262,7 @@ const Grid = styled(Box)`${gridGap}`;
const example = ...;
```
-你还可以添加 `prop` 和 `cssProperty` 来自定义 prop 名称,并使用 `transform` 函数来转换值(value)。
+你还可以添加 `prop` 和 `cssProperty` 来自定义属性名称,并使用 `transform` 函数来转换值(value)。
```jsx
import styled from 'styled-components';
diff --git a/docs/src/pages/system/display/display-zh.md b/docs/src/pages/system/display/display-zh.md
index 76c11998097934..0445b0ebca575f 100644
--- a/docs/src/pages/system/display/display-zh.md
+++ b/docs/src/pages/system/display/display-zh.md
@@ -1,10 +1,10 @@
# 显示
-
Quickly and responsively toggle the display value of components and more with the display utilities. 包括对一些更常见值的支持,以及一些用于在打印时控制显示的附加功能。