Borrowing-TrackerFrontend/src/styles.tsx

146 lines
2.5 KiB
TypeScript
Raw Normal View History

2023-11-13 22:19:33 +08:00
export const colors = {
background: "#FFFFFF",
2023-12-14 18:09:44 +08:00
header_color: "#b2dfab",
font_dark: "#2e482e",
font_light: "#0e410d",
button_dark: "#92b88d",
2023-11-13 22:19:33 +08:00
button_light: "#FFFFFF",
2023-12-14 18:09:44 +08:00
button_border: "#b2dfab",
2023-11-13 22:19:33 +08:00
red: "#a44141",
orange: "#c57331",
green: "#80b28a",
2024-01-06 11:44:46 +08:00
gray: "#8F8F8F",
dark_green: "#17561D",
dark_blue: "#19639D"
2023-11-13 22:19:33 +08:00
};
const styles: { [key: string]: React.CSSProperties } = {
background: {
backgroundColor: colors.background,
position: "fixed",
top: 0,
left: 0,
2024-01-06 11:44:46 +08:00
2023-11-13 22:19:33 +08:00
height: "100%",
width: "100%",
minHeight: "100%",
minWidth: "100%",
2023-12-02 18:56:35 +08:00
overflowY: "scroll",
2023-11-13 22:19:33 +08:00
},
2024-01-06 11:44:46 +08:00
2023-11-13 22:19:33 +08:00
text_dark: {
color: colors.font_dark,
fontWeight: "bold",
},
2024-01-06 11:44:46 +08:00
text_super_dark: {
color: colors.font_dark,
fontWeight: 900,
},
2023-11-13 22:19:33 +08:00
text_light: {
color: colors.font_light,
fontWeight: "bold",
2024-01-06 11:44:46 +08:00
},
text_dark_blue:{
color:colors.dark_blue,
fontWeight:"bold"
},
text_gray: {
color: colors.gray,
2023-11-13 22:19:33 +08:00
},
text_red: {
color: colors.red,
fontWeight: "bold",
},
text_orange: {
color: colors.orange,
fontWeight: "bold",
},
text_green: {
color: colors.green,
fontWeight: "bold",
},
2024-01-06 11:44:46 +08:00
text_dark_green: {
color: colors.dark_green,
fontWeight: "bold",
},
2023-11-13 22:19:33 +08:00
text_XL: {
2023-11-19 14:50:39 +08:00
fontSize: "clamp(2rem, 3rem, 8rem)",
2023-11-13 22:19:33 +08:00
},
2024-01-06 11:44:46 +08:00
2023-11-13 22:19:33 +08:00
text_L: {
2023-11-19 14:50:39 +08:00
fontSize: "clamp(1.5rem, 2rem, 6rem)",
2023-11-13 22:19:33 +08:00
},
text_M: {
2023-11-19 14:50:39 +08:00
fontSize: "clamp(1rem, 1rem, 4rem)",
2023-11-13 22:19:33 +08:00
},
text_S: {
2023-11-19 14:50:39 +08:00
fontSize: "clamp(0.6rem, 0.8rem, 1rem)",
2023-11-13 22:19:33 +08:00
},
text_XS: {
2023-11-19 14:50:39 +08:00
fontSize: "clamp(0.5rem, 0.6rem, 0.8rem)",
2023-11-13 22:19:33 +08:00
},
flex_row: {
display: "flex",
flexDirection: "row",
},
flex_column: {
display: "flex",
flexDirection: "column",
},
input_form: {
color: colors.font_dark,
fontWeight: "bold",
fontSize: "clamp(1vw, 1rem, 2vw)",
background: "none",
borderRadius: 8,
2023-11-17 16:02:08 +08:00
maxWidth: "128px",
minWidth: "100%",
marginTop: 16,
},
popup_center: {
width: "32rem",
borderRadius: 16,
borderColor: "grey",
borderStyle: "solid",
borderWidth: 1,
padding: 16,
alignContent: "center",
justifyContent: "center",
textAlign: "center",
overflowY: "scroll",
},
student_filter_item: {
height: 32,
width: 32,
fill: colors.font_dark,
marginLeft: "1rem",
marginRight: "1rem",
},
2024-01-06 11:44:46 +08:00
bform_label: {
display: "flex",
justifyContent: "left",
marginTop: "10px",
},
bform_label2: {
display: "flex",
justifyContent: "left",
marginTop: "10px",
marginBottom: "10px",
},
2024-01-06 11:44:46 +08:00
2023-11-13 22:19:33 +08:00
};
export default styles;