Make admin light/dark mode follow real palettes end-to-end.
Local Build and Deploy / deploy (push) Successful in 55s

Light admin derives from the public light theme; dark keeps HK overrides. Remap inputs, cards, muted text, and kill the public wallpaper on admin so fonts and boxes stay readable in both modes.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-15 21:37:25 +02:00
1 parent 94904f2ddb
commit 7b6c02c07d
7 files changed
+154 -19

No files matched your search

+6 -1
View File
@@ -74,8 +74,13 @@ export function themePaletteCss(
palette: ThemePalette,
adminOverrides?: Partial<AdminPalette>,
): string {
const mode: "light" | "dark" = selector.includes("dark") ? "dark" : "light";
const semantic = derivePublicForegrounds(palette);
const admin = deriveAdminPalette(palette, adminOverrides);
const admin = deriveAdminPalette(
palette,
mode === "dark" ? adminOverrides : undefined,
mode,
);
const declarations = Object.entries(CSS_VARIABLES).map(
([key, cssName]) => `--${cssName}:${palette[key as keyof ThemePalette]};`,
);