From 5e9ac2858771ac9a9ef6b148d173b3b843d8793a Mon Sep 17 00:00:00 2001 From: Taiwo Sulaimon Date: Sat, 18 Mar 2023 09:33:04 +0100 Subject: [PATCH] fix: fixed all hard coded colors --- apps/core/src/pages/login/index.tsx | 12 +++++---- apps/core/src/pages/signup/index.tsx | 11 ++++---- apps/core/src/pages/workspace/index.tsx | 26 ++++++++++--------- packages/ui/src/config/mantine.ts | 21 ++++++++------- .../Login/components/FormHeader.tsx | 9 ++++--- .../onboarding/Login/components/FormTitle.tsx | 12 ++++++--- 6 files changed, 52 insertions(+), 39 deletions(-) diff --git a/apps/core/src/pages/login/index.tsx b/apps/core/src/pages/login/index.tsx index ea10c99..e7e3318 100644 --- a/apps/core/src/pages/login/index.tsx +++ b/apps/core/src/pages/login/index.tsx @@ -41,7 +41,9 @@ const useStyles = createStyles(theme => ({ }, outlineBtn: { - border: "1px solid #14466F", + borderWidth: "1px", + borderStyle: "solid", + borderColor: theme.colors.border[0], color: theme.colors.primary[9] }, @@ -117,7 +119,7 @@ export const LoginPage: React.FC = () => { }} {...LoginForm.getInputProps("password")} /> - + Forgot Password - + ({ loginPage: { height: "100vh", - background: "#FCF7F1" + background: theme.colors.secondary[4] }, wrapper: { @@ -38,7 +38,8 @@ const useStyles = createStyles(theme => ({ right: "0", top: "0", height: "75px", - borderBottom: "1px solid #F9DBB6", + borderBottom: "1px solid ", + borderColor: theme.colors.secondary[5], display: "flex", justifyContent: "start", alignItems: "center", @@ -67,7 +68,7 @@ const useStyles = createStyles(theme => ({ formImage: { width: "40%", height: "100%", - background: "#14466F", + background: theme.colors.primary[9], color: "white", zIndex: 99, [`@media (max-width: ${theme.breakpoints.sm}px)`]: { @@ -80,7 +81,7 @@ const useStyles = createStyles(theme => ({ fontSize: "40px", lineHeight: "50px", fontWeight: 700, - color: "#1E2122", + color: theme.colors.text[3], [`@media (max-width: ${theme.breakpoints.sm}px)`]: { fontSize: "28px" } @@ -97,7 +98,7 @@ const useStyles = createStyles(theme => ({ label: { fontSize: "20px", fontWeight: 700, - color: "#373B3D" + color: theme.colors.text[1] }, fullwidth: { @@ -108,16 +109,17 @@ const useStyles = createStyles(theme => ({ width: "100%", maxWidth: "270px", backgroundColor: "transparent", - color: "#14466F" + color: theme.colors.primary[9] }, outlineBtn: { - border: "1px solid #14466F", + border: "1px solid ", + borderColor: theme.colors.primary[9], color: theme.colors.primary[9] }, link: { - color: "#14466F" + color: theme.colors.primary[9] } })); @@ -142,7 +144,7 @@ export const WorkspaceLogin = () => { autoComplete="false" classNames={{ input: classes.urlField }} /> - + .zurichat.com @@ -152,7 +154,7 @@ export const WorkspaceLogin = () => { { my="xs" label="OR" labelPosition="center" - labelProps={{ color: "#373B3D" }} - color="#B5BEC1" + labelProps={{ color: theme.colors.text[1] }} + color={theme.colors.text[2]} classNames={{ label: classes.label }} />