aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/theme/index.js
blob: e8ce698b004779ac9ff7638d9f9839e1ee872ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { useMemo } from 'react';
import { createTheme } from '@mui/material/styles';
import palette from './palette';
import dimensions from './dimensions';
import components from './components';

export default (server, darkMode) => useMemo(() => createTheme({
  palette: palette(server, darkMode),
  dimensions,
  components,
}), [server, darkMode]);