Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit e485f9a

Browse files
committed
docs: add better style to editor
1 parent f02d9ab commit e485f9a

File tree

2 files changed

+87
-7
lines changed

2 files changed

+87
-7
lines changed

examples/context-editor/src/App.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ const App: React.FC = () => {
4545
Codebase Context Editor
4646
</Typography>
4747
<Box display="flex" alignItems="center">
48-
<Button variant="outlined" onClick={() => setSpecModalOpen(true)} sx={{ mr: 2 }}>
49-
View Latest Specification
48+
<Button
49+
className="viewLatestSpec"
50+
onClick={() => setSpecModalOpen(true)}
51+
sx={{ mr: 2 }}
52+
>
53+
View Latest Specification v1.0.0-RFC
5054
</Button>
5155
<MuiLink href="https://github.com/Agentic-Insights/codebase-context-spec" target="_blank" rel="noopener noreferrer">
5256
<GitHubIcon fontSize="large" />

examples/context-editor/src/theme.ts

Lines changed: 81 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,23 @@ import { createTheme } from '@mui/material/styles';
33
const theme = createTheme({
44
palette: {
55
primary: {
6-
main: '#1976d2',
6+
main: '#6200ee',
7+
light: '#9d46ff',
8+
dark: '#3700b3',
79
},
810
secondary: {
9-
main: '#dc004e',
11+
main: '#03dac6',
12+
light: '#66fff9',
13+
dark: '#00a896',
1014
},
1115
background: {
12-
default: '#f5f5f5',
16+
default: '#f4f6f8',
1317
paper: '#ffffff',
1418
},
19+
text: {
20+
primary: '#1a1a2e',
21+
secondary: '#4a4e69',
22+
},
1523
},
1624
typography: {
1725
fontFamily: [
@@ -26,12 +34,36 @@ const theme = createTheme({
2634
'"Segoe UI Emoji"',
2735
'"Segoe UI Symbol"',
2836
].join(','),
37+
h1: {
38+
fontWeight: 700,
39+
fontSize: '3rem',
40+
background: 'linear-gradient(45deg, #6200ee 30%, #9d46ff 90%)',
41+
WebkitBackgroundClip: 'text',
42+
WebkitTextFillColor: 'transparent',
43+
textShadow: '2px 2px 4px rgba(0,0,0,0.1)',
44+
letterSpacing: '0.05em',
45+
},
46+
h2: {
47+
fontWeight: 600,
48+
fontSize: '2rem',
49+
color: '#3700b3',
50+
},
2951
},
3052
components: {
53+
MuiAppBar: {
54+
styleOverrides: {
55+
root: {
56+
backgroundImage: 'linear-gradient(45deg, #6200ee 30%, #03dac6 90%)',
57+
backgroundSize: 'cover',
58+
backgroundPosition: 'center',
59+
},
60+
},
61+
},
3162
MuiPaper: {
3263
styleOverrides: {
3364
root: {
34-
boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)',
65+
boxShadow: '0 4px 6px rgba(0, 0, 0, 0.1)',
66+
borderRadius: '8px',
3567
},
3668
},
3769
},
@@ -40,7 +72,10 @@ const theme = createTheme({
4072
root: {
4173
'& .MuiOutlinedInput-root': {
4274
'&:hover fieldset': {
43-
borderColor: '#1976d2',
75+
borderColor: '#6200ee',
76+
},
77+
'&.Mui-focused fieldset': {
78+
borderColor: '#6200ee',
4479
},
4580
},
4681
},
@@ -50,6 +85,47 @@ const theme = createTheme({
5085
styleOverrides: {
5186
root: {
5287
textTransform: 'none',
88+
borderRadius: '8px',
89+
padding: '8px 16px',
90+
transition: 'all 0.3s ease',
91+
'&:hover': {
92+
transform: 'translateY(-2px)',
93+
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.2)',
94+
},
95+
'&.viewLatestSpec': {
96+
background: 'linear-gradient(45deg, #6200ee 0%, #9d46ff 50%, #d4a5ff 100%)',
97+
color: '#ffffff',
98+
fontWeight: 600,
99+
'&:hover': {
100+
background: 'linear-gradient(45deg, #3700b3 0%, #6200ee 50%, #9d46ff 100%)',
101+
},
102+
},
103+
},
104+
containedPrimary: {
105+
background: 'linear-gradient(45deg, #6200ee 30%, #9d46ff 90%)',
106+
'&:hover': {
107+
background: 'linear-gradient(45deg, #3700b3 30%, #6200ee 90%)',
108+
},
109+
},
110+
containedSecondary: {
111+
background: 'linear-gradient(45deg, #03dac6 30%, #66fff9 90%)',
112+
color: '#1a1a2e',
113+
'&:hover': {
114+
background: 'linear-gradient(45deg, #00a896 30%, #03dac6 90%)',
115+
},
116+
},
117+
},
118+
},
119+
MuiTab: {
120+
styleOverrides: {
121+
root: {
122+
transition: 'all 0.3s ease',
123+
'&:hover': {
124+
backgroundColor: 'rgba(98, 0, 238, 0.1)',
125+
},
126+
'&.Mui-selected': {
127+
color: '#6200ee',
128+
},
53129
},
54130
},
55131
},

0 commit comments

Comments
 (0)