abadesalex's picture
UI
819bacd
raw
history blame
1.22 kB
import { alpha, createTheme, responsiveFontSizes } from "@mui/material";
const typography = {
fontFamily: " 'DM Sans', Inter,sans-serif",
body1: {
fontSize: "1rem",
fontWeight: 400,
lineHeight: 1.5,
},
h1: {
fontSize: "2.5rem",
fontWeight: 600,
lineHeight: 1.2,
},
h2: {
fontSize: "2rem",
fontWeight: 600,
lineHeight: 1.3,
},
h3: {
fontSize: "1.9rem",
fontWeight: 600,
lineHeight: 1.4,
},
h4: {
fontSize: "1.2rem",
fontWeight: 500,
lineHeight: 1.5,
},
h5: {
fontSize: "1rem",
fontWeight: 400,
lineHeight: 1.6,
},
h6: {
fontSize: "0.9rem",
fontWeight: 400,
lineHeight: 1.6,
},
h7: {
fontSize: "0.8rem",
fontWeight: 400,
lineHeight: 1.6,
},
};
const baseTheme = {
palette: {
primary: {
main: "#EDE8D0",
},
secondary: {
main: alpha("#8B5A2B", 0.4),
},
border: {
default: alpha("#000000", 0.23),
},
background: {
default: alpha("#EDE8D0", 0.35),
base: "#EDE8D0",
},
},
typography,
};
export const buildTheme = (config = {}) => {
const theme = responsiveFontSizes(createTheme({ ...baseTheme }));
return theme;
};