From 5153e6769141caac7e414c2f6ba888203bcd5ae4 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Wed, 22 Oct 2025 22:09:30 +0800 Subject: [PATCH] docs: Update dark theme logo. (#1412) --- docs/.vitepress/config.mts | 18 +++++++- docs/.vitepress/theme/style.css | 6 +-- docs/public/logo-dark.svg | 79 +++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+), 4 deletions(-) create mode 100644 docs/public/logo-dark.svg diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 82dc08e7..e3e0c704 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -33,6 +33,15 @@ const config: UserConfig = { { rel: "icon", href: "/gpui-component/logo.svg", + media: "(prefers-color-scheme: light)", + }, + ], + [ + "link", + { + rel: "icon", + href: "/gpui-component/logo-dark.svg", + media: "(prefers-color-scheme: dark)", }, ], ], @@ -40,7 +49,14 @@ const config: UserConfig = { plugins: [llmstxt(), tailwindcss()], }, themeConfig: { - logo: "/logo.svg", + logo: { + light: "/logo.svg", + dark: "/logo-dark.svg", + }, + footer: { + message: + "GPUI Component is an open source project under the Apache-2.0 License, developed by Longbridge.", + }, // https://vitepress.dev/reference/default-theme-config nav: [ { text: "Home", link: "/" }, diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index f730def2..26e61f2b 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -41,7 +41,7 @@ --sidebar-ring: oklch(0.708 0 0); --vp-c-bg: var(--background); - --vp-c-bg-alt: var(--secondary); + --vp-c-bg-alt: var(--secondary/75); --vp-c-bg-elv: var(--popover); --vp-c-bg-soft: var(--secondary); @@ -95,11 +95,11 @@ .vp-doc { [class*="language-"] pre { - @apply rounded-md py-3 text-base font-mono; + @apply rounded-md py-5 text-base font-mono; } [class*="language-"] pre code { - @apply px-3; + @apply px-5; } [class*="language-"] > button.copy { diff --git a/docs/public/logo-dark.svg b/docs/public/logo-dark.svg new file mode 100644 index 00000000..0be4f594 --- /dev/null +++ b/docs/public/logo-dark.svg @@ -0,0 +1,79 @@ + + + gpui-component + + + + + + + + + +