Skip to content

Commit edf351b

Browse files
docs: tweaked color
Signed-off-by: Neko Ayaka <[email protected]> Co-authored-by: Rizumu Ayaka <[email protected]>
1 parent 37c52ce commit edf351b

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
<script setup lang="ts">
2-
import { computed } from 'vue'
3-
import { useData } from 'vitepress'
2+
// import { computed } from 'vue'
3+
// import { useData } from 'vitepress'
44
5-
const { isDark } = useData()
6-
const src = computed(() => isDark.value ? '/logo-dark.png' : '/logo-day.png')
5+
// const { isDark } = useData()
6+
// const src = computed(() => isDark.value ? '/logo-dark.png' : '/logo-day.png')
77
</script>
88

99
<template>
1010
<img
11-
:src="src"
12-
class="VPImage image-src"
11+
src="/logo-light.png"
12+
class="VPImage image-src block dark:hidden"
13+
alt="Hero Image"
14+
>
15+
<img
16+
src="/logo-dark.png"
17+
class="VPImage image-src hidden dark:block"
1318
alt="Hero Image"
1419
>
1520
</template>

docs/.vitepress/theme/styles/vars.css

+8-8
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,23 @@
8282
:root {
8383
--vp-home-hero-name-color: transparent;
8484
--vp-home-hero-name-background: -webkit-linear-gradient(
85-
120deg,
85+
-45deg,
8686
#8d6fc7 40%,
87-
#4fc4d8
87+
#572fbd
8888
);
8989
--vp-home-hero-image-background-image: linear-gradient(
90-
-45deg,
91-
#cdbdea 30%,
92-
rgba(226, 207, 241, 0.56)
90+
180deg,
91+
#d9c9f6 25%,
92+
#c4bbd3
9393
);
9494
--vp-home-hero-image-filter: blur(30px);
9595
}
9696

9797
.dark:root {
9898
--vp-home-hero-image-background-image: linear-gradient(
99-
-45deg,
100-
#251c32 30%,
101-
#382558
99+
180deg,
100+
#402661 30%,
101+
#000000
102102
)
103103
}
104104

docs/public/logo-dark.png

5.92 KB
Loading
File renamed without changes.

0 commit comments

Comments
 (0)