index.js 5.34 KiB
import { StyleSheet } from 'react-native'
export const primaryColor = '#ff7e5f'
export const secondaryColor = '#351c4d'
export const secondaryColorLight = '#91749d'
export const fontOnPrimaryColor = 'white'
export const shadesOfRed = ['#ffcbbf', '#ffb19f', '#ff977e', '#ff7e5f'] // light to dark
const defaultBottomMargin = 5
const defaultIndentation = 10
const defaultTopMargin = 10
export default StyleSheet.create({
appText: {
color: 'black'
},
paragraph: {
marginBottom: defaultBottomMargin
},
emphasis: {
fontWeight: 'bold',
},
title: {
fontSize: 18,
color: 'black',
marginBottom: defaultBottomMargin,
},
textWrappingView: {
marginHorizontal: defaultIndentation,
marginTop: defaultTopMargin
},
welcome: {
fontSize: 20,
margin: 30,
textAlign: 'center',
textAlignVertical: 'center'
},
dateHeader: {
fontSize: 22,
fontWeight: 'bold',
color: fontOnPrimaryColor,
textAlign: 'center',
},
cycleDayNumber: {
fontSize: 15,
color: fontOnPrimaryColor,
textAlign: 'center',
marginLeft: 15
},
symptomViewHeading: {
fontSize: 20,
color: 'black',
marginBottom: 5
},
symptomBoxImage: {
width: 50,
height: 50
},
symptomBoxesView: {
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'space-evenly'
},
symptomBox: {
borderColor: secondaryColor,
borderStyle: 'solid',
borderWidth: 1,
borderTopLeftRadius: 10,
borderTopRightRadius: 10,
alignItems: 'center',
marginTop: '10%',
paddingVertical: '6%',
marginHorizontal: 1,
width: 110,
height: 80,
},
symptomBoxActive: {
backgroundColor: secondaryColor,
},
symptomTextActive: {
color: fontOnPrimaryColor
},
symptomInFuture: {
borderColor: 'lightgrey',
color: 'lightgrey'
},
symptomDataBox: {
borderColor: secondaryColor,
borderStyle: 'solid',
borderLeftWidth: 1,
borderRightWidth: 1,
borderBottomWidth: 1,
borderBottomLeftRadius: 10,
borderBottomRightRadius: 10,
alignItems: 'center',
justifyContent: 'center',
padding: '3%',
marginHorizontal: 1,
width: 110,
height: 50,
},
symptomDataText: {
fontSize: 12
},
header: {
backgroundColor: primaryColor,
paddingHorizontal: 15,
alignItems: 'center',
justifyContent: 'center',
height: '10%'
},
menu: {
backgroundColor: primaryColor,
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
height: '12%'
},
menuItem: {
alignItems: 'center',
flex: 1,
paddingVertical: 15
},
menuText: {
color: fontOnPrimaryColor
},
menuTextInActive: {
color: 'lightgrey'
},
headerCycleDay: {
flexDirection: 'row',
justifyContent: 'space-between',
height: '15%'
},
navigationArrow: {
fontSize: 60,
color: fontOnPrimaryColor
},
homeButtons: {
marginHorizontal: 15
},
homeButton: {
marginBottom: 15
},
temperatureTextInput: {
fontSize: 20,
color: 'black',
textAlign: 'center'
},
temperatureTextInputSuggestion: {
color: '#939393'
},
actionButtonRow: {
flexDirection: 'row',
justifyContent: 'space-evenly',
marginTop: 50
},
symptomEditButton: {
width: 130
},
settingsSegment: {
backgroundColor: 'lightgrey',
padding: 10,
marginBottom: 10,
},
settingsSegmentTitle: {
fontWeight: 'bold'
},
settingsButton: {
backgroundColor: secondaryColor,
padding: 10,
alignItems: 'center',
margin: 10
},
settingsButtonText: {
color: fontOnPrimaryColor
},
statsRow: {
flexDirection: 'row',
width: '100%'
},
statsLabelLeft: {
width: '60%',
textAlign: 'left',
textAlignVertical: 'center',
marginLeft: 10
},
statsLabelRight: {
textAlign: 'left',
textAlignVertical: 'center'
},
menuLabel: {
fontSize: 15,
color: fontOnPrimaryColor
},
selectBox: {
backgroundColor: 'lightgrey',
marginRight: 7,
marginVertical: 5,
paddingHorizontal: 15,
paddingVertical: 10,
borderRadius: 10
},
selectBoxActive: {
backgroundColor: secondaryColor,
color: fontOnPrimaryColor
},
selectBoxTextActive: {
color: fontOnPrimaryColor
},
selectBoxSection: {
flexDirection: 'row',
flexWrap: 'wrap',
marginVertical: 10,
},
selectTabGroup: {
marginVertical: 10,
flexDirection: 'row'
},
selectTab: {
backgroundColor: 'lightgrey',
borderStyle: 'solid',
borderLeftWidth: 1,
paddingVertical: 10,
paddingHorizontal: 15,
borderColor: 'white',
marginBottom: 3,
alignItems: 'center',
justifyContent: 'center'
},
selectTabActive: {
backgroundColor: secondaryColor,
color: fontOnPrimaryColor
},
selectTabLast: {
borderTopRightRadius: 10,
borderBottomRightRadius: 10,
},
selectTabFirst: {
borderTopLeftRadius: 10,
borderBottomLeftRadius: 10,
borderLeftWidth: null
},
page: {
marginHorizontal: 10
},
calendarToday: {
fontWeight: 'bold',
fontSize: 20,
color: secondaryColor,
marginTop: 1
}
})
export const iconStyles = {
navigationArrow: {
size: 45,
color: fontOnPrimaryColor
},
symptomBox: {
size: 40
},
symptomBoxActive: {
color: fontOnPrimaryColor
},
menuIcon: {
size: 20,
color: fontOnPrimaryColor
},
menuIconInactive: {
color: 'lightgrey'
},
}