make login form use dark/light theme
This commit is contained in:
@@ -8,7 +8,7 @@ const LoginFormBox = styled(Box)(({ theme }) => ({
|
|||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "flex-start",
|
justifyContent: "flex-start",
|
||||||
background: "url(./images/floating-cogs.svg)",
|
background: "url(./images/floating-cogs.svg)",
|
||||||
backgroundColor: "#f9f9f9",
|
backgroundColor: theme.palette.mode === 'dark' ? theme.palette.background.default : theme.palette.background.paper,
|
||||||
backgroundRepeat: "no-repeat",
|
backgroundRepeat: "no-repeat",
|
||||||
backgroundSize: "cover",
|
backgroundSize: "cover",
|
||||||
|
|
||||||
@@ -53,6 +53,7 @@ const LoginFormBox = styled(Box)(({ theme }) => ({
|
|||||||
marginBottom: "1rem",
|
marginBottom: "1rem",
|
||||||
marginLeft: "0.5rem",
|
marginLeft: "0.5rem",
|
||||||
},
|
},
|
||||||
}));
|
}
|
||||||
|
));
|
||||||
|
|
||||||
export default LoginFormBox;
|
export default LoginFormBox;
|
||||||
|
|||||||
Reference in New Issue
Block a user