# Migration from v1

TIP

If and only if you have configured a defaultTheme in the v1 version, you need to know this.

module.exports = {
  theme: 'default-prefers-color-scheme',
  themeConfig: {
-   defaultTheme: 'dark',
+   overrideTheme: 'dark',
  },
- postcss: {
-   plugins: [
-     require('css-prefers-color-scheme/postcss'),
-     require('autoprefixer')
-   ]
- }
}
1
2
3
4
5
6
7
8
9
10
11
12
13