-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Feat] 디자인 시스템 초안 작성 #24
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.
고생하셨습니다! 😄
몇가지 코멘트 남겨뒀으니 확인 부탁드려요~~
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.
머지하기 전에 Exmple
컴포넌트가 _app.page.tsx
에만 안남도록 해주시면 감사하겠습니다!
넵 제거해서 올려뒀습니다!! 확인해주시고 approve 눌러주세용! |
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.
크리스마스였는데도,,, 고생하셨습니다 수정님! 😭
몇가지 리뷰 남겼으니 확인 부탁드립니다!
src/styles/theme.ts
Outdated
sm: '10px', // card item | ||
md: '20px', // card | ||
lg: '16px', // hashtag |
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.
md
보다 lg
가 더 작네요?? 👀
Select button
의 경우에는 8px
이기도 하고, Toggle button
은 100px
이고...
이 경우에는 관리하기 보다는 각각 파일에서 지정해주는 게 더 효율적일 것 같다는 생각이 듭니다!
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.
스토리북에 Color 하고 fontSize 별 typography 스토리북도 있으면 좋을거 같아요! (너무 바쁘시면 추후에 도입해도 괜찮을거 같긴합니다, 제가 해도 괜찮구요!)
[참고]
src/components/Example/Example.tsx
Outdated
<div> | ||
<StyledButton>{title}</StyledButton> | ||
</div> |
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.
어차피 예시긴 하지만,,
div로 감쌀 의미가 있을까요? 🤔
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.
아예 아무것도 감싸지 않는 편이 좋을 것 같습니다!
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.
고생하셨습니다~ 👍👏
저도 몇가지 리뷰 남겼습니다.
홧팅!
@@ -0,0 +1,25 @@ | |||
import styled from '@emotion/styled'; | |||
|
|||
import theme from '../../styles/theme'; |
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.
theme 를 제대로 적용했으면 props 로 theme 를 가져와야 하는데 지금은 theme 를 import 하는 구조인 거 같아요!
한번 확인해주세요!!
- 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.
아직까진 동적 테마를 사용하지 않기 때문에 상관은 없긴 할텐데,
만약 다크모드같은게 별도로 개발된다면 필요할지도 모르겠습니다.
다만 우리 사이트는 기본적으로 어두운 색 베이스고 디자이너도 고려하지 않기 때문에 필수적으로 적용할 필요는 없어보이긴 하네요 👀
stackoverflow에도 비슷한 논의가 하나 있네요.
말씀하신 방법은 props로 접근해야하기 때문에 조금 더 길어진다는 단점이 생기긴 합니다.
저는 import 방식도 충분히 괜찮다고 생각해요!
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.
저도 themeProvider가 나쁘진 않지만 import방식이 현재에는 좀 더 편리한것 같아요
src/styles/theme.ts
Outdated
sm: '10px', // card item | ||
md: '20px', // card | ||
lg: '16px', // hashtag |
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.
스토리북에 Color 하고 fontSize 별 typography 스토리북도 있으면 좋을거 같아요! (너무 바쁘시면 추후에 도입해도 괜찮을거 같긴합니다, 제가 해도 괜찮구요!)
[참고]
…m-2-FE into feat/014-design-system-draft
머지까지 완료했습니다! 다들 한번씩 확인해주세요 @KIMSEUNGGYU @hwookim |
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.
크리스마스에 새해까지 고생하십니다 수정님!
src/pages/_app.page.tsx
Outdated
import '../styles/common.css'; | ||
import '../styles/reset.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.
import '../styles/common.css'; | |
import '../styles/reset.css'; | |
import '../styles/reset.css'; | |
import '../styles/common.css'; |
reset보다는 common이 우선적으로 적용되어야하니 순서를 바꿔야할 것 같습니다!
src/pages/_app.tsx
Outdated
import '@/styles/common.css'; | ||
import '@/styles/reset.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.
import 문 관련 prettier 때문에 무조건 common이 앞에 오게 되는군요... 😢
일단 현재는 이렇게 작업하고 추후 import관련 prettier를 제거하거나 해야겠네요....
@KIMSEUNGGYU 혹시 방법 아실까요?
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.
관련 PR이 fork된 레포에는 한 번 머지된 적이 있었네요.
.prettierrc.js
의 importOrder
부분을 수정하면 대응할 수 있어보입니다.
importOrder: ['^@mocks/(.*)$', '@src/styles/reset.css', '@src/styles/common.css', '^@src/(.*)$', '^[./]'],
다만 이렇게하면 한 줄 공백이 생기긴 하네요... 🤔
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.
맞아요ㅠㅠ import 순서 규칙을 통해 해결할 수 있지만, 그러면 공백이 생겨서.. importOrder prettier 를 제거하는것도 괜찮을수도 있겠네요 ㅎㅎ
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.
연말 및 새해 동안 고생하셨습니다!!! 👍
src/pages/_app.tsx
Outdated
import '@/styles/common.css'; | ||
import '@/styles/reset.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.
맞아요ㅠㅠ import 순서 규칙을 통해 해결할 수 있지만, 그러면 공백이 생겨서.. importOrder prettier 를 제거하는것도 괜찮을수도 있겠네요 ㅎㅎ
@@ -0,0 +1,57 @@ | |||
const theme = { |
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.
와우!! 너무 좋아졌네요!! 굿굿굿!! 👍👍
지금까지 피드백 반영하여 커밋 올렸습니다!! @KIMSEUNGGYU @hwookim |
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.
마지막으로 하나만 확인해주시면 감사하겠습니다.
고생 많으셨습니다 수정님! 😢
src/pages/_app.page.tsx
Outdated
import 'src/styles/common.css'; | ||
import 'src/styles/reset.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.
여전히 common보단 reset이 우선순위로 되겠네요.
이전 리뷰 확인해서 적용해주시고 그 뒤에 머지해주세요.
close #14
💡 개요
📝 작업 내용
🔗 참고자료