-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.ts
41 lines (39 loc) · 1.07 KB
/
theme.config.ts
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
import { createTheme } from "@mui/material/styles";
import "@fontsource/nunito-sans/300.css";
import "@fontsource/nunito-sans/400.css";
import "@fontsource/nunito-sans/600.css";
const theme = createTheme({
typography: {
fontFamily: "Nunito Sans, Arial",
},
components: {
MuiCssBaseline: {
styleOverrides: `
@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-display: swap;
font-weight: 300;
src: url(node_modules/@fontsource/nunito-sans/300.css) format('woff2');
}
@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-display: swap;
font-weight: 400;
src: url(node_modules/@fontsource/nunito-sans/400.css) format('woff2');
}
@font-face {
font-family: 'Nunito Sans';
font-style: normal;
font-display: swap;
font-weight: 600;
src: url(node_modules/@fontsource/nunito-sans/600.css) format('woff2');
}
html {
scroll-behavior: smooth;
}`,
},
},
});
export default theme;