Rename themeConfig.default to themeConfig.defaultTheme

This commit is contained in:
Ariful Alam
2022-03-26 18:23:09 +06:00
parent 59a9a2fac4
commit 4cb107e168
5 changed files with 101 additions and 16 deletions

View File

@@ -147,14 +147,14 @@ const config = {
snippetVersion: 6,
},
themeConfig: {
default: 'light',
defaultTheme: 'light',
// Hides the theme change switch
// Useful if you want to support a single color mode
disableSwitch: false,
// Should we use the prefers-color-scheme media-query,
// using user system preferences, instead of the hardcoded default
// using user system preferences, instead of the hardcoded defaultTheme
respectPrefersColorScheme: true,
// Available themes. To remove any theme, exclude from here.
@@ -220,7 +220,7 @@ The default theme can be specified.
module.exports = {
// ...
themeConfig: {
default: 'light',
defaultTheme: 'light',
// ...
},
};