feat: 다크모드 토큰 및 테마 설정 추가 - #777
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 내용
디자인 토큰 구조
색상은
팔레트 → 시맨틱 역할 토큰 → Tailwind 클래스순서로 적용됩니다. 컴포넌트는 원색 대신text-fg-*,bg-bg-*,border-stroke-*역할 클래스를 사용합니다.팔레트
라이트 모드
#E58257#EF9A6E#F7F7F7, 앱 바탕:#E6E6DD#E6E6DD, 일반 테두리:#BFBFBF기존의 메인 코랄과 서브 코랄을 하나로 합치지 않고
brand와brand-primary역할로 분리해 기존 라이트 화면을 보존했습니다.다크 모드
동일한 역할 이름은 유지하고
.dark클래스에서 CSS 변수 값만 덮어씁니다. 다크에서는 두 코랄 역할 모두#E99670으로 통일하고, 표면·텍스트·테두리는 Oak 팔레트로 전환합니다. 따라서 컴포넌트 코드를 조건 분기하지 않아도 테마가 바뀝니다.검증
npm test -- --runInBand— 64개 스위트, 297개 테스트 통과npm run lint통과 (기존 경고만 존재)참고
Refs bottle-note/workspace#307