|
@@ -2,33 +2,116 @@ package com.vpn.fastestvpnservice.ui.theme
|
|
|
|
|
|
import androidx.compose.material3.Typography
|
|
|
import androidx.compose.ui.text.TextStyle
|
|
|
+import androidx.compose.ui.text.font.Font
|
|
|
import androidx.compose.ui.text.font.FontFamily
|
|
|
import androidx.compose.ui.text.font.FontWeight
|
|
|
+import androidx.compose.ui.text.style.TextAlign
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
+import com.vpn.fastestvpnservice.R
|
|
|
|
|
|
// Set of Material typography styles to start with
|
|
|
+
|
|
|
+val outfitFontFamily = FontFamily(
|
|
|
+ Font(R.font.outfit_black, FontWeight.Black),
|
|
|
+ Font(R.font.outfit_bold, FontWeight.Bold),
|
|
|
+ Font(R.font.outfit_extrabold, FontWeight.ExtraBold),
|
|
|
+ Font(R.font.outfit_semibold, FontWeight.SemiBold),
|
|
|
+ Font(R.font.outfit_medium, FontWeight.Medium),
|
|
|
+ Font(R.font.outfit_regular, FontWeight.Normal),
|
|
|
+ Font(R.font.outfit_light, FontWeight.Light),
|
|
|
+ Font(R.font.outfit_extralight, FontWeight.ExtraLight),
|
|
|
+ Font(R.font.outfit_thin, FontWeight.Thin)
|
|
|
+)
|
|
|
+
|
|
|
val Typography = Typography(
|
|
|
- bodyLarge = TextStyle(
|
|
|
- fontFamily = FontFamily.Default,
|
|
|
+
|
|
|
+ displaySmall = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Normal,
|
|
|
+ fontSize = 14.sp,
|
|
|
+ ),
|
|
|
+ displayMedium = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
fontWeight = FontWeight.Normal,
|
|
|
fontSize = 16.sp,
|
|
|
- lineHeight = 24.sp,
|
|
|
- letterSpacing = 0.5.sp
|
|
|
- )
|
|
|
- /* Other default text styles to override
|
|
|
+ textAlign = TextAlign.Right,
|
|
|
+ lineHeight = 30.sp
|
|
|
+ ),
|
|
|
+ displayLarge = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Medium,
|
|
|
+ fontSize = 28.sp,
|
|
|
+ ),
|
|
|
+ headlineSmall = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Normal,
|
|
|
+ fontSize = 12.sp,
|
|
|
+ ),
|
|
|
+ headlineMedium = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Normal,
|
|
|
+ fontSize = 14.sp,
|
|
|
+ textAlign = TextAlign.Center,
|
|
|
+ letterSpacing = (-0.14).sp
|
|
|
+ ),
|
|
|
+ headlineLarge = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Medium,
|
|
|
+ fontSize = 28.sp,
|
|
|
+ ),
|
|
|
+ titleSmall = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Medium,
|
|
|
+ fontSize = 16.sp,
|
|
|
+ ),
|
|
|
+ titleMedium = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Medium,
|
|
|
+ fontSize = 18.sp,
|
|
|
+ ),
|
|
|
titleLarge = TextStyle(
|
|
|
- fontFamily = FontFamily.Default,
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.SemiBold,
|
|
|
+ fontSize = 30.sp,
|
|
|
+ lineHeight = 50.sp,
|
|
|
+ letterSpacing = 0.45.sp,
|
|
|
+ textAlign = TextAlign.Center
|
|
|
+ ),
|
|
|
+
|
|
|
+ bodySmall = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
fontWeight = FontWeight.Normal,
|
|
|
- fontSize = 22.sp,
|
|
|
- lineHeight = 28.sp,
|
|
|
- letterSpacing = 0.sp
|
|
|
+ fontSize = 14.sp,
|
|
|
+ lineHeight = 30.sp,
|
|
|
),
|
|
|
- labelSmall = TextStyle(
|
|
|
- fontFamily = FontFamily.Default,
|
|
|
+ bodyMedium = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Medium,
|
|
|
+ fontSize = 18.sp,
|
|
|
+ textAlign = TextAlign.Center,
|
|
|
+ ),
|
|
|
+ bodyLarge = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
fontWeight = FontWeight.Medium,
|
|
|
- fontSize = 11.sp,
|
|
|
- lineHeight = 16.sp,
|
|
|
- letterSpacing = 0.5.sp
|
|
|
+ fontSize = 14.sp,
|
|
|
+ ),
|
|
|
+ labelSmall = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Normal,
|
|
|
+ fontSize = 14.sp,
|
|
|
+ textAlign = TextAlign.Center,
|
|
|
+ lineHeight = 30.sp
|
|
|
+ ),
|
|
|
+ labelMedium = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Normal,
|
|
|
+ fontSize = 16.sp,
|
|
|
+ textAlign = TextAlign.Center
|
|
|
+ ),
|
|
|
+ labelLarge = TextStyle(
|
|
|
+ fontFamily = outfitFontFamily,
|
|
|
+ fontWeight = FontWeight.Normal,
|
|
|
+ fontSize = 18.sp,
|
|
|
+ textAlign = TextAlign.Center
|
|
|
)
|
|
|
- */
|
|
|
)
|