37 lines
848 B
TypeScript
37 lines
848 B
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { ThemeColors } from '../../theme';
|
|
|
|
export const getStyles = (colors: ThemeColors) =>
|
|
StyleSheet.create({
|
|
container: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
backgroundColor: colors.surface,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
borderRadius: 14,
|
|
paddingHorizontal: 14,
|
|
height: 48,
|
|
// Branded shadow — subtle indigo glow
|
|
shadowColor: '#5B4CF5',
|
|
shadowOffset: { width: 0, height: 3 },
|
|
shadowOpacity: 0.07,
|
|
shadowRadius: 8,
|
|
elevation: 2,
|
|
},
|
|
searchIcon: {
|
|
marginRight: 9,
|
|
},
|
|
input: {
|
|
flex: 1,
|
|
fontSize: 14,
|
|
color: colors.text,
|
|
paddingVertical: 0,
|
|
letterSpacing: 0.1,
|
|
},
|
|
clearButton: {
|
|
marginLeft: 8,
|
|
padding: 2,
|
|
},
|
|
});
|