Comments (4)
@mr-hope/vuepress-plugin-theme-color
is exactly what you want.
The plugin is providing you a <ThemeColor />
component. Place it where you want in you layout. And add
themeColor:{
allowDarkmode:true
}
in your themeConfig.
from vuepress-theme-hope.
Cool, love it! Thank you! ❤️
from vuepress-theme-hope.
The issue was fixed in 0.1.0-rc.8
. 😃
from vuepress-theme-hope.
I rebuild the theme-color and darkmode in 0.1.0-rc.9
.
Now the feature is based on css vars, and fully support with prefer-color-scheme
.
The plugin @mr-hope/vuepress-plugin-theme-color
is removed, and will drop support in the furture.
If you want this feature, you can try the new version 0.1.0-rc.9
, or you can fork this project and make a plugin of your own.
Besides, I will make a PR to the offical and let the official theme support this feature.
from vuepress-theme-hope.
Related Issues (20)
- [Bug]关于下一篇/页的三个问题 HOT 2
- [Bug] New media brings error HOT 1
- [Bug] Unable to Display Page Views on Blog Homepage HOT 6
- [Bug] 初始化在vp-blog-hero中插入元素会消失 HOT 2
- [Bug] webpackMode Configuration Warning with @vuepress/plugin-comment HOT 1
- [Bug] 修整默认项目 GitHub Actions 推送触发器的分支名称 HOT 1
- [Bug] Firefox Android 滑动时,返回到顶部按钮不会随文章变化 HOT 1
- [Bug]Mailto:[email protected] is no longer worked after upgrade to 2.0.0-rc.22 HOT 5
- [Feature Request] Improve VidStack component HOT 1
- [Bug] revealjs has issues under webpack with pnpm
- [Bug] Search pro popup is broken on mobile
- [Bug] How to add mailto links for the Navbar link? HOT 1
- [Bug] code tabs in details block have extra `:::` HOT 2
- [Bug] 文章右側標題 hash 連結無法滾動 HOT 1
- [Bug] Critical: After Upgrade to v2.0.0-rc.35, failed to use subtitle to scroll HOT 1
- [Bug] Failed to parse `composables/katex.js`
- [Bug] 无法关闭访问量 HOT 4
- [Bug] Bold in the hint box doesn't work in some browsers HOT 4
- [Bug] ArtPlayer error HOT 2
- [User Question] HOT 1
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 vuepress-theme-hope.