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-10-28 12:13:34 +02:00
|
|
|
import "./messaging/messagesToBackground";
|
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-10-20 17:07:53 +03:00
|
|
|
import { RecoilRoot } from 'recoil';
|
2024-11-21 22:56:01 +02:00
|
|
|
import './utils/nativepow.ts'
|
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
|
|
|
|
},
|
|
|
|
},
|
2025-03-04 23:39:33 +02:00
|
|
|
components: {
|
|
|
|
MuiOutlinedInput: {
|
|
|
|
styleOverrides: {
|
|
|
|
root: {
|
|
|
|
".MuiOutlinedInput-notchedOutline": {
|
|
|
|
borderColor: "white", // ⚪ Default outline color
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
MuiSelect: {
|
|
|
|
styleOverrides: {
|
|
|
|
icon: {
|
|
|
|
color: "white", // ✅ Caret (dropdown arrow) color
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-09-09 20:36:39 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
export default theme;
|
|
|
|
|
|
|
|
|
2024-04-14 14:57:30 +03:00
|
|
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
2024-10-29 15:57:27 +02:00
|
|
|
<>
|
2024-09-09 20:36:39 +03:00
|
|
|
<ThemeProvider theme={theme}>
|
|
|
|
<CssBaseline />
|
2024-09-11 15:42:01 +03:00
|
|
|
<MessageQueueProvider>
|
2024-10-20 17:07:53 +03:00
|
|
|
<RecoilRoot>
|
2024-04-14 14:57:30 +03:00
|
|
|
<App />
|
2024-10-20 17:07:53 +03:00
|
|
|
</RecoilRoot>
|
2024-09-11 15:42:01 +03:00
|
|
|
</MessageQueueProvider>
|
2024-09-09 20:36:39 +03:00
|
|
|
</ThemeProvider>
|
2024-10-29 15:57:27 +02:00
|
|
|
</>,
|
2024-04-14 14:57:30 +03:00
|
|
|
)
|