Skip to content

Commit

Permalink
docs: Manage system color scheme changes (#2440)
Browse files Browse the repository at this point in the history
This PR introduces persistance between system color theme and user
selected color theme.

Before:

https://github.com/user-attachments/assets/59db2476-31a0-4a86-b04f-91239b4af51e

After:

https://github.com/user-attachments/assets/21a65e4b-826d-4c70-9fdb-8498e891fb75
(cherry picked from commit 5b9b8bd)
  • Loading branch information
patrycjakalinska authored and kkafar committed Oct 25, 2024
1 parent 5359e4e commit b849bdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ const config = {
{ name: 'og:image:width', content: '1200' },
{ name: 'og:image:height', content: '630' },
],
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
hideOnScroll: true,
logo: {
Expand Down

0 comments on commit b849bdf

Please sign in to comment.