-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f42202
commit 0b1db24
Showing
4 changed files
with
57 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
92 changes: 54 additions & 38 deletions
92
JDS-component/src/main/java/com/jusiCool/jds_component/typography/JDSTypography.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,91 @@ | ||
package com.jusiCool.jds_component.typography | ||
|
||
import androidx.compose.material3.Typography | ||
import androidx.compose.runtime.Stable | ||
import androidx.compose.ui.text.TextStyle | ||
import androidx.compose.ui.text.font.Font | ||
import androidx.compose.ui.text.font.FontFamily | ||
import androidx.compose.ui.text.font.FontWeight | ||
import androidx.compose.ui.text.style.TextAlign | ||
import androidx.compose.ui.unit.sp | ||
import com.jusiCool.jds_component.R | ||
import com.example.jds_component.R | ||
|
||
val pretendard = FontFamily( | ||
Font(R.font.pretendard), | ||
Font(R.font.pretendard_regular), | ||
Font(R.font.pretendard_semi_bold) | ||
) | ||
object JDSTypography { | ||
private val pretendard = FontFamily( | ||
Font(R.font.pretendard), | ||
Font(R.font.pretendard_regular), | ||
Font(R.font.pretendard_semi_bold) | ||
) | ||
|
||
val JDSTypography = Typography( | ||
labelSmall = TextStyle( // Sub Title | ||
fontSize = 18.sp, | ||
@Stable | ||
val titleLarge = TextStyle( | ||
fontFamily = pretendard, | ||
lineHeight = 27.sp, | ||
fontWeight = FontWeight.SemiBold, | ||
textAlign = TextAlign.Center, | ||
), | ||
titleLarge = TextStyle( | ||
fontSize = 48.sp, | ||
fontFamily = pretendard, | ||
lineHeight = 58.sp, | ||
fontWeight = FontWeight.SemiBold, | ||
textAlign = TextAlign.Center | ||
), | ||
titleMedium = TextStyle( | ||
fontSize = 36.sp, | ||
textAlign = TextAlign.Center, | ||
) | ||
|
||
@Stable | ||
val titleMedium = TextStyle( | ||
fontFamily = pretendard, | ||
fontSize = 36.sp, | ||
lineHeight = 43.sp, | ||
fontWeight = FontWeight.SemiBold, | ||
textAlign = TextAlign.Center, | ||
), | ||
titleSmall = TextStyle( | ||
fontSize = 24.sp, | ||
) | ||
|
||
@Stable | ||
val titleSmall = TextStyle( | ||
fontFamily = pretendard, | ||
fontSize = 24.sp, | ||
lineHeight = 31.sp, | ||
fontWeight = FontWeight.SemiBold, | ||
textAlign = TextAlign.Center, | ||
), | ||
bodyLarge = TextStyle( | ||
fontSize = 16.sp, | ||
) | ||
|
||
@Stable | ||
val subTitle = TextStyle( | ||
fontFamily = pretendard, | ||
lineHeight = 22.sp, | ||
fontSize = 18.sp, | ||
lineHeight = 27.sp, | ||
fontWeight = FontWeight.SemiBold, | ||
textAlign = TextAlign.Center, | ||
) | ||
|
||
@Stable | ||
val bodyLarge = TextStyle( | ||
fontFamily = pretendard, | ||
fontSize = 18.sp, | ||
lineHeight = 27.sp, | ||
fontWeight = FontWeight.Normal, | ||
textAlign = TextAlign.Center, | ||
), | ||
bodyMedium = TextStyle( | ||
fontSize = 14.sp, | ||
) | ||
|
||
@Stable | ||
val bodyMedium = TextStyle( | ||
fontFamily = pretendard, | ||
lineHeight = 20.sp, | ||
fontSize = 16.sp, | ||
lineHeight = 22.sp, | ||
fontWeight = FontWeight.SemiBold, | ||
textAlign = TextAlign.Center, | ||
), | ||
bodySmall = TextStyle( | ||
fontSize = 14.sp, | ||
) | ||
|
||
@Stable | ||
val bodySmall = TextStyle( | ||
fontFamily = pretendard, | ||
lineHeight = 20.sp, | ||
fontSize = 16.sp, | ||
lineHeight = 22.sp, | ||
fontWeight = FontWeight.Normal, | ||
textAlign = TextAlign.Center, | ||
), | ||
labelLarge = TextStyle( //lable | ||
fontSize = 12.sp, | ||
) | ||
|
||
@Stable | ||
val label = TextStyle( | ||
fontFamily = pretendard, | ||
fontSize = 14.sp, | ||
lineHeight = 18.sp, | ||
fontWeight = FontWeight.Normal, | ||
textAlign = TextAlign.Center, | ||
) | ||
) | ||
} |