diff --git a/Authorization/Authorization/Presentation/Login/SignInView.swift b/Authorization/Authorization/Presentation/Login/SignInView.swift index 35024ef4b..800c50387 100644 --- a/Authorization/Authorization/Presentation/Login/SignInView.swift +++ b/Authorization/Authorization/Presentation/Login/SignInView.swift @@ -48,7 +48,7 @@ public struct SignInView: View { } VStack(alignment: .center) { - ThemeAssets.appLogoLight.swiftUIImage + ThemeAssets.appLogo.swiftUIImage .resizable() .aspectRatio(contentMode: .fit) .frame(maxWidth: 189, maxHeight: 89) @@ -75,6 +75,8 @@ public struct SignInView: View { .foregroundColor(Theme.Colors.textPrimary) .accessibilityIdentifier("username_text") TextField(AuthLocalization.SignIn.emailOrUsername, text: $email) + .font(Theme.Fonts.bodyLarge) + .foregroundColor(Theme.Colors.textPrimary) .keyboardType(.emailAddress) .textContentType(.emailAddress) .autocapitalization(.none) @@ -97,6 +99,8 @@ public struct SignInView: View { .padding(.top, 18) .accessibilityIdentifier("password_text") SecureField(AuthLocalization.SignIn.password, text: $password) + .font(Theme.Fonts.bodyLarge) + .foregroundColor(Theme.Colors.textPrimary) .padding(.all, 14) .background( Theme.Shapes.textInputShape @@ -123,7 +127,8 @@ public struct SignInView: View { viewModel.trackForgotPasswordClicked() viewModel.router.showForgotPasswordScreen() } - .foregroundColor(Theme.Colors.accentColor) + .font(Theme.Fonts.bodyLarge) + .foregroundColor(Theme.Colors.accentXColor) .padding(.top, 0) .accessibilityIdentifier("forgot_password_button") } diff --git a/Authorization/Authorization/Presentation/Registration/SignUpView.swift b/Authorization/Authorization/Presentation/Registration/SignUpView.swift index 4215501a9..999f5d2b0 100644 --- a/Authorization/Authorization/Presentation/Registration/SignUpView.swift +++ b/Authorization/Authorization/Presentation/Registration/SignUpView.swift @@ -111,6 +111,7 @@ public struct SignUpView: View { Text(disclosureGroupOpen ? AuthLocalization.SignUp.hideFields : AuthLocalization.SignUp.showFields) + .font(Theme.Fonts.labelLarge) } .accessibilityLabel("optional_fields_text") .padding(.top, 10) diff --git a/Authorization/Authorization/Presentation/Reset Password/ResetPasswordView.swift b/Authorization/Authorization/Presentation/Reset Password/ResetPasswordView.swift index 8019fc9b4..9c6a78823 100644 --- a/Authorization/Authorization/Presentation/Reset Password/ResetPasswordView.swift +++ b/Authorization/Authorization/Presentation/Reset Password/ResetPasswordView.swift @@ -92,6 +92,8 @@ public struct ResetPasswordView: View { .foregroundColor(Theme.Colors.textPrimary) .accessibilityIdentifier("email_text") TextField(AuthLocalization.SignIn.email, text: $email) + .font(Theme.Fonts.bodyLarge) + .foregroundColor(Theme.Colors.textPrimary) .keyboardType(.emailAddress) .textContentType(.emailAddress) .autocapitalization(.none) diff --git a/Authorization/Authorization/Presentation/SocialAuth/SocialAuthView.swift b/Authorization/Authorization/Presentation/SocialAuth/SocialAuthView.swift index f5190cf4e..16367414e 100644 --- a/Authorization/Authorization/Presentation/SocialAuth/SocialAuthView.swift +++ b/Authorization/Authorization/Presentation/SocialAuth/SocialAuthView.swift @@ -7,6 +7,7 @@ import SwiftUI import Core +import Theme struct SocialAuthView: View { @@ -51,7 +52,7 @@ struct SocialAuthView: View { HStack { Text("\(AuthLocalization.or) \(title.lowercased()):") .padding(.vertical, 20) - .font(.system(size: 17, weight: .medium)) + .font(Theme.Fonts.bodyMedium) .accessibilityIdentifier("social_auth_title_text") Spacer() } diff --git a/Authorization/Authorization/Presentation/Startup/StartupView.swift b/Authorization/Authorization/Presentation/Startup/StartupView.swift index db0eff655..bf5313947 100644 --- a/Authorization/Authorization/Presentation/Startup/StartupView.swift +++ b/Authorization/Authorization/Presentation/Startup/StartupView.swift @@ -55,6 +55,7 @@ public struct StartupView: View { Image(systemName: "magnifyingglass") .padding(.leading, 16) .padding(.top, 1) + .foregroundColor(Theme.Colors.textPrimary) TextField(AuthLocalization.Startup.searchPlaceholder, text: $searchQuery, onCommit: { if searchQuery.isEmpty { return } viewModel.router.showDiscoveryScreen( @@ -66,6 +67,8 @@ public struct StartupView: View { .autocorrectionDisabled() .frame(minHeight: 50) .submitLabel(.search) + .font(Theme.Fonts.bodyLarge) + .foregroundColor(Theme.Colors.textPrimary) .accessibilityIdentifier("explore_courses_textfield") }.overlay( @@ -86,7 +89,7 @@ public struct StartupView: View { } label: { Text(AuthLocalization.Startup.exploreAllCourses) .underline() - .foregroundColor(Theme.Colors.accentColor) + .foregroundColor(Theme.Colors.accentXColor) .font(Theme.Fonts.bodyLarge) } .padding(.top, isHorizontal ? 0 : 5) diff --git a/Core/Core/Configuration/CSSInjector.swift b/Core/Core/Configuration/CSSInjector.swift index 59beef4cd..efd18643c 100644 --- a/Core/Core/Configuration/CSSInjector.swift +++ b/Core/Core/Configuration/CSSInjector.swift @@ -115,7 +115,7 @@ public class CSSInjector {