Skip to content

Commit a3ae61d

Browse files
committed
feat: add dark mode for site
1 parent 8f88eb8 commit a3ae61d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

index.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<meta name="description" content="LeetCode、剑指Offer、程序员面试金典题解">
99
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
1010
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
11+
<link rel="stylesheet" href="//unpkg.com/docsify-dark-mode@0.6.1/dist/style.css" />
1112
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
1213
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
1314
</head>
@@ -28,10 +29,16 @@
2829
<script>
2930
window.$docsify = {
3031
name: 'leetcode',
31-
repo: 'doocs/leetcode',
32+
// repo: 'doocs/leetcode',
3233
search: [
3334
'/','/solution/','/lcof/','lcci/'
3435
],
36+
// themeColor: '#25798A',
37+
darkMode: {
38+
light: {
39+
toggleBtnBg: '#42b983'
40+
}
41+
},
3542
plugins: [
3643
function (hook) {
3744
var footer = [
@@ -76,5 +83,6 @@
7683
<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
7784
<script src="//unpkg.com/docsify/lib/plugins/emoji.js"></script>
7885
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
86+
<script src="//unpkg.com/docsify-dark-mode@0.6.1/dist/index.js"></script>
7987
</body>
8088
</html>

0 commit comments

Comments
 (0)