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,
|
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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue