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 <html> 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.
This commit is contained in:
parent
b02674aa62
commit
d94e961d97
2 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ export const metadata = { title: "Mercury" };
|
|||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="mn">
|
||||
<html lang="mn" data-seed data-seed-color-mode="light-only">
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue