Skip to content

Commit 8a9468a

Browse files
committed
Add Dark mode support to docs
1 parent 8665e53 commit 8a9468a

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

docs/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
title: 'FeathersVuex',
33
description: 'Integration of FeathersJS, Vue, and Nuxt for the artisan developer',
4+
theme: 'default-prefers-color-scheme',
45
themeConfig: {
56
repo: 'feathers-plus/feathers-vuex',
67
docsDir: 'docs',

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@
119119
"lodash.trim": "^4.5.1",
120120
"serialize-error": "^3.0.0",
121121
"sift": "^7.0.1",
122-
"steal-typescript": "^0.5.0"
122+
"steal-typescript": "^0.5.0",
123+
"vuepress-theme-default-prefers-color-scheme": "^1.0.3"
123124
},
124125
"devDependencies": {
125126
"@feathersjs/authentication-client": "^1.0.11",

yarn.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3697,6 +3697,13 @@ css-parse@~2.0.0:
36973697
dependencies:
36983698
css "^2.0.0"
36993699

3700+
css-prefers-color-scheme@^3.1.1:
3701+
version "3.1.1"
3702+
resolved "https://registry.yarnpkg.com/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz#6f830a2714199d4f0d0d0bb8a27916ed65cff1f4"
3703+
integrity sha512-MTu6+tMs9S3EUqzmqLXEcgNRbNkkD/TGFvowpeoWJn5Vfq7FMgsmRQs9X5NXAURiOBmOxm/lLjsDNXDE6k9bhg==
3704+
dependencies:
3705+
postcss "^7.0.5"
3706+
37003707
css-select-base-adapter@^0.1.1:
37013708
version "0.1.1"
37023709
resolved "https://registry.yarnpkg.com/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz#3b2ff4972cc362ab88561507a95408a1432135d7"
@@ -11208,6 +11215,13 @@ vuepress-plugin-smooth-scroll@^0.0.3:
1120811215
dependencies:
1120911216
smoothscroll-polyfill "^0.4.3"
1121011217

11218+
vuepress-theme-default-prefers-color-scheme@^1.0.3:
11219+
version "1.0.3"
11220+
resolved "https://registry.yarnpkg.com/vuepress-theme-default-prefers-color-scheme/-/vuepress-theme-default-prefers-color-scheme-1.0.3.tgz#85d5872a05b2cdc9ff3d22ba24380699f60fd3ad"
11221+
integrity sha512-CNu+opm+yvdObtzhxa2Mm4d3Ho9aM3NM17RKFpJ77soXeNX7muox+npKTSZiZwY685CFgFAJpSTm01/2f3aPCA==
11222+
dependencies:
11223+
css-prefers-color-scheme "^3.1.1"
11224+
1121111225
vuepress@^1.0.2:
1121211226
version "1.2.0"
1121311227
resolved "https://registry.yarnpkg.com/vuepress/-/vuepress-1.2.0.tgz#2f2cdf337ad40a3e4866dfd33e97b840db386af7"

0 commit comments

Comments
 (0)