diff --git a/docs/pages/2.theming.md b/docs/pages/2.theming.md index 0e109906b1..cb2125e514 100644 --- a/docs/pages/2.theming.md +++ b/docs/pages/2.theming.md @@ -132,7 +132,7 @@ A theme usually contains the following properties: - `inversePrimary` - `backdrop` -- `typescale` (`object`): various fonts styling properties under the text variant key used in component. +- `fonts` (`object`): various fonts styling properties under the text variant key used in component. - [`variant` e.g. `labelMedium`] (`object`): - `fontFamily` - `letterSpacing` @@ -313,7 +313,7 @@ function MyComponent(props) { ## Customizing all instances of a component -Sometimes you want to style a component in a different way everywhere, but don't want to change the properties in the theme, so that other components are not affected. For example, say you want to change the font for all your buttons, but don't want to change `theme.typescale.labelLarge` because it affects other components. +Sometimes you want to style a component in a different way everywhere, but don't want to change the properties in the theme, so that other components are not affected. For example, say you want to change the font for all your buttons, but don't want to change `theme.fonts.labelLarge` because it affects other components. We don't have an API to do this, because you can already do it with components: @@ -322,7 +322,7 @@ import * as React from 'react'; import { Button } from 'react-native-paper'; export default function FancyButton(props) { - return