Skip to content
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

Feature/mz 148 typo color theme #10

Merged
merged 8 commits into from
Dec 16, 2023
Merged

Conversation

jinukeu
Copy link
Member

@jinukeu jinukeu commented Dec 16, 2023

๐Ÿ’ก Issue

๐ŸŒฑ Key changes

  • Typo
  • Color
  • Spacing
  • Theme

โœ… To Reviewers

์‚ฌ์šฉ ์˜ˆ์‹œ์ž…๋‹ˆ๋‹ค.

// Typo
@Preview
@Composable
fun Sample() {
    SusuTheme {
        Text(
            text = "title_xxxxl",
            style = SusuTheme.typography.title_xxxxl,
        )
    }
}

// Color
MaterialTheme(
            colorScheme = lightColorScheme(
                background = Gray15,
            ),
            content = content,
        )

Typography ... ์นด๋ฉœ์ผ€์ด์Šค(titleXxxxl)๋ž‘ ์Šค๋„ค์ดํฌ์ผ€์ด์Šค(title_xxxxl) ๊ณ ๋ฏผํ•˜๋‹ค๊ฐ€ ๊ฐ€๋…์„ฑ์ด ๋” ์ข‹์•„๋ณด์ด๋Š” ์Šค๋„ค์ดํฌ์ผ€์ด์Šค๋กœ ํ–ˆ์Šต๋‹ˆ๋‹ค.

