Skip to content

[🎨 Design System] Clean up sync scripts and typography types#1901

Merged
jungcome7 merged 6 commits intodevelopfrom
roy/keplr-2049
Mar 30, 2026
Merged

[🎨 Design System] Clean up sync scripts and typography types#1901
jungcome7 merged 6 commits intodevelopfrom
roy/keplr-2049

Conversation

@jungcome7
Copy link
Copy Markdown
Contributor

@jungcome7 jungcome7 commented Mar 30, 2026

Summary

1. generate-color-ts 스크립트 개선

  • dark/light 중 하나라도 값이 있으면 토큰 포함 (기존: dark 없으면 전체 누락)
  • black/white 하드코딩 제거 → Figma에서 가져오거나 synthetic fallback
  • L.push() → 템플릿 리터럴로 전환

2. DSTypographyTokensKey → DSTypographySize

  • size prop 타입이므로 의미에 맞게 리네이밍

3. 토큰 재생성

  • 변경된 스크립트로 Figma 연동 재생성, 파일명 주석 수정

4. generate-typography-ts 스크립트 개선

  • lines.push() → 템플릿 리터럴 전환, sizeToDartFieldsizeToTsField 리네이밍, 생성 파일 헤더 GENERATED FILE로 통일

Test plan

  • sync:tokens 전체 파이프라인 통과
  • typecheck 통과

🤖 Generated with Claude Code

jungcome7 and others added 3 commits March 30, 2026 14:08
- Fix dark-mode-first bias: include tokens present in either mode
- Remove hardcoded black/white — derive from Figma or add as synthetic fallback
- Replace L.push() pattern with template literal for readability
- Fix Figma file name in generated header

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…Size

- Rename type to better reflect its purpose (size selection)
- Fix Figma file name in generated header

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Re-generate color.ts and typography-tokens.ts with updated scripts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jungcome7 jungcome7 requested a review from a team as a code owner March 30, 2026 05:08
@jungcome7 jungcome7 temporarily deployed to github-pages-preview March 30, 2026 05:08 — with GitHub Actions Inactive
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
keplr-wallet-extension Ready Ready Preview, Comment Mar 30, 2026 5:42am

Request Review

@jungcome7 jungcome7 changed the title refactor(design-system): clean up sync scripts and typography types [🎨 Design System] Clean up sync scripts and typography types Mar 30, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 30, 2026

Storybook 배포 완료

🔗 미리보기: https://chainapsis.github.io/keplr-wallet/storybook/

Last updated: 2026-03-30T05:42:30Z

@jungcome7
Copy link
Copy Markdown
Contributor Author

@codex review

@jungcome7 jungcome7 self-assigned this Mar 30, 2026
@@ -1,6 +1,6 @@
// GENERATED FILE — DO NOT EDIT MANUALLY
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

color.ts에는 @generated라고 되어있는데, 이 파일에는 GENERATED FILE이라고 되어있습니다. 한 가지 방식으로 통일해서 일관성을 주면 좋을 것 같습니다. 한 번 체크해주세요

Copy link
Copy Markdown
Contributor Author

@jungcome7 jungcome7 Mar 30, 2026

Choose a reason for hiding this comment

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

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…iteral

- Replace lines.push() pattern with single template literal
- Rename sizeToDartField → sizeToTsField

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jungcome7
Copy link
Copy Markdown
Contributor Author

jungcome7 commented Mar 30, 2026

추가로 generate-typography-ts도 lines.push() → 템플릿 리터럴로 전환했습니다.
e50a433

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jungcome7 jungcome7 temporarily deployed to github-pages-preview March 30, 2026 05:42 — with GitHub Actions Inactive
@jungcome7 jungcome7 changed the base branch from roy/design-system-storybook to develop March 30, 2026 05:44
@jungcome7 jungcome7 merged commit f805652 into develop Mar 30, 2026
10 checks passed
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.

2 participants