Borrowing-TrackerFrontend/src/styles.tsx

94 lines
1.8 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",
};
const styles: { [key: string]: React.CSSProperties } = {
background: {
backgroundColor: colors.background,
position: "fixed",
top: 0,
left: 0,
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
},
text_dark: {
color: colors.font_dark,
fontWeight: "bold",
2023-12-14 18:09:44 +08:00
2023-11-13 22:19:33 +08:00
},
text_light: {
color: colors.font_light,
fontWeight: "bold",
},
text_red: {
color: colors.red,
fontWeight: "bold",
},
text_orange: {
color: colors.orange,
fontWeight: "bold",
},
text_green: {
color: colors.green,
fontWeight: "bold",
},
text_XL: {
2023-11-19 14:50:39 +08:00
fontSize: "clamp(2rem, 3rem, 8rem)",
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",
},
2023-11-13 22:19:33 +08:00
};
export default styles;