Skip to content

Commit

Permalink
Merge branch 'main' into fix-bug-correct-position-stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Elizabethhub authored Mar 24, 2024
2 parents 263a0a5 + 85ee031 commit 3ca48ac
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
8 changes: 8 additions & 0 deletions src/components/Header/ThemeStyled/Theme.styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ export const darkTheme = {
borderBottomForToday: '1px solid #2A3052',
backgroundColorScroll: '#2F3875',
backgroundTrackScroll: '#2A3052',
inputOnlyColor: '--input-dark',
inputColorText: '--input-color-dark',
inputTheme: '1px solid #2f3875',
};

export const lightTheme = {
Expand Down Expand Up @@ -106,7 +109,12 @@ export const lightTheme = {

dayStylesDayBackground: '#fff;',
dayStylesDayPercentage: '#9ebbff;',

borderBottomForToday: '1px solid #d7e3ff',
backgroundColorScroll: '#9ebbff',
backgroundTrackScroll: '#d7e3ff',

inputOnlyColor: '--primary-mediumblue',
inputColorText: '--primary-blue',
inputTheme: '1px solid var(--primary-mediumblue)',
};
10 changes: 5 additions & 5 deletions src/components/LoginForm/LoginForm.styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const StyledLoginForm = styled.form`
border: 1px solid
var(
${(props) =>
props.$errorEmail ? '--primary-red' : '--primary-mediumblue'}
props.$errorEmail ? '--primary-red' : props.theme.inputOnlyColor}
);
color: var(${(props) => (props.$errorEmail ? '--primary-red' : '--blue')});
Expand All @@ -30,7 +30,7 @@ export const StyledLoginForm = styled.form`
border: 1px solid
var(
${(props) =>
props.$errorPassword ? '--primary-red' : '--primary-mediumblue'}
props.$errorPassword ? '--primary-red' : props.theme.inputOnlyColor}
);
color: var(
Expand All @@ -41,7 +41,7 @@ export const StyledLoginForm = styled.form`
border: 1px solid
var(
${(props) =>
props.$errorPassword ? '--primary-red' : '--primary-mediumblue'}
props.$errorPassword ? '--primary-red' : props.theme.inputOnlyColor}
);
color: var(
Expand All @@ -59,13 +59,13 @@ export const LoginInput = styled.input`
margin-top: 8px;
padding: 12px 10px;
border-radius: 6px;
border: 1px solid var(--primary-mediumblue);
border: ${(props) => props.theme.input};
outline: none;
background-color: ${(props) => props.theme.formInputBackground};
color: ${(props) => props.theme.formInputColor};
&::placeholder {
color: var(--primary-blue);
color: var(${(props) => props.theme.inputColorText});
font-size: 16px;
line-height: 20px;
}
Expand Down
7 changes: 4 additions & 3 deletions src/pages/ForgotPassword/ForgotPassword.styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export const ForgotInput = styled.input`
margin-top: 8px;
padding: 12px 10px;
border-radius: 6px;
border: 1px solid var(--primary-mediumblue);
background-color: ${(props) => props.theme.formInputBackground};
border: 1px solid var(${(props) => props.theme.inputOnlyColor});
outline: none;
color: var(--blue);
margin-bottom: 20px;
Expand All @@ -43,7 +44,7 @@ export const ForgotInput = styled.input`
}
&::placeholder {
color: var(--primary-blue);
color: var(${(props) => props.theme.inputColorText});
font-size: 16px;
line-height: 20px;
}
Expand All @@ -52,7 +53,7 @@ export const ForgotBtn = styled.button`
margin-bottom: 16px;
background-color: var(--blue);
border: 1px solid var(--blue);
color: var(--white);
color: ${(props) => props.theme.buttonColor};
padding: 8px 30px;
border-radius: 10px;
max-width: 150px;
Expand Down
2 changes: 2 additions & 0 deletions src/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
--modal-light-blue: #9ebbff;
--modal-calc-shadow: 0px 2px 4px 0px rgba(64, 123, 255, 0.2);
--modal-add-shadow: 0px 4px 8px 0px rgba(64, 123, 255, 0.34);
--input-dark: #2a3052;
--input-color-dark: #2f3875;
}

0 comments on commit 3ca48ac

Please sign in to comment.