|
|
|
@ -17,8 +17,14 @@
|
|
|
|
|
package com.google.samples.apps.nowinandroid.core.designsystem.theme
|
|
|
|
|
|
|
|
|
|
import androidx.compose.material3.Typography
|
|
|
|
|
import androidx.compose.ui.text.PlatformTextStyle
|
|
|
|
|
import androidx.compose.ui.text.TextStyle
|
|
|
|
|
import androidx.compose.ui.text.font.FontWeight
|
|
|
|
|
import androidx.compose.ui.text.style.LineHeightStyle
|
|
|
|
|
import androidx.compose.ui.text.style.LineHeightStyle.Alignment
|
|
|
|
|
import androidx.compose.ui.text.style.LineHeightStyle.Alignment.Companion
|
|
|
|
|
import androidx.compose.ui.text.style.LineHeightStyle.Trim
|
|
|
|
|
import androidx.compose.ui.unit.TextUnit
|
|
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -60,12 +66,20 @@ internal val NiaTypography = Typography(
|
|
|
|
|
fontSize = 24.sp,
|
|
|
|
|
lineHeight = 32.sp,
|
|
|
|
|
letterSpacing = 0.sp,
|
|
|
|
|
lineHeightStyle = LineHeightStyle(
|
|
|
|
|
alignment = Alignment.Bottom,
|
|
|
|
|
trim = Trim.None
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
titleLarge = TextStyle(
|
|
|
|
|
fontWeight = FontWeight.Bold,
|
|
|
|
|
fontSize = 22.sp,
|
|
|
|
|
lineHeight = 28.sp,
|
|
|
|
|
letterSpacing = 0.sp,
|
|
|
|
|
lineHeightStyle = LineHeightStyle(
|
|
|
|
|
alignment = Alignment.Bottom,
|
|
|
|
|
trim = Trim.LastLineBottom
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
titleMedium = TextStyle(
|
|
|
|
|
fontWeight = FontWeight.Bold,
|
|
|
|
@ -84,6 +98,10 @@ internal val NiaTypography = Typography(
|
|
|
|
|
fontSize = 16.sp,
|
|
|
|
|
lineHeight = 24.sp,
|
|
|
|
|
letterSpacing = 0.5.sp,
|
|
|
|
|
lineHeightStyle = LineHeightStyle(
|
|
|
|
|
alignment = Alignment.Bottom,
|
|
|
|
|
trim = Trim.Both
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
bodyMedium = TextStyle(
|
|
|
|
|
fontWeight = FontWeight.Normal,
|
|
|
|
@ -108,11 +126,19 @@ internal val NiaTypography = Typography(
|
|
|
|
|
fontSize = 12.sp,
|
|
|
|
|
lineHeight = 16.sp,
|
|
|
|
|
letterSpacing = 0.5.sp,
|
|
|
|
|
lineHeightStyle = LineHeightStyle(
|
|
|
|
|
alignment = Alignment.Bottom,
|
|
|
|
|
trim = Trim.None
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
labelSmall = TextStyle(
|
|
|
|
|
fontWeight = FontWeight.Medium,
|
|
|
|
|
fontSize = 10.sp,
|
|
|
|
|
lineHeight = 16.sp,
|
|
|
|
|
lineHeight = 14.sp,
|
|
|
|
|
letterSpacing = 0.sp,
|
|
|
|
|
lineHeightStyle = LineHeightStyle(
|
|
|
|
|
alignment = Alignment.Bottom,
|
|
|
|
|
trim = Trim.Both
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|