frostbyte-native/src/util/style.ts

66 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-12-14 23:51:05 +01:00
import { StyleSheet } from "react-native";
2023-12-14 20:21:57 +01:00
2023-12-14 21:28:12 +01:00
const colorScheme = {
background: "#273043",
postBox: "#9197AE",
postFont: "#EFF6EE",
accept: "#4D8B31",
2023-12-14 23:51:05 +01:00
error: "#F02D3A",
};
2023-12-14 21:28:12 +01:00
2023-12-14 20:21:57 +01:00
export const style = StyleSheet.create({
2023-12-14 23:51:05 +01:00
app: {
2023-12-14 20:21:57 +01:00
flex: 1,
2023-12-14 21:28:12 +01:00
backgroundColor: colorScheme.background, // For the "entire" app
2023-12-14 23:51:05 +01:00
alignItems: "center",
justifyContent: "center",
margin: 0,
2023-12-14 20:21:57 +01:00
},
postsContainer: {
margin: 0,
2023-12-14 23:51:05 +01:00
height: "100%",
width: "100%",
2023-12-14 20:21:57 +01:00
padding: 5,
2023-12-14 23:51:05 +01:00
paddingBottom: 10,
justifyContent: "flex-start",
2023-12-14 21:28:12 +01:00
backgroundColor: colorScheme.background, // For the container holding the posts
2023-12-14 20:21:57 +01:00
},
postView: {
borderRadius: 6,
2023-12-14 20:21:57 +01:00
flexDirection: "row",
2023-12-14 21:28:12 +01:00
backgroundColor: colorScheme.postBox,
margin: 5,
padding: 15,
2023-12-14 20:21:57 +01:00
},
postFont: {
2023-12-14 21:28:12 +01:00
color: colorScheme.postFont,
2023-12-14 20:21:57 +01:00
},
2023-12-14 23:51:05 +01:00
header: {
backgroundColor: colorScheme.background,
},
headerTitle: {
fontSize: 20,
fontWeight: "bold",
color: colorScheme.postFont,
},
2023-12-15 01:24:37 +01:00
newPostContainer: {
backgroundColor: colorScheme.background,
margin: 0,
padding: 0,
width: "100%",
height: "100%",
alignItems: "center",
justifyContent: "center",
},
newPostInput: {
backgroundColor: colorScheme.postBox,
width: "100%",
height: "100%",
padding: 10,
color: colorScheme.postFont,
},
errorText: {
color: colorScheme.error,
},
2023-12-14 23:51:05 +01:00
});