native_convex_CRM/app/navigation/tabStack.styles.ts

77 lines
1.9 KiB
TypeScript

import { StyleSheet, Platform } from 'react-native';
import { ThemeColors } from '@theme';
export const getStyles = (colors: ThemeColors) =>
StyleSheet.create({
tabBar: {
backgroundColor: colors.tabBar,
borderTopWidth: 1,
borderTopColor: colors.border,
height: Platform.OS === 'ios' ? 86 : 68,
paddingBottom: Platform.OS === 'ios' ? 24 : 10,
paddingTop: 6,
shadowColor: '#0F172A',
shadowOffset: { width: 0, height: -4 },
shadowOpacity: 0.08,
shadowRadius: 12,
elevation: 10,
},
tabBarLabel: {
fontSize: 11,
fontWeight: '600',
letterSpacing: 0.2,
marginTop: 2,
},
iconContainer: {
width: 42,
height: 28,
borderRadius: 14,
justifyContent: 'center',
alignItems: 'center',
},
iconContainerFocused: {
backgroundColor: `${colors.icon}18`,
},
addLeadButtonWrapper: {
width: 44,
height: 44,
borderRadius: 22,
backgroundColor: colors.icon,
justifyContent: 'center',
alignItems: 'center',
marginTop: -14,
shadowColor: colors.icon,
shadowOffset: { width: 0, height: 4 },
shadowOpacity: 0.4,
shadowRadius: 8,
elevation: 6,
},
header: {
backgroundColor: colors.header,
borderBottomWidth: 1,
borderBottomColor: colors.border,
shadowColor: '#0F172A',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.04,
shadowRadius: 6,
elevation: 2,
},
headerTitle: {
fontSize: 17,
fontWeight: '700',
color: colors.text,
letterSpacing: 0.2,
},
drawerButton: {
width: 38,
height: 38,
borderRadius: 12,
justifyContent: 'center',
alignItems: 'center',
marginLeft: 14,
backgroundColor: colors.surface,
borderWidth: 1,
borderColor: colors.border,
},
});