native_convex_CRM/app/features/customers/customers.styles.ts
2026-07-15 21:36:48 +05:30

87 lines
1.8 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { ThemeColors } from '../../theme';
export const getStyles = (colors: ThemeColors) => StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.background,
},
listContent: {
padding: 16,
},
customerCard: {
backgroundColor: colors.card,
borderRadius: 14,
padding: 16,
marginBottom: 16,
shadowColor: '#0F172A',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.05,
shadowRadius: 4,
elevation: 2,
},
cardHeader: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'flex-start',
borderBottomWidth: 1,
borderBottomColor: colors.border,
paddingBottom: 14,
},
customerName: {
fontSize: 16,
fontWeight: '700',
color: colors.text,
},
contactPerson: {
fontSize: 13,
color: colors.textSecondary,
marginTop: 4,
},
badge: {
backgroundColor: colors.border,
paddingHorizontal: 8,
paddingVertical: 4,
borderRadius: 6,
},
badgeText: {
fontSize: 11,
fontWeight: '600',
color: colors.icon,
},
cardFooter: {
flexDirection: 'row',
justifyContent: 'space-between',
paddingTop: 12,
},
actionButton: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
flex: 0.48,
height: 38,
borderRadius: 8,
borderWidth: 1,
},
callButton: {
borderColor: colors.border,
backgroundColor: colors.border,
},
callButtonText: {
color: colors.icon,
fontWeight: '600',
fontSize: 13,
marginLeft: 6,
},
emailButton: {
borderColor: colors.border,
backgroundColor: colors.surface,
},
emailButtonText: {
color: colors.textSecondary,
fontWeight: '600',
fontSize: 13,
marginLeft: 6,
},
});