Mexar / frontend /src /index.js
Devrajsinh bharatsinh gohil
Initial commit of MEXAR Ultimate - Phase 2 cleanup complete
b0b150b
import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import CssBaseline from '@mui/material/CssBaseline';
import App from './App';
import './index.css';
// Create dark theme with purple accent
const theme = createTheme({
palette: {
mode: 'dark',
primary: {
main: '#8b5cf6',
light: '#a78bfa',
dark: '#7c3aed',
},
secondary: {
main: '#06b6d4',
light: '#22d3ee',
dark: '#0891b2',
},
background: {
default: '#0f0f1a',
paper: '#1a1a2e',
},
success: {
main: '#22c55e',
},
warning: {
main: '#f59e0b',
},
error: {
main: '#ef4444',
},
},
typography: {
fontFamily: '"Inter", "Roboto", "Helvetica", "Arial", sans-serif',
h1: {
fontWeight: 700,
},
h2: {
fontWeight: 600,
},
h3: {
fontWeight: 600,
},
h4: {
fontWeight: 600,
},
h5: {
fontWeight: 500,
},
h6: {
fontWeight: 500,
},
},
shape: {
borderRadius: 12,
},
components: {
MuiButton: {
styleOverrides: {
root: {
textTransform: 'none',
fontWeight: 600,
borderRadius: 8,
padding: '10px 24px',
},
contained: {
boxShadow: '0 4px 14px 0 rgba(139, 92, 246, 0.3)',
},
},
},
MuiCard: {
styleOverrides: {
root: {
backgroundImage: 'linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%)',
border: '1px solid rgba(255, 255, 255, 0.1)',
backdropFilter: 'blur(10px)',
},
},
},
MuiPaper: {
styleOverrides: {
root: {
backgroundImage: 'none',
},
},
},
},
});
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<BrowserRouter>
<ThemeProvider theme={theme}>
<CssBaseline />
<App />
</ThemeProvider>
</BrowserRouter>
</React.StrictMode>
);