Skip to content

Commit 0bb284b

Browse files
xoyseauEugene
andauthored
docs: updated theme config to respect users' preferredd color scheme (#1973)(by @jewhyena)
* feat: respect users' preferredd color scheme * feat: set default color mode to dark --------- Co-authored-by: Eugene <91225197+jewhyena@users.noreply.github>
1 parent 9fe8294 commit 0bb284b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

website/docusaurus.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ const config: Config = {
7979
// Replace with your project's social card
8080
image: 'img/preview.gif',
8181

82+
colorMode: {
83+
defaultMode: 'dark',
84+
disableSwitch: false,
85+
respectPrefersColorScheme: true,
86+
},
87+
8288
navbar: {
8389
title: 'React Native Bottom Sheet',
8490
logo: {

0 commit comments

Comments
 (0)