2026-07-15 21:36:48 +05:30

91 lines
1.7 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,
},
card: {
backgroundColor: colors.card,
borderRadius: 14,
padding: 16,
marginBottom: 16,
shadowColor: '#0F172A',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.05,
shadowRadius: 4,
elevation: 2,
},
header: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
borderBottomWidth: 1,
borderBottomColor: colors.border,
paddingBottom: 10,
},
titleWrapper: {
flexDirection: 'row',
alignItems: 'center',
flex: 1,
},
icon: {
marginRight: 8,
},
title: {
fontSize: 15,
fontWeight: '700',
color: colors.text,
flex: 1,
},
body: {
paddingVertical: 12,
},
lead: {
fontSize: 13,
color: colors.textSecondary,
marginBottom: 12,
},
progressRow: {
flexDirection: 'row',
justifyContent: 'space-between',
marginBottom: 6,
},
progressLabel: {
fontSize: 12,
color: colors.textMuted,
},
progressValue: {
fontSize: 12,
fontWeight: '700',
color: colors.text,
},
progressBarBg: {
height: 8,
borderRadius: 4,
backgroundColor: colors.border,
},
progressBarFill: {
height: '100%',
borderRadius: 4,
},
footer: {
flexDirection: 'row',
justifyContent: 'flex-start',
marginTop: 4,
},
badge: {
paddingHorizontal: 8,
paddingVertical: 4,
borderRadius: 6,
},
badgeText: {
fontSize: 11,
fontWeight: '700',
},
});