Repository navigation
[design] 공통 디자인 컨벤션 및 타이포그래피 기반 정립 - #536
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
디자인 기준과 작업 지침 docs/conventions/design.md, docs/conventions/react-and-ui.md, docs/README.md |
색상, 타이포그래피, 형태, 반응형 대응 및 움직임 기준을 문서화했습니다. 작업별 필수 문서 안내와 UI 작성 지침을 갱신했습니다. |
전역 디자인 토큰과 샘플 src/index.css, src/components/DesignSystemSample/DesignSystemSample.stories.tsx |
전역 CSS에 다섯 가지 text-ui-* 토큰을 추가했습니다. 진영 색상·그림자 변수 이름을 변경하고, 디자인 샘플을 새 타이포그래피 예시로 갱신했습니다. |
진영 색상 명칭의 사용처 갱신 src/components/ProsAndConsTitle/PropsAndConsTitle.tsx, src/components/TimerProgressBar/*, src/page/AudienceSharePage/*, src/page/DebateTranscriptPage/*, src/page/TimerPage/components/* |
찬성·반대 색상 클래스 사용처와 관련 테스트를 stance-* 명칭으로 변경했습니다. 일부 색상 값과 조건 분기는 유지했습니다. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Feature
Possibly related PRs
- debate-timer/debate-timer-fe#532: 전사·보고서 UI에서 사용한
camp-*색상 클래스를 이 PR에서stance-*명칭으로 갱신합니다.
Suggested labels: feat
Suggested reviewers: coli-geonwoo, jaeml06, useon
Merge Risk: 
Minimal · up to 1c237
-
The design tokens and stance color renames are consistently defined and consumed, so the change is mergeable with normal checks.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Linked Issues check
-
Explanation
직접 연결된 활성 이슈는
#535입니다.docs/conventions/design.md에 시각 방향, 색상, 정보 위계, 형태, 공간 제약, 움직임 기준을 추가하고 문서 지도와 React·UI 지침에 연결했습니다.src/index.css에text-ui-headline,text-ui-title,text-ui-body,text-ui-label,text-ui-caption을 크기·굵기·행간과 함께 정의했습니다. 디자인 샘플 Story도 새 역할을 사용합니다. 기존 글자 선택자와 raw 변수는 삭제 예정 주석과 함께 유지합니다. 관련 진영 색상과 그림자 명칭을camp-*에서stance-*로 변경하고 테스트 기대값도 갱신했습니다. Tailwind 기본 팔레트 재정의 제거와 검증 결과 및 미실행 범위도 기록했습니다. 변경 내용은#535의코딩 요구사항을 충족합니다.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 15 files. (4 skipped: 4 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
토끼가 새 색 이름을 살펴보네
파랑과 빨강, stance로 가지런하네
다섯 글자 토큰이 CSS에 앉고
샘플 Story도 새 옷을 입네
문서 곁에서 당근을 나누네
Comment @coderabbitai help to get the list of available commands.
🚀 Preview 배포 완료!
|
|
🧹 Preview 배포가 정리되었습니다. |
🚩 연관 이슈
Closes #535
📝 작업 내용
화면마다 달랐던 시각 표현을 판단할 공통 디자인 기준을 추가하고, 새 UI에서 바로 사용할 수 있는 다섯 타이포그래피 역할을 구현했음. 진영 색상 이름과 Tailwind 기본 팔레트도 새 기준에 맞춰 정리했으며, 기존 화면의 글자·색상 전체 전환은 포함하지 않음.
디자인 지침과 문서 연결
실제 사용 가능한 타이포그래피
예를 들어 화면 제목은 text-ui-headline, 일반 설명은 text-ui-body와 별도 글자색을 조합함. md:text-ui-title 같은 화면 조건 조합도 사용할 수 있음. Pretendard 계열 글꼴을 상속하며 색상·자간을 역할에 고정하지 않음.
진영 이름과 기본 팔레트 정리
검증 결과
전체 테스트는 node node_modules/vitest/vitest.mjs run --maxWorkers=4 --reporter=verbose로 실행했으며 Windows 임시 경로를 node_modules/.cache/stance-validation으로 지정했음. 최초 단일 작업자 실행은 종료 결과가 없어 중단했고 원인은 미확정임. 전체 테스트에서 기존 Table의 button 중첩 경고도 관찰했으나 해당 구조는 변경하지 않았음.
검증 환경은 Node 24.21.0·npm 12.2.1·Vite 8.3.5·Vitest 4.1.12·Tailwind 4.3.3·Storybook 10.6.3임. 별도로 남아 있는 package-lock.json 변경은 이 PR에서 제외하며, 로컬 검증은 해당 설치 환경에서 수행했음. 이 PR에 포함될 기존 잠금 파일을 기준으로 새로 설치한 결과는 아니므로 원격 CI의 설치·테스트·lint 확인이 필요함.
🗣️ 리뷰 요구사항 (선택)
일반 테스트·lint CI 외의 생성 CSS·빌드·시각 검증을 다음과 같이 확인함.
Storybook의 Design System/DesignSystemSample에서 다섯 역할의 크기·굵기·행간과 색상 분리를 확인함. 실제 화면에서는 진영색의 찬반 대응, 기존 크기 전용 선택자의 표시 유지, 기본 회색·오류색 변경, 한국어·영어 긴 문구·좁은 화면의 읽기 상태를 확인함. Safari·Firefox·색 대비·움직임 감소 및 미리보기의 정적 자산 로딩은 수동 확인 범위임.
Summary by CodeRabbit
새로운 기능
변경 사항