-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommonStyles.ts
109 lines (104 loc) · 1.91 KB
/
commonStyles.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 { StyleSheet } from "react-native";
import { DarkTheme, DefaultTheme } from "@react-navigation/native";
export const AppTheme = {
dark: false,
colors: {
...DefaultTheme.colors,
primary: "#2142AB", //57bcd9
border: "#637ac4",
background: "#effaf6",
},
};
export const AppDarkTheme = {
dark: true,
colors: {
...DarkTheme.colors,
primary: "#57bcd9", // 2142AB
border: "#637ac4",
background: "#1c1c1c",
card: "#2c2c2c",
},
};
export const AppAmoledTheme = {
dark: true,
colors: {
...DarkTheme.colors,
primary: "#57bcd9", // 2142AB
border: "#637ac4",
background: "#000000",
},
};
export const mdTheme = {
light: {
code: "#f6f8fa",
link: "#58a6ff",
text: "#333333",
border: "#d0d7de",
...AppTheme.colors,
},
dark: {
code: "#161b22",
link: "#58a6ff",
text: "#eeeeee",
border: "#30363d",
...AppDarkTheme.colors,
},
} as const;
export const commonStyles = StyleSheet.create({
container: {
flex: 1,
alignItems: "center",
justifyContent: "center",
},
hrefInput: {
width: "60%",
padding: 8,
borderRadius: 6,
borderWidth: 1,
borderColor: "#AADDEC",
},
button: {
borderRadius: 6,
width: "30%",
alignItems: "center",
backgroundColor: "#AADDEC",
padding: 8,
},
title: {
fontSize: 16,
fontWeight: "500",
},
text: {
fontSize: 15,
},
iconsRow: {
gap: 12,
alignItems: "center",
paddingTop: 8,
paddingBottom: 8,
},
fabButton: {
padding: 12,
maxWidth: 46,
alignItems: "center",
borderRadius: 24,
},
fabMenu: {
flexDirection: "column",
gap: 16,
padding: 12,
borderRadius: 6,
minWidth: 130,
},
touchableIcon: {
padding: 3,
},
});
export const commonColors = {
author: "orange",
community: "violet",
upvote: "red",
upvoteAlt: "blue",
downvote: "blue",
downvoteAlt: "red",
} as const;