From d0cd2c9fdd284fa32049283927df65cd93febbed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B5=E7=90=B3?= <83268912+Dolyn157@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:42:45 +0700 Subject: [PATCH] feat: improve the appearance of theme (#124) Co-authored-by: Dolyn157 --- src/.vitepress/components.d.ts | 16 ++++++++-------- src/.vitepress/theme/style.css | 14 ++++++++++---- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/.vitepress/components.d.ts b/src/.vitepress/components.d.ts index e243519..69e70df 100644 --- a/src/.vitepress/components.d.ts +++ b/src/.vitepress/components.d.ts @@ -7,13 +7,13 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { - AppearanceToggle: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.0_@algolia+client-search@4.24.0_@babel+parse_gm2fnbu3epb4x32gbmiyr3d5ti/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/AppearanceToggle.vue')['default'] - AppFooter: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.0_@algolia+client-search@4.24.0_@babel+parse_gm2fnbu3epb4x32gbmiyr3d5ti/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/AppFooter.vue')['default'] - AppSBox: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.0_@algolia+client-search@4.24.0_@babel+parse_gm2fnbu3epb4x32gbmiyr3d5ti/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/AppSBox.vue')['default'] - ArticlesMenu: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.0_@algolia+client-search@4.24.0_@babel+parse_gm2fnbu3epb4x32gbmiyr3d5ti/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/ArticlesMenu.vue')['default'] - CopyrightInfo: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.0_@algolia+client-search@4.24.0_@babel+parse_gm2fnbu3epb4x32gbmiyr3d5ti/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/CopyrightInfo.vue')['default'] - HomeContent: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.0_@algolia+client-search@4.24.0_@babel+parse_gm2fnbu3epb4x32gbmiyr3d5ti/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/HomeContent.vue')['default'] - PageInfo: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.0_@algolia+client-search@4.24.0_@babel+parse_gm2fnbu3epb4x32gbmiyr3d5ti/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/PageInfo.vue')['default'] - ReadingTime: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.0_@algolia+client-search@4.24.0_@babel+parse_gm2fnbu3epb4x32gbmiyr3d5ti/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/ReadingTime.vue')['default'] + AppearanceToggle: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.1727360260_@algolia+client-search@4.24.0_@ba_muwynviweuyavl3bvvmxcmno2y/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/AppearanceToggle.vue')['default'] + AppFooter: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.1727360260_@algolia+client-search@4.24.0_@ba_muwynviweuyavl3bvvmxcmno2y/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/AppFooter.vue')['default'] + AppSBox: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.1727360260_@algolia+client-search@4.24.0_@ba_muwynviweuyavl3bvvmxcmno2y/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/AppSBox.vue')['default'] + ArticlesMenu: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.1727360260_@algolia+client-search@4.24.0_@ba_muwynviweuyavl3bvvmxcmno2y/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/ArticlesMenu.vue')['default'] + CopyrightInfo: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.1727360260_@algolia+client-search@4.24.0_@ba_muwynviweuyavl3bvvmxcmno2y/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/CopyrightInfo.vue')['default'] + HomeContent: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.1727360260_@algolia+client-search@4.24.0_@ba_muwynviweuyavl3bvvmxcmno2y/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/HomeContent.vue')['default'] + PageInfo: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.1727360260_@algolia+client-search@4.24.0_@ba_muwynviweuyavl3bvvmxcmno2y/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/PageInfo.vue')['default'] + ReadingTime: typeof import('./../../node_modules/.pnpm/@project-trans+vitepress-theme-project-trans@0.4.1727360260_@algolia+client-search@4.24.0_@ba_muwynviweuyavl3bvvmxcmno2y/node_modules/@project-trans/vitepress-theme-project-trans/dist/components/ReadingTime.vue')['default'] } } diff --git a/src/.vitepress/theme/style.css b/src/.vitepress/theme/style.css index d9423cc..6f028fc 100644 --- a/src/.vitepress/theme/style.css +++ b/src/.vitepress/theme/style.css @@ -26,9 +26,9 @@ } .dark:root { - --vp-c-brand-1: #E91E63; - --vp-c-brand-2: #EC407A; - --vp-c-brand-3: #EC407A; + --vp-c-brand-1: #fa7087; + --vp-c-brand-2: #fd88a4; + --vp-c-brand-3: #fd88a4; --vp-c-brand-soft: rgb(183 28 28 / 16%); } @@ -38,7 +38,7 @@ :root { --vp-home-hero-name-color: transparent; - --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #5BCEFA, #F5A9B8, #FFFFFF, #F5A9B8, #5BCEFA); + --vp-home-hero-name-background: -webkit-linear-gradient(110deg, #5BCEFA, #F5A9B8,#F5A9B8, #F5A9B8, #e6cfe6, #F5A9B8,#F5A9B8, #F5A9B8, #5BCEFA); --vp-home-hero-image-background-image: linear-gradient(-45deg, #5BCEFA, #F5A9B8, #FFFFFF, #F5A9B8, #5BCEFA); --vp-home-hero-image-filter: blur(44px); @@ -55,3 +55,9 @@ --vp-home-hero-image-filter: blur(68px); } } + +.dark { + --vp-c-bg: #181715; + --vp-c-bg-soft:#272523; +} +