Borrowing-TrackerFrontend/src/styles.tsx

166 lines
2.9 KiB
TypeScript
Raw Normal View History

2023-11-13 22:19:33 +08:00
export const colors = {
2024-01-09 06:47:50 +08:00
background: "#F2FAF4",
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",
2024-01-09 06:47:50 +08:00
dark_blue: "#19639D",
font_dark_red: "#570404",
dandelion: "#FBB217",
lightgreen: "#D9FFD8",
darkgreen: "#00360C",
lightorange: "#FEFFCD",
lightred: "#ECC4B8",
form_dark: "#000000",
form_title: "#1E1A4D"
2024-01-06 11:44:46 +08:00
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
2024-01-09 06:47:50 +08:00
text_normal: {
color: colors.font_dark,
fontWeight: "500",
},
2024-01-09 06:47:50 +08:00
text_dark_red: {
color: colors.font_dark_red,
fontWeight: "bold",
},
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;