Borrowing-TrackerFrontend/src/styles.tsx

80 lines
1.5 KiB
TypeScript
Raw Normal View History

2023-11-13 22:19:33 +08:00
export const colors = {
background: "#FFFFFF",
header_color: "#141762",
font_dark: "#141762",
font_light: "#FFFFFF",
button_dark: "#141762",
button_light: "#FFFFFF",
button_border: "#141762",
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%",
},
text_dark: {
color: colors.font_dark,
fontWeight: "bold",
},
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-17 16:02:08 +08:00
fontSize: "clamp(2rem, 4rem, 8rem)",
2023-11-13 22:19:33 +08:00
},
text_L: {
2023-11-17 16:02:08 +08:00
fontSize: "clamp(1.5rem, 3rem, 6rem)",
2023-11-13 22:19:33 +08:00
},
text_M: {
2023-11-17 16:02:08 +08:00
fontSize: "clamp(1rem, 2rem, 4rem)",
2023-11-13 22:19:33 +08:00
},
text_S: {
2023-11-17 16:02:08 +08:00
fontSize: "clamp(0.5rem, 1rem, 2rem)",
2023-11-13 22:19:33 +08:00
},
text_XS: {
2023-11-17 16:02:08 +08:00
fontSize: "clamp(0.2rem, 0.5rem, 1rem)",
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,
},
2023-11-13 22:19:33 +08:00
};
export default styles;