| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| package com.google.ai.edge.gallery.ui.theme
|
|
|
| import androidx.compose.ui.text.font.Font
|
| import androidx.compose.material3.Typography
|
| import androidx.compose.ui.text.font.FontFamily
|
| import androidx.compose.ui.text.font.FontWeight
|
| import androidx.compose.ui.unit.sp
|
| import com.google.ai.edge.gallery.R
|
|
|
| val appFontFamily =
|
| FontFamily(
|
| Font(R.font.nunito_regular, FontWeight.Normal),
|
| Font(R.font.nunito_extralight, FontWeight.ExtraLight),
|
| Font(R.font.nunito_light, FontWeight.Light),
|
| Font(R.font.nunito_medium, FontWeight.Medium),
|
| Font(R.font.nunito_semibold, FontWeight.SemiBold),
|
| Font(R.font.nunito_bold, FontWeight.Bold),
|
| Font(R.font.nunito_extrabold, FontWeight.ExtraBold),
|
| Font(R.font.nunito_black, FontWeight.Black),
|
| )
|
|
|
| val baseline = Typography()
|
|
|
| val AppTypography =
|
| Typography(
|
| displayLarge = baseline.displayLarge.copy(fontFamily = appFontFamily),
|
| displayMedium = baseline.displayMedium.copy(fontFamily = appFontFamily),
|
| displaySmall = baseline.displaySmall.copy(fontFamily = appFontFamily),
|
| headlineLarge = baseline.headlineLarge.copy(fontFamily = appFontFamily),
|
| headlineMedium = baseline.headlineMedium.copy(fontFamily = appFontFamily),
|
| headlineSmall = baseline.headlineSmall.copy(fontFamily = appFontFamily),
|
| titleLarge = baseline.titleLarge.copy(fontFamily = appFontFamily),
|
| titleMedium = baseline.titleMedium.copy(fontFamily = appFontFamily),
|
| titleSmall = baseline.titleSmall.copy(fontFamily = appFontFamily),
|
| bodyLarge = baseline.bodyLarge.copy(fontFamily = appFontFamily),
|
| bodyMedium = baseline.bodyMedium.copy(fontFamily = appFontFamily),
|
| bodySmall = baseline.bodySmall.copy(fontFamily = appFontFamily),
|
| labelLarge = baseline.labelLarge.copy(fontFamily = appFontFamily),
|
| labelMedium = baseline.labelMedium.copy(fontFamily = appFontFamily),
|
| labelSmall = baseline.labelSmall.copy(fontFamily = appFontFamily),
|
| )
|
|
|
| val titleMediumNarrow =
|
| baseline.titleMedium.copy(fontFamily = appFontFamily, letterSpacing = 0.0.sp)
|
|
|
| val titleSmaller =
|
| baseline.titleSmall.copy(
|
| fontFamily = appFontFamily,
|
| fontSize = 12.sp,
|
| fontWeight = FontWeight.Bold,
|
| )
|
|
|
| val labelSmallNarrow = baseline.labelSmall.copy(fontFamily = appFontFamily, letterSpacing = 0.0.sp)
|
|
|
| val labelSmallNarrowMedium =
|
| baseline.labelSmall.copy(
|
| fontFamily = appFontFamily,
|
| fontWeight = FontWeight.Medium,
|
| letterSpacing = 0.0.sp,
|
| )
|
|
|
| val bodySmallNarrow = baseline.bodySmall.copy(fontFamily = appFontFamily, letterSpacing = 0.0.sp)
|
|
|
| val bodySmallMediumNarrow =
|
| baseline.bodySmall.copy(fontFamily = appFontFamily, letterSpacing = 0.0.sp, fontSize = 14.sp)
|
|
|
| val bodySmallMediumNarrowBold =
|
| baseline.bodySmall.copy(
|
| fontFamily = appFontFamily,
|
| letterSpacing = 0.0.sp,
|
| fontSize = 14.sp,
|
| fontWeight = FontWeight.Bold,
|
| )
|
|
|
| val homePageTitleStyle =
|
| baseline.displayMedium.copy(
|
| fontFamily = appFontFamily,
|
| fontSize = 48.sp,
|
| lineHeight = 48.sp,
|
| letterSpacing = -1.sp,
|
| fontWeight = FontWeight.Medium,
|
| )
|
|
|
| val bodyLargeNarrow = baseline.bodyLarge.copy(letterSpacing = 0.2.sp)
|
|
|
| val headlineLargeMedium = baseline.headlineLarge.copy(fontWeight = FontWeight.Medium)
|
|
|