Skip to content
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

Merged
merged 3 commits into from
Jan 3, 2025

Conversation

Han-wo
Copy link
Collaborator

@Han-wo Han-wo commented Jan 1, 2025

#️⃣ 이슈

📝 작업 내용

하드코딩 되어있던 색상들 테일윈드 색상설정에 맞게 변경

📸 스크린샷

✅ 체크 리스트

  • 적절한 Title 작성
  • 적절한 Label 지정
  • Assignee 및 Reviewer 지정
  • 로컬 작동 확인
  • Merge 되는 브랜치 확인

👩‍💻 공유 포인트 및 논의 사항

Summary by CodeRabbit

릴리즈 노트

  • 스타일 업데이트

    • 다양한 컴포넌트의 색상 스키마를 Tailwind CSS 유틸리티 클래스로 통일
    • 버튼, 입력 필드, 네비게이션 메뉴, 테이블 등의 시각적 디자인 개선
    • 회색, 파란색, 녹색, 빨간색 등의 색상 팔레트 적용
  • UI 일관성

    • 전체 애플리케이션의 색상 및 스타일 일관성 향상
    • 사용자 경험을 위한 세부 디자인 요소 미세 조정

@Han-wo Han-wo added 우선순위: LOW Good for newcomers 💄 DESIGN Further information is requested labels Jan 1, 2025
@Han-wo Han-wo requested a review from cindycho0423 January 1, 2025 11:29
@Han-wo Han-wo self-assigned this Jan 1, 2025
@Han-wo Han-wo linked an issue Jan 1, 2025 that may be closed by this pull request
2 tasks
Copy link

coderabbitai bot commented Jan 1, 2025

Walkthrough

이 풀 리퀘스트는 주로 애플리케이션 전반에 걸쳐 테일윈드 CSS 유틸리티 클래스를 사용하여 색상을 표준화하는 작업을 포함합니다. 하드코딩된 hex 색상 코드를 테일윈드의 기본 색상 클래스로 대체하여 일관된 디자인 시스템을 구축하고 있습니다. 이러한 변경은 주로 UI 컴포넌트의 배경색, 텍스트 색상, 테두리 색상 등에 영향을 미칩니다.

Changes

파일 경로 변경 요약
src/app/main/_components/* 배경색 및 텍스트 색상을 테일윈드 색상 클래스로 변경
src/components/common/* 버튼, 입력 필드, 드롭다운 등의 색상 스타일 업데이트
레이아웃 파일들 배경색을 bg-blue-200로 통일

Assessment against linked issues

목표 해결 여부 설명
테일윈드 기본 색상으로 텍스트 색상 수정 [#93]

Possibly related PRs

Suggested labels

✨ FEAT

Poem

🐰 색상의 토끼, 테일윈드를 타고
헥스 코드 떠나 새 색동옷 입고
파랑, 초록, 붉은빛 춤추네
디자인의 세상을 밝게 물들이며
코드는 노래하고 UI는 웃네! 🌈


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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

github-actions bot commented Jan 1, 2025

Copy link

@coderabbitai coderabbitai bot left a 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-100hover: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-12space-y-2 등 여러 클래스가 결합되어 있는데, UI 디자인 의도에 비해 여백이 과하거나 부족하지 않은지 다시 점검해 보시면 좋겠습니다. Tailwind 설정에 기반한 여백 단위를 일관성 있게 적용하면 가독성과 유지 보수성이 올라갑니다.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3a4b86c and 05ebaca.

📒 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-400hover: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)을 사용하여 가독성을 높이는 방안을 고려할 수 있습니다.

@Han-wo Han-wo merged commit f85ea92 into develop Jan 3, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💄 DESIGN Further information is requested 우선순위: LOW Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

design: 테일윈드 기본색상 변경으로 인한 색상변경
1 participant