2026-07-01 09:55:55 +05:30

86 lines
1.8 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { typography } from '@theme';
export const getStyles = (colors: any) => StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.background,
},
content: {
flex: 1,
paddingHorizontal: 24,
justifyContent: 'center',
alignItems: 'center',
},
title: {
fontSize: typography.fontSize.xxl,
fontWeight: typography.fontWeight.bold,
color: colors.text,
marginBottom: 8,
},
subtitle: {
fontSize: typography.fontSize.md,
color: colors.textSecondary,
marginBottom: 40,
},
otpContainer: {
flexDirection: 'row',
gap: 10,
marginBottom: 32,
},
otpCell: {
width: 48,
height: 56,
borderWidth: 1.5,
borderColor: colors.border,
borderRadius: 12,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: colors.inputBg,
},
otpCellActive: {
borderColor: colors.primary,
},
otpCellFilled: {
borderColor: colors.primary,
backgroundColor: '#E8F5E9',
},
otpCellText: {
fontSize: typography.fontSize.xl,
fontWeight: typography.fontWeight.bold,
color: colors.text,
},
keypad: {
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'center',
gap: 12,
maxWidth: 300,
marginBottom: 24,
},
key: {
width: 80,
height: 56,
justifyContent: 'center',
alignItems: 'center',
borderRadius: 12,
backgroundColor: colors.inputBg,
borderWidth: 1,
borderColor: colors.border,
},
keyText: {
fontSize: typography.fontSize.xl,
fontWeight: typography.fontWeight.medium,
color: colors.text,
},
timerText: {
fontSize: typography.fontSize.sm,
color: colors.textSecondary,
},
resendText: {
fontSize: typography.fontSize.sm,
color: colors.primary,
fontWeight: typography.fontWeight.semibold,
},
});