Skip to content

feat: 컴포넌트 생성#5

Closed
dasosann wants to merge 1 commit intomainfrom
feat/background-blur
Closed

feat: 컴포넌트 생성#5
dasosann wants to merge 1 commit intomainfrom
feat/background-blur

Conversation

@dasosann
Copy link
Copy Markdown
Contributor

요약

구현 사항

  • figma token studio 연결
  • 변환 스크립트 작성
  • [ ]
  • [ ]

📸 스크린샷

Need Review

  • ~ 부분 이렇게 구현했어요, 피드백 부탁해요!

Reference

📜 리뷰 규칙

Reviewer는 아래 P5 Rule을 참고하여 리뷰를 진행합니다.
P5 Rule을 통해 Reviewer는 Reviewee에게 리뷰의 의도를 보다 정확히 전달할 수 있습니다.

  • P1: 꼭 반영해주세요 (Comment)
  • P2: 적극적으로 고려해주세요 (Comment)
  • P3: 웬만하면 반영해 주세요 (Comment)
  • P4: 반영해도 좋고 넘어가도 좋습니다 (Approve)
  • P5: 그냥 사소한 의견입니다 (Approve)

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @dasosann, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 디자인 토큰을 프로젝트에 통합하는 것을 목표로 합니다. 디자인 토큰을 JSON 형식에서 CSS 변수 및 Tailwind CSS 유틸리티로 변환하는 자동화된 프로세스를 설정하고, 이를 샘플 페이지에 적용하여 디자인 시스템의 일관성과 효율성을 높였습니다.

Highlights

  • Figma Token Studio 통합: Figma Token Studio와의 연동을 통해 디자인 토큰을 관리하고 적용하는 기반을 마련했습니다.
  • 토큰 변환 스크립트 추가: token.json 파일을 CSS 변수 및 Tailwind CSS 유틸리티로 변환하는 scripts/generate-tokens.js 스크립트를 새로 추가했습니다.
  • 디자인 토큰 적용 예시: app/page.tsx 파일에서 새로 생성된 디자인 토큰을 활용하여 타이포그래피, 색상, 버튼 스타일을 적용하는 예시를 구현했습니다.
  • CSS 린트 설정 업데이트: .vscode/settings.json에 CSS 린터가 알 수 없는 @룰을 무시하도록 설정하여 빌드 오류를 방지했습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이번 PR은 Figma Token Studio 연결 및 토큰 변환 스크립트 작성, 그리고 이를 활용한 컴포넌트 생성을 포함하고 있습니다. 디자인 토큰을 CSS 변수와 Tailwind 유틸리티 클래스로 자동 생성하는 스크립트는 매우 훌륭하며, 디자인 시스템의 일관성과 유지보수성을 크게 향상시킬 것입니다. page.tsx에서 새로운 토큰 기반의 UI를 적용한 것도 잘 구현되었습니다. 전반적으로 좋은 변경 사항입니다.

Comment on lines +48 to +56
<button className="btn-primary text-16-600 px-8 py-3 transition-opacity hover:opacity-90">
Primary Button
</button>
<button className="btn-slate text-brand-black border-light text-16-600 rounded-2xl border px-8 py-3">
Secondary Button
</button>
<button className="btn-disabled text-16-400 cursor-not-allowed px-8 py-3">
Disabled Button
</button>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

HTML <button> 요소에 type 속성을 명시적으로 지정하는 것이 좋습니다. type 속성이 생략되면 기본값은 submit이 되므로, 폼 제출 동작을 의도하지 않은 경우 type="button"으로 명시하여 잠재적인 오작동을 방지하고 코드의 의도를 명확히 할 수 있습니다. 이는 웹 표준 및 접근성 측면에서도 좋은 관행입니다.

Suggested change
<button className="btn-primary text-16-600 px-8 py-3 transition-opacity hover:opacity-90">
Primary Button
</button>
<button className="btn-slate text-brand-black border-light text-16-600 rounded-2xl border px-8 py-3">
Secondary Button
</button>
<button className="btn-disabled text-16-400 cursor-not-allowed px-8 py-3">
Disabled Button
</button>
<button type="button" className="btn-primary text-16-600 px-8 py-3 transition-opacity hover:opacity-90">
Primary Button
</button>
<button type="button" className="btn-slate text-brand-black border-light text-16-600 rounded-2xl border px-8 py-3">
Secondary Button
</button>
<button type="button" className="btn-disabled text-16-400 cursor-not-allowed px-8 py-3">
Disabled Button
</button>

Comment on lines +99 to +100
function resolveValue(value, depth = 0) {
if (depth > 10 || typeof value !== "string") return value;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

resolveValue 함수에서 depth가 10을 초과하거나 value가 문자열이 아닌 경우 value를 그대로 반환하고 있습니다. 이는 순환 참조를 방지하기 위한 좋은 안전장치이지만, 토큰 참조가 제대로 해결되지 않았을 때 디버깅을 돕기 위해 경고 메시지를 출력하거나 오류를 발생시키는 것을 고려해볼 수 있습니다. 현재 방식으로는 생성된 CSS에서 예상치 못한 var(--...) 형태가 남을 수 있습니다.

@dasosann dasosann closed this Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant