-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.js
More file actions
45 lines (41 loc) · 899 Bytes
/
theme.js
File metadata and controls
45 lines (41 loc) · 899 Bytes
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
import { createTheme, responsiveFontSizes } from "@mui/material";
import createShadows from "./shadows.js";
let theme = createTheme({
palette: {
primary: {
main: "#1162A1",
},
secondary: {
main: "#5ECAEB",
},
info: {
main: "#30B7FF",
},
success: {
main: "#157F1F",
},
warning: {
main: "#FF7700",
},
error: {
main: "#D00000",
},
geonet: {
// Because this is a non-standard color, the light and dark variants need to be defiend manually
main: "#8D0020",
light: "#C34150",
dark: "#590000",
contrastText: "#FFF",
},
},
typography: {
fontFamily: "ManropeVariable, Manrope, acumin-pro, Roboto, sans-serif",
},
});
const shadowColour = theme.palette.primary.main;
theme = {
...theme,
shadows: createShadows(shadowColour),
};
theme = responsiveFontSizes(theme, { breakpoints: ["sm", "md", "lg", "xl"], factor: 4 });
export { theme };