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

70 lines
1.5 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { typography } from '@theme';
export const getStyles = (colors: any) => StyleSheet.create({
container: {
flexDirection: 'row',
backgroundColor: colors.cardBg,
borderRadius: 12,
padding: 12,
marginHorizontal: 16,
marginVertical: 6,
borderWidth: 1,
borderColor: colors.border,
},
image: {
width: 80,
height: 80,
borderRadius: 8,
backgroundColor: colors.border,
justifyContent: 'center',
alignItems: 'center',
},
imagePlaceholder: {
fontSize: 32,
},
info: {
flex: 1,
marginLeft: 12,
justifyContent: 'center',
},
name: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.semibold,
color: colors.text,
marginBottom: 4,
},
row: {
flexDirection: 'row',
alignItems: 'center',
marginBottom: 2,
},
rating: {
fontSize: typography.fontSize.sm,
color: colors.textSecondary,
marginRight: 8,
},
deliveryTime: {
fontSize: typography.fontSize.sm,
color: colors.textSecondary,
},
tag: {
fontSize: typography.fontSize.xs,
color: colors.primary,
fontWeight: typography.fontWeight.medium,
},
discountBadge: {
alignSelf: 'flex-start',
backgroundColor: '#FFE7E7',
paddingHorizontal: 8,
paddingVertical: 2,
borderRadius: 4,
marginTop: 4,
},
discountText: {
fontSize: typography.fontSize.xs,
color: '#D32F2F',
fontWeight: typography.fontWeight.semibold,
},
});