Skip to content

Commit dc43d3c

Browse files
committed
feat: added dark mode to docs closes #1031
1 parent c83b7e3 commit dc43d3c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/index.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css" title="dark" disabled>
1515
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css" title="buble" disabled>
1616
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css" title="pure" disabled>
17+
1718
<script src="//cdn.jsdelivr.net/npm/docsify-plugin-codefund/index.js"></script>
19+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/dist/style.css"/>
1820
<style>
1921
nav.app-nav li ul {
2022
min-width: 100px;
@@ -62,6 +64,11 @@
6264
'/': 'Search'
6365
}
6466
},
67+
darkMode: {
68+
light: {
69+
toggleBtnBg: '#42b983'
70+
}
71+
},
6572
formatUpdated: '{MM}/{DD} {HH}:{mm}',
6673
plugins: [
6774
function (hook, vm) {
@@ -92,7 +99,7 @@
9299
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
93100
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script>
94101
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-nginx.min.js"></script>
95-
102+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js"></script>
96103
<script>
97104
((window.gitter = {}).chat = {}).options = {
98105
room: 'docsifyjs/Lobby'

0 commit comments

Comments
 (0)