Skip to content

Commit

Permalink
SIANXSVC-1266: add custom fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
anx-bkelhar committed Nov 21, 2024
1 parent 5917795 commit a93f374
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,102 +15,112 @@ import com.twofasapp.designsystem.TwTheme
class ThemeTypo {

val h1 = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontFamily = FontFamily(
Font(resId = R.font.fira_sans_regular)
),
fontSize = 42.sp,
lineHeight = 42.sp,
)

val h2 = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Bold,
fontFamily = FontFamily(
Font(resId = R.font.fira_sans_bold)
),
fontSize = 24.sp,
lineHeight = 32.sp,
)

val h3 = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontFamily = FontFamily(
Font(resId = R.font.fira_sans_regular)
),
fontSize = 24.sp,
lineHeight = 32.sp,
)

val title = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontFamily = FontFamily(
Font(resId = R.font.fira_sans_regular)
),
fontSize = 22.sp,
lineHeight = 26.sp,
)

val body1 = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontFamily = FontFamily(
Font(resId = R.font.fira_sans_regular)
),
fontSize = 16.sp,
lineHeight = 24.sp,
)

val body2 = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Medium,
fontFamily = FontFamily(
Font(resId = R.font.fira_sans_medium)
),
fontSize = 14.sp,
lineHeight = 20.sp,
)

val body3 = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontFamily = FontFamily(
Font(resId = R.font.fira_sans_regular)
),
fontSize = 14.sp,
lineHeight = 17.sp,
)

val body4 = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontFamily = FontFamily(
Font(resId = R.font.fira_sans_regular)
),
fontSize = 13.sp,
lineHeight = 17.sp,
)

val caption = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontFamily = FontFamily(
Font(resId = R.font.fira_sans_regular)
),
fontSize = 12.sp,
lineHeight = 16.sp,
)

val subhead = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Medium,
fontFamily = FontFamily(
Font(resId = R.font.fira_sans_medium)
),
fontSize = 12.sp,
lineHeight = 16.sp,
)

val codeExtraLight = TextStyle(
fontFamily = FontFamily(
Font(resId = R.font.roboto_extra_light)
Font(resId = R.font.fira_sans_extra_light)
),
fontSize = 44.sp,
lineHeight = 44.sp,
)

val codeLightSmall = TextStyle(
fontFamily = FontFamily(
Font(resId = R.font.roboto_light)
Font(resId = R.font.fira_sans_light)
),
fontSize = 24.sp,
lineHeight = 32.sp,
)

val codeLight = TextStyle(
fontFamily = FontFamily(
Font(resId = R.font.roboto_light)
Font(resId = R.font.fira_sans_light)
),
fontSize = 44.sp,
lineHeight = 44.sp,
)

val codeThin = TextStyle(
fontFamily = FontFamily(
Font(resId = R.font.roboto_thin)
Font(resId = R.font.fira_sans_thin)
),
fontSize = 44.sp,
lineHeight = 44.sp,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed core/designsystem/src/main/res/font/roboto_thin.ttf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ internal class GoogleDriveImpl(
GsonFactory(),
googleAccountCredential
)
.setApplicationName("2FAS")
.setApplicationName("Anexia Authenticator")
.build()
}
}
2 changes: 1 addition & 1 deletion feature/widget/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary">#ED1C24</color>
<color name="primary">#77BC1F</color>
<color name="background">#101116</color>
<color name="onSurface">#FFFFFF</color>
<color name="iconTint">#636363</color>
Expand Down
2 changes: 1 addition & 1 deletion feature/widget/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary">#ED1C24</color>
<color name="primary">#77BC1F</color>
<color name="background">#FFFFFF</color>
<color name="onSurface">#000000</color>
<color name="iconTint">#FF9E9E9E</color>
Expand Down

0 comments on commit a93f374

Please sign in to comment.