Skip to content

Commit 24000be

Browse files
committed
fix: 태그 색상 수정
1 parent 0ff0e73 commit 24000be

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/components/PostList.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import {
55
cardBackgroundColor,
66
cardBorderColor,
77
textColor,
8+
tagBackgroundColor,
9+
tagTextColor,
10+
tagHoverBackgroundColor,
811
} from '../utils/theme';
912

1013
const PostListContainer = styled.div`
@@ -76,16 +79,16 @@ const PostTags = styled.div`
7679
const PostTag = styled(Link)`
7780
font-size: 0.85rem;
7881
padding: 0.2rem 0.6rem;
79-
background-color: ${(props) =>
80-
props.theme.mode === 'light' ? '#f5f5f5' : '#444'};
81-
color: ${(props) => (props.theme.mode === 'light' ? '#666' : '#e0e0e0')};
82+
background-color: ${tagBackgroundColor};
83+
color: ${tagTextColor};
8284
border-radius: 3px;
8385
text-decoration: none;
8486
transition: all 0.2s ease;
87+
border: 1px solid
88+
${(props) => (props.theme.mode === 'light' ? '#eee' : '#444')};
8589
8690
&:hover {
87-
background-color: ${(props) =>
88-
props.theme.mode === 'light' ? '#3498db' : '#64b5f6'};
91+
background-color: ${tagHoverBackgroundColor};
8992
color: white;
9093
}
9194
`;

0 commit comments

Comments
 (0)