Skip to content

Instantly share code, notes, and snippets.

@arriolac
Created September 26, 2022 18:24
Show Gist options
  • Save arriolac/8fb482996f075324f60c19add91bbf4f to your computer and use it in GitHub Desktop.
Save arriolac/8fb482996f075324f60c19add91bbf4f to your computer and use it in GitHub Desktop.
// Copyright 2022 Google LLC.
// SPDX-License-Identifier: Apache-2.0
val MontserratFontFamily = FontFamily(
listOf(
Font(R.font.montserrat_regular),
Font(R.font.montserrat_medium, FontWeight.Medium),
Font(R.font.montserrat_semibold, FontWeight.SemiBold)
)
)
val Typography = Typography(
// Display Large - Montserrat 57/64 . -0.25px
displayLarge = TextStyle(
fontFamily = MontserratFontFamily,
fontWeight = FontWeight.W400,
fontSize = 57.sp,
lineHeight = 64.sp,
letterSpacing = (-0.25).sp,
),
// Display Medium - Montserrat 45/52 . 0px
displayMedium = TextStyle(
fontFamily = MontserratFontFamily,
fontWeight = FontWeight.W400,
fontSize = 45.sp,
lineHeight = 52.sp,
letterSpacing = 0.sp,
),
// …
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment