-
Notifications
You must be signed in to change notification settings - Fork 0
[NDGL-30] 디자인 시스템 리소스 추가(typography, color, theme) #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Walkthrough테마 시스템을 CompositionLocal 기반으로 재구성했습니다. 색상 상수를 Changes
Sequence Diagram(s)sequenceDiagram
participant App as AppComposable
participant NDGL as NDGLTheme
participant CL as CompositionLocalProvider
participant MT as MaterialTheme
participant Content as ContentComposable
App->>NDGL: call NDGLTheme(content)
NDGL->>CL: provide LocalNDGLColors, LocalNDGLTypography
CL->>MT: construct colorScheme and typography from NDGLColors/NDGLTypography
MT->>Content: render content() with provided locals
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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. Comment |
| internal fun ndglColors() = NDGLColors( | ||
| white = colorResource(R.color.white), | ||
|
|
||
| primary50 = colorResource(R.color.primary_50), | ||
| primary100 = colorResource(R.color.primary_100), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color를 xml로 만들어서 colorResource로 불러오는 이유가 있을까요? 컴포즈 전용이면 Color(헥사코드)로 선언하고 사용하는게 가독성이나 성능 측면에서 더 좋지 않을까요? colorResource를 사용할 때 Composable 제약도 생기기도 하구요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
나중에 다크모드 대응할 때 편하지 않을까 해서 했었는데 상관 없을 것 같아요!
추가할 때 다크모드 버전으로 넣으면 되니까..! Color로 선언하도록 수정했습니다~!
5b9d1e7 to
d6c73ba
Compare
There was a problem hiding this 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
🤖 Fix all issues with AI agents
In `@core/ui/src/main/java/com/yapp/ndgl/core/ui/theme/Theme.kt`:
- Around line 25-38: CompositionLocalProvider currently only provides
LocalNDGLColors so NDGLTheme.typography falls back to the default
NDGLTypography(); update the CompositionLocalProvider (the one wrapping
MaterialTheme) to also provide LocalNDGLTypography with the theme typography
instance (e.g., ndglTypography) used by NDGLTheme.typography. Ensure the
provider key is LocalNDGLTypography and the value is the NDGL typography object
created alongside ndglColors so NDGLTheme.typography reads the intended
design-system typography.
a0090c7 to
d1c64eb
Compare
|
Typography 네이밍 변경사항이 있어서 반영했습니다~! |
d1c64eb to
765722c
Compare
765722c to
11b1fb9
Compare
NDGL-30 디자인 시스템 리소스 추가(typography, color, theme)
컴포넌트 구현은 길어질 것 같아서 별도 PR로 올리는 것이 좋을 것 같아서 먼저 올립니다
연관 문서
디자인
변경사항
테스트 체크 리스트
Summary by CodeRabbit
리팩토링
신규
제거
✏️ Tip: You can customize this high-level summary in your review settings.