Skip to content

Commit 7b8057f

Browse files
committed
Refact: TopBar 컬러시스템 적용
1 parent 2a21a0e commit 7b8057f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/TopBar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const TopBar: React.FC<TopBarProps> = ({
3030
>
3131
<img src={LeftButtonSrc || ''} alt="뒤로가기" />
3232
</LeftButton>
33-
<StyledTextWrapper $textTheme={{ style: 'body1-bold' }} color={theme.colors.black}>
33+
<StyledTextWrapper $textTheme={{ style: 'heading1-bold' }} color={theme.colors.text.primary}>
3434
{text}
3535
</StyledTextWrapper>
3636
<RightButton

src/components/TopBar/styles.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import styled from 'styled-components';
2+
import theme from '@styles/theme';
23
import { StyledText } from '@components/Text/StyledText';
34
import type { TopBarLayoutProps } from './dto';
4-
55
export const TopBarLayout = styled.header<TopBarLayoutProps>`
66
display: flex;
77
position: sticky;
88
top: 0; /* 부모 요소의 상단에 붙도록 설정 */
99
z-index: 99;
10-
background-color: white;
10+
background-color: ${theme.colors.background.primary};
1111
width: 100%; /* 부모 너비에 맞춤 */
1212
align-items: center;
1313
padding: 0.5rem 1.25rem;
1414
${({ $withBorder, theme }) =>
1515
$withBorder &&
1616
`
17-
border-bottom: solid 0.0625rem ${theme.colors.gray2};
17+
border-bottom: solid 0.0625rem ${theme.colors.border.divider};
1818
`}
1919
`;
2020

0 commit comments

Comments
 (0)