Skip to content

Commit 36d4c42

Browse files
authored
feat: respect users' preferred color scheme (facebook#4262)
1 parent c14cd86 commit 36d4c42

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

website/docusaurus.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ module.exports = {
212212
themeConfig:
213213
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
214214
({
215+
colorMode: {
216+
defaultMode: 'light',
217+
disableSwitch: false,
218+
respectPrefersColorScheme: true,
219+
},
215220
announcementBar: {
216221
id: 'reactconf2024-keynote',
217222
content:

website/sidebars.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"build-speed",
7474
"optimizing-flatlist-configuration",
7575
"optimizing-javascript-loading",
76-
"profiling",
76+
"profiling"
7777
],
7878
"JavaScript Runtime": ["javascript-environment", "timers", "hermes"],
7979
"Codegen": [

0 commit comments

Comments
 (0)