-
Notifications
You must be signed in to change notification settings - Fork 3
/
theme.ts
112 lines (95 loc) · 2.11 KB
/
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import { Dimensions, StyleSheet } from "react-native";
export const colors = {
darkBlue: "#075EA3",
darkBlue15pct: "rgba(23, 11, 71, 0.15)",
darkBlue38pct: "rgba(23, 11, 71, 0.38)",
greyBlue: "#696A86",
lightBlue: "#F1F9FE",
neutralBlue: "#CDDFED",
white: "#FFFFFF",
errorRed: "#B00202",
orange: "#FD8218",
successGreen: "#2E9145",
periwinkle: "#9E92CE",
thermostatModes: {
auto: "#A1A1A1",
heat: "#F15A29",
cool: "#2E3192",
eco: "#2E9145",
},
};
const fonts = {
rubik300: "Rubik_300Light",
rubik400: "Rubik_400Regular",
rubik500: "Rubik_500Medium",
};
export const theme = {
background: colors.lightBlue,
backgroundMask: colors.darkBlue38pct,
backdrop: colors.neutralBlue,
primary: colors.darkBlue,
text: colors.darkBlue,
disabledText: colors.greyBlue,
colors: {
red: colors.errorRed,
orange: colors.orange,
white: colors.white,
periwinkle: colors.periwinkle,
},
fonts: {
regular: fonts.rubik400,
title: fonts.rubik500,
},
padding: 15,
windowWidth: Dimensions.get("window").width,
};
export const typography = StyleSheet.create({
headline1: {
fontFamily: fonts.rubik300,
fontSize: 60,
},
headline1Bold: {
fontFamily: fonts.rubik400,
fontSize: 60,
},
headline2: {
fontFamily: fonts.rubik400,
fontSize: 18,
},
headline3: {
fontFamily: fonts.rubik400,
fontSize: 16,
color: colors.darkBlue,
},
headline3Bold: {
fontFamily: fonts.rubik500,
fontSize: 16,
},
label: {
color: theme.text,
fontFamily: fonts.rubik400,
fontSize: 12,
letterSpacing: 0.08,
},
slider: {
color: theme.text,
fontFamily: fonts.rubik400,
fontSize: 14,
letterSpacing: 0.08,
},
text: {
color: theme.text,
fontFamily: fonts.rubik400,
fontSize: 16,
},
errorText: {
color: colors.errorRed,
fontFamily: fonts.rubik400,
fontSize: 16,
},
smallErrorText: {
color: colors.errorRed,
fontFamily: fonts.rubik400,
fontSize: 12,
},
});