docusaurus dark mode

This commit is contained in:
Shahed Nasser
2022-04-22 13:06:15 +03:00
parent 81fe558c50
commit 5fbfa2a438
4 changed files with 90 additions and 47 deletions
+4 -3
View File
@@ -27,7 +27,8 @@ module.exports = {
themeConfig: {
colorMode: {
defaultMode: 'light',
disableSwitch: true,
disableSwitch: false,
respectPrefersColorScheme: true,
},
algolia: {
apiKey: algoliaApiKey,
@@ -45,9 +46,9 @@ module.exports = {
navbar: {
hideOnScroll: true,
logo: {
alt: "Medusa Commerce",
alt: "Medusa",
src: "img/logo.svg",
srcDark: "img/logo.svg",
srcDark: "img/logo-dark.svg",
width: 100
},
items: [