@Suppress("ConstructorParameterNaming")
@Immutable
data class SusuTypography(
    val title_xxxxl: TextStyle,
    val title_xxxl: TextStyle,
    val title_xxl: TextStyle,

deteKt์˜ ConstructorParameterNaming๋ฅผ disableํ•˜๊ธฐ ์œ„ํ•ด @Suppress("ConstructorParameterNaming") ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

์ฐธ๊ณ ํ•œ ๋ธ”๋กœ๊ทธ๋ณด๊ณ  ์ปฌ๋Ÿฌ ์ •์˜ํ•ด๋†จ์Šต๋‹ˆ๋‹ค! background๋Š” ๋””์ž์ด๋„ˆ๋ถ„์ด ๋”ฐ๋กœ ์ด๋ฆ„์„ ์ง€์ •ํ•˜์ง€ ์•Š์•˜์œผ๋‚˜ ์ง€๊ธˆ๊นŒ์ง€ ๋‚˜์˜จ ํ™”๋ฉด์œผ๋กœ๋Š” Gray10, 15๋งŒ ์žˆ๋”๋ผ๊ตฌ์š”!? ๊ทธ๋ž˜์„œ background10, background15๋กœ ์ผ๋‹จ ์ง€์ •ํ–ˆ์Šต๋‹ˆ๋‹ค!

Dark, Light ํ…Œ๋งˆ ๋ณ€๊ฒฝ ๋Œ€์‘์€ ์ง€๊ธˆ ์‹œ์ ์—์„œ ๋ถˆํ•„์š”ํ•˜๋‹ค ์ƒ๊ฐํ•ดํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ๋งŒ์•ฝ ํ•œ๋‹ค๋ฉด ์•„๋ž˜ ๋ธ”๋กœ๊ทธ ์ฐธ๊ณ ํ• ๊ฑฐ๊ฐ™์•„์š”! ๋‹ค์‹œ ํ•œ๋ฒˆ ์ฝ”๋“œ ๋ฆฌ๋ทฐ ๋ถ€ํƒ๋“œ๋ฆผ๋‘ฅ!
https://velog.io/@vov3616/Compose-Custom-Theme-%EB%A7%8C%EB%93%A4%EA%B8%B0

ํ•ด๋‹น PR์ด Merge๋˜๋ฉด component์—์„œ ์ปดํฌ๋„ŒํŠธ ์ž‘์—…ํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค~!

๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท

์Šคํฌ๋ฆฐ์ƒท
ํŒŒ์ผ์ฒจ๋ถ€๋ฐ”๋žŒ

@jinukeu jinukeu added the chore label Dec 16, 2023
@jinukeu jinukeu self-assigned this Dec 16, 2023
Copy link
Member

@yangsooplus yangsooplus left a comment

Choose a reason for hiding this comment

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

ํ™•์‹คํžˆ ์Šค๋„ค์ดํฌ ์ผ€์ด์Šค๊ฐ€ ๋ˆˆ์— ํ™• ๋“ค์–ด์˜ค๋„ค์š” ๐Ÿ‘

Comment on lines 16 to 19
MaterialTheme(
colorScheme = lightColorScheme(
background = Gray15,
),
Copy link
Member

Choose a reason for hiding this comment

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

์ผ๋‹จ ๋ฐฐ๊ฒฝ์ƒ‰๋งŒ MaterialTheme.colorScheme.background๋กœ ์‚ฌ์šฉํ•˜๊ณ  ๋‹ค๋ฅธ ์ƒ‰์ƒ์€ ์ƒ‰์ƒ ์ด๋ฆ„ ์‚ฌ์šฉํ•˜๋ฉด ๋˜๋Š”๊ฑธ๊นŒ์š”?

Copy link
Member Author

Choose a reason for hiding this comment

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

๋„ค ๋งž์•„์š”! ๊ทผ๋ฐ MaterialTheme.colorScheme.background ์•ˆ์จ๋„ ์ž๋™์œผ๋กœ ์ง€์ •๋ ๊ฑฐ์—์š” :)

Comment on lines +16 to +31
internal val pretendardFamily = FontFamily(
Font(R.font.pretendardbold, FontWeight.Bold),
Font(R.font.pretendardregular, FontWeight.Normal),
)

private val pretendardStyle = TextStyle(
fontFamily = pretendardFamily,
letterSpacing = TextUnit(-0.02f, TextUnitType.Sp),
platformStyle = PlatformTextStyle(
includeFontPadding = false,
),
lineHeightStyle = LineHeightStyle(
alignment = LineHeightStyle.Alignment.Center,
trim = LineHeightStyle.Trim.None,
),
)
Copy link
Member

Choose a reason for hiding this comment

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

๊ณตํ†ต๋œ ์†์„ฑ์„ ์ด๋ ‡๊ฒŒ ๋ฌถ์–ด์„œ ๊ฐ€๋…์„ฑ์ด ์ข‹์•„์กŒ๋„ค์š”! ๐Ÿ‘

@jinukeu
Copy link
Member Author

jinukeu commented Dec 16, 2023

ํ”ผ๊ทธ๋งˆ ํ™•์ธํ•ด๋ณด๋‹ˆ ์ผ๋ถ€ Color๋Š” ๋„ค์ด๋ฐ์ด ๋˜์–ด์žˆ๋”๋ผ๊ตฌ์š”!? (Primary(Orange60), Accent(Blue60), Error(Red60))
๊ทธ๋ž˜์„œ Primary, Accent, Error, Background๋งŒ ์Šคํ‚ค๋งˆ๋ฅผ ์ •์˜ํ•˜๋ คํ–ˆ๋Š”๋ฐ ์ด๋ ‡๊ฒŒํ•˜๋ฉด ๋‚˜๋จธ์ง€ Color๋Š” ์–ด๋–ป๊ฒŒ ํ•ด์•ผํ• ์ง€ ์• ๋งคํ•˜๋”๋ผ๊ตฌ์š” ...

๋‹ค๋ฅธ ๋ถ„๋“ค ์˜๊ฒฌ์€ ์–ด๋– ์‹ ์ง€ ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค~!!

  1. ์ผ๋ถ€๋ถ„๋งŒ schema๋ฅผ ์ •์˜ํ•ด์„œ ์‚ฌ์šฉํ•œ๋‹ค.
  2. ์•„๋‹ˆ๋‹ค. schema๋ฅผ ์ •์˜ํ•˜์ง€ ์•Š๋Š”๋‹ค.
  3. ๊ธฐํƒ€ ์˜๊ฒฌ ํ™˜์˜.
    (์ €๋Š” 2๋ฒˆ์ด์—์š” ใ…Žใ…Ž)

@yangsooplus
Copy link
Member

yangsooplus commented Dec 16, 2023

์ „ 1๋ฒˆ ์ •ํ•ด์ง„ ์ผ๋ถ€๋งŒ ์ •์˜ํ•˜๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค! ์‹œ์•ˆ์„ ํ™•์ธํ•ด๋ณด๋ฉด primary๋Š” ๊ฑฐ์˜ ๋ชจ๋“  ํ™”๋ฉด์—์„œ, accent๋„ ๊ฝค ๋งŽ์€ ํ™”๋ฉด์—์„œ ์‚ฌ์šฉํ•˜๊ฒŒ ๋  ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ด๋„ค์š” Error๋„ ํ˜„์žฌ๋Š” TextField Component์— ์‚ฌ์šฉ๋˜์–ด ์žˆ์ง€๋งŒ ์—๋Ÿฌ ๋ฐœ์ƒ ์‹œ์˜ UI ์—์„œ ์ž์ฃผ ์“ฐ์ผ๊ฒƒ ๊ฐ™๊ณ ์š”

@yangsooplus
Copy link
Member

๊ทธ๋ž˜์„œ Primary, Accent, Error, Background๋งŒ ์Šคํ‚ค๋งˆ๋ฅผ ์ •์˜ํ•˜๋ คํ–ˆ๋Š”๋ฐ

์•„ ๋‚œ๋… ใ…ˆใ……ํ•ฉ๋‹ˆ๋‹ค ์ €๋„ ์ € 4๊ฐœ๋Š” ์Šคํ‚ค๋งˆ๋กœ ์ •์˜ํ•˜๊ณ , ๋‚˜๋จธ์ง€๋Š” ์ •์˜ํ•˜์ง€ ๋ง์ž๋Š” ๋ง์ด์—ˆ์Šต๋‹ˆ๋‹ค ใ…Žใ…Ž;

@syb8200
Copy link
Contributor

syb8200 commented Dec 16, 2023

ํ ..๋‚˜๋จธ์ง€ ์ƒ‰์ƒ๋“ค์ด ์ข€ ์• ๋งคํ•ด์ง€๋Š” ๊ฒƒ ๊ฐ™๊ธดํ•œ๋ฐ.. Primary, Accent, Error, Background ์–˜๋„ค๊ฐ€ ์ž์ฃผ ์‚ฌ์šฉ๋  ๊ฒƒ ๊ฐ™์•„์„œ ์–˜๋„ค๋งŒ ๋”ฐ๋กœ ์ •์˜ํ•˜๋Š”๊ฒŒ ์ข‹์„๊ฒƒ ๊ฐ™์•„์šฅ!

@jinukeu
Copy link
Member Author

jinukeu commented Dec 16, 2023

์•„ํ•˜ ๊ทธ๋Ÿฌ๋ฉด ๋‘ ๋ถ„๋‹ค 1๋ฒˆ ์˜๊ฒฌ ๋งž์œผ์‹œ์ฃ ? (ํ”„๋ผ์ด๋จธ๋ฆฌ, ์•…์„ผํŠธ, ๋ฐฑ๊ทธ๋ผ์šด๋“œ, ์—๋Ÿฌ๋งŒ ์Šคํ‚ค๋งˆ ์ง€์ •)

@yangsooplus
Copy link
Member

๋„ค๋„ต!

@jinukeu
Copy link
Member Author

jinukeu commented Dec 16, 2023

์ฐธ๊ณ ํ•œ ๋ธ”๋กœ๊ทธ๋ณด๊ณ  ์ปฌ๋Ÿฌ ์ •์˜ํ•ด๋†จ์Šต๋‹ˆ๋‹ค! background๋Š” ๋””์ž์ด๋„ˆ๋ถ„์ด ๋”ฐ๋กœ ์ด๋ฆ„์„ ์ง€์ •ํ•˜์ง€ ์•Š์•˜์œผ๋‚˜ ์ง€๊ธˆ๊นŒ์ง€ ๋‚˜์˜จ ํ™”๋ฉด์œผ๋กœ๋Š” Gray10, 15๋งŒ ์žˆ๋”๋ผ๊ตฌ์š”!? ๊ทธ๋ž˜์„œ background10, background15๋กœ ์ผ๋‹จ ์ง€์ •ํ–ˆ์Šต๋‹ˆ๋‹ค!

Dark, Light ํ…Œ๋งˆ ๋ณ€๊ฒฝ ๋Œ€์‘์€ ์ง€๊ธˆ ์‹œ์ ์—์„œ ๋ถˆํ•„์š”ํ•˜๋‹ค ์ƒ๊ฐํ•ดํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ๋งŒ์•ฝ ํ•œ๋‹ค๋ฉด ์•„๋ž˜ ๋ธ”๋กœ๊ทธ ์ฐธ๊ณ ํ• ๊ฑฐ๊ฐ™์•„์š”! ๋‹ค์‹œ ํ•œ๋ฒˆ ์ฝ”๋“œ ๋ฆฌ๋ทฐ ๋ถ€ํƒ๋“œ๋ฆผ๋‘ฅ!
https://velog.io/@vov3616/Compose-Custom-Theme-%EB%A7%8C%EB%93%A4%EA%B8%B0

@yangsooplus
Copy link
Member

image
๋””์ž์ธ์‹œ์Šคํ…œ - Layout ํŒŒ์ผ์— Spacing๋„ ์ •์˜๋˜์–ด ์žˆ๋Š”๋ฐ, ์ฒจ๋ถ€ํ•ด์ฃผ์‹  ์ฐธ๊ณ  ํฌ์ŠคํŠธ ์ฒ˜๋Ÿผ ํ…Œ๋งˆ์— ์ •์˜ํ•˜๋Š”๊ฑด ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์„ธ์š”?

@jinukeu
Copy link
Member Author

jinukeu commented Dec 16, 2023

image ๋””์ž์ธ์‹œ์Šคํ…œ - Layout ํŒŒ์ผ์— Spacing๋„ ์ •์˜๋˜์–ด ์žˆ๋Š”๋ฐ, ์ฒจ๋ถ€ํ•ด์ฃผ์‹  ์ฐธ๊ณ  ํฌ์ŠคํŠธ ์ฒ˜๋Ÿผ ํ…Œ๋งˆ์— ์ •์˜ํ•˜๋Š”๊ฑด ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์„ธ์š”?

์–ด ์š”๋†ˆ ๋ชป๋ดค๋˜๊ฑฐ๊ฐ™์€๋ฐ?? ์ œ๊ฐ€ ๋†“์ณค๋‚˜๋ด์š”
์ž ๊น ์‰ฌ์—ˆ๋‹ค๊ฐ€ ์ถ”๊ฐ€ํ•˜๊ณ  ์ฝ”๋ฉ˜ํŠธ ๋‚จ๊ธธ๊ฒŒ์š” ... ใ…Žใ…Ž ๊ผผ๊ผผํ•˜๊ฒŒ ๋ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ด์š” ๐Ÿ‘

@jinukeu
Copy link
Member Author

jinukeu commented Dec 16, 2023

์ถ”๊ฐ€ํ–ˆ์–ด์š”~!!

Copy link
Member

@yangsooplus yangsooplus left a comment

Choose a reason for hiding this comment

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

๐Ÿ‘ ๋„ค์ด๋ฐ xxx๋กœ ์œ ์ง€ํ•˜๊ธธ ์ž˜ํ–ˆ๋„ค์š” spacing๋„ ํ†ต์ผ๋˜๋‹ˆ ํŽธ-์•ˆ

@syb8200
Copy link
Contributor

syb8200 commented Dec 16, 2023

ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค!

@jinukeu jinukeu merged commit b9559cb into develop Dec 16, 2023
1 check passed
@jinukeu jinukeu deleted the feature/MZ-148-typo-color-theme branch December 22, 2023 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Chore] Typo, Color, Theme
3 participants