/
styles.js
45 lines (41 loc) · 1 KB
/
styles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import {StyleSheet} from 'react-native';
// Typography constants
const headerFontSize = 22;
const bodyFontSize = 17;
const bodyLineHeight = 1.23;
// Typography
export const typography = StyleSheet.create({
header: {
fontFamily: 'DMSans-Bold',
fontSize: headerFontSize,
},
body: {
fontFamily: 'DMSans-Regular',
fontSize: bodyFontSize,
lineHeight: bodyFontSize * bodyLineHeight,
},
});
// Color constants
export const coralHex = '#FF2C52';
export const aquaHex = '#3EE5E5';
export const orchidHex = '#3E2C52';
export const whiteHex = '#FFF';
export const grayHex = '#CCC';
export const blackHex = '#000';
export const effects = StyleSheet.create({
dropShadow: {
backgroundColor: whiteHex,
borderColor: grayHex,
borderWidth: 0.5,
shadowColor: blackHex,
shadowOffset: {width: 0, height: 4},
shadowOpacity: 0.25,
shadowRadius: 4,
},
glow: {
shadowColor: '#DDC7F5',
shadowOffset: {width: 0, height: 0},
shadowOpacity: 1,
shadowRadius: 14,
},
});