pranav8tripathi@gmail.com commited on
Commit
8aafeb2
·
1 Parent(s): 0229968

localhost 5005

Browse files
Files changed (2) hide show
  1. src/App.tsx +2 -29
  2. src/theme.ts +106 -0
src/App.tsx CHANGED
@@ -2,35 +2,8 @@ import React from 'react';
2
  import { AgentProvider, useAgent } from './contexts/AgentContext';
3
  import ChatInterface from './components/ChatInterface';
4
  import AgentSelector from './components/AgentSelector';
5
- import { CssBaseline, ThemeProvider, createTheme } from '@mui/material';
6
-
7
- const theme = createTheme({
8
- palette: {
9
- mode: 'light',
10
- primary: {
11
- main: '#7C3AED', // violet
12
- light: '#A78BFA',
13
- dark: '#5B21B6',
14
- contrastText: '#ffffff',
15
- },
16
- secondary: {
17
- main: '#06B6D4', // cyan
18
- light: '#67E8F9',
19
- dark: '#0E7490',
20
- contrastText: '#003543',
21
- },
22
- background: {
23
- default: '#f7f9fc',
24
- paper: '#ffffff',
25
- },
26
- },
27
- shape: {
28
- borderRadius: 12,
29
- },
30
- typography: {
31
- fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
32
- },
33
- });
34
 
35
  function App() {
36
  return (
 
2
  import { AgentProvider, useAgent } from './contexts/AgentContext';
3
  import ChatInterface from './components/ChatInterface';
4
  import AgentSelector from './components/AgentSelector';
5
+ import { CssBaseline, ThemeProvider } from '@mui/material';
6
+ import theme from './theme';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  function App() {
9
  return (
src/theme.ts ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { createTheme } from '@mui/material/styles';
2
+
3
+ const theme = createTheme({
4
+ shape: {
5
+ borderRadius: 2, // Sharp corners (reduced from default 4)
6
+ },
7
+ palette: {
8
+ mode: 'dark',
9
+ primary: {
10
+ main: '#424242', // Medium grey for primary actions
11
+ light: '#616161', // Lighter grey for hover states
12
+ dark: '#212121', // Darker grey for active states
13
+ contrastText: '#ffffff',
14
+ },
15
+ secondary: {
16
+ main: '#757575', // Light grey for secondary actions
17
+ contrastText: '#ffffff',
18
+ },
19
+ background: {
20
+ default: '#121212', // Very dark grey for main background
21
+ paper: '#1e1e1e', // Slightly lighter grey for cards/paper
22
+ },
23
+ text: {
24
+ primary: '#ffffff', // White for primary text
25
+ secondary: '#b0b0b0', // Light grey for secondary text
26
+ },
27
+ divider: 'rgba(255, 255, 255, 0.12)', // Subtle white for dividers
28
+ },
29
+ components: {
30
+ MuiButton: {
31
+ styleOverrides: {
32
+ root: {
33
+ textTransform: 'none',
34
+ borderRadius: '2px',
35
+ fontWeight: 500,
36
+ padding: '8px 20px',
37
+ transition: 'all 0.2s ease-in-out',
38
+ },
39
+ contained: {
40
+ boxShadow: 'none',
41
+ '&:hover': {
42
+ transform: 'translateY(-1px)',
43
+ boxShadow: '0 4px 8px rgba(0,0,0,0.3)',
44
+ },
45
+ },
46
+ outlined: {
47
+ borderColor: 'rgba(255, 255, 255, 0.23)',
48
+ '&:hover': {
49
+ borderColor: 'rgba(255, 255, 255, 0.5)',
50
+ backgroundColor: 'rgba(255, 255, 255, 0.04)',
51
+ },
52
+ },
53
+ },
54
+ },
55
+ MuiCard: {
56
+ styleOverrides: {
57
+ root: {
58
+ borderRadius: '2px',
59
+ backgroundImage: 'none',
60
+ border: '1px solid rgba(255, 255, 255, 0.05)',
61
+ '&:hover': {
62
+ boxShadow: '0 8px 16px rgba(0,0,0,0.3)',
63
+ },
64
+ },
65
+ },
66
+ },
67
+ MuiPaper: {
68
+ styleOverrides: {
69
+ root: {
70
+ borderRadius: '2px',
71
+ backgroundImage: 'none',
72
+ border: '1px solid rgba(255, 255, 255, 0.05)',
73
+ },
74
+ },
75
+ },
76
+ MuiAppBar: {
77
+ styleOverrides: {
78
+ root: {
79
+ borderRadius: 0,
80
+ background: '#1a1a1a',
81
+ boxShadow: '0 2px 10px rgba(0,0,0,0.3)',
82
+ borderBottom: '1px solid rgba(255, 255, 255, 0.05)',
83
+ },
84
+ },
85
+ },
86
+ MuiTextField: {
87
+ styleOverrides: {
88
+ root: {
89
+ '& .MuiOutlinedInput-root': {
90
+ '& fieldset': {
91
+ borderColor: 'rgba(255, 255, 255, 0.1)',
92
+ },
93
+ '&:hover fieldset': {
94
+ borderColor: 'rgba(255, 255, 255, 0.3)',
95
+ },
96
+ '&.Mui-focused fieldset': {
97
+ borderColor: '#616161',
98
+ },
99
+ },
100
+ },
101
+ },
102
+ },
103
+ },
104
+ });
105
+
106
+ export default theme;