/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/material-ui-nextjs/src/theme.js
37 строк
690 B
Eng Zer Jun
[examples] Use CSS Variables (#43856)
08 окт 2024, 11:45
Не верифицирован
08 окт 2024, 11:45
a6c8a9a
Код
Авторство
О чём код?
'use client'; import { Roboto } from 'next/font/google'; import { createTheme } from '@mui/material/styles'; const roboto = Roboto({ weight: ['300', '400', '500', '700'], subsets: ['latin'], display: 'swap', }); const theme = createTheme({ cssVariables: true, palette: { mode: 'light', }, typography: { fontFamily: roboto.style.fontFamily, }, components: { MuiAlert: { styleOverrides: { root: { variants: [ { props: { severity: 'info' }, style: { backgroundColor: '#60a5fa', }, } ], }, }, }, }, }); export default theme;