Skip to content

Commit 557c913

Browse files
committed
Dark mode config changes
1 parent 629ae73 commit 557c913

File tree

1 file changed

+10
-35
lines changed

1 file changed

+10
-35
lines changed

src/components/ThemeSwitcher.vue

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,15 @@
11
<template>
2-
<a
3-
href="#"
4-
class="text-copy-primary hover:text-gray-600"
5-
@click.prevent="toggleTheme"
6-
>
7-
<svg
8-
v-if="theme === 'theme'"
9-
xmlns="http://www.w3.org/2000/svg"
10-
width="24"
11-
height="24"
12-
fill="none"
13-
stroke="currentColor"
14-
stroke-width="2"
15-
stroke-linecap="round"
16-
stroke-linejoin="round"
17-
class="feather feather-moon"
18-
>
19-
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />
20-
</svg>
21-
<svg
2+
<a href="#" @click.prevent="toggleTheme">
3+
<i
4+
v-if="theme === 'light'"
5+
data-feather="moon"
6+
class="text-liText-ternary-dark hover:text-gray-400 dark:text-liText-ternary-light dark:hover:text-liBorder-primary-light w-5"
7+
></i>
8+
<i
229
v-else
23-
xmlns="http://www.w3.org/2000/svg"
24-
width="24"
25-
height="24"
26-
fill="none"
27-
stroke="currentColor"
28-
stroke-width="2"
29-
stroke-linecap="round"
30-
stroke-linejoin="round"
31-
class="feather feather-sun"
32-
>
33-
<circle cx="12" cy="12" r="5" />
34-
<path
35-
d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"
36-
/>
37-
</svg>
10+
data-feather="sun"
11+
class="text-gray-200 hover:text-gray-50 w-5"
12+
></i>
3813
</a>
3914
</template>
4015

0 commit comments

Comments
 (0)