Skip to content

Instantly share code, notes, and snippets.

@Peddro
Created January 26, 2022 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Peddro/5110fccc1b5e59ef47c697ced857856b to your computer and use it in GitHub Desktop.
Save Peddro/5110fccc1b5e59ef47c697ced857856b to your computer and use it in GitHub Desktop.
@Immutable
data class H19Typography(
val title1: TextStyle = TextStyle(
fontWeight = FontWeight.Medium,
fontSize = 24.sp,
letterSpacing = 0.sp,
lineHeight = 20.sp
),
val title2: TextStyle = TextStyle(
fontWeight = FontWeight.Medium,
fontSize = 22.sp,
letterSpacing = 0.sp,
lineHeight = 20.sp
),
val body1: TextStyle = TextStyle(
fontWeight = FontWeight.Medium,
fontSize = 16.sp,
letterSpacing = 0.sp,
lineHeight = 20.sp
),
val body1Bold: TextStyle = TextStyle(
fontWeight = FontWeight.Bold,
fontSize = 16.sp,
letterSpacing = 0.sp,
lineHeight = 20.sp
),
val body2: TextStyle = TextStyle(
fontWeight = FontWeight.Medium,
fontSize = 14.sp,
letterSpacing = 0.sp,
lineHeight = 18.sp
),
val body2Bold: TextStyle = TextStyle(
fontWeight = FontWeight.Bold,
fontSize = 14.sp,
letterSpacing = 0.sp,
lineHeight = 18.sp
),
val caption: TextStyle = TextStyle(
fontWeight = FontWeight.Medium,
fontSize = 12.sp,
letterSpacing = 0.sp,
lineHeight = 16.sp
),
val captionBold: TextStyle = TextStyle(
fontWeight = FontWeight.Bold,
fontSize = 12.sp,
letterSpacing = 0.sp,
lineHeight = 16.sp
),
)
internal val LocalTypography = staticCompositionLocalOf { H19Typography() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment