Skip to content

Commit 50dd512

Browse files
xoyseauEugene
andauthored
Respect user's preferred color scheme (#1375)
Co-authored-by: Eugene <91225197+jewhyena@users.noreply.github>
1 parent 11192c4 commit 50dd512

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docusaurus.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ export default {
1111
projectName: 'react-navigation.github.io',
1212
scripts: ['/js/snack-helpers.js', '/js/toc-fixes.js'],
1313
themeConfig: {
14+
colorMode: {
15+
defaultMode: 'light',
16+
disableSwitch: false,
17+
respectPrefersColorScheme: true,
18+
},
1419
prism: {
1520
theme: require('prism-react-renderer').themes.github,
1621
darkTheme: require('prism-react-renderer').themes.dracula,

0 commit comments

Comments
 (0)