From d94e961d97e7a82eb4e92d853353edeb22b89c71 Mon Sep 17 00:00:00 2001 From: Munkherdene Date: Sat, 22 Aug 2026 21:30:30 +0800 Subject: [PATCH] fix(web): apply Seed canonical theme setup (body fg-neutral color + data-seed attrs) Default text resolved to white-on-white because globals.css set a background but no base color, and carried no data-seed attributes. Mirrors daangn.com's live setup: html[data-seed][data-seed-color-mode] + body color: var(--seed-color-fg-neutral). Fixes invisible text app-wide. --- src/app/globals.css | 4 ++++ src/app/layout.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/globals.css b/src/app/globals.css index fd2517c..3566aab 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -6,5 +6,9 @@ html, body { font-family: var(--mercury-font); + /* Canonical Seed setup (matches daangn.com): body carries the neutral + foreground + default layer background so all default text is legible. + Without an explicit color, default text resolved to white-on-white. */ + color: var(--seed-color-fg-neutral, #1a1c20); background: var(--seed-color-bg-layer-default, #fff); } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 9d7bfd8..5a71206 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -4,7 +4,7 @@ export const metadata = { title: "Mercury" }; export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - + {children} );