【文件属性】:
文件名称:vuepress-theme-default-prefers-color-scheme:为vuepress默认主题添加prefers-color-scheme
文件大小:52KB
文件格式:ZIP
更新时间:2021-02-05 00:47:52
documentation light-theme dark-theme vuepress vuepress-theme
Vuepress主题默认偏好颜色方案
该插件为 1.x默认主题增加了对 -color-scheme的支持。
安装
yarn add vuepress-theme-default-prefers-color-scheme
# or
npm i vuepress-theme-default-prefers-color-scheme
用法
// .vuepress -> config.js
module . exports = {
theme : 'default-prefers-color-scheme'
}
选件
overlayTheme(可选)
强迫用户进入特定主题,而忽略 。
允许值
【文件预览】:
vuepress-theme-default-prefers-color-scheme-master
----index.js(56B)
----docs()
--------zh()
--------.vuepress()
--------migration.md(426B)
--------README.md(2KB)
----package.json(929B)
----layouts()
--------Layout.vue(1KB)
----.github()
--------workflows()
----LICENSE(1KB)
----.npmignore(202B)
----.gitignore(181B)
----CHANGELOG.md(1KB)
----styles()
--------components.styl(4KB)
--------palette.styl(2KB)
--------index.styl(9KB)
----README.md(3KB)