native_convex_CRM/app/features/leadDetails/leadDetails.styles.ts

119 lines
2.5 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { ThemeColors } from '../../theme';
export const getStyles = (colors: ThemeColors) =>
StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.background,
},
scrollContent: {
padding: 16,
paddingBottom: 32,
},
sectionTitle: {
fontSize: 15,
fontWeight: '700',
color: colors.text,
marginBottom: 12,
letterSpacing: 0.1,
},
statsRow: {
flexDirection: 'row',
gap: 10,
marginBottom: 16,
},
statCard: {
flex: 1,
backgroundColor: colors.card,
borderRadius: 16,
padding: 14,
borderWidth: 1,
borderColor: colors.border,
shadowColor: '#5B4CF5',
shadowOffset: { width: 0, height: 4 },
shadowOpacity: 0.05,
shadowRadius: 10,
elevation: 2,
},
statLabel: {
fontSize: 11,
color: colors.textMuted,
marginBottom: 4,
fontWeight: '500',
},
statValue: {
fontSize: 15,
fontWeight: '700',
color: colors.text,
},
infoCard: {
backgroundColor: colors.card,
borderRadius: 18,
padding: 16,
marginBottom: 16,
borderWidth: 1,
borderColor: colors.border,
shadowColor: '#5B4CF5',
shadowOffset: { width: 0, height: 4 },
shadowOpacity: 0.05,
shadowRadius: 10,
elevation: 2,
},
infoRow: {
flexDirection: 'row',
alignItems: 'center',
paddingVertical: 9,
gap: 12,
},
infoIconWrap: {
width: 32,
height: 32,
borderRadius: 10,
backgroundColor: colors.surface,
justifyContent: 'center',
alignItems: 'center',
borderWidth: 1,
borderColor: colors.border,
},
infoMeta: {
flex: 1,
},
infoLabel: {
fontSize: 11,
color: colors.textMuted,
marginBottom: 2,
},
infoValue: {
fontSize: 13,
fontWeight: '600',
color: colors.text,
},
divider: {
height: StyleSheet.hairlineWidth,
backgroundColor: colors.border,
},
actionIconButton: {
width: 32,
height: 32,
borderRadius: 16,
backgroundColor: `${colors.icon}10`,
justifyContent: 'center',
alignItems: 'center',
},
cardsContainer: {
marginTop: 4,
},
errorContainer: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
padding: 32,
},
errorText: {
color: '#EF4444',
fontSize: 14,
textAlign: 'center',
},
});