-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.ts
64 lines (59 loc) · 999 Bytes
/
theme.ts
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { Dimensions } from "react-native";
const { width, height } = Dimensions.get("window");
export const SIZES = {
base: 8,
font: 14,
radius: 6,
padding: 24,
margin: 20,
// font sizes
largeTitle: 30,
h1: 28,
h2: 22,
h3: 19,
h4: 14,
h5: 12,
body1: 30,
body2: 22,
body3: 16,
body4: 14,
body5: 12,
// app dimensions
width,
height,
};
export const FONTS = {
largeTitle: {
fontFamily: "Inter-Bold",
fontSize: SIZES.largeTitle,
},
h1: {
fontFamily: "Inter-Regular",
fontSize: SIZES.h1,
lineHeight: 30,
},
h2: {
fontFamily: "Inter-Regular",
fontSize: SIZES.h2,
lineHeight: 30,
},
h3: {
fontFamily: "Inter-Regular",
fontSize: SIZES.h3,
lineHeight: 22,
},
h4: {
fontFamily: "Inter-Medium",
fontSize: SIZES.h4,
lineHeight: 22,
},
h5: {
fontFamily: "Inter-Medium",
fontSize: SIZES.h5,
lineHeight: 22,
},
p: {
fontFamily: "Inter-Regular",
fontSize: 18,
},
};