Build new shell layout with left sidebar (el-3po)
This commit is contained in:
+6
-42
@@ -1,43 +1,7 @@
|
||||
import { createTheme, type PaletteMode } from "@mui/material/styles";
|
||||
|
||||
export function getAppTheme(mode: PaletteMode) {
|
||||
const isDark = mode === "dark";
|
||||
return createTheme({
|
||||
palette: {
|
||||
mode,
|
||||
primary: { main: "#4f8cff" },
|
||||
background: {
|
||||
default: isDark ? "#0f172a" : "#f4f6fb",
|
||||
paper: isDark ? "#111827" : "#ffffff",
|
||||
},
|
||||
},
|
||||
shape: { borderRadius: 12 },
|
||||
typography: {
|
||||
fontFamily:
|
||||
'Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',
|
||||
h5: { fontWeight: 700 },
|
||||
},
|
||||
components: {
|
||||
MuiAppBar: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
backdropFilter: "blur(8px)",
|
||||
backgroundImage: "none",
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiCard: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
borderColor: isDark
|
||||
? "rgba(148,163,184,0.25)"
|
||||
: "rgba(15,23,42,0.08)",
|
||||
boxShadow: isDark
|
||||
? "0 2px 12px rgba(2,6,23,0.35)"
|
||||
: "0 2px 8px rgba(15,23,42,0.04)",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
export function getAppTheme(mode: "light" | "dark") {
|
||||
void mode;
|
||||
// Theme is now handled by Tailwind CSS + CSS variables in index.css
|
||||
// This function is kept as a no-op shim for backward compatibility
|
||||
// during the MUI → Tailwind migration.
|
||||
return {} as unknown;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user