-
Notifications
You must be signed in to change notification settings - Fork 1
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
design: 테일윈드 설정에 맞게 색상코드 설정 #94
Conversation
Walkthrough이 풀 리퀘스트는 주로 애플리케이션 전반에 걸쳐 테일윈드 CSS 유틸리티 클래스를 사용하여 색상을 표준화하는 작업을 포함합니다. 하드코딩된 hex 색상 코드를 테일윈드의 기본 색상 클래스로 대체하여 일관된 디자인 시스템을 구축하고 있습니다. 이러한 변경은 주로 UI 컴포넌트의 배경색, 텍스트 색상, 테두리 색상 등에 영향을 미칩니다. Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/components/common/button/index.tsx (1)
32-32
: 불필요한 스타일 중복을 줄이고, 일관성을 유지하기 위한 좋은 수정입니다.
border-gray-100
및hover:bg-gray-100/10
을 사용하여 색상이 잘 통일되고,!rounded-4
,px-24
,py-9
등 Tailwind 유틸리티 클래스로 정리하여 재사용성을 높였습니다. 추가로 focus 상태에 대한 스타일도 고려해보시면 더 좋을 것 같습니다.src/app/main/_components/skeleton.tsx (1)
Line range hint
26-30
: Tailwind 유틸리티 클래스 조합이 직관적인지 확인이 필요합니다.
mt-12
와space-y-2
등 여러 클래스가 결합되어 있는데, UI 디자인 의도에 비해 여백이 과하거나 부족하지 않은지 다시 점검해 보시면 좋겠습니다. Tailwind 설정에 기반한 여백 단위를 일관성 있게 적용하면 가독성과 유지 보수성이 올라갑니다.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (24)
src/app/main/_components/asset-info.tsx
(2 hunks)src/app/main/_components/flucctuate-table.tsx
(1 hunks)src/app/main/_components/ranking-stock.tsx
(1 hunks)src/app/main/_components/search-stock.tsx
(1 hunks)src/app/main/_components/skeleton.tsx
(1 hunks)src/app/main/_components/stock-card.tsx
(2 hunks)src/app/main/_components/stock-info.tsx
(2 hunks)src/app/my-account/layout.tsx
(1 hunks)src/app/portfolio/layout.tsx
(1 hunks)src/app/search/[id]/_components/order-stock/buy-and-sell/price-type-dropdown.tsx
(2 hunks)src/app/search/[id]/_components/tutorial/tutorial-modal.tsx
(1 hunks)src/app/search/[id]/layout.tsx
(1 hunks)src/app/search/_components/stock-table.tsx
(3 hunks)src/components/auth-input/index.tsx
(6 hunks)src/components/common/auth/refresh-modal.tsx
(1 hunks)src/components/common/button/index.tsx
(1 hunks)src/components/common/carousel/index.tsx
(1 hunks)src/components/common/dropdown/index.tsx
(1 hunks)src/components/common/input/index.tsx
(1 hunks)src/components/common/tabs/index.tsx
(1 hunks)src/components/common/tutorial/_components/tutorial-contents.tsx
(1 hunks)src/components/common/tutorial/_components/tutorial-modal.tsx
(1 hunks)src/components/nav-bar/_components/nav-icon-button.tsx
(1 hunks)src/components/nav-bar/_components/nav-menu.tsx
(1 hunks)
✅ Files skipped from review due to trivial changes (19)
- src/app/portfolio/layout.tsx
- src/app/my-account/layout.tsx
- src/components/common/tutorial/_components/tutorial-modal.tsx
- src/components/common/tutorial/_components/tutorial-contents.tsx
- src/app/search/[id]/_components/tutorial/tutorial-modal.tsx
- src/app/search/[id]/_components/order-stock/buy-and-sell/price-type-dropdown.tsx
- src/components/nav-bar/_components/nav-icon-button.tsx
- src/components/nav-bar/_components/nav-menu.tsx
- src/app/main/_components/flucctuate-table.tsx
- src/components/common/carousel/index.tsx
- src/components/common/auth/refresh-modal.tsx
- src/app/main/_components/search-stock.tsx
- src/components/auth-input/index.tsx
- src/components/common/dropdown/index.tsx
- src/app/search/[id]/layout.tsx
- src/app/main/_components/asset-info.tsx
- src/app/main/_components/stock-info.tsx
- src/app/search/_components/stock-table.tsx
- src/app/main/_components/ranking-stock.tsx
🔇 Additional comments (8)
src/components/common/input/index.tsx (1)
51-52
: Tailwind 색상 변경 적용이 잘 이루어졌습니다.
두 가지 경우(폼 입력 모드와 일반 입력 모드)에서 각각 명확하게 색상을 Tailwind 클래스에 맞춰 일관성 있게 수정하셨습니다. 사용자 경험 측면에서도 변경된 테마가 잘 어울릴 것으로 보입니다.
src/components/common/tabs/index.tsx (1)
103-103
: Tailwind 표준 색상 사용으로 일관된 디자인 유지를 잘 구현하셨습니다.
유지보수성이 향상되고, 다른 컴포넌트들과의 색상 통일성도 보장되어 좋습니다!
src/components/common/button/index.tsx (1)
26-26
: 이 변경으로 Tailwind의 일관된 팔레트를 사용하도록 잘 정리되었습니다.
기존의 하드코딩된 색상 값 대신 bg-green-400
및 hover:bg-green-600
을 사용하여 Tailwind의 색상 체계를 적용한 점이 확인됩니다. 프로젝트 내에서 다른 부분과 색상 협업이 더욱 수월해질 것으로 예상됩니다.
src/app/main/_components/stock-card.tsx (3)
29-30
: 색상 설정이 한국 주식시장의 관행에 부합하는지 확인 필요
해당 로직은 isNegative
상태에서 파란색, 양의 변동에서는 빨간색 계열 배경색을 사용하여 한국 주식시장 관행을 따르는 것으로 보입니다. Tailwind 설정에서 지정된 정확한 색상 값들이 이 로직과 일관적으로 유지되고 있는지 확인해주세요.
43-44
: 문자 색상 변경 로직 점검
isNegative
일 때 파란색, 양의 변동일 때 빨간색 텍스트로 설정이 잘 되어 있습니다. 다만 Tailwind 설정 혹은 다른 UI 규칙과 충돌하지 않는지 최종적으로 다시 한 번 검토해 주세요.
48-48
: 아이콘 색상 변경 확인
음수 변동 시 화살표 아이콘의 채우기색(fill-blue-900
)이 적절히 적용되고 있습니다. 디자인 가이드나 접근성 가이드에서 권장하는 명암 대비 비율을 충족하는지도 점검 부탁드립니다.
src/app/main/_components/skeleton.tsx (2)
23-23
: 색상 설정이 Tailwind와 일관되도록 유지하세요.
bg-blue-200
로 변경된 부분은 다른 컴포넌트에서도 동일한 Tailwind 컬러 클래스를 사용 중인지 확인이 필요합니다. 만약 Tailwind 설정을 통해 커스터마이징된 색상이 있다면, 해당 프리셋 컬러 클래스를 활용하는 편이 유지 보수에 유리합니다.
Line range hint 34-47
: Map 함수 내 key 사용은 적절합니다.
[1, 2, 3].map((idx) => ... )
구문에서 key 속성을 idx
로 설정한 점은 기본적인 React 최적화 방식에 부합하지만, 실제 데이터가 있다면 고유값(예: id)을 사용하여 가독성을 높이는 방안을 고려할 수 있습니다.
#️⃣ 이슈
📝 작업 내용
하드코딩 되어있던 색상들 테일윈드 색상설정에 맞게 변경
📸 스크린샷
✅ 체크 리스트
👩💻 공유 포인트 및 논의 사항
Summary by CodeRabbit
릴리즈 노트
스타일 업데이트
UI 일관성