-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.ts
109 lines (95 loc) · 2.53 KB
/
styles.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
import { FlexStyle, StyleSheet, TextStyle, ViewStyle } from "react-native";
import {
poppinsBold,
poppinsMedium,
poppins,
poppinsSemiBold,
sfCompactText,
sfCompactDisplayBold,
sfCompactDisplay,
} from "./utils/fonts";
//#region Utils
export const centerContent: FlexStyle = {
display: "flex",
justifyContent: "center",
alignItems: "center",
};
export const removeFontPadding: TextStyle = {
includeFontPadding: false,
padding: 0,
textAlignVertical: "bottom",
};
export const rowDirectionMixin = (
justifyContent?: FlexStyle["justifyContent"]
): FlexStyle => ({
display: "flex",
flexDirection: "row",
justifyContent,
});
export const topRightMixin = (dist: number): ViewStyle => ({
position: "absolute",
top: dist,
right: dist,
});
export const fill = { width: "100%", height: "100%" };
//#endregion
//#region Colors
export const whiteColor = "white";
export const blackColor = "black";
export const activeColor = "#A8FF76";
export const errorColor = "#FF445A";
export const plum200 = "#C692FD";
export const plum300 = "#993AFC";
export const plum500 = "#5603AD";
export const plum700 = "#390273";
export const blue100 = "#F0F8FF";
export const blue300 = "#B6DEFD";
export const blue500 = "#259DFA";
export const gray100 = "#E9EAEE";
export const gray300 = "#BFC1CC";
export const gray500 = "#9FA2B2";
//#endregion
//#region Variables
export const radius = 12;
export const bigRadius = 24;
export const smallSpace = 12;
export const bigSpace = 16;
export const authTopSpace = 76;
export const authBottomSpace = 31;
//#endregion
//#region Typography
export const typoStyles = StyleSheet.create({
h1: {
fontFamily: poppinsBold,
fontSize: 28,
color: plum500,
...removeFontPadding,
},
h2: { fontFamily: poppinsBold, fontSize: 22 },
h3: { fontFamily: poppinsBold, fontSize: 15 },
h4: { fontFamily: poppinsSemiBold, fontSize: 14 },
buttonText: {
fontFamily: poppinsSemiBold,
fontSize: 16,
letterSpacing: 1,
color: whiteColor,
},
buttonTextSmall: {
fontFamily: poppinsSemiBold,
fontSize: 14,
letterSpacing: 1,
color: plum500,
},
label: { fontFamily: poppinsMedium },
titleAndInput: { fontFamily: poppinsMedium, fontSize: 15, lineHeight: 20 },
caption: {
fontFamily: poppins,
fontSize: 10,
lineHeight: 10,
color: gray500,
},
bodyText: { fontFamily: sfCompactText, fontSize: 14 },
caption2: { fontFamily: sfCompactDisplayBold, fontSize: 12, lineHeight: 16 },
specialText: { fontFamily: sfCompactDisplay, fontSize: 12, lineHeight: 16 },
});
//#endregion