Skip to content

Commit a0240dc

Browse files
authored
Create Type.kt
1 parent 7ca6587 commit a0240dc

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

  • source-code/app/src/main/java/com/hackeros/app/ui/theme
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
package com.hackeros.app.ui.theme
2+
3+
import androidx.compose.material3.Typography
4+
import androidx.compose.ui.text.TextStyle
5+
import androidx.compose.ui.text.font.Font
6+
import androidx.compose.ui.text.font.FontFamily
7+
import androidx.compose.ui.text.font.FontWeight
8+
import androidx.compose.ui.unit.sp
9+
10+
// We use system fonts – JetBrains Mono would need to be bundled as a font asset
11+
// Using default monospace for mono style
12+
val MonoFontFamily = FontFamily.Monospace
13+
val SansFontFamily = FontFamily.Default
14+
15+
val AppTypography = Typography(
16+
headlineLarge = TextStyle(
17+
fontFamily = MonoFontFamily,
18+
fontWeight = FontWeight.Bold,
19+
fontSize = 28.sp,
20+
lineHeight = 34.sp
21+
),
22+
headlineMedium = TextStyle(
23+
fontFamily = MonoFontFamily,
24+
fontWeight = FontWeight.Bold,
25+
fontSize = 22.sp
26+
),
27+
titleLarge = TextStyle(
28+
fontFamily = SansFontFamily,
29+
fontWeight = FontWeight.SemiBold,
30+
fontSize = 18.sp
31+
),
32+
titleMedium = TextStyle(
33+
fontFamily = SansFontFamily,
34+
fontWeight = FontWeight.Medium,
35+
fontSize = 14.sp
36+
),
37+
bodyLarge = TextStyle(
38+
fontFamily = SansFontFamily,
39+
fontWeight = FontWeight.Normal,
40+
fontSize = 14.sp,
41+
lineHeight = 20.sp
42+
),
43+
bodySmall = TextStyle(
44+
fontFamily = SansFontFamily,
45+
fontWeight = FontWeight.Normal,
46+
fontSize = 12.sp,
47+
lineHeight = 16.sp
48+
),
49+
labelSmall = TextStyle(
50+
fontFamily = MonoFontFamily,
51+
fontWeight = FontWeight.Bold,
52+
fontSize = 9.sp,
53+
letterSpacing = 1.sp
54+
)
55+
)

0 commit comments

Comments
 (0)