Comments (2)
我用的第二种,动态添加class的。暗黑模式下body会多一个'dark-theme'的class。
根据这个文档,你要写的css选择器应该是
body.dark-theme{
/* 常规颜色 */
--waline-white: #000;
--waline-light-grey: #666;
--waline-dark-grey: #999;
/* 布局颜色 */
--waline-color: #888;
--waline-bgcolor: #1e1e1e;
--waline-bgcolor-light: #272727;
--waline-border-color: #333;
--waline-disable-bgcolor: #444;
--waline-disable-color: #272727;
/* 特殊颜色 */
--waline-bq-color: #272727;
/* 其他颜色 */
--waline-info-bgcolor: #272727;
--waline-info-color: #666;
}
from hexo-theme-chic.
谢谢!!
from hexo-theme-chic.
Related Issues (20)
- 页面展开的地方函数调用错误 HOT 1
- 页面Cannot GET / 及404 HOT 1
- category丢失问题 HOT 2
- moment.js 時間格式 HOT 3
- 图片链接与Typora软件的适配问题
- toc栏折叠后点击小标题闪烁 HOT 1
- 控制台的一个报错
- 按照文档中的方法设置全局默认黑色主题后,在页面间切换时会有白屏一闪而过
- 图片放大 HOT 1
- 排版缩进错误:「消除#号后的标题」与 「正文」没对齐 HOT 2
- 这里的一行代码我应该改成什么,可以实现当网页在黑夜模式时运行if,否则运行else。 HOT 1
- 请求在 Chic 主题中添加文章内目录功能 HOT 4
- 咨询标签和分类的问题 HOT 5
- 关于iconfont图标没有更换成功的提问 HOT 4
- 如何使在categories页面使post按照时间顺序排列?
- Categories重复显示如何解决? HOT 2
- 实现标签墙功能
- 如何禁用DarkMode? HOT 1
- 实现热力图功能 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-chic.