You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
2.0 KiB

2 months ago
import { StyleSheet } from 'react-native';
import { scale, verticalScale, moderateScale } from '../utils/dimensions';
export const globalStyles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#FFFFFF',
},
safeArea: {
flex: 1,
},
row: {
flexDirection: 'row',
},
column: {
flexDirection: 'column',
},
center: {
justifyContent: 'center',
alignItems: 'center',
},
spaceBetween: {
justifyContent: 'space-between',
},
spaceAround: {
justifyContent: 'space-around',
},
flexStart: {
justifyContent: 'flex-start',
},
flexEnd: {
justifyContent: 'flex-end',
},
});
export const spacing = {
xs: scale(4),
sm: scale(8),
md: scale(16),
lg: scale(24),
xl: scale(32),
xxl: scale(40),
};
export const fontSize = {
xs: moderateScale(12),
sm: moderateScale(14),
md: moderateScale(16),
lg: moderateScale(18),
xl: moderateScale(20),
xxl: moderateScale(24),
};
export const borderRadius = {
sm: scale(4),
md: scale(8),
lg: scale(12),
xl: scale(16),
round: scale(9999),
};
export const iconSize = {
sm: scale(16),
md: scale(24),
lg: scale(32),
xl: scale(40),
};
export const buttonHeight = {
sm: verticalScale(32),
md: verticalScale(44),
lg: verticalScale(56),
};
export const inputHeight = {
sm: verticalScale(32),
md: verticalScale(44),
lg: verticalScale(56),
};
export const cardPadding = {
sm: scale(8),
md: scale(16),
lg: scale(24),
};
export const shadow = {
small: {
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.25,
shadowRadius: 3.84,
elevation: 2,
},
medium: {
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 4,
},
shadowOpacity: 0.30,
shadowRadius: 4.65,
elevation: 4,
},
large: {
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 6,
},
shadowOpacity: 0.37,
shadowRadius: 7.49,
elevation: 6,
},
};