Allow users to use dark mode (#1116)
This commit is contained in:
commit
20a313c228
1 changed files with 5 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ module.exports = {
|
|||
[
|
||||
remarkCodeHike,
|
||||
{
|
||||
theme: "github-light",
|
||||
theme: "github-dark",
|
||||
showCopyButton: true,
|
||||
lineNumbers: true,
|
||||
},
|
||||
|
|
@ -112,8 +112,10 @@ module.exports = {
|
|||
},
|
||||
colorMode: {
|
||||
defaultMode: "light",
|
||||
disableSwitch: true,
|
||||
respectPrefersColorScheme: false,
|
||||
/* Allow users to chose light or dark mode. */
|
||||
disableSwitch: false,
|
||||
/* Respect user preferences, such as low light mode in the evening */
|
||||
respectPrefersColorScheme: true,
|
||||
},
|
||||
announcementBar: {
|
||||
content:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue