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

76 lines
1.6 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { typography } from '@theme';
export const getStyles = (colors: any) => StyleSheet.create({
container: {
flexDirection: 'row',
paddingVertical: 12,
paddingHorizontal: 16,
borderBottomWidth: 1,
borderBottomColor: colors.border,
backgroundColor: colors.background,
},
image: {
width: 70,
height: 70,
borderRadius: 8,
backgroundColor: colors.border,
justifyContent: 'center',
alignItems: 'center',
},
imagePlaceholder: {
fontSize: 28,
},
info: {
flex: 1,
marginLeft: 12,
justifyContent: 'center',
},
title: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.semibold,
color: colors.text,
marginBottom: 2,
},
description: {
fontSize: typography.fontSize.sm,
color: colors.textSecondary,
marginBottom: 4,
},
price: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.bold,
color: colors.text,
},
actions: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
marginLeft: 8,
},
stepperButton: {
width: 32,
height: 32,
borderRadius: 16,
backgroundColor: colors.primary,
justifyContent: 'center',
alignItems: 'center',
},
stepperButtonDisabled: {
backgroundColor: colors.border,
},
stepperButtonText: {
color: colors.white,
fontSize: 18,
fontWeight: typography.fontWeight.bold,
},
quantity: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.semibold,
color: colors.text,
marginHorizontal: 12,
minWidth: 20,
textAlign: 'center',
},
});