【发布时间】:2023-02-10 20:52:05
【问题描述】:
以前使用 create-next-app,我总是得到一个漂亮的浅色主题“欢迎使用 Next.js”应用程序引导程序,但今天当我使用 create-next-app 初始化 next.js 应用程序时,该应用程序自动使用暗模式,因为这是我的系统偏好。这在以前没有发生过。
我想在不更改系统偏好的情况下删除暗模式并仅保持浅色主题,但我无法做到这一点。
这是我的 package.json:
{
"name": "next-app",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"next": "12.2.3",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"eslint": "8.20.0",
"eslint-config-next": "12.2.3"
}
}
【问题讨论】:
标签: next.js themes create-react-app package.json darkmode