Skip to content

Commit

Permalink
Merge pull request #284 from TheUpperPart/Design/#283
Browse files Browse the repository at this point in the history
Design/#283 기본 색 및 모달 색 적용
  • Loading branch information
navyjeongs authored Feb 8, 2024
2 parents 4b116f1 + 8e88b35 commit 736fe43
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/@types/emotion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ declare module '@emotion/react' {
green: string;
white: string;
gray: string;
'modal-bg': string;
}
}
3 changes: 2 additions & 1 deletion src/components/Card/HomeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const Container = styled.div<{ hasOnClick: boolean }>`
display: flex;
align-items: center;
text-align: center;
background-color: white;
background-color: ${({ theme }) => theme.text};
color: ${({ theme }) => theme.bg};
border-radius: 1rem;
font-size: 1.6rem;
justify-content: center;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ const Container = styled.div`
display: flex;
justify-content: center;
align-items: center;
background-color: ${({ theme }) => theme['bg-70']};
opacity: 0.8;
background-color: ${({ theme }) => theme['modal-bg']};
color: ${({ theme }) => theme.text};
z-index: 10;
`;

const ModalContent = styled.div`
background-color: ${({ theme }) => theme['bg-100']};
background-color: ${({ theme }) => theme.bg};
border-radius: 2rem;
text-align: center;
margin: 0 auto;
Expand Down
1 change: 1 addition & 0 deletions src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const Layout = ({ children }: PropsWithChildren) => {

const AuthLayout = styled.div`
padding: 2rem;
color: ${({ theme }) => theme.text};
background-color: ${({ theme }) => theme.bg};
`;

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ const ItemIndex = styled.div`
width: 3rem;
`;
const ItemLink = styled.a`
color: black;
color: ${({ theme }) => theme.text};
text-decoration: none;
`;
3 changes: 3 additions & 0 deletions src/styles/ThemeStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface Theme {
green: string;
white: string;
gray: string;
'modal-bg': string;
}

interface Themes {
Expand All @@ -30,6 +31,7 @@ const themes: Themes = {
green: '#31b65b',
white: '#ffffff',
gray: '#aaaaaa',
'modal-bg': '#d9d9d9a1',
},

dark: {
Expand All @@ -44,6 +46,7 @@ const themes: Themes = {
green: '#31b65b',
white: '#ffffff',
gray: '#aaaaaa',
'modal-bg': '#060505a1',
},
};

Expand Down

0 comments on commit 736fe43

Please sign in to comment.