aretherecookies-mobile/js/ui-theme.js

165 lines
2.9 KiB
JavaScript
Raw Permalink Normal View History

//@flow
/**
* Default theme for reference:
* https://github.com/xotahal/react-native-material-ui/blob/master/src/styles/themes/light.js
*/
2017-03-05 18:09:01 -06:00
import { COLOR } from 'react-native-material-ui';
2020-04-04 19:47:53 -05:00
export const primaryColor = '#017C9A';
2017-04-23 20:15:46 -05:00
2018-04-28 12:06:50 -05:00
export const palette = {
primaryColor,
2020-04-04 19:47:53 -05:00
accentColor: '#017C9A',
2018-04-28 12:06:50 -05:00
disabledColor: COLOR.grey500,
facebook: '#3B5998',
google: '#DB4437',
errorColor: '#B92D00',
atcStdGrey: '#757575',
2018-04-28 12:06:50 -05:00
};
export default {
2020-04-04 19:47:53 -05:00
statusBarColor: '#00506C',
2018-04-28 12:06:50 -05:00
palette: palette,
2017-04-23 20:15:46 -05:00
toolbar: {
titleText: { color: COLOR.white },
leftElement: { color: COLOR.white },
rightElement: { color: COLOR.white },
container: {
backgroundColor: primaryColor,
2017-04-25 00:20:49 -05:00
height: 56,
2017-04-23 20:15:46 -05:00
elevation: 0,
},
},
2018-04-28 12:06:50 -05:00
actionButton: {
speedDialActionIcon: {
2020-04-04 19:47:53 -05:00
backgroundColor: '#00506C',
2018-04-28 12:06:50 -05:00
},
},
checkbox: {
icon: {
2020-04-04 19:47:53 -05:00
color: '#017C9A',
},
},
2017-04-23 20:15:46 -05:00
page: {
2017-07-02 11:35:30 -05:00
container: { flex: 1, backgroundColor: COLOR.grey100 },
2017-04-23 20:15:46 -05:00
},
2018-08-05 12:05:59 -05:00
listView: {
flex: 1,
backgroundColor: 'white',
},
2017-06-24 16:06:11 -05:00
divider: {
2020-01-19 22:59:57 -06:00
container: { height: 1 },
2017-06-24 16:06:11 -05:00
},
2017-04-23 20:15:46 -05:00
topTabs: {
selectedUnderlineStyle: {
2018-07-21 12:01:08 -05:00
backgroundColor: primaryColor,
2017-04-23 20:15:46 -05:00
},
textColor: COLOR.white,
selectedTextColor: 'rgba(255, 255, 255, 0.7)',
backgroundColor: primaryColor,
},
2018-04-28 12:06:50 -05:00
modalButton: {
fontSize: 14,
fontWeight: '500',
color: palette.accentColor,
paddingLeft: 30,
},
modalDropDown: {
/* fontSize: 16,
fontWeight: 'bold',
color: 'black', */
2018-07-21 12:01:08 -05:00
height: 40,
2018-04-28 12:06:50 -05:00
width: 150,
},
2017-04-23 20:15:46 -05:00
itemTile: {
thumbnailSize: 48,
2018-04-23 16:16:04 -05:00
thumbnailColor: COLOR.grey400,
2017-04-23 20:15:46 -05:00
itemNameStyle: {
2018-04-23 16:16:04 -05:00
fontSize: 16,
2017-04-25 00:20:49 -05:00
color: COLOR.black,
2017-04-23 20:15:46 -05:00
},
itemPlaceStyle: {
2020-01-19 22:59:57 -06:00
color: palette.atcStdGrey,
paddingTop: 1,
2017-04-23 20:15:46 -05:00
},
availableCountStyle: {
fontSize: 25,
color: COLOR.black,
},
2020-04-26 12:27:24 -05:00
pressHighlightColor: primaryColor,
2017-04-23 20:15:46 -05:00
},
countBadge: {
2020-04-04 19:47:53 -05:00
backgroundColor: '#00506C',
2017-04-23 20:15:46 -05:00
textColor: COLOR.white,
},
2019-06-22 15:48:52 +00:00
pickerItemRow: {
defaultColor: '#000000',
2020-04-04 19:47:53 -05:00
selectedColor: '#017C9A',
2017-04-23 20:15:46 -05:00
},
2020-04-17 22:50:23 -05:00
productDetails: {
2020-04-04 19:47:53 -05:00
actionIconColor: '#017C9A',
2017-07-23 19:58:10 -05:00
},
placeDetails: {
2020-04-04 19:47:53 -05:00
actionIconColor: '#017C9A',
2017-04-23 20:15:46 -05:00
},
2017-08-06 11:17:45 -05:00
imagePreview: {
deleteBtnIconColor: 'white',
deleteBtnBorderColor: 'white',
deleteBtnBackgroundColor: 'black',
closeBtnIconColor: 'white',
backdropColor: 'black',
},
2018-01-01 15:52:03 -06:00
loginPage: {
buttonStyle: {
width: 300,
margin: 10,
},
titleStyle: {
fontSize: 56,
margin: 10,
fontWeight: 'bold',
2018-01-01 15:52:03 -06:00
},
},
2018-06-03 12:12:45 -05:00
drawer: {
container: {
flex: 1,
backgroundColor: '#FFF',
elevation: 6,
},
},
drawerHeader: {
container: {
elevation: 6,
},
contentContainer: {
2020-04-04 19:47:53 -05:00
backgroundColor: '#017C9A',
2018-06-03 12:12:45 -05:00
height: 150,
},
},
2018-08-05 10:38:47 -05:00
bottomNavigation: {
container: {
height: 56,
paddingTop: 8,
2018-08-05 10:38:47 -05:00
justifyContent: 'space-around',
alignItems: 'baseline',
2020-01-19 22:59:57 -06:00
borderWidth: 1,
borderColor: '#fff',
borderTopColor: '#ccc',
2018-08-05 10:38:47 -05:00
},
},
bottomNavigationAction: {
icon: {
color: palette.atcStdGrey,
},
label: {
color: palette.atcStdGrey,
},
2018-08-05 10:38:47 -05:00
iconActive: {
color: palette.accentColor,
},
labelActive: {
color: palette.accentColor,
},
},
};