131 lines
3.3 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { typography, spacing, borderRadius } from '@theme';
export const getStyles = (colors: any) =>
StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.background,
},
scrollContainer: {
paddingHorizontal: spacing.lg,
paddingTop: spacing.md,
paddingBottom: spacing.xxxl,
},
// Top Compliance banner card
bannerCard: {
flexDirection: 'row',
backgroundColor: colors.primaryLight,
borderWidth: 1,
borderColor: colors.border,
borderRadius: borderRadius.md,
padding: spacing.md,
marginBottom: spacing.lg,
alignItems: 'center',
},
bannerIconWrapper: {
width: 44,
height: 44,
borderRadius: 22,
backgroundColor: colors.white,
justifyContent: 'center',
alignItems: 'center',
marginRight: spacing.md,
shadowColor: '#000',
shadowOffset: { width: 0, height: 1 },
shadowOpacity: 0.05,
shadowRadius: 2,
elevation: 1,
},
bannerTextContainer: {
flex: 1,
},
bannerTitle: {
fontSize: 12,
fontWeight: typography.fontWeight.bold,
color: colors.text,
letterSpacing: 0.5,
textTransform: 'uppercase',
},
bannerSubtitle: {
fontSize: typography.fontSize.xs,
color: colors.textSecondary,
marginTop: 2,
lineHeight: 16,
},
// Main Card
mainCard: {
backgroundColor: colors.cardBg,
borderRadius: borderRadius.md,
borderWidth: 1,
borderColor: colors.border,
padding: spacing.md,
marginBottom: spacing.lg,
},
mainCardHeader: {
marginBottom: spacing.md,
},
mainCardTitle: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.bold,
color: colors.text,
},
mainCardSubtitle: {
fontSize: typography.fontSize.xs,
color: colors.textSecondary,
marginTop: 2,
},
divider: {
height: 1,
backgroundColor: colors.border,
marginVertical: spacing.md,
},
// Add Document Button
addButtonContainer: {
alignItems: 'flex-start',
marginBottom: spacing.xl,
},
addBtn: {
flexDirection: 'row',
alignItems: 'center',
borderWidth: 1,
borderColor: colors.border,
borderRadius: borderRadius.sm,
paddingVertical: spacing.sm,
paddingHorizontal: spacing.md,
backgroundColor: colors.inputBg,
},
addBtnText: {
fontSize: typography.fontSize.sm,
fontWeight: typography.fontWeight.semibold,
color: colors.text,
marginLeft: spacing.xs,
},
// Submit Button
submitBtn: {
flexDirection: 'row',
backgroundColor: colors.primary,
borderRadius: borderRadius.sm,
height: 48,
alignItems: 'center',
justifyContent: 'center',
marginTop: spacing.sm,
shadowColor: colors.primary,
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.2,
shadowRadius: 4,
elevation: 4,
},
submitBtnDisabled: {
backgroundColor: colors.border,
shadowOpacity: 0,
elevation: 0,
},
submitBtnText: {
fontSize: typography.fontSize.md,
fontWeight: typography.fontWeight.bold,
color: colors.white,
marginLeft: spacing.sm,
},
});