Allow users to use dark mode
It is nice to allow users to choose light or dark mode based on their own needs, such as sensitivity to bright light.
This commit is contained in:
parent
650398f2f4
commit
7bdd8652b1
1 changed files with 4 additions and 2 deletions
|
|
@ -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