92 lines
2.3 KiB
TypeScript
92 lines
2.3 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { typography, spacing, borderRadius, shadow } from '@theme';
|
|
|
|
export const getStyles = (colors: any) =>
|
|
StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: colors.background,
|
|
},
|
|
scrollContainer: {
|
|
paddingHorizontal: spacing.lg,
|
|
paddingBottom: spacing.xxl,
|
|
},
|
|
card: {
|
|
backgroundColor: colors.cardBg,
|
|
borderRadius: borderRadius.md,
|
|
padding: spacing.md,
|
|
marginTop: 20,
|
|
marginBottom: spacing.lg,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
...shadow.sm,
|
|
},
|
|
row: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
marginBottom: spacing.xs,
|
|
},
|
|
label: {
|
|
fontSize: typography.fontSize.xs,
|
|
color: colors.textSecondary,
|
|
textTransform: 'uppercase',
|
|
fontWeight: 'bold',
|
|
},
|
|
value: {
|
|
fontSize: typography.fontSize.md,
|
|
color: colors.text,
|
|
fontWeight: typography.fontWeight.semibold,
|
|
},
|
|
section: {
|
|
marginBottom: spacing.xl,
|
|
},
|
|
sectionTitle: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
marginBottom: spacing.md,
|
|
},
|
|
itemRow: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
paddingVertical: spacing.sm,
|
|
borderBottomWidth: 1,
|
|
borderBottomColor: colors.border,
|
|
},
|
|
itemName: {
|
|
fontSize: typography.fontSize.md,
|
|
color: colors.text,
|
|
},
|
|
itemQty: {
|
|
fontSize: typography.fontSize.md,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
},
|
|
paymentCard: {
|
|
backgroundColor: colors.primaryLight,
|
|
borderRadius: borderRadius.md,
|
|
padding: spacing.md,
|
|
marginBottom: spacing.xl,
|
|
borderWidth: 1,
|
|
borderColor: colors.primary,
|
|
alignItems: 'center',
|
|
},
|
|
paymentLabel: {
|
|
fontSize: typography.fontSize.xs,
|
|
color: colors.primary,
|
|
fontWeight: 'bold',
|
|
textTransform: 'uppercase',
|
|
marginBottom: 4,
|
|
},
|
|
paymentVal: {
|
|
fontSize: typography.fontSize.xl,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.primary,
|
|
},
|
|
completeButton: {
|
|
width: '100%',
|
|
},
|
|
});
|