Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(site): polish dark theme, typography, and docs nav

t8y2d766228bb670
diff --git a/docs/app/(root)/layout.tsx b/docs/app/(root)/layout.tsx
index fe615232e0..ac30c319ae 100644
--- a/docs/app/(root)/layout.tsx
+++ b/docs/app/(root)/layout.tsx
@@ -25,7 +25,7 @@ export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
viewportFit: "cover",
- themeColor: "#08080a",
+ themeColor: "#161616",
colorScheme: "dark light",
};
diff --git a/docs/app/[lang]/changelog/page.tsx b/docs/app/[lang]/changelog/page.tsx
index 77102528e6..c509e7e6ff 100644
--- a/docs/app/[lang]/changelog/page.tsx
+++ b/docs/app/[lang]/changelog/page.tsx
@@ -37,7 +37,7 @@ export default async function ChangelogPage({ params }: { params: Promise<{ lang
const initialData = await loadChangelogBootstrap(changelogDataLang(l));
return (
- <main className="min-h-screen bg-[#08080a] text-landing-ink">
+ <main className="min-h-screen bg-landing-bg text-landing-ink">
<LandingNav lang={l} active="changelog" />
{/* 视觉隐藏:页面不再展示大标题,但保留语义 landmark 与 SEO */}
diff --git a/docs/app/[lang]/community/page.tsx b/docs/app/[lang]/community/page.tsx
index a0bf26dc4a..731854e219 100644
--- a/docs/app/[lang]/community/page.tsx
+++ b/docs/app/[lang]/community/page.tsx
@@ -104,7 +104,7 @@ export default async function CommunityPage({ params }: { params: Promise<{ lang
const t = i18n[l];
return (
- <main className="min-h-screen bg-[#08080a] text-landing-ink">
+ <main className="min-h-screen bg-landing-bg text-landing-ink">
<LandingNav lang={l} active="community" />
<div className="max-w-[860px] mx-auto px-6 pt-32 pb-4 max-[760px]:px-[18px] max-[760px]:pt-28">
diff --git a/docs/app/[lang]/contributors/page.tsx b/docs/app/[lang]/contributors/page.tsx
index 227dd6c88b..ef955e1541 100644
--- a/docs/app/[lang]/contributors/page.tsx
+++ b/docs/app/[lang]/contributors/page.tsx
@@ -37,7 +37,7 @@ export default async function ContributorsPage({ params }: { params: Promise<{ l
const data = contributorSnapshot as ContributorActivityData;
return (
- <main className="landing min-h-screen bg-[#08080a]">
+ <main className="landing min-h-screen bg-landing-bg">
<LandingNav lang={locale} active="contributors" />
<ContributorsExperience data={data} lang={locale} />
<LandingFooter lang={locale} />
diff --git a/docs/app/[lang]/databases/page.tsx b/docs/app/[lang]/databases/page.tsx
index 560878ccff..65ffff3431 100644
--- a/docs/app/[lang]/databases/page.tsx
+++ b/docs/app/[lang]/databases/page.tsx
@@ -50,7 +50,7 @@ export default async function DatabasesPage({ params }: { params: Promise<{ lang
const t = i18n[l];
return (
- <main className="min-h-screen bg-[#08080a] text-landing-ink">
+ <main className="min-h-screen bg-landing-bg text-landing-ink">
<LandingNav lang={l} active="databases" />
{/* Hero */}
diff --git a/docs/app/[lang]/docs/layout.tsx b/docs/app/[lang]/docs/layout.tsx
index ac464f3237..845bcb9b5f 100644
--- a/docs/app/[lang]/docs/layout.tsx
+++ b/docs/app/[lang]/docs/layout.tsx
@@ -33,7 +33,7 @@ export default async function Layout({ params, children }: { params: Promise<{ l
themeSwitch={{ enabled: false }}
sidebar={{
defaultOpenLevel: 1,
- footer: <DocsSidebarFooter key="docs-sidebar-footer" />,
+ footer: <DocsSidebarFooter key="docs-sidebar-footer" lang={locale} />,
}}
>
{children}
diff --git a/docs/app/[lang]/drivers/DriversClient.tsx b/docs/app/[lang]/drivers/DriversClient.tsx
index 42fb3627ef..876e780862 100644
--- a/docs/app/[lang]/drivers/DriversClient.tsx
+++ b/docs/app/[lang]/drivers/DriversClient.tsx
@@ -423,7 +423,7 @@ export function DriversClient({ initialCatalog }: { initialCatalog: AgentDownloa
className="h-8 min-w-[190px] rounded-[6px] border border-landing-line bg-black/10 px-2.5 text-xs text-landing-ink outline-none transition-colors focus:border-landing-blue max-[760px]:w-full"
>
{group.options.map((option) => (
- <option key={nativeKey(option)} value={option.platformKey} className="bg-[#121317] text-landing-ink">
+ <option key={nativeKey(option)} value={option.platformKey} className="bg-[#202123] text-landing-ink">
{option.platformLabel}
</option>
))}
diff --git a/docs/app/[lang]/layout.tsx b/docs/app/[lang]/layout.tsx
index 188ca1404a..b4e0d82236 100644
--- a/docs/app/[lang]/layout.tsx
+++ b/docs/app/[lang]/layout.tsx
@@ -52,7 +52,7 @@ export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
viewportFit: "cover",
- themeColor: "#08080a",
+ themeColor: "#161616",
colorScheme: "dark light",
};
diff --git a/docs/app/[lang]/page.tsx b/docs/app/[lang]/page.tsx
index 0b053a82ee..5c0ff173af 100644
--- a/docs/app/[lang]/page.tsx
+++ b/docs/app/[lang]/page.tsx
@@ -22,6 +22,12 @@ import { ArrowRight, Bot, Database, FileCode, GitCompare, Network, Search, Shiel
import { resolveLang, type DocsLang } from "@/lib/i18n";
function formatStars(count: number) {
+ // 五位数起按整千四舍五入:19,754 → "20k+"。上万后一位小数没有意义,
+ // 卡片上显示 "19.8k+" 不如 "20k+" 直观。
+ if (count >= 10000) {
+ return `${Math.round(count / 1000)}k+`;
+ }
+
if (count >= 1000) {
return `${(Math.floor(count / 100) / 10).toFixed(1)}k+`;
}
@@ -34,13 +40,13 @@ function metrics(starLabel: string) {
en: [
{ value: "~25 MB", label: "desktop installer" },
{ value: "90+", label: "database engines" },
- { value: "2 modes", label: "desktop and Docker" },
+ { value: "3 modes", label: "desktop, Docker and CLI" },
{ value: starLabel, label: "GitHub stars, fully open-source" },
],
cn: [
{ value: "~25 MB", label: "桌面安装包" },
{ value: "90+", label: "数据库引擎" },
- { value: "2 种模式", label: "桌面与 Docker" },
+ { value: "3 种模式", label: "桌面、Docker 与 CLI" },
{ value: starLabel, label: "GitHub Star,完全开源" },
],
};
@@ -681,7 +687,7 @@ export default async function LandingPage({ params }: { params: Promise<{ lang:
{/* Sponsor */}
<RevealSection className="max-w-[1180px] mx-auto px-7 mt-10 max-[760px]:px-[18px]">
- <p className="m-0 text-xs font-[720] uppercase tracking-[0.18em] text-landing-blue">{t.sponsorsLabel}</p>
+ <p className="m-0 text-center text-[15px] font-[720] uppercase tracking-[0.18em] text-landing-blue">{t.sponsorsLabel}</p>
<div className="landing-sponsor-grid mt-3 grid grid-cols-2 gap-4 max-[900px]:grid-cols-1">
{sponsorItems.map((sponsor) => (
<Link key={sponsor.name} href={sponsor.href} target="_blank" rel="noopener noreferrer" className="landing-sponsor-card flex min-h-[154px] items-center gap-5 rounded-[10px] border border-landing-line bg-landing-panel px-5 py-4 transition-colors hover:border-landing-blue max-[560px]:block">
@@ -701,7 +707,7 @@ export default async function LandingPage({ params }: { params: Promise<{ lang:
</Link>
))}
</div>
- <p className="m-0 mt-9 text-xs font-[720] uppercase tracking-[0.18em] text-landing-blue">{t.partnersLabel}</p>
+ <p className="m-0 mt-9 text-center text-[15px] font-[720] uppercase tracking-[0.18em] text-landing-blue">{t.partnersLabel}</p>
<div className="landing-sponsor-grid mt-3 grid grid-cols-2 gap-4 max-[900px]:grid-cols-1">
{partnerItems.map((sponsor) => (
<Link key={sponsor.name} href={sponsor.href} target="_blank" rel="noopener noreferrer" className="landing-sponsor-card flex min-h-[154px] items-center gap-5 rounded-[10px] border border-landing-line bg-landing-panel px-5 py-4 transition-colors hover:border-landing-blue max-[560px]:block">
diff --git a/docs/app/[lang]/plugins/PluginsClient.tsx b/docs/app/[lang]/plugins/PluginsClient.tsx
index 038fc51b36..6cc511a746 100644
--- a/docs/app/[lang]/plugins/PluginsClient.tsx
+++ b/docs/app/[lang]/plugins/PluginsClient.tsx
@@ -68,7 +68,7 @@ export function PluginsClient({ lang, initialPlugins }: { lang: DocsLang; initia
}, []);
return (
- <main className="min-h-screen bg-[#08080a] text-landing-ink">
+ <main className="min-h-screen bg-landing-bg text-landing-ink">
<LandingNav lang={lang} active="plugins" />
<section className="max-w-[1180px] mx-auto px-6 pt-32 pb-24">
diff --git a/docs/app/[lang]/plugins/[id]/PluginDetailClient.tsx b/docs/app/[lang]/plugins/[id]/PluginDetailClient.tsx
index 82ff8c217e..01eea9ed9c 100644
--- a/docs/app/[lang]/plugins/[id]/PluginDetailClient.tsx
+++ b/docs/app/[lang]/plugins/[id]/PluginDetailClient.tsx
@@ -197,7 +197,7 @@ export function PluginDetailClient({
}
return (
- <main className="min-h-screen bg-[#08080a] text-landing-ink">
+ <main className="min-h-screen bg-landing-bg text-landing-ink">
<LandingNav lang={lang} active="plugins" />
<section className="max-w-[1180px] mx-auto px-6 pt-32 pb-24">
diff --git a/docs/app/[lang]/sponsors/page.tsx b/docs/app/[lang]/sponsors/page.tsx
index c528bb85a0..f6bbfe91fb 100644
--- a/docs/app/[lang]/sponsors/page.tsx
+++ b/docs/app/[lang]/sponsors/page.tsx
@@ -156,7 +156,7 @@ export default async function SponsorsPage({ params }: { params: Promise<{ lang:
];
return (
- <main className="min-h-screen bg-[#08080a] text-landing-ink">
+ <main className="min-h-screen bg-landing-bg text-landing-ink">
<LandingNav lang={locale} active="sponsors" />
<section className="max-w-[1180px] mx-auto px-6 pt-32 pb-24">
diff --git a/docs/app/global.css b/docs/app/global.css
index f064f03197..a024d85391 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -23,6 +23,7 @@
}
@theme {
+ --color-landing-bg: #161616;
--color-landing-ink: #ededf0;
--color-landing-muted: #9c9ea3;
--color-landing-blue: #6ea8ff;
@@ -30,8 +31,8 @@
--color-landing-green: #44d19d;
--color-landing-line: rgba(173, 176, 182, 0.18);
--color-landing-soft: rgba(255, 255, 255, 0.05);
- --color-landing-panel: rgba(19, 20, 23, 0.84);
- --color-landing-panel-strong: rgba(25, 26, 30, 0.94);
+ --color-landing-panel: rgba(36, 37, 40, 0.84);
+ --color-landing-panel-strong: rgba(43, 44, 48, 0.94);
}
:root {
@@ -57,31 +58,36 @@
--dbx-blue: #171717;
--dbx-sky: #737373;
--dbx-green: #525252;
+ --dbx-code-bg: #0a0a0a;
}
+/* 深色版整体比亮色版抬一档:底色对齐 landing 的 --color-landing-bg,
+ 其余灰阶按同样的 +17 平移,保持 fumadocs 原有的层级关系。 */
.dark {
- --color-fd-background: #050505;
+ --color-fd-background: #161616;
--color-fd-foreground: #fafafa;
- --color-fd-muted: #141414;
+ --color-fd-muted: #252525;
--color-fd-muted-foreground: #999;
- --color-fd-popover: #0a0a0a;
+ --color-fd-popover: #1b1b1b;
--color-fd-popover-foreground: #fafafa;
- --color-fd-card: #0a0a0a;
+ --color-fd-card: #1b1b1b;
--color-fd-card-foreground: #fafafa;
--color-fd-border: #80808033;
--color-fd-primary: #fafafa;
- --color-fd-primary-foreground: #171717;
- --color-fd-secondary: #212121;
+ --color-fd-primary-foreground: #282828;
+ --color-fd-secondary: #323232;
--color-fd-secondary-foreground: #fafafa;
- --color-fd-accent: #262626;
+ --color-fd-accent: #373737;
--color-fd-accent-foreground: #fff;
--color-fd-ring: #595959;
- --dbx-surface: #0a0a0a;
- --dbx-surface-soft: #141414;
+ --dbx-surface: #1b1b1b;
+ --dbx-surface-soft: #252525;
--dbx-line: var(--color-fd-border);
--dbx-blue: #fafafa;
--dbx-sky: #999;
--dbx-green: #d4d4d4;
+ /* 代码块比底色高一档(原来是 #050505 上的 #0a0a0a),跟着一起抬 */
+ --dbx-code-bg: #1b1b1b;
}
html {
@@ -117,6 +123,14 @@ button {
background: var(--color-fd-background);
}
+/* landing 页面(根容器带 .landing 或 bg-landing-bg)要连 html 画布一起变深,
+ 否则移动端上拉/橡皮筋回弹会露出亮色主题的 #fafafa。
+ /docs 走 fumadocs 自己的主题,页面里没有这两个容器,不受影响。 */
+html:has(:is(.landing, .bg-landing-bg)),
+body:has(:is(.landing, .bg-landing-bg)) {
+ background: var(--color-landing-bg);
+}
+
::selection {
background: color-mix(in srgb, var(--color-fd-primary) 18%, transparent);
}
@@ -206,7 +220,7 @@ article tr:last-child td {
article pre {
border: 1px solid color-mix(in srgb, var(--color-fd-border) 70%, transparent);
border-radius: 10px;
- background: #0a0a0a !important;
+ background: var(--dbx-code-bg) !important;
margin: 1rem 0 1.35rem;
padding: 0.9rem 0;
overflow-x: auto;
@@ -236,7 +250,7 @@ article pre .line {
article figure.shiki {
border-color: color-mix(in srgb, var(--color-fd-border) 74%, transparent);
border-radius: 9px;
- background: #0a0a0a !important;
+ background: var(--dbx-code-bg) !important;
margin: 0.85rem 0 1.05rem;
box-shadow: 0 12px 28px color-mix(in srgb, black 12%, transparent);
}
@@ -330,6 +344,24 @@ aside a[href*="/docs/"][class*="rounded-lg"][aria-current="page"] {
padding: 0.8rem 1rem 0;
}
+.dbx-docs-sidebar-sites {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.3rem 0.85rem;
+ margin-bottom: 0.7rem;
+ font-size: 0.8125rem;
+ line-height: 1.5;
+}
+
+.dbx-docs-sidebar-sites a {
+ color: var(--color-fd-muted-foreground);
+ transition: color 0.15s ease;
+}
+
+.dbx-docs-sidebar-sites a:hover {
+ color: var(--color-fd-foreground);
+}
+
.dbx-docs-sidebar-tools {
display: flex;
align-items: center;
@@ -375,7 +407,7 @@ a {
--landing-max: 1180px;
min-height: 100vh;
color: var(--color-landing-ink);
- background: #08080a;
+ background: var(--color-landing-bg);
overflow: hidden;
position: relative;
/* 建立层叠上下文,使 position:fixed 的负 z-index 星空层被约束在本页背景之上
@@ -499,7 +531,7 @@ a {
.landing-nav.is-scrolled {
border-bottom-color: var(--color-landing-line);
- background: color-mix(in srgb, #0c0d10 44%, transparent);
+ background: color-mix(in srgb, #1a1b1c 44%, transparent);
}
.landing-nav.is-scrolled::before {
@@ -508,7 +540,7 @@ a {
.landing-nav.is-menu-open {
border-bottom-color: var(--color-landing-line);
- background: rgba(9, 10, 12, 0.94);
+ background: rgba(23, 24, 24, 0.94);
}
.landing-nav.is-menu-open::before {
@@ -558,7 +590,7 @@ a {
border: 1px solid var(--color-landing-line);
border-radius: 0 0 16px 16px;
z-index: 1;
- background: #08080a;
+ background: var(--color-landing-bg);
box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
opacity: 0;
transform: translateY(-12px);
@@ -612,8 +644,8 @@ a {
position: absolute;
inset: 0;
background:
- radial-gradient(ellipse at 50% 34%, rgba(44, 88, 174, 0.42), transparent 52%), radial-gradient(ellipse at 18% 16%, rgba(82, 213, 255, 0.13), transparent 34%), radial-gradient(ellipse at 76% 22%, rgba(68, 209, 157, 0.1), transparent 30%),
- linear-gradient(180deg, rgba(8, 8, 10, 0.28) 0%, rgba(13, 14, 18, 0.78) 48%, rgba(8, 8, 10, 0.36) 82%, rgba(8, 8, 10, 0.18) 100%);
+ radial-gradient(ellipse at 50% 34%, rgba(44, 88, 174, 0.16), transparent 52%), radial-gradient(ellipse at 18% 16%, rgba(82, 213, 255, 0.06), transparent 34%), radial-gradient(ellipse at 76% 22%, rgba(68, 209, 157, 0.05), transparent 30%),
+ linear-gradient(180deg, rgba(22, 22, 22, 0.28) 0%, rgba(27, 28, 30, 0.78) 48%, rgba(22, 22, 22, 0.36) 82%, rgba(22, 22, 22, 0.18) 100%);
z-index: -3;
}
@@ -621,7 +653,7 @@ a {
content: "";
position: absolute;
inset: 134px -12vw -140px;
- background-image: linear-gradient(rgba(110, 168, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 168, 255, 0.08) 1px, transparent 1px);
+ background-image: linear-gradient(rgba(110, 168, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 168, 255, 0.05) 1px, transparent 1px);
background-size: 58px 58px;
mask-image: radial-gradient(ellipse at 50% 56%, black 0%, transparent 64%);
opacity: 0.5;
@@ -638,8 +670,8 @@ a {
width: min(980px, 82vw);
height: 720px;
border-radius: 999px;
- background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.16), transparent 12%), radial-gradient(circle at 46% 38%, rgba(82, 213, 255, 0.2), transparent 34%), radial-gradient(circle at 58% 52%, rgba(110, 168, 255, 0.16), transparent 60%);
- filter: blur(52px);
+ background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.1), transparent 12%), radial-gradient(circle at 46% 38%, rgba(82, 213, 255, 0.08), transparent 34%), radial-gradient(circle at 58% 52%, rgba(110, 168, 255, 0.06), transparent 60%);
+ filter: blur(72px);
mix-blend-mode: screen;
pointer-events: none;
transform: translateX(-50%);
@@ -808,7 +840,7 @@ a {
.landing-product {
border: 1px solid var(--color-landing-line);
- background: #0e0f12;
+ background: #1c1d1e;
box-shadow:
0 38px 110px rgba(0, 0, 0, 0.5),
0 0 80px rgba(82, 213, 255, 0.1),
@@ -908,7 +940,7 @@ a {
.landing-glass-card {
border: 1px solid rgba(173, 176, 182, 0.14);
- background: radial-gradient(circle at 78% 12%, rgba(110, 168, 255, 0.12), transparent 44%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), rgba(15, 16, 19, 0.72);
+ background: radial-gradient(circle at 78% 12%, rgba(110, 168, 255, 0.12), transparent 44%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), rgba(29, 30, 31, 0.72);
box-shadow:
0 18px 44px rgba(0, 0, 0, 0.14),
0 0 0 1px rgba(255, 255, 255, 0.02) inset;
@@ -916,7 +948,7 @@ a {
.landing-glass-card-green {
border: 1px solid rgba(173, 176, 182, 0.14);
- background: radial-gradient(circle at 78% 16%, rgba(68, 209, 157, 0.1), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), rgba(15, 16, 19, 0.72);
+ background: radial-gradient(circle at 78% 16%, rgba(68, 209, 157, 0.1), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), rgba(29, 30, 31, 0.72);
box-shadow:
0 18px 44px rgba(0, 0, 0, 0.14),
0 0 0 1px rgba(255, 255, 255, 0.02) inset;
@@ -961,7 +993,7 @@ a {
.landing-db-card {
border: 1px solid rgba(173, 176, 182, 0.14);
- background: radial-gradient(circle at 50% 112%, color-mix(in srgb, var(--db-tone) 20%, transparent), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), rgba(15, 16, 19, 0.74);
+ background: radial-gradient(circle at 50% 112%, color-mix(in srgb, var(--db-tone) 20%, transparent), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), rgba(29, 30, 31, 0.74);
box-shadow:
0 18px 44px rgba(0, 0, 0, 0.15),
0 0 0 1px rgba(255, 255, 255, 0.02) inset;
@@ -973,7 +1005,7 @@ a {
.landing-db-card:hover {
border-color: color-mix(in srgb, var(--db-tone) 42%, rgba(173, 176, 182, 0.18));
- background: radial-gradient(circle at 50% 112%, color-mix(in srgb, var(--db-tone) 26%, transparent), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024)), rgba(20, 21, 24, 0.9);
+ background: radial-gradient(circle at 50% 112%, color-mix(in srgb, var(--db-tone) 26%, transparent), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024)), rgba(34, 35, 36, 0.9);
transform: translateY(-3px);
}
@@ -982,7 +1014,7 @@ a {
}
.landing-db-icon span {
- background: color-mix(in srgb, var(--db-tone) 78%, #121317);
+ background: color-mix(in srgb, var(--db-tone) 78%, #202123);
box-shadow: 0 10px 20px color-mix(in srgb, var(--db-tone) 22%, transparent);
}
@@ -1001,12 +1033,12 @@ a {
.landing-testimonial-wall::before {
left: 0;
- background: linear-gradient(90deg, #08080a, rgba(8, 8, 10, 0));
+ background: linear-gradient(90deg, var(--color-landing-bg), color-mix(in srgb, var(--color-landing-bg) 0%, transparent));
}
.landing-testimonial-wall::after {
right: 0;
- background: linear-gradient(270deg, #08080a, rgba(8, 8, 10, 0));
+ background: linear-gradient(270deg, var(--color-landing-bg), color-mix(in srgb, var(--color-landing-bg) 0%, transparent));
}
.landing-testimonial-marquee[data-speed="slow"] {
@@ -1139,7 +1171,7 @@ a {
height: 58px;
border-radius: 50%;
border: 1.5px solid rgba(173, 176, 182, 0.16);
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(15, 16, 19, 0.78);
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(29, 30, 31, 0.78);
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.18),
0 0 0 1px rgba(255, 255, 255, 0.03) inset;
@@ -1524,7 +1556,7 @@ a {
.landing-hero::before {
right: 0;
- background: radial-gradient(circle at 50% 18%, rgba(82, 213, 255, 0.18), transparent 280px), radial-gradient(circle at 76% 26%, rgba(68, 209, 157, 0.08), transparent 220px), linear-gradient(180deg, #0b0c0f 0%, #0d0e12 44%, #0b0c0f 94%);
+ background: radial-gradient(circle at 50% 18%, rgba(82, 213, 255, 0.08), transparent 280px), radial-gradient(circle at 76% 26%, rgba(68, 209, 157, 0.04), transparent 220px), linear-gradient(180deg, #191a1b 0%, #1b1c1e 44%, #191a1b 94%);
}
.landing-hero::after {
@@ -1720,12 +1752,12 @@ a {
}
.issue-page {
- --issue-ink: #ededf0;
- --issue-muted: #9c9ea3;
- --issue-line: rgba(173, 176, 182, 0.18);
- --issue-panel: rgba(19, 20, 23, 0.84);
+ --issue-ink: var(--color-landing-ink);
+ --issue-muted: var(--color-landing-muted);
+ --issue-line: var(--color-landing-line);
+ --issue-panel: var(--color-landing-panel);
min-height: 100vh;
- background: #08080a;
+ background: var(--color-landing-bg);
}
.issue-page::before,
@@ -1849,7 +1881,7 @@ a {
border: 1px solid rgba(173, 176, 182, 0.22);
border-radius: 9px;
outline: none;
- background: rgba(8, 9, 11, 0.72);
+ background: rgba(22, 23, 23, 0.72);
color: var(--issue-ink);
font-size: 14px;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
@@ -1956,7 +1988,7 @@ a {
aspect-ratio: 16 / 10;
border: 1px solid var(--issue-line);
border-radius: 8px;
- background: #07080b;
+ background: #151617;
overflow: hidden;
}
diff --git a/docs/app/not-found.tsx b/docs/app/not-found.tsx
index 78909f252a..e04402557a 100644
--- a/docs/app/not-found.tsx
+++ b/docs/app/not-found.tsx
@@ -20,7 +20,7 @@ export default function NotFound() {
display: "flex",
alignItems: "center",
justifyContent: "center",
- background: "#08080a",
+ background: "#161616",
color: "#ededf0",
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif',
textAlign: "center",
@@ -30,7 +30,7 @@ export default function NotFound() {
>
{/* No root layout on this route, so global.css may be absent (next dev):
reset the default body margin/background inline instead. */}
- <style dangerouslySetInnerHTML={{ __html: "html,body{margin:0;padding:0;background:#08080a}" }} />
+ <style dangerouslySetInnerHTML={{ __html: "html,body{margin:0;padding:0;background:#161616}" }} />
<div>
<p style={{ margin: 0, fontSize: "clamp(72px, 14vw, 140px)", fontWeight: 800, lineHeight: 1, letterSpacing: "-0.03em" }}>404</p>
<h1 style={{ margin: "18px 0 8px", fontSize: 21, fontWeight: 720 }}>页面不存在</h1>
diff --git a/docs/components/DocsSidebarFooter.tsx b/docs/components/DocsSidebarFooter.tsx
index b6308b7948..d1c11ae6bf 100644
--- a/docs/components/DocsSidebarFooter.tsx
+++ b/docs/components/DocsSidebarFooter.tsx
@@ -1,11 +1,19 @@
"use client";
+import Link from "next/link";
import { Languages } from "lucide-react";
import { LanguageSelect } from "fumadocs-ui/layouts/shared/slots/language-select";
import { ThemeSwitch } from "fumadocs-ui/layouts/shared/slots/theme-switch";
+import type { DocsLang } from "@/lib/i18n";
const iconButton = "inline-flex size-8 items-center justify-center rounded-md text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground";
+// 文案与 LandingNav 保持一致;文档区没有横向主导航,这里补回站内入口。
+const i18n: Record<DocsLang, { navLabel: string; home: string; plugins: string; changelog: string; drivers: string }> = {
+ en: { navLabel: "Site navigation", home: "Home", plugins: "Plugins", changelog: "Changelog", drivers: "Offline Drivers" },
+ cn: { navLabel: "站内导航", home: "首页", plugins: "插件", changelog: "更新日志", drivers: "离线驱动" },
+};
+
function GithubIcon() {
return (
<svg role="img" viewBox="0 0 24 24" fill="currentColor" className="size-4.5">
@@ -61,9 +69,24 @@ export function DocsSidebarLanguageButton() {
);
}
-export function DocsSidebarFooter() {
+export function DocsSidebarFooter({ lang }: { lang: DocsLang }) {
+ const t = i18n[lang];
+ const siteLinks = [
+ { href: `/${lang}`, label: t.home },
+ { href: `/${lang}/plugins`, label: t.plugins },
+ { href: `/${lang}/changelog`, label: t.changelog },
+ { href: `/${lang}/drivers`, label: t.drivers },
+ ];
+
return (
<div className="dbx-docs-sidebar-footer">
+ <nav className="dbx-docs-sidebar-sites" aria-label={t.navLabel}>
+ {siteLinks.map((link) => (
+ <Link key={link.href} href={link.href} prefetch={false}>
+ {link.label}
+ </Link>
+ ))}
+ </nav>
<div className="dbx-docs-sidebar-tools">
<div className="flex items-center gap-1">
<a className={iconButton} href="https://github.com/t8y2/dbx" target="_blank" rel="noreferrer" aria-label="GitHub">
diff --git a/docs/components/contributors/ContributorsExperience.module.css b/docs/components/contributors/ContributorsExperience.module.css
index d3d270916d..f8788ea0b6 100644
--- a/docs/components/contributors/ContributorsExperience.module.css
+++ b/docs/components/contributors/ContributorsExperience.module.css
@@ -9,7 +9,7 @@
overflow: hidden;
background:
radial-gradient(circle at 82% 20%, rgba(82, 213, 255, 0.05), transparent 28rem),
- #0e0f12;
+ #1c1d1e;
color: var(--ink);
font-family: "Avenir Next", "PingFang SC", sans-serif;
}
@@ -26,7 +26,7 @@
background:
radial-gradient(circle at 14% 8%, rgba(82, 213, 255, 0.14), transparent 24rem),
radial-gradient(circle at 84% 64%, rgba(217, 173, 61, 0.08), transparent 26rem),
- linear-gradient(138deg, #101114 0%, #0e0f13 58%, #141519 100%);
+ linear-gradient(138deg, #1e1f20 0%, #1c1d1f 58%, #222325 100%);
color: #fff;
}
@@ -110,7 +110,7 @@
padding: 10px;
border: 1px solid rgba(255, 255, 255, 0.26);
border-radius: 14px;
- background: rgba(19, 20, 23, 0.7);
+ background: rgba(36, 37, 40, 0.7);
backdrop-filter: blur(18px);
}
.verifiedPanel img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
@@ -172,7 +172,7 @@
overflow: hidden;
border: 1px solid rgba(173, 176, 182, 0.18);
border-radius: 18px;
- background: rgba(19, 20, 23, 0.96);
+ background: rgba(36, 37, 40, 0.96);
box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}
.metrics div { padding: 22px 28px; border-right: 1px solid rgba(173, 176, 182, 0.16); }
@@ -183,16 +183,16 @@
.directorySection { max-width: 1180px; margin: 0 auto; padding: 92px 28px 120px; }
.directoryHeader h2 { margin: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -0.03em; }
.directoryHeader { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
-.directoryHeader label { display: flex; align-items: center; gap: 9px; width: min(360px, 100%); height: 46px; padding: 0 14px; border: 1px solid rgba(173, 176, 182, 0.2); border-radius: 10px; background: rgba(19, 20, 23, 0.88); color: var(--violet); }
+.directoryHeader label { display: flex; align-items: center; gap: 9px; width: min(360px, 100%); height: 46px; padding: 0 14px; border: 1px solid rgba(173, 176, 182, 0.2); border-radius: 10px; background: rgba(36, 37, 40, 0.88); color: var(--violet); }
.directoryHeader input { width: 100%; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.directoryGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
-.directoryGrid a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid rgba(173, 176, 182, 0.16); border-radius: 10px; background: rgba(19, 20, 23, 0.82); color: var(--ink); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
-.directoryGrid a:hover { transform: translateY(-3px); border-color: rgba(110, 168, 255, 0.38); background: rgba(25, 26, 30, 0.96); }
+.directoryGrid a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid rgba(173, 176, 182, 0.16); border-radius: 10px; background: rgba(36, 37, 40, 0.82); color: var(--ink); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
+.directoryGrid a:hover { transform: translateY(-3px); border-color: rgba(110, 168, 255, 0.38); background: rgba(43, 44, 48, 0.96); }
.directoryGrid img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.directoryGrid strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.directoryGrid small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.directoryGrid svg { color: #767c86; }
-.directoryToggle { display: none; width: 100%; min-height: 46px; margin-top: 12px; border: 1px solid rgba(173, 176, 182, 0.2); border-radius: 10px; background: rgba(19, 20, 23, 0.88); color: var(--ink); font-size: 13px; font-weight: 740; cursor: pointer; }
+.directoryToggle { display: none; width: 100%; min-height: 46px; margin-top: 12px; border: 1px solid rgba(173, 176, 182, 0.2); border-radius: 10px; background: rgba(36, 37, 40, 0.88); color: var(--ink); font-size: 13px; font-weight: 740; cursor: pointer; }
.empty { padding: 60px; border: 1px dashed rgba(173, 176, 182, 0.2); border-radius: 12px; color: var(--muted); text-align: center; }
.modalBackdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(31, 27, 66, 0.74); backdrop-filter: blur(16px); }
diff --git a/docs/components/landing/LandingFooter.tsx b/docs/components/landing/LandingFooter.tsx
index b1aca0e036..3cc6c30f8b 100644
--- a/docs/components/landing/LandingFooter.tsx
+++ b/docs/components/landing/LandingFooter.tsx
@@ -24,7 +24,7 @@ export function LandingFooter({ lang }: { lang: DocsLang }) {
const t = i18n[lang];
return (
- <footer className="border-t border-[var(--color-landing-line)] bg-[#08080a]">
+ <footer className="border-t border-[var(--color-landing-line)] bg-landing-bg">
<div className="max-w-[1180px] mx-auto px-7 py-7 max-[760px]:px-[18px]">
<div className="flex items-center justify-between gap-4 max-[760px]:flex-col max-[760px]:gap-3 max-[760px]:text-center">
{/* Logo */}
diff --git a/docs/components/landing/LandingNav.tsx b/docs/components/landing/LandingNav.tsx
index 1c9ab3182e..a2c3488499 100644
--- a/docs/components/landing/LandingNav.tsx
+++ b/docs/components/landing/LandingNav.tsx
@@ -115,7 +115,7 @@ export function LandingNav({ lang, active }: { lang: DocsLang; active?: "home" |
href={item.href}
prefetch={false}
aria-current={active === item.id ? "page" : undefined}
- className={`landing-nav-link inline-flex h-9 items-center rounded-[7px] px-[10px] text-[13px] font-medium max-[760px]:hidden ${item.tabletHidden ? "max-[900px]:hidden" : ""} ${active === item.id ? "text-landing-ink" : "text-landing-muted"}`}
+ className={`landing-nav-link inline-flex h-9 items-center rounded-[7px] px-2 text-[14px] font-medium max-[760px]:hidden ${item.tabletHidden ? "max-[900px]:hidden" : ""} ${active === item.id ? "text-landing-ink" : "text-landing-muted"}`}
>
{item.label}
</Link>
@@ -123,7 +123,7 @@ export function LandingNav({ lang, active }: { lang: DocsLang; active?: "home" |
<Link href="https://github.com/t8y2/dbx" target="_blank" rel="noopener noreferrer" aria-label="GitHub" title="GitHub" className="landing-nav-link inline-flex size-9 items-center justify-center rounded-[7px] text-landing-muted max-[760px]:hidden">
<Github size={18} strokeWidth={2} />
</Link>
- <Link href={langHref} prefetch={false} aria-label={t.langLabel} title={t.langLabel} className="landing-nav-link ml-1.5 inline-flex h-9 items-center justify-center rounded-[7px] border border-landing-line px-3 text-[12px] font-[650] tracking-tight text-landing-muted" onClick={() => setMenuOpen(false)}>
+ <Link href={langHref} prefetch={false} aria-label={t.langLabel} title={t.langLabel} className="landing-nav-link ml-1.5 inline-flex h-9 items-center justify-center rounded-[7px] border border-landing-line px-3 text-[13px] font-[650] tracking-tight text-landing-muted" onClick={() => setMenuOpen(false)}>
{LANG_BUTTON_LABEL[otherLang]}
</Link>
<button