1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 10:02:57 +01:00

Respect prefers color scheme (#324)

This commit is contained in:
Iver Karlsbakk Småge 2023-05-09 11:23:21 +02:00 committed by GitHub
parent 89bc0cdcb0
commit 879444fc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,9 @@ module.exports = {
theme: require('prism-react-renderer/themes/dracula'), theme: require('prism-react-renderer/themes/dracula'),
additionalLanguages: ['rust', 'toml'], additionalLanguages: ['rust', 'toml'],
defaultLanguage: 'rust' defaultLanguage: 'rust'
},
colorMode: {
respectPrefersColorScheme: true,
} }
}, },
plugins: ["docusaurus-plugin-sass"], plugins: ["docusaurus-plugin-sass"],