2024-04-14 14:57:30 +03:00
|
|
|
import React from 'react'
|
|
|
|
import ReactDOM from 'react-dom/client'
|
|
|
|
import App from './App.tsx'
|
|
|
|
import './index.css'
|
|
|
|
|
2024-09-09 20:36:39 +03:00
|
|
|
import { ThemeProvider, createTheme } from '@mui/material/styles';
|
|
|
|
import { CssBaseline } from '@mui/material';
|
2024-09-11 15:42:01 +03:00
|
|
|
import { MessageQueueProvider } from './MessageQueueContext.tsx';
|
2024-09-09 20:36:39 +03:00
|
|
|
|
|
|
|
const theme = createTheme({
|
|
|
|
palette: {
|
|
|
|
primary: {
|
|
|
|
main: '#232428', // Primary color (e.g., used for buttons, headers, etc.)
|
|
|
|
},
|
|
|
|
secondary: {
|
|
|
|
main: '#232428', // Secondary color
|
|
|
|
},
|
|
|
|
background: {
|
|
|
|
default: '#27282c', // Default background color
|
|
|
|
paper: '#1d1d1d', // Paper component background (for dropdowns, dialogs, etc.)
|
|
|
|
},
|
|
|
|
text: {
|
|
|
|
primary: '#ffffff', // White as the primary text color
|
|
|
|
secondary: '#b0b0b0', // Light gray for secondary text
|
|
|
|
disabled: '#808080', // Gray for disabled text
|
|
|
|
},
|
|
|
|
},
|
|
|
|
typography: {
|
|
|
|
fontFamily: '"Inter", "Roboto", "Helvetica", "Arial", sans-serif', // Font family
|
|
|
|
h1: {
|
|
|
|
color: '#ffffff', // White color for h1 elements
|
|
|
|
},
|
|
|
|
h2: {
|
|
|
|
color: '#ffffff', // White color for h2 elements
|
|
|
|
},
|
|
|
|
body1: {
|
|
|
|
color: '#ffffff', // Default body text color
|
|
|
|
},
|
|
|
|
body2: {
|
|
|
|
color: '#b0b0b0', // Lighter text for body2, often used for secondary text
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default theme;
|
|
|
|
|
|
|
|
|
2024-04-14 14:57:30 +03:00
|
|
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
|
|
<React.StrictMode>
|
2024-09-09 20:36:39 +03:00
|
|
|
<ThemeProvider theme={theme}>
|
|
|
|
<CssBaseline />
|
2024-09-11 15:42:01 +03:00
|
|
|
<MessageQueueProvider>
|
2024-04-14 14:57:30 +03:00
|
|
|
<App />
|
2024-09-11 15:42:01 +03:00
|
|
|
</MessageQueueProvider>
|
2024-09-09 20:36:39 +03:00
|
|
|
</ThemeProvider>
|
2024-04-14 14:57:30 +03:00
|
|
|
</React.StrictMode>,
|
|
|
|
)
|