make login form use dark/light theme

This commit is contained in:
Aine 2024-11-18 12:48:20 +02:00
parent c28ed94ca0
commit 86d0fd04e6
No known key found for this signature in database
GPG key ID: 34969C908CCA2804

View file

@ -8,7 +8,7 @@ const LoginFormBox = styled(Box)(({ theme }) => ({
alignItems: "center",
justifyContent: "flex-start",
background: "url(./images/floating-cogs.svg)",
backgroundColor: "#f9f9f9",
backgroundColor: theme.palette.mode === 'dark' ? theme.palette.background.default : theme.palette.background.paper,
backgroundRepeat: "no-repeat",
backgroundSize: "cover",
@ -53,6 +53,7 @@ const LoginFormBox = styled(Box)(({ theme }) => ({
marginBottom: "1rem",
marginLeft: "0.5rem",
},
}));
}
));
export default LoginFormBox;