-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FE] setting: styles 관련 초기 세팅 #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
만들어주신 TypographyComponent 잘 출력되는 것 확인했습니다! 스타일 세팅이 번거로운 작업이었을 텐데 고생 많으셨어요😊
몇 가지 제안할 부분이 있어서 코멘트 남겼습니다. 확인 부탁드려요!
src/frontend/src/main.tsx
Outdated
<ThemeProvider theme={theme}> | ||
<GlobalStyle /> | ||
<StrictMode> | ||
<QueryClientProvider client={queryClient}> | ||
<App /> | ||
</QueryClientProvider> | ||
</StrictMode> | ||
</ThemeProvider>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StrictMode가 최상단에 있고, 그 밑에 ThemeProvider > GlobalStyle, QueryClientProvider를 두는 것은 어떤가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
찾아보니 전체 컴포넌트 트리를 StrictMode로 감싸는 패턴이 더 일반적인 것 같아서 좋아요! 반영해두겠습니당!!
import { createGlobalStyle } from 'styled-components'; | ||
|
||
const GlobalStyle = createGlobalStyle` | ||
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emotion을 사용할 때는 해당 이슈가 없어서 똑같이 해두고 확인을 못 한 것 같아요 😅 해당 부분도 반영해둘게요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emotion에서는 문제가 없군요! 수정 사항 확인했습니다 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정 사항 확인했습니다! 고생하셨어요 👍
이슈번호
요약(개요)
작업 내용
집중해서 리뷰해야 하는 부분
max-width나 min-width를 정해두면 좋을 것 같은데 우선 임시로 해놨어요..!! 해당 부분은 개발하면서 이야기하거나 조만간 이야기 해봐도 좋을 것 같아요 :D
기타 전달 사항 및 참고 자료(선택)
Typography 관련 컴포넌트 사용 예시예요! 해당 내용을 포함한 코드 설명 등 자세한 이야기는 노션에 공유해둘게요 🚀