import { StyleSheet } from 'react-native' import Colors from 'src/styles/colors' const BASE_UNIT = 8 export enum Spacing { Tiny4 = BASE_UNIT / 2, Smallest8 = BASE_UNIT, Small12 = BASE_UNIT * 1.5, Regular16 = BASE_UNIT * 2, Thick24 = BASE_UNIT * 3, Large32 = BASE_UNIT * 4, XLarge48 = BASE_UNIT * 6, } export enum Shadow { Soft = 'Soft', SoftLight = 'SoftLight', BarShadow = 'BarShadow', } export function getShadowStyle(shadow: Shadow) { switch (shadow) { case Shadow.Soft: return styles.softShadow case Shadow.SoftLight: return styles.softShadowLight case Shadow.BarShadow: return styles.barShadow } } const styles = StyleSheet.create({ softShadow: { elevation: 12, shadowOffset: { width: 0, height: 2 }, shadowRadius: 12, shadowOpacity: 1, shadowColor: Colors.softShadow, }, softShadowLight: { elevation: 5, shadowOffset: { width: 0, height: 2 }, shadowRadius: 8, shadowOpacity: 1, shadowColor: Colors.lightShadow, }, barShadow: { elevation: 1.5, shadowOffset: { width: 0, height: 0 }, shadowOpacity: 0.5, shadowRadius: 1.5, shadowColor: Colors.barShadow, }, bottomSheetHandleIndicator: { backgroundColor: Colors.bottomSheetHandle, width: 40, }, bottomSheetBackground: { backgroundColor: Colors.backgroundPrimary, }, bottomSheetBackdrop: { backgroundColor: Colors.backgroundScrim, }, }) export default styles