Skip to content

Commit 7e2c39b

Browse files
committed
docs: add icon and color scheme
1 parent b9d6c61 commit 7e2c39b

File tree

4 files changed

+39
-10
lines changed

4 files changed

+39
-10
lines changed

docs/.vitepress/config.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ export default defineConfig({
1212
sitemap: {
1313
hostname: 'https://yunfachi.github.io/denix/'
1414
},
15+
head: [
16+
["link", { rel: "icon", href: "https://raw.githubusercontent.com/yunfachi/denix/master/.github/assets/logo_dark.svg" }],
17+
],
1518
themeConfig: {
19+
logo: {
20+
light: "https://raw.githubusercontent.com/yunfachi/denix/master/.github/assets/logo_light.svg",
21+
dark: "https://raw.githubusercontent.com/yunfachi/denix/master/.github/assets/logo_dark.svg",
22+
},
1623
// https://vitepress.dev/reference/default-theme-config
1724
socialLinks: [
1825
{ icon: "github", link: "https://github.com/yunfachi/denix" }

docs/.vitepress/theme/style.css

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@
4949
--vp-c-default-3: var(--vp-c-gray-3);
5050
--vp-c-default-soft: var(--vp-c-gray-soft);
5151

52-
--vp-c-brand-1: var(--vp-c-indigo-1);
53-
--vp-c-brand-2: var(--vp-c-indigo-2);
54-
--vp-c-brand-3: var(--vp-c-indigo-3);
55-
--vp-c-brand-soft: var(--vp-c-indigo-soft);
56-
5752
--vp-c-tip-1: var(--vp-c-brand-1);
5853
--vp-c-tip-2: var(--vp-c-brand-2);
5954
--vp-c-tip-3: var(--vp-c-brand-3);
@@ -94,16 +89,37 @@
9489
--vp-home-hero-name-color: transparent;
9590
--vp-home-hero-name-background: -webkit-linear-gradient(
9691
120deg,
97-
#bd34fe 30%,
98-
#41d1ff
92+
#95b695 30%,
93+
#6f866f
9994
);
10095

96+
--vp-home-hero-image-filter: blur(44px);
97+
}
98+
99+
.dark {
101100
--vp-home-hero-image-background-image: linear-gradient(
102101
-45deg,
103-
#bd34fe 50%,
104-
#47caff 50%
102+
#6f866f 50%,
103+
#6f866f 50%
105104
);
106-
--vp-home-hero-image-filter: blur(44px);
105+
106+
--vp-c-brand-1: #95b695;
107+
--vp-c-brand-2: #869e86;
108+
--vp-c-brand-3: #6f866f;
109+
--vp-c-brand-soft: var(--vp-c-green-soft);
110+
}
111+
112+
html:not(.dark) {
113+
--vp-home-hero-image-background-image: linear-gradient(
114+
-45deg,
115+
#a7caa7 50%,
116+
#a7caa7 50%
117+
);
118+
119+
--vp-c-brand-1: #6f866f;
120+
--vp-c-brand-2: #869e86;
121+
--vp-c-brand-3: #95b695;
122+
--vp-c-brand-soft: var(--vp-c-green-soft);
107123
}
108124

109125
@media (min-width: 640px) {

docs/src/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ hero:
66
name: "Denix Documentation"
77
text: "Nix Library for Configurations"
88
tagline: "Denix provides tools for creating scalable NixOS and Home Manager configurations with modules, hosts, and rices"
9+
image:
10+
light: https://raw.githubusercontent.com/yunfachi/denix/master/.github/assets/logo_light.svg
11+
dark: https://raw.githubusercontent.com/yunfachi/denix/master/.github/assets/logo_dark.svg
912
actions:
1013
- theme: brand
1114
text: Introduction

docs/src/ru/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ hero:
66
name: "Denix Документация"
77
text: "Библиотека Nix для конфигураций"
88
tagline: Denix предоставляет инструменты для создания масштабируемых конфигураций NixOS и Home Manager с модулями, хостами и райсами
9+
image:
10+
light: https://raw.githubusercontent.com/yunfachi/denix/master/.github/assets/logo_light.svg
11+
dark: https://raw.githubusercontent.com/yunfachi/denix/master/.github/assets/logo_dark.svg
912
actions:
1013
- theme: brand
1114
text: Введение

0 commit comments

Comments
 (0)