File size: 1,215 Bytes
819bacd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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;
};