Closed dong-lufei closed 2 weeks ago
我暂时是通过改变亮暗主题下的 --vp-sidebar-bg-color 变量方式解决的:
:root {
--vp-sidebar-bg-color:#fff;
}
:root.dark{
--vp-sidebar-bg-color:#161618;
}
This is by design. The sidebar bg color is also different from the right side in dark mode.
"此时灰色显得碍眼" is a personal taste. We may update it if there are lots of similar feedback.
For now, updating --vp-sidebar-bg-color
to your own preference is the correct solution.
如下官方中文文档:https://vitepress.dev/zh/guide/custom-theme ,在亮色主题下可看到左侧边栏是灰色,而右侧边栏和网站主题背景色都是白色,此时灰色显得碍眼