You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -188,18 +188,18 @@ export default function Main() {
188
188
189
189
## Creating dynamic theme colors
190
190
191
-
Dynamic Color Themes allows for generating two color schemes lightScheme and darkScheme, based on the provided source color.
191
+
Dynamic Color Themes allows for generating two color schemes lightScheme and darkScheme, based on the provided source color.
192
192
Created schemes are following the Material Design 3 color system and covering colors structure from the Paper theme. User may generate these schemes using the following tool:
193
193
194
194
<DynamicColorTheme />
195
195
196
196
<br />
197
197
198
-
Passed source color into the util is translated into tones to automatically provide the range of tones that map to color roles.
198
+
Passed source color into the util is translated into tones to automatically provide the range of tones that map to color roles.
@@ -269,29 +265,65 @@ export default function Main() {
269
265
The `adaptNavigationTheme` function takes an existing React Navigation theme and returns a React Navigation theme using the colors from Material Design 3. This theme can be passed to `NavigationContainer` so that React Navigation's UI elements have the same color scheme as Paper.
270
266
271
267
```ts
272
-
adaptNavigationTheme(themes)
268
+
adaptNavigationTheme(themes);
269
+
```
270
+
271
+
:::info
272
+
For users of `react-navigation` version `7.0.0` and above, `adaptNavigationTheme` overrides the **fonts** from the navigation theme as follows:
0 commit comments