@@ -7,7 +7,7 @@ import { Input, InputOTP, InputOTPGroup, InputOTPSlot, Label, Loader } from '@/c
77import { cn } from '@/lib/core/utils/cn'
88import { quickValidateEmail } from '@/lib/messaging/email/validation'
99import AuthBackground from '@/app/(auth)/components/auth-background'
10- import { AUTH_SUBMIT_BTN } from '@/app/(auth)/components/auth-button-classes'
10+ import { AUTH_SUBMIT_BTN , AUTH_TEXT_LINK } from '@/app/(auth)/components/auth-button-classes'
1111import { SupportFooter } from '@/app/(auth)/components/support-footer'
1212import Navbar from '@/app/(landing)/components/navbar/navbar'
1313import { useFormEmailOtpRequest , useFormEmailOtpVerify } from '@/hooks/queries/forms'
@@ -120,7 +120,7 @@ export function EmailAuth({ identifier, onAuthenticated }: EmailAuthProps) {
120120 < div className = 'w-full max-w-lg px-4' >
121121 < div className = 'flex flex-col items-center justify-center' >
122122 < div className = 'space-y-1 text-center' >
123- < h1 className = 'text-balance font-[430] font-season text-[40px] text-white leading-[110%] tracking-[-0.02em]' >
123+ < h1 className = 'text-balance font-[430] font-season text-[40px] text-[var(--landing-text)] leading-[110%] tracking-[-0.02em]' >
124124 { showOtpVerification ? 'Verify Your Email' : 'Email Verification' }
125125 </ h1 >
126126 < p className = 'font-[430] font-season text-[color-mix(in_srgb,var(--landing-text-subtle)_60%,transparent)] text-lg leading-[125%] tracking-[0.02em]' >
@@ -154,11 +154,11 @@ export function EmailAuth({ identifier, onAuthenticated }: EmailAuthProps) {
154154 className = { cn (
155155 showEmailValidationError &&
156156 emailErrors . length > 0 &&
157- 'border-red-500 focus:border-red-500 '
157+ 'border-[var(--text-error)] focus:border-[var(--text-error)] '
158158 ) }
159159 />
160160 { showEmailValidationError && emailErrors . length > 0 && (
161- < div className = 'mt-1 space-y-1 text-red-400 text-xs' >
161+ < div className = 'mt-1 space-y-1 text-[var(--text-error)] text-xs' >
162162 { emailErrors . map ( ( error ) => (
163163 < p key = { error } > { error } </ p >
164164 ) ) }
@@ -206,15 +206,15 @@ export function EmailAuth({ identifier, onAuthenticated }: EmailAuthProps) {
206206 < InputOTPSlot
207207 key = { index }
208208 index = { index }
209- className = { cn ( authError && 'border-red-500 ' ) }
209+ className = { cn ( authError && 'border-[var(--text-error)] ' ) }
210210 />
211211 ) ) }
212212 </ InputOTPGroup >
213213 </ InputOTP >
214214 </ div >
215215
216216 { authError && (
217- < div className = 'mt-1 space-y-1 text-center text-red-400 text-xs' >
217+ < div className = 'mt-1 space-y-1 text-center text-[var(--text-error)] text-xs' >
218218 < p > { authError } </ p >
219219 </ div >
220220 ) }
@@ -248,7 +248,7 @@ export function EmailAuth({ identifier, onAuthenticated }: EmailAuthProps) {
248248 ) : (
249249 < button
250250 type = 'button'
251- className = 'font-medium text-[var(--brand-link)] underline-offset-4 transition hover:text-[var(--brand-link-hover)] hover:underline'
251+ className = { AUTH_TEXT_LINK }
252252 onClick = { handleResendOtp }
253253 disabled = { verifyOtp . isPending || requestOtp . isPending }
254254 >
@@ -266,7 +266,7 @@ export function EmailAuth({ identifier, onAuthenticated }: EmailAuthProps) {
266266 setOtpValue ( '' )
267267 setAuthError ( null )
268268 } }
269- className = 'font-medium text-[var(--brand-link)] underline-offset-4 transition hover:text-[var(--brand-link-hover)] hover:underline'
269+ className = { AUTH_TEXT_LINK }
270270 >
271271 Change email
272272 </ button >
0 commit comments