Skip to content

Instantly share code, notes, and snippets.

@ifucolo
Created April 15, 2025 09:03
Show Gist options
  • Save ifucolo/ec626457a21788795a7a23f3e6064da6 to your computer and use it in GitHub Desktop.
Save ifucolo/ec626457a21788795a7a23f3e6064da6 to your computer and use it in GitHub Desktop.
@Composable
fun DisplayLargeText(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified,
textAlign: TextAlign? = null
) {
GenericText(
text = text,
modifier = modifier,
style = SanctusAppTypography.displayLarge,
color = color,
textAlign = textAlign
)
}
@Composable
fun DisplayMediumText(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified,
textAlign: TextAlign? = null
) {
GenericText(
text = text,
modifier = modifier,
style = SanctusAppTypography.displayMedium,
color = color,
textAlign = textAlign
)
}
@Composable
fun HeadlineLargeText(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified,
textAlign: TextAlign? = null
) {
GenericText(
text = text,
modifier = modifier,
style = SanctusAppTypography.headlineLarge,
color = color,
textAlign = textAlign
)
}
@Composable
fun HeadlineMediumText(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified,
textAlign: TextAlign? = null
) {
GenericText(
text = text,
modifier = modifier,
style = SanctusAppTypography.headlineMedium,
color = color,
textAlign = textAlign
)
}
@Composable
fun TitleLargeText(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified,
textAlign: TextAlign? = null
) {
GenericText(
text = text,
modifier = modifier,
style = SanctusAppTypography.titleLarge,
color = color,
textAlign = textAlign
)
}
@Composable
fun BodyLargeText(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified,
textAlign: TextAlign? = null
) {
GenericText(
text = text,
modifier = modifier,
style = SanctusAppTypography.bodyLarge,
color = color,
textAlign = textAlign
)
}
@Composable
fun BodyMediumText(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified,
textAlign: TextAlign? = null
) {
GenericText(
text = text,
modifier = modifier,
style = SanctusAppTypography.bodyMedium,
color = color,
textAlign = textAlign
)
}
@Composable
fun LabelLargeText(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified,
textAlign: TextAlign? = null
) {
GenericText(
text = text,
modifier = modifier,
style = SanctusAppTypography.labelLarge,
color = color,
textAlign = textAlign
)
}
@Composable
fun LabelMediumText(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified,
textAlign: TextAlign? = null
) {
GenericText(
text = text,
modifier = modifier,
style = SanctusAppTypography.labelMedium,
color = color,
textAlign = textAlign
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment