2022-11-17 12:25:23 +00:00
|
|
|
import { createTheme } from "@mui/material";
|
|
|
|
|
|
|
|
|
2022-11-19 20:28:47 +00:00
|
|
|
const theme = createTheme({
|
2022-11-17 12:25:23 +00:00
|
|
|
breakpoints: {
|
|
|
|
values: {
|
2023-03-22 16:37:52 +00:00
|
|
|
xs: 300,
|
2022-11-25 18:54:08 +00:00
|
|
|
sm: 560,
|
2022-11-17 12:25:23 +00:00
|
|
|
md: 900,
|
|
|
|
lg: 1200,
|
|
|
|
xl: 1536,
|
|
|
|
},
|
|
|
|
},
|
2022-11-24 18:08:51 +00:00
|
|
|
components: {
|
|
|
|
MuiTypography: {
|
|
|
|
defaultProps: {
|
|
|
|
variantMapping: {
|
|
|
|
p1: "p",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
2022-11-17 12:25:23 +00:00
|
|
|
typography: {
|
|
|
|
h5: { // H2 в макете
|
|
|
|
fontSize: "24px",
|
|
|
|
lineHeight: "28.44px",
|
|
|
|
fontWeight: 500,
|
|
|
|
},
|
|
|
|
button: {
|
|
|
|
fontSize: "18px",
|
|
|
|
lineHeight: "24px",
|
|
|
|
fontWeight: 400,
|
|
|
|
textTransform: "none",
|
|
|
|
},
|
|
|
|
body1: { // T1 в макете
|
|
|
|
fontSize: "18px",
|
|
|
|
lineHeight: "21.33px",
|
2022-11-19 12:39:57 +00:00
|
|
|
fontWeight: 400,
|
2022-11-17 12:25:23 +00:00
|
|
|
},
|
2022-11-19 12:39:57 +00:00
|
|
|
body2: { // M1 в макете
|
2022-11-17 12:25:23 +00:00
|
|
|
fontSize: "16px",
|
|
|
|
lineHeight: "20px",
|
|
|
|
fontWeight: 500,
|
|
|
|
},
|
2022-11-24 18:08:51 +00:00
|
|
|
p1: { // P1 в макете
|
2022-11-19 20:28:47 +00:00
|
|
|
fontSize: "20px",
|
|
|
|
lineHeight: "24px",
|
|
|
|
fontWeight: 500,
|
|
|
|
},
|
2023-06-16 19:05:31 +00:00
|
|
|
price: {
|
|
|
|
fontWeight: 500,
|
|
|
|
fontSize: "20px",
|
|
|
|
lineHeight: "24px",
|
|
|
|
color: "#4D4D4D",
|
|
|
|
},
|
|
|
|
oldPrice: {
|
|
|
|
fontWeight: 400,
|
|
|
|
fontSize: "18px",
|
|
|
|
lineHeight: "21px",
|
|
|
|
textDecorationLine: "line-through",
|
|
|
|
color: "#FB5607",
|
|
|
|
},
|
2022-11-17 12:25:23 +00:00
|
|
|
fontFamily: [
|
|
|
|
"Rubik",
|
|
|
|
"-apple-system",
|
|
|
|
"BlinkMacSystemFont",
|
|
|
|
'"Segoe UI"',
|
|
|
|
'"Helvetica Neue"',
|
|
|
|
"Arial",
|
|
|
|
"sans-serif",
|
|
|
|
'"Apple Color Emoji"',
|
|
|
|
'"Segoe UI Emoji"',
|
|
|
|
'"Segoe UI Symbol"',
|
|
|
|
].join(","),
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2022-11-18 16:51:10 +00:00
|
|
|
theme.typography.h2 = {
|
|
|
|
fontSize: "70px",
|
|
|
|
lineHeight: "70px",
|
|
|
|
fontWeight: 500,
|
|
|
|
[theme.breakpoints.down("md")]: {
|
|
|
|
fontSize: "42px",
|
|
|
|
lineHeight: "50px",
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
theme.typography.h4 = { // H1 в макете
|
|
|
|
fontSize: "36px",
|
|
|
|
lineHeight: "42.66px",
|
|
|
|
fontWeight: 500,
|
|
|
|
[theme.breakpoints.down("md")]: {
|
|
|
|
fontSize: "24px",
|
|
|
|
lineHeight: "28.44px",
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
theme.typography.infographic = {
|
|
|
|
fontSize: "80px",
|
|
|
|
lineHeight: "94.8px",
|
|
|
|
fontWeight: 400,
|
|
|
|
[theme.breakpoints.down("md")]: {
|
|
|
|
fontSize: "50px",
|
|
|
|
lineHeight: "59px",
|
|
|
|
fontWeight: 400,
|
|
|
|
}
|
2022-11-19 20:28:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default theme;
|