Skip to content

Commit

Permalink
Chore/#10: letter spacing 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Jan 9, 2025
1 parent 6c27cc8 commit 134d205
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import coil.compose.AsyncImage
import com.wearerommies.roomie.presentation.core.extension.noRippleClickable
import com.wearerommies.roomie.presentation.core.extension.showToast
import com.wearerommies.roomie.presentation.core.util.UiState
import com.wearerommies.roomie.ui.theme.RoomieAndroidTheme
import com.wearerommies.roomie.ui.theme.RoomieTheme

@Composable
fun ReqresRoute(
Expand All @@ -49,6 +51,7 @@ fun ReqresRoute(
.collect { sideEffect ->
when (sideEffect) {
is ReqresSideEffect.ShowToast -> context.showToast(message = sideEffect.message)
else -> {}
}
}
}
Expand Down Expand Up @@ -100,8 +103,7 @@ fun ReqresScreen(
modifier = Modifier
.noRippleClickable { navigateUp() },
text = "로딩 중...",
textAlign = TextAlign.Center,
fontSize = 30.sp
style = RoomieTheme.typography.caption2Sb10
)
}
}
Expand Down Expand Up @@ -146,9 +148,11 @@ fun ReqresScreen(
@Preview
@Composable
fun ReqresScreenPreview() {
ReqresScreen(
paddingValues = PaddingValues(),
navigateUp = {},
state = UiState.Loading
)
RoomieAndroidTheme {
ReqresScreen(
paddingValues = PaddingValues(),
navigateUp = {},
state = UiState.Loading
)
}
}
36 changes: 18 additions & 18 deletions app/src/main/java/com/wearerommies/roomie/ui/theme/Type.kt
Original file line number Diff line number Diff line change
Expand Up @@ -160,119 +160,119 @@ fun RoomieTypography(): RoomieTypography {
fontWeight = FontWeight.Bold,
fontSize = 20.sp,
lineHeight = 28.sp,
letterSpacing = (-0.5).em
letterSpacing = (-0.005).em
),
heading2Sb20 = roomieTextStyle(
fontFamily = PretendardSemiBold,
fontWeight = FontWeight.SemiBold,
fontSize = 20.sp,
lineHeight = 28.sp,
letterSpacing = (-0.5).em
letterSpacing = (-0.005).em
),
heading3M20 = roomieTextStyle(
fontFamily = PretendardMedium,
fontWeight = FontWeight.Medium,
fontSize = 20.sp,
lineHeight = 28.sp,
letterSpacing = (-0.5).em
letterSpacing = (-0.005).em
),
heading4B18 = roomieTextStyle(
fontFamily = PretendardBold,
fontWeight = FontWeight.Bold,
fontSize = 18.sp,
lineHeight = 24.sp,
letterSpacing = (-0.5).em
letterSpacing = (-0.005).em
),
heading5Sb18 = roomieTextStyle(
fontFamily = PretendardSemiBold,
fontWeight = FontWeight.SemiBold,
fontSize = 18.sp,
lineHeight = 24.sp,
letterSpacing = (-0.5).em
letterSpacing = (-0.005).em
),
title1R16 = roomieTextStyle(
fontFamily = PretendardRegular,
fontWeight = FontWeight.Normal,
fontSize = 16.sp,
lineHeight = 22.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
title2Sb16 = roomieTextStyle(
fontFamily = PretendardSemiBold,
fontWeight = FontWeight.SemiBold,
fontSize = 16.sp,
lineHeight = 22.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
title3M16 = roomieTextStyle(
fontFamily = PretendardMedium,
fontWeight = FontWeight.Medium,
fontSize = 16.sp,
lineHeight = 22.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
body1R14 = roomieTextStyle(
fontFamily = PretendardRegular,
fontWeight = FontWeight.Normal,
fontSize = 14.sp,
lineHeight = 20.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
body2Sb14 = roomieTextStyle(
fontFamily = PretendardSemiBold,
fontWeight = FontWeight.SemiBold,
fontSize = 14.sp,
lineHeight = 20.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
body3M14 = roomieTextStyle(
fontFamily = PretendardMedium,
fontWeight = FontWeight.Medium,
fontSize = 14.sp,
lineHeight = 20.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
body4R12 = roomieTextStyle(
fontFamily = PretendardRegular,
fontWeight = FontWeight.Normal,
fontSize = 12.sp,
lineHeight = 18.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
body5Sb12 = roomieTextStyle(
fontFamily = PretendardSemiBold,
fontWeight = FontWeight.SemiBold,
fontSize = 12.sp,
lineHeight = 18.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
body6M12 = roomieTextStyle(
fontFamily = PretendardMedium,
fontWeight = FontWeight.Medium,
fontSize = 12.sp,
lineHeight = 18.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
caption1R10 = roomieTextStyle(
fontFamily = PretendardRegular,
fontWeight = FontWeight.Normal,
fontSize = 10.sp,
lineHeight = 14.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
caption2Sb10 = roomieTextStyle(
fontFamily = PretendardSemiBold,
fontWeight = FontWeight.SemiBold,
fontSize = 10.sp,
lineHeight = 14.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
),
caption3M10 = roomieTextStyle(
fontFamily = PretendardMedium,
fontWeight = FontWeight.Medium,
fontSize = 10.sp,
lineHeight = 14.sp,
letterSpacing = (-1).em
letterSpacing = (-0.01).em
)
)
}
}

0 comments on commit 134d205

Please sign in to comment.