Skip to content

Commit

Permalink
feat: respect users' preferred color scheme (#4262)
Browse files Browse the repository at this point in the history
  • Loading branch information
jewhyena authored Oct 9, 2024
1 parent c14cd86 commit 36d4c42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ module.exports = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
announcementBar: {
id: 'reactconf2024-keynote',
content:
Expand Down
2 changes: 1 addition & 1 deletion website/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"build-speed",
"optimizing-flatlist-configuration",
"optimizing-javascript-loading",
"profiling",
"profiling"
],
"JavaScript Runtime": ["javascript-environment", "timers", "hermes"],
"Codegen": [
Expand Down

0 comments on commit 36d4c42

Please sign in to comment.