Allow users to use dark mode (#1116)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-06 14:11:47 -03:00 • committed by GitHub
commit 20a313c228
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ module.exports = {
[ [
remarkCodeHike, remarkCodeHike,
{ {
theme: "github-light", theme: "github-dark",
showCopyButton: true, showCopyButton: true,
lineNumbers: true, lineNumbers: true,
}, },
@ -112,8 +112,10 @@ module.exports = {
}, },
colorMode: { colorMode: {
defaultMode: "light", defaultMode: "light",
disableSwitch: true, /* Allow users to chose light or dark mode. */
respectPrefersColorScheme: false, disableSwitch: false,
/* Respect user preferences, such as low light mode in the evening */
respectPrefersColorScheme: true,
}, },
announcementBar: { announcementBar: {
content: content: