/
AtlasProgrammer
/
pp-heat-map
Обзор
Документация
Войти
/
AtlasProgrammer
/
pp-heat-map
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
frontend/src/theme.ts
82 строки
1 KB
AtlasProgrammer
upload files frontend
07 ноя 2025, 13:02
07 ноя 2025, 13:02
e56909e
Код
Авторство
О чём код?
import { createTheme } from '@mui/material/styles'; const theme = createTheme({ palette: { primary: { main: '#2b7fcd', light: '#1475cc', dark: '#0f5caa', }, secondary: { main: '#52c41a', }, error: { main: '#ff4d4f', }, warning: { main: '#faad14', }, background: { default: '#f5f5f5', paper: '#ffffff', }, }, typography: { fontFamily: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', h1: { fontSize: '2.5rem', fontWeight: 600, }, h2: { fontSize: '2rem', fontWeight: 600, }, h3: { fontSize: '1.5rem', fontWeight: 600, }, h4: { fontSize: '1.25rem', fontWeight: 500, }, h5: { fontSize: '1.125rem', fontWeight: 500, }, h6: { fontSize: '1rem', fontWeight: 500, }, }, shape: { borderRadius: 8, }, components: { MuiButton: { styleOverrides: { root: { textTransform: 'none', fontWeight: 500, borderRadius: 6, }, }, }, MuiCard: { styleOverrides: { root: { boxShadow: '0 2px 8px rgba(0,0,0,0.05)', borderRadius: 12, }, }, }, MuiPaper: { styleOverrides: { root: { borderRadius: 12, }, }, }, }, }); export default theme;