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

+12 -12
View File
@@ -223,41 +223,41 @@ const ADMIN_FIELDS: {
}[] = [
{
key: "admin_canvas",
label: "Page background",
label: "Page background (dark)",
def: "#0f172a",
desc: "Main admin page background",
desc: "Dark-mode admin canvas. Light mode follows the public light palette.",
},
{
key: "admin_surface",
label: "Card / panel",
label: "Card / panel (dark)",
def: "#1e293b",
desc: "Admin cards, tables, and panel backgrounds",
desc: "Dark-mode cards, tables, and panels",
},
{
key: "admin_text",
label: "Body text",
label: "Body text (dark)",
def: "#f1f5f9",
desc: "Main admin text — must contrast with canvas/surface",
desc: "Dark-mode text — must contrast with canvas/surface",
bgKey: "admin_canvas",
},
{
key: "admin_text_muted",
label: "Muted text",
label: "Muted text (dark)",
def: "#94a3b8",
desc: "Secondary labels, hints, descriptions",
desc: "Dark-mode secondary labels and hints",
bgKey: "admin_canvas",
},
{
key: "admin_border",
label: "Border",
label: "Border (dark)",
def: "#334155",
desc: "Table borders, dividers, input outlines",
desc: "Dark-mode table borders, dividers, input outlines",
},
{
key: "admin_sidebar_bg",
label: "Sidebar",
label: "Sidebar (dark)",
def: "#0f172a",
desc: "Left navigation sidebar background",
desc: "Dark-mode left navigation background",
},
];