65 lines
1.2 KiB
TypeScript
65 lines
1.2 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',
|
|
},
|
|
icon: {
|
|
marginRight: 8,
|
|
},
|
|
title: {
|
|
fontSize: 15,
|
|
fontWeight: '700',
|
|
color: colors.text,
|
|
},
|
|
body: {
|
|
paddingVertical: 12,
|
|
},
|
|
subject: {
|
|
fontSize: 14,
|
|
color: colors.textSecondary,
|
|
fontWeight: '500',
|
|
},
|
|
footer: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'flex-start',
|
|
},
|
|
badge: {
|
|
paddingHorizontal: 8,
|
|
paddingVertical: 4,
|
|
borderRadius: 6,
|
|
},
|
|
badgeText: {
|
|
fontSize: 11,
|
|
fontWeight: '700',
|
|
},
|
|
});
|