Skip to content

Commit b849bdf

Browse files
patrycjakalinskakkafar
authored andcommitted
docs: Manage system color scheme changes (#2440)
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)
1 parent 5359e4e commit b849bdf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/docusaurus.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ const config = {
4646
{ name: 'og:image:width', content: '1200' },
4747
{ name: 'og:image:height', content: '630' },
4848
],
49+
colorMode: {
50+
respectPrefersColorScheme: true,
51+
},
4952
navbar: {
5053
hideOnScroll: true,
5154
logo: {

0 commit comments

Comments
 (0)