You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -111,13 +111,30 @@ module.exports = {
111
111
maxSuggestions:10, // Default: 5
112
112
hotKeys: [], // Default: ['s', '/']
113
113
cropLength:50, // Default: 30
114
-
layout:'simple'// Default: "columns"
114
+
layout:'simple', // Default: "columns"
115
+
enableDarkMode:true// Default: false
115
116
}
116
117
]
117
118
]
118
119
}
119
120
```
120
121
122
+
#### Dark mode
123
+
124
+
You can enable dark mode by adding `enableDarkMode: true` to your configuration file.
125
+
126
+
To override the default theme of the searchbar, you can edit your `.vuepress/styles/palette.styl` file.
127
+
A few variables are available :
128
+
129
+
```js
130
+
$msAccentDarkColor
131
+
$msInputDarkBgColor
132
+
$msTextDarkColor
133
+
$borderDarkColor
134
+
```
135
+
136
+
You can also find an example in our [playground's `palette.styl` file](./playground/.vuepress/styles/palette.styl)
137
+
121
138
## Compatibility with MeiliSearch
122
139
123
140
This package only guarantees the compatibility with the [version v0.20.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.20.0).
0 commit comments