frostbyte-native/src/util/style.ts

48 lines
1,007 B
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: {
// Outermost container
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,
},
});