Skip to content

Commit

Permalink
♻️ Figma font style is now set in the time table item detail.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corvus400 committed Sep 11, 2023
1 parent 0df068d commit bd922a0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app-ios/Modules/Sources/Session/SessionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public struct SessionView: View {
ScrollView {
VStack(alignment: .leading) {
Text(viewModel.timetableItem.title.currentLangTitle)
.font(Font.custom(FontAssets.Montserrat.medium, size: 24))
.textStyle(TypographyTokens.headlineMedium)
.foregroundStyle(AssetColors.Surface.onSurfaceVariant.swiftUIColor)
.padding(.horizontal, 16)
.padding(.vertical, 24)
Expand Down Expand Up @@ -80,7 +80,7 @@ public struct SessionView: View {
canBeExpanded = false
} label: {
Text(L10n.Session.readMore)
.font(Font.custom(FontAssets.Montserrat.medium, size: 14))
.textStyle(TypographyTokens.labelLarge)
.foregroundStyle(AssetColors.Primary.primary.swiftUIColor)
.frame(maxWidth: .infinity, minHeight: 40, maxHeight: 40, alignment: .center)
.overlay {
Expand All @@ -98,10 +98,10 @@ public struct SessionView: View {

VStack(alignment: .leading, spacing: 16) {
Text(L10n.Session.targetAudience)
.font(Font.custom(FontAssets.Montserrat.semiBold, size: 14))
.textStyle(TypographyTokens.titleLarge)
.foregroundStyle(AssetColors.Surface.onSurfaceVariant.swiftUIColor)
Text(viewModel.timetableItem.targetAudience)
.font(Font.custom(FontAssets.Montserrat.medium, size: 16))
.textStyle(TypographyTokens.bodyLarge)
.foregroundStyle(AssetColors.Surface.onSurface.swiftUIColor)
}
.padding(.vertical, 24)
Expand All @@ -111,7 +111,7 @@ public struct SessionView: View {

VStack(alignment: .leading, spacing: 16) {
Text(L10n.Session.speakers)
.font(Font.custom(FontAssets.Montserrat.semiBold, size: 14))
.textStyle(TypographyTokens.titleLarge)
.foregroundStyle(AssetColors.Surface.onSurfaceVariant.swiftUIColor)

VStack(alignment: .leading, spacing: 8) {
Expand All @@ -131,10 +131,10 @@ public struct SessionView: View {
)
VStack(alignment: .leading, spacing: 0) {
Text(speaker.name)
.font(Font.custom(FontAssets.Montserrat.medium, size: 16))
.textStyle(TypographyTokens.bodyLarge)
.foregroundStyle(AssetColors.Surface.onSurface.swiftUIColor)
Text(speaker.tagLine)
.font(Font.custom(FontAssets.Montserrat.medium, size: 12))
.textStyle(TypographyTokens.bodySmall)
.foregroundStyle(AssetColors.Surface.onSurfaceVariant.swiftUIColor)
}
}
Expand Down

0 comments on commit bd922a0

Please sign in to comment.