Use Nextjs integration for Mui

This commit is contained in:
2024-05-17 08:42:30 +04:00
parent cfa4ff6b0d
commit 03ce161f65
4 changed files with 37 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
'use client'
import {Roboto} from 'next/font/google'
import {createTheme} from '@mui/material/styles'
const roboto = Roboto({ // eslint-disable-line new-cap
weight: ['300', '400', '500', '700'],
subsets: ['latin'],
display: 'swap',
})
const theme = createTheme({
typography: {
fontFamily: roboto.style.fontFamily,
},
})
export default theme