Skip to content

Conversation

sungik-choi
Copy link
Contributor

@sungik-choi sungik-choi commented Jan 8, 2025

Self Checklist

  • I wrote a PR title in English and added an appropriate label to the PR.
  • I wrote the commit message in English and to follow the Conventional Commits specification.
  • I added the changeset about the changes that needed to be released. (or didn't have to)
  • I wrote or updated documentation related to the changes. (or didn't have to)
  • I wrote or updated tests related to the changes. (or didn't have to)
  • I tested the changes in various browsers. (or didn't have to)
    • Windows: Chrome, Edge, (Optional) Firefox
    • macOS: Chrome, Edge, Safari, (Optional) Firefox

Related Issue

Summary

TODO: 색상값 업데이트 마무리 된 이후 더블체크 & 업데이트

Details

Breaking change? (Yes/No)

References

Summary by CodeRabbit

  • 스타일
    • 다크 테마에서 여러 색상의 전경(fg) 및 배경(bg) 토큰이 더 밝은 색상으로 조정되었습니다.
    • dim 색상 구조가 단순화되어 계층이 평평해졌습니다.
    • 다양한 색상 그룹(블루, 코발트, 그린, 레드 등)의 색상 코드가 업데이트되어 색조와 채도가 변경되었습니다.

@sungik-choi sungik-choi added the bezier-tokens Issue or PR related to bezier-tokens label Jan 8, 2025
@sungik-choi sungik-choi self-assigned this Jan 8, 2025
Copy link

channeltalk bot commented Jan 8, 2025

Copy link

changeset-bot bot commented Jan 8, 2025

⚠️ No Changeset found

Latest commit: afabd7c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Jan 8, 2025

Chromatic Report

🚀 Congratulations! Your build was successful!

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.91%. Comparing base (09694b0) to head (afabd7c).

Additional details and impacted files
@@           Coverage Diff           @@
##            alpha    #2590   +/-   ##
=======================================
  Coverage   81.91%   81.91%           
=======================================
  Files         145      145           
  Lines        2897     2897           
  Branches      925      925           
=======================================
  Hits         2373     2373           
- Misses        494      520   +26     
+ Partials       30        4   -26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sungik-choi
Copy link
Contributor Author

sungik-choi commented Jun 30, 2025

@coderabbitai review

Copy link

coderabbitai bot commented Jun 30, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

coderabbitai bot commented Jun 30, 2025

Walkthrough

여러 색상 토큰의 값과 참조가 변경되었습니다. dark-theme과 light-theme의 "dim" 구조가 단순화되었고, dark-theme의 foreground와 background 일부 색상 참조가 수정되었습니다. global 색상 파일에서는 다양한 색상 그룹의 색상 값(HEX 코드)이 업데이트되었습니다.

Changes

파일 경로 변경 요약
.../bezier-tokens/src/alpha/functional/dark-theme/color.json fg(전경) 색상 토큰의 참조를 300번대에서 200번대로 변경, bg.black.darkest 참조값 수정, dim 구조 단순화
.../bezier-tokens/src/alpha/functional/light-theme/color.json dim 아래의 black 중첩 구조 제거, light/normal 키를 바로 정의하도록 구조 평탄화
.../bezier-tokens/src/alpha/global/color.json blue, cobalt, green, red, orange, pink, purple, navy, olive 등 여러 색상 그룹의 HEX 코드 값 변경

Poem

색상표가 새 옷을 입었어요,
파란빛, 초록빛, 살짝 더 밝게 변했죠.
검정과 흰색, 구조도 더 간단하게,
토큰의 세상, 한층 더 예쁘게!
토끼는 팔짝, 팔짝,
새로운 색에 기뻐 춤춰요!
🐇🌈


🪧 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @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

coderabbitai bot commented Jun 30, 2025

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Get PR details including title, description, and changed files
gh pr view 2590 --json title,body,author,createdAt,files

# Get the diff for this PR to see the actual changes
gh pr diff 2590

# Check if there are any specific files mentioned in the changeset bot comment
fd -t f -e json -e md . | head -20

Length of output: 14950


@sungik-choi 네, PR #2590을 리뷰해드리겠습니다.

🔍 전체적인 변경사항 분석

이 PR은 bezier-tokens 패키지의 alpha 컬러 토큰 값들을 업데이트하는 작업입니다. 세 개의 JSON 파일에서 광범위한 컬러 값 변경이 이루어졌네요.

✅ 긍정적인 부분

  1. 다크 테마 컬러 개선: 다크 테마에서 .300 변형을 .200 변형으로 변경하여 더 나은 대비를 제공합니다.

  2. 버그 수정: bg.black.darkest에서 {black.60}{white.60}로 수정한 부분이 올바른 것 같습니다. 다크 테마에서는 white 값을 참조해야 맞죠.

  3. 구조 단순화: dim 객체에서 불필요한 중첩 구조를 제거하고 평면화한 것이 좋습니다:

// Before
"dim": {
  "black": {
    "light": { ... },
    "normal": { ... }
  }
}

// After  
"dim": {
  "light": { ... },
  "normal": { ... }
}
  1. 일관성: 모든 컬러 패밀리에 걸쳐 체계적으로 업데이트되었습니다.

⚠️ 개선이 필요한 부분

  1. Changeset 누락: 패키지 버전 관리를 위해 changeset이 필요합니다.

  2. PR 설명 보완: 현재 "TODO: 색상값 업데이트 마무리 된 이후 더블체크 & 업데이트"라고 되어있는데, 더 구체적인 변경 사유와 목적을 설명해주시면 좋겠습니다.

  3. 컬러 값 검증: 새로운 hex 값들이 디자인 시스템의 접근성 기준(contrast ratio 등)을 만족하는지 확인이 필요합니다.

🎯 권장사항

  1. Changeset 추가:
npx changeset add

를 실행하여 적절한 changeset을 추가해주세요.

  1. PR 설명 업데이트: 왜 이러한 컬러 값 변경이 필요했는지, 어떤 기준으로 새로운 값들이 선택되었는지 설명을 추가해주세요.

  2. 시각적 검증: Storybook이나 디자인 도구를 통해 변경된 컬러들이 의도한 대로 표시되는지 확인해보세요.

전반적으로 코드 품질은 좋고 체계적인 업데이트로 보입니다. 문서화와 changeset만 보완하면 머지 준비가 될 것 같네요! 👍

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: 1

🧹 Nitpick comments (2)
packages/bezier-tokens/src/alpha/global/color.json (1)

1-1025: 전역 토큰 대량 갱신 후 참조 누락 가능성

functional-theme 파일들이 새 HEX 값에만 의존하지 않고 {olive.200} 등 전역 키를 직접 참조합니다.
키 삭제·이동은 없었지만 오타나 대소문자 불일치는 정적 분석으로 잡히지 않습니다. 린트·빌드 단계에서 참조 무결성 검사를 추가하는 것을 권장합니다.

packages/bezier-tokens/src/alpha/functional/dark-theme/color.json (1)

861-868: dim 평탄화가 라이트·다크 테마 모두 동일하게 적용됨

구조 일관성이 확보되어 👍. 다만 bg.absolute.black.* 계층에 의존하므로 해당 토큰이 변동될 때 dim 밝기도 함께 변한다는 점을 문서화해두면 좋겠습니다.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 09694b0 and afabd7c.

📒 Files selected for processing (3)
  • packages/bezier-tokens/src/alpha/functional/dark-theme/color.json (13 hunks)
  • packages/bezier-tokens/src/alpha/functional/light-theme/color.json (1 hunks)
  • packages/bezier-tokens/src/alpha/global/color.json (15 hunks)
🔇 Additional comments (3)
packages/bezier-tokens/src/alpha/global/color.json (1)

4-58: HEX 유효성 검사 완료: 문제 없음, 디자인 일관성 추가 검증 필요

  • 모든 color.json의 HEX 길이는 7자(불투명) 또는 9자(alpha)로 올바르게 정의되어 있습니다.
  • 변경된 100→600 단계 및 각 alpha 값에 대해 ΔE, WCAG 대비율 등 디자인 시스템 기준을 충족하는지 확인해야 합니다.
    • 특히 400·300 계열 간 대비가 줄어들면 functional-theme의 light/dark 토큰에 영향이 큽니다.
  • 자동화된 ΔE 계산 또는 WCAG 대비율 검증 파이프라인이 없다면, 배포 전 디자인 담당자와 함께 시각적 일관성을 반드시 점검해 주세요.
packages/bezier-tokens/src/alpha/functional/light-theme/color.json (1)

860-868: dim 계층 평탄화 👍, 의존 경로 재검증 권장

dim.black.* 중첩을 제거하고 직접 light·normal 키만 남긴 것은 구조 단순화 측면에서 좋습니다.
다만 기존 코드(예: SCSS mixin, Storybook 스냅샷)에서 dim.black.light 를 참조하던 부분이 있다면 런타임 오류가 발생할 수 있으니 검색으로 한 번 더 확인해 주세요.

packages/bezier-tokens/src/alpha/functional/dark-theme/color.json (1)

45-61: dark 변형이 300 → 200 레벨로 올라감

fg.*.<color>.dark 가 모두 300에서 200으로 변경되었습니다.
시각적으로 한 단계 밝아지는 효과가 있으므로 다크 모드에서 충분한 대비(특히 배경 grey.900 사용 시)를 확보하는지 QA가 필요합니다.

Comment on lines +279 to 281
"value": "{white.60}",
"type": "color"
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

bg.black.darkest 가 흑색 → 백색 계열로 변경됨

{black.60}{white.60} 변경은 의미상 “어두운 배경” 토큰이 중간 투명도의 흰색으로 바뀐 것입니다.
특정 컴포넌트가 이 토큰을 반전 용도로 사용한다면 의도치 않게 밝아질 수 있으니 디자인 팀과 취지 재확인 부탁드립니다.

🤖 Prompt for AI Agents
In packages/bezier-tokens/src/alpha/functional/dark-theme/color.json around
lines 279 to 281, the color value for bg.black.darkest was changed from
"{black.60}" to "{white.60}", which alters the token from a dark black shade to
a lighter white shade. Review this change with the design team to confirm the
intent, especially if any components rely on this token for inversion effects,
and revert or adjust the color value accordingly to maintain the intended dark
background appearance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bezier-tokens Issue or PR related to bezier-tokens
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